tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Smith" <m...@incursiontech.com>
Subject RE: deployment problems moving from tomcat 5.0.18 to 5.0.19
Date Mon, 05 Apr 2004 13:45:58 GMT
That's what I thought as well, so I swapped the jars in common/endorsed
with those for 5.0.18 and same problem.  My webapp does not include any
jars for XML/XSL processing.  

My context file was located in conf/Catalina/localhost each time for
5.0.18 and 5.0.19.

I thought maybe it was my installation of 5.0.19, so I downloaded the
zip file from the site and tried the same webapp on a fresh install of
5.0.19, ... No go.

m.

-----Original Message-----
From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com] 
Sent: Monday, April 05, 2004 2:36 AM
To: Tomcat Developers List
Subject: Re: deployment problems moving from tomcat 5.0.18 to 5.0.19


Looks like it's something to do with the xml parser. Is it a  standard 
install of tomcat 5? Have you included a xerces jar with your webapp?

Also put your context in a my-context-name.xml file in 
conf/Catalina/localhost

Adam

On 04/05/2004 08:58 AM Matt Smith wrote:
> Actually this is a problem between 5.0.18 and 5.0.19.  The same 
> context descriptor deploys successfully on 5.0.18, but the errors 
> below show up on 5.0.19.
> 
> Any ideas on what changed between the two releases that would cause 
> this?
> 
> Thanks,
> m.
> 
> -----Original Message-----
> From: Matt Smith [mailto:matt@incursiontech.com]
> Sent: Monday, April 05, 2004 12:33 AM
> To: tomcat-user@jakarta.apache.org
> Subject: deployment problems moving from tomcat 4.1.30 to 5.0.19
> 
> 
> I am migrating from Tomcat 4.1.30 to 5.0.19 and have been experiencing

> problems with deployment.  The context descriptor below works fine for

> deployment on Tomcat 4.1.30, but when I try to use it on 5.0.19, all I

> get is the following in localhost_log
>  
> 2004-04-05 00:22:54 StandardHost[localhost]: Error deploying 
> application at context path null java.lang.NullPointerException  at 
> org.apache.commons.digester.Digester.createSAXException(Digester.java:
> 25
> 40)
>  at
>
org.apache.commons.digester.Digester.createSAXException(Digester.java:25
> 66)
>  at
org.apache.commons.digester.Digester.endElement(Digester.java:1061)
>  at
>
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.ja
> va:123)
>  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>  at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
> nown Source)
>  at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
>  at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
>  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at
> org.apache.xerces.parsers.XMLParser.parse(Unknown Source)  at
> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)  at
> org.apache.commons.digester.Digester.parse(Digester.java:1567)
>  at
>
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
> er.java:519)
>  at
org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
>  at
>
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> :527)
>  at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
>  at
>
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:39
> 4)
>  at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> pport.java:166)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
>  at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
>  at
>
org.apache.catalina.core.StandardService.start(StandardService.java:519)
>  at
>
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>  at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
> 
> and :
>  
> Using CATALINA_BASE: 
> c:\work\sandbox\views\matt-calvert-tip-20031223142431\pro
> d\build
> Using CATALINA_HOME:   c:\work\sandbox\tools\tomcat-5.0.19
> Using CATALINA_TMPDIR: 
> c:\work\sandbox\views\matt-calvert-tip-20031223142431\pro
> d\build\temp
> Using JAVA_HOME:       c:\work\sandbox\tools\java-1.4.2_04
> Apr 5, 2004 12:26:06 AM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
> Apr 5, 2004 12:26:06 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1578 ms
> Apr 5, 2004 12:26:06 AM 
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListe
> ner createMBeans
> SEVERE:   Creating Role MBean for role <role rolename="tomcat"/>
> Apr 5, 2004 12:26:06 AM 
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListe
> ner createMBeans
> SEVERE:   Creating Role MBean for role <role rolename="role1"/>
> Apr 5, 2004 12:26:06 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Apr 5, 2004 12:26:06 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
> Apr 5, 2004 12:26:06 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Apr 5, 2004 12:26:06 AM org.apache.catalina.core.StandardHost
> getDeployer
> INFO: Create Host deployer for direct deployment ( non-jmx ) Apr 5, 
> 2004 12:26:06 AM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL
> file:C:\work\sandbox\views\matt- 
> calvert-tip-20031223142431\prod\build\conf\Catalina\localhost\calvert_
> ma
> in-tip.x
> ml
> Apr 5, 2004 12:26:06 AM org.apache.commons.digester.Digester
endElement
> SEVERE: End event threw exception
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
> a:252)
>         at
> org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
>         at org.apache.commons.digester.Rule.end(Rule.java:276)
>         at
> org.apache.commons.digester.Digester.endElement(Digester.java:1058)
>         at
> org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester
> .java:123)
>         at
> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
> )
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
> Unknown Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
> Dispatcher.dispatch(Unknown Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
> known Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>         at
> org.apache.commons.digester.Digester.parse(Digester.java:1567)
>         at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
> loyer.java:519)
>         at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
>         at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
> ava:527)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472
> )
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
> :394)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
> eSupport.java:166)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
>  
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
>  
>         at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521
> )
>         at 
> org.apache.catalina.core.StandardService.start(StandardService.java:5
> 19)
>         at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:234
> 5)
>         at
org.apache.catalina.startup.Catalina.start(Catalina.java:594)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.catalina.util.ExtensionValidator.buildAvailableExtensionsM
> ap(ExtensionValidator.java:386)
>         at 
> org.apache.catalina.util.ExtensionValidator.validateManifestResources
> (ExtensionValidator.java:319)
>         at 
> org.apache.catalina.util.ExtensionValidator.validateApplication(Exten
> sionValidator.java:262)
>         at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4
> 133)
>         at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:866)
>         at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85
> 0)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
>  
>         at 
> org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDe
> ployer.java:839)
>         ... 38 more
> Apr 5, 2004 12:26:06 AM org.apache.catalina.startup.HostConfig
> deployDescriptors
>  
> SEVERE: Error deploying configuration descriptor calvert_main-tip.xml
> java.io.IOException: java.lang.NullPointerException
>         at 
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
> loyer.java:525)
>         at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
>         at 
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
> ava:527)
>         at 
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472
> )
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
>         at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
> :394)
>         at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
> eSupport.java:166)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
>  
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
>  
>         at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521
> )
>         at 
> org.apache.catalina.core.StandardService.start(StandardService.java:5
> 19)
>         at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:234
> 5)
>         at
org.apache.catalina.startup.Catalina.start(Catalina.java:594)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
> Apr 5, 2004 12:26:06 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on port 8080
> Apr 5, 2004 12:26:07 AM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> Apr 5, 2004 12:26:07 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/47  config=null
> Apr 5, 2004 12:26:07 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 938 ms
> Apr 5, 2004 12:26:42 AM org.apache.coyote.http11.Http11Protocol pause
> INFO: http11protocol.pause
>  
>  
> I am using the following 
> $CATALINA_BASE/conf/Catalina/localhost/calvert-tip.xml context 
> descriptor
>  
> <!-- 
> ====================================================================
>      $Id: dev.xml,v 1.3 2003/10/16 01:30:19 matt Exp $
>  
> ==================================================================== 
> -->
> <!--
> ====================================================================
>      Context configuration file for the calvert Web App
>  
> ==================================================================== 
> --> <Context path=""
>          docBase="../incursion/calvert_main"
>          debug="99"
>          useNaming="true"
>          privileged="true">
>   <Logger className="org.apache.catalina.logger.FileLogger"
>           prefix="localhost_calvert_" suffix=".log"
>           timestamp="true"/>
>   <Resource name="jdbc/CalvertDB"
>             auth="Container"
>             type="javax.sql.DataSource"/>
>   <ResourceParams name="jdbc/CalvertDB">
>     <parameter>
>       <name>factory</name>
>
<value>com.incursiontech.ipscp.jdbc.IPSCPDataSourceFactory</value>
> <!--
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
> -->
>     </parameter>
>     <parameter>
>       <name>removeAbandoned</name>
>       <value>true</value>
>     </parameter>
>     <parameter>
>       <name>removeAbandonedTimeout</name>
>       <value>60</value>
>     </parameter>
>     <parameter>
>       <name>logAbandoned</name>
>       <value>true</value>
>     </parameter>
>     <parameter>
>       <name>maxActive</name>
>       <value>100</value>
>     </parameter>
>     <parameter>
>       <name>maxIdle</name>
>       <value>30</value>
>     </parameter>
>     <parameter>
>       <name>maxWait</name>
>       <value>10000</value>
>     </parameter>
>     <parameter>
>      <name>username</name>
>      <value>incursion_pool</value>
>     </parameter>
>     <parameter>
>      <name>password</name>
>      <value>.incursion</value>
>     </parameter>
>     <parameter>
>        <name>driverClassName</name>
>        <value>com.mysql.jdbc.Driver</value>
>     </parameter>
>     <parameter>
>       <name>url</name>
>  
> <value>jdbc:mysql://localhost:3306/calvert?autoReconnect=true</value>
>     </parameter>
>   </ResourceParams>
> </Context>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 


-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message