cancel
Showing results for 
Search instead for 
Did you mean: 

2.0a Preview - Press Release Error

mstralka
Champ in-the-making
Champ in-the-making
I downloaded and installed 2.0 preview alfresco-community-tomcat-2.0.0Preview.zip a few days ago and started going through WCM_BETA_Eval_Guide.pdf (which is a great guide, by the way).  I got as far as Creating New Web Content: Press Releases page 34, before I got the XML error mentioned here, so I downloaded 2.0.0a and put serializer.jar and xalan.jar in tomcat/common/endorsed.  Those are the only files I copied over my installation.

However, now when I get to Step 2 of the Create Web Content Wizard, the form does not appear correctly, there is a javascript error, and the tomcat window gives the following error:

[Error] :24:114: src-resolve: Cannot resolve the name 'pr:company_footer_choices' to a(n) 'type definition' component.
[Warning] :4:164: schema_reference.4: Failed to read schema document 'http://admin.alfrescowww.www--sandbox.127-0-0-1.ip.alfrescodemo.net:8180/media/releases/get_company_...', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
[Error] :24:114: src-resolve: Cannot resolve the name 'pr:company_footer_choices' to a(n) 'type definition' component.

The virtual server is running and going to the JSP mentioned in the error lists the company names correctly.  Any ideas on what could be wrong? 
Windows 2000 SP4
MySQL 5
JDK 1.5.0_07
Thanks!
6 REPLIES 6

kvc
Champ in-the-making
Champ in-the-making
Did you in any way modify the press release XSD?  Can you try deleting the existing press release form, recreating, and then reattaching to a new web project to see if you encounter the same error?

Kevin

arielb
Champ in-the-making
Champ in-the-making
did you create any company footer before creating the press release?  when you try previewing the jsp directly, do you get any errors, or is the result a valid schema?

mstralka
Champ in-the-making
Champ in-the-making
Thank you for the responses.  I had not modified the XSD at all and I had created the company footers beforehand.

I deleted the company-form, press-release form, and the web project and then started over.  This time I was successful in creating press releases.  Great work!

doctajeff
Champ in-the-making
Champ in-the-making
One note about this, I think this could have been caused by incorrectly typing in the "Output Path" when creating the form.

The tutorial on Page 21 states the output path should be "/${webapp}/media/releases/content", I think it should actually be…"/${webapp}/media/releases/content/${name}.xml"

Jeff

kvc
Champ in-the-making
Champ in-the-making
One note about this, I think this could have been caused by incorrectly typing in the "Output Path" when creating the form.

The tutorial on Page 21 states the output path should be "/${webapp}/media/releases/content", I think it should actually be…"/${webapp}/media/releases/content/${name}.xml"

Jeff


Yes, on page 21, where it say "/${webapp}/media/release/content (Same as Company Footer).

We'll correct and post and update.

Thanks for the catch.


Kevin

akila
Champ in-the-making
Champ in-the-making
Hi ,

i am new to this Alfresco stuff. I have downloaded 2.0 Preview and started with the same using the pdf.I encountered the following errors. Kindly help me out to solve this problem.The error is pasted below:

Feb 7, 2007 3:16:27 PM org.apache.catalina.core.AprLifecycleListener lifecycleEv
ent
INFO: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: C:\Alfresco\java\bin;
.;C:\WINDOWS\system32;C:\WINDOWS;C:\Alfresco\java/bin;C:\Alfresco\bin;C:\WINDOWS
\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Apache Software F
oundation\Tomcat 5.5\bin;C:\Program Files\Java\jdk1.5.0_04\bin;C:\Program Files\
MySQL\MySQL Server 4.1\bin;C:\apache-ant-1.6.5\bin;C:\poi-2.5.1\poi-2.5.1.jar;C:
\ajaxtags-1.1.5\ajaxtags-1.1.5.jar;C:\Program Files\Apache Software Foundation\T
omcat 5.5\common\lib
Feb 7, 2007 3:16:27 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Feb 7, 2007 3:16:27 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 907 ms
Feb 7, 2007 3:16:27 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 7, 2007 3:16:27 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Feb 7, 2007 3:16:27 PM org.springframework.beans.factory.xml.XmlBeanDefinitionRe
ader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:C:/Alfresco/virtual-tomcat/con
f/alfresco-virtserver-context.xml]
Feb 7, 2007 3:16:28 PM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
Feb 7, 2007 3:16:28 PM org.springframework.context.support.AbstractRefreshableAp
plicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.
FileSystemXmlApplicationContext;hashCode=28893273]: org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory defining beans [virtserver-properties,a
uthenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemote
Transport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServer
MBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegi
stry,cacheControlInfo]; root of BeanFactory hierarchy
Feb 7, 2007 3:16:28 PM org.springframework.context.support.AbstractApplicationCo
ntext refresh
INFO: 15 beans defined in application context [org.springframework.context.suppo
rt.FileSystemXmlApplicationContext;hashCode=28893273]
Feb 7, 2007 3:16:28 PM org.springframework.core.io.support.PropertiesLoaderSuppo
rt loadProperties
INFO: Loading properties file from URL [file:C:/Alfresco/virtual-tomcat/conf/alf
resco-shared.properties]
Feb 7, 2007 3:16:28 PM org.springframework.core.io.support.PropertiesLoaderSuppo
rt loadProperties
INFO: Loading properties file from URL [file:C:/Alfresco/virtual-tomcat/conf/alf
resco-virtserver.properties]
Feb 7, 2007 3:16:28 PM org.springframework.context.support.AbstractApplicationCo
ntext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [o
rg.springframework.context.support.DelegatingMessageSource@cd5f8b]
Feb 7, 2007 3:16:28 PM org.springframework.context.support.AbstractApplicationCo
ntext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMu
lticaster': using default [org.springframework.context.event.SimpleApplicationEv
entMulticaster@157aa53]
Feb 7, 2007 3:16:28 PM org.springframework.beans.factory.support.DefaultListable
BeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory
.support.DefaultListableBeanFactory defining beans [virtserver-properties,authen
ticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTrans
port,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBean
Server,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,
cacheControlInfo]; root of BeanFactory hierarchy]
Feb 7, 2007 3:16:28 PM org.springframework.remoting.rmi.RmiClientInterceptor pre
pare
INFO: RMI stub [rmi://localhost:1313/authentication] is an RMI invoker
Feb 7, 2007 3:16:28 PM org.springframework.aop.framework.DefaultAopProxyFactory
<clinit>
INFO: CGLIB2 not available: proxyTargetClass feature disabled
Feb 7, 2007 3:16:28 PM org.springframework.remoting.rmi.RmiClientInterceptor pre
pare
INFO: RMI stub [rmi://localhost:1313/avm] is an RMI invoker
Feb 7, 2007 3:16:28 PM org.springframework.remoting.rmi.RmiRegistryFactoryBean g
etRegistry
INFO: Looking for RMI registry at port '50501'
Feb 7, 2007 3:16:29 PM org.springframework.remoting.rmi.RmiRegistryFactoryBean g
etRegistry
WARNING: Could not detect RMI registry - creating new one
Feb 7, 2007 3:16:29 PM org.springframework.jmx.support.ConnectorServerFactoryBea
n afterPropertiesSet
INFO: JMX connector server started: javax.management.remote.rmi.RMIConnectorServ
er@15ad5c6
Reverse proxy binding: ^(.+)\.www–sandbox\.(?:version–v(-?[\d]+)\.)?.*$
Feb 7, 2007 3:16:29 PM org.alfresco.mbeans.VirtServerRegistrationThread register
VirtServer
INFO: Connected to remote Alfresco JMX Server
Feb 7, 2007 3:16:29 PM org.alfresco.catalina.host.AVMHost start
INFO: XML validation disabled
Feb 7, 2007 3:16:29 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 7, 2007 3:16:29 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 7, 2007 3:16:30 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Feb 7, 2007 3:16:30 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8109
Feb 7, 2007 3:16:30 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47  config=null
Feb 7, 2007 3:16:31 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Feb 7, 2007 3:16:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3656 ms
Feb 7, 2007 3:23:22 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request proce
ssing
java.lang.NullPointerException
        at org.alfresco.catalina.valve.AVMUrlValve.unMangleAVMuri(AVMUrlValve.ja
va:688)
        at org.alfresco.catalina.valve.AVMUrlValve.invoke(AVMUrlValve.java:313)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.alfresco.catalina.valve.AVMUrlValve.invoke(AVMUrlValve.java:594)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Feb 7, 2007 3:23:22 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request proce
ssing
java.lang.NullPointerException
        at org.alfresco.catalina.valve.AVMUrlValve.unMangleAVMuri(AVMUrlValve.ja
va:688)
        at org.alfresco.catalina.valve.AVMUrlValve.invoke(AVMUrlValve.java:313)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.alfresco.catalina.valve.AVMUrlValve.invoke(AVMUrlValve.java:594)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)