tomcat4 running on kaffe fails to init properly
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Guys,
~ Before filing a bug report, I want to be sure I am not missing
something painfully obvious. I am running Debian sid on powerpc, which
means that all the JDK options for Sun are not avaiable. Therefore, the
/etc/init.d/tomcat4 script uses kaffe. I have the latest kaffe packages
(pthreads, BTW) in sid all installed. I also have all the tomcat4
packages installed, with no modifications made to any configuration
files. Tomcat does not initialize properly. The default page, the
admin app, and all the sample webapps fail to respond, although tomcat
is running. Attempts to reach localhost at 8180 simply hang in a browser.
~ Upon shutdown, tomcat always gets killed by the script after the
default 30-second timeout, since it nevers shuts down cleanly. The
servlet init for /admin seems to indicate an issue with a
NullPointerException:
- ----- Root Cause -----
java.lang.NullPointerException
~ at gnu.java.net.PlainSocketImpl.socketConnect (PlainSocketImpl.java)
~ at gnu.java.net.PlainSocketImpl.connect (PlainSocketImpl.java:114)
~ at java.net.Socket.connect (Socket.java:440)
~ at java.net.Socket.connect (Socket.java:398)
~ at gnu.java.net.protocol.http.HTTPConnection.getSocket
~ If anyone has the tomcat4 package running successfully on kaffe in a
Debian PowerPC install (Arnaud, does it work for you?), let me know. I
want to avoid filing an incorrect bug report against the package. I
have attached content from the associated log files for a usual startup.
Thanks,
Barry Hawkins
**** catalina_2005-02-02.log:
2-Feb-05 1:55:11 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8180
Using CATALINA_BASE: /var/lib/tomcat4
Using CATALINA_HOME: /usr/share/tomcat4
Using CATALINA_TMPDIR: /var/lib/tomcat4/temp
Using JAVA_HOME: /usr/lib/kaffe
Using Security Manager
Created MBeanServer with ID: [UID: 275447648,1107370552358,-32768]:case:1
2-Feb-05 1:56:14 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Starting service Tomcat-Standalone
Apache Tomcat/4.1
2-Feb-05 1:56:44 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
2-Feb-05 1:56:44 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
2-Feb-05 1:58:57 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
2-Feb-05 1:59:07 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
2-Feb-05 1:59:09 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
2-Feb-05 1:59:09 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=3/1309
config=/var/lib/tomcat4/conf/jk2.properties
**** localhost_2005-02-02.log:
2005-02-02 13:56:16 WebappLoader[/tomcat-docs]: Deploying class
repositories to work directory
/var/lib/tomcat4/work/Standalone/localhost/tomcat-docs
2005-02-02 13:56:19 StandardManager[/tomcat-docs]: Seeding random number
generator class java.security.SecureRandom
2005-02-02 13:56:20 StandardManager[/tomcat-docs]: Seeding of random
number generator has been completed
2005-02-02 13:56:20 StandardWrapper[/tomcat-docs:default]: Loading
container servlet default
2005-02-02 13:56:20 default: init
2005-02-02 13:56:20 StandardWrapper[/tomcat-docs:invoker]: Loading
container servlet invoker
2005-02-02 13:56:20 invoker: init
2005-02-02 13:56:20 jsp: init
2005-02-02 13:56:20 HostConfig[localhost]: Deploying configuration
descriptor manager.xml
2005-02-02 13:56:21 WebappLoader[/manager]: Deploying class repositories
to work directory /var/lib/tomcat4/work/Standalone/localhost/manager
2005-02-02 13:56:23 ContextConfig[/manager]: Configured an authenticator
for method BASIC
2005-02-02 13:56:23 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2005-02-02 13:56:23 StandardManager[/manager]: Seeding of random number
generator has been completed
2005-02-02 13:56:23 StandardWrapper[/manager:default]: Loading container
servlet default
2005-02-02 13:56:23 default: init
2005-02-02 13:56:23 StandardWrapper[/manager:invoker]: Loading container
servlet invoker
2005-02-02 13:56:23 invoker: init
2005-02-02 13:56:23 jsp: init
2005-02-02 13:56:24 HostConfig[localhost]: Deploying configuration
descriptor examples.xml
2005-02-02 13:56:24 WebappLoader[/examples]: Deploying class
repositories to work directory
/var/lib/tomcat4/work/Standalone/localhost/examples
2005-02-02 13:56:24 WebappLoader[/examples]: Deploy class files
/WEB-INF/classes to
/usr/share/tomcat4/server/webapps/examples/WEB-INF/classes
2005-02-02 13:56:27 ContextConfig[/examples]: Configured an
authenticator for method FORM
2005-02-02 13:56:27 StandardManager[/examples]: Seeding random number
generator class java.security.SecureRandom
2005-02-02 13:56:27 StandardManager[/examples]: Seeding of random number
generator has been completed
2005-02-02 13:56:27 ContextListener: contextInitialized()
2005-02-02 13:56:27 SessionListener: contextInitialized()
2005-02-02 13:56:27 StandardWrapper[/examples:default]: Loading
container servlet default
2005-02-02 13:56:27 default: init
2005-02-02 13:56:27 StandardWrapper[/examples:invoker]: Loading
container servlet invoker
2005-02-02 13:56:27 invoker: init
2005-02-02 13:56:27 jsp: init
2005-02-02 13:56:28 HostConfig[localhost]: Deploying configuration
descriptor admin.xml
2005-02-02 13:58:58 HostConfig[localhost]: Expanding web application
archive luceneweb.war
2005-02-02 13:58:58 StandardHost[localhost]: Installing web application
at context path /luceneweb from URL file:/var/lib/tomcat4/webapps/luceneweb
2005-02-02 13:58:58 WebappLoader[/luceneweb]: Deploying class
repositories to work directory
/var/lib/tomcat4/work/Standalone/localhost/luceneweb
2005-02-02 13:58:58 WebappLoader[/luceneweb]: Deploy JAR
/WEB-INF/lib/lucene-1.4.jar to
/var/lib/tomcat4/webapps/luceneweb/WEB-INF/lib/lucene-1.4.jar
2005-02-02 13:58:58 WebappLoader[/luceneweb]: Deploy JAR
/WEB-INF/lib/lucene-demos-1.4.jar to
/var/lib/tomcat4/webapps/luceneweb/WEB-INF/lib/lucene-demos-1.4.jar
2005-02-02 13:59:00 StandardManager[/luceneweb]: Seeding random number
generator class java.security.SecureRandom
2005-02-02 13:59:00 StandardManager[/luceneweb]: Seeding of random
number generator has been completed
2005-02-02 13:59:00 StandardWrapper[/luceneweb:default]: Loading
container servlet default
2005-02-02 13:59:00 default: init
2005-02-02 13:59:00 StandardWrapper[/luceneweb:invoker]: Loading
container servlet invoker
2005-02-02 13:59:00 invoker: init
2005-02-02 13:59:00 jsp: init
2005-02-02 13:59:00 HostConfig[localhost]: Deploying web application
directory webdav
2005-02-02 13:59:00 StandardHost[localhost]: Installing web application
at context path /webdav from URL file:/var/lib/tomcat4/webapps/webdav
2005-02-02 13:59:00 WebappLoader[/webdav]: Deploying class repositories
to work directory /var/lib/tomcat4/work/Standalone/localhost/webdav
2005-02-02 13:59:03 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2005-02-02 13:59:03 StandardManager[/webdav]: Seeding of random number
generator has been completed
2005-02-02 13:59:03 StandardWrapper[/webdav:default]: Loading container
servlet default
2005-02-02 13:59:03 default: init
2005-02-02 13:59:03 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2005-02-02 13:59:03 invoker: init
2005-02-02 13:59:03 jsp: init
2005-02-02 13:59:03 HostConfig[localhost]: Deploying web application
directory ROOT
2005-02-02 13:59:03 StandardHost[localhost]: Installing web application
at context path from URL file:/var/lib/tomcat4/webapps/ROOT
2005-02-02 13:59:03 WebappLoader[]: Deploying class repositories to work
directory /var/lib/tomcat4/work/Standalone/localhost/_
2005-02-02 13:59:05 StandardManager[]: Seeding random number generator
class java.security.SecureRandom
2005-02-02 13:59:06 StandardManager[]: Seeding of random number
generator has been completed
2005-02-02 13:59:06 StandardWrapper[:default]: Loading container servlet
default
2005-02-02 13:59:06 default: init
2005-02-02 13:59:06 StandardWrapper[:invoker]: Loading container servlet
invoker
2005-02-02 13:59:06 invoker: init
2005-02-02 13:59:06 jsp: init
**** localhost_admin_2005-02-02.log:
2005-02-02 11:18:19 WebappLoader[/admin]: Deploying class repositories
to work directory /var/lib/tomcat4/work/Standalone/localhost/admin
2005-02-02 11:18:19 WebappLoader[/admin]: Deploy class files
/WEB-INF/classes to /usr/share/tomcat4/server/webapps/admin/WEB-INF/classes
2005-02-02 11:18:19 WebappLoader[/admin]: Deploy JAR
/WEB-INF/lib/struts.jar to
/usr/share/tomcat4/server/webapps/admin/WEB-INF/lib/struts.jar
2005-02-02 11:18:34 ContextConfig[/admin]: Configured an authenticator
for method FORM
2005-02-02 11:18:34 StandardManager[/admin]: Seeding random number
generator class java.security.SecureRandom
2005-02-02 11:18:34 StandardManager[/admin]: Seeding of random number
generator has been completed
2005-02-02 11:18:34 StandardWrapper[/admin:default]: Loading container
servlet default
2005-02-02 11:18:34 default: init
2005-02-02 11:18:35 action: init
2005-02-02 11:18:49 StandardContext[/admin]: Servlet /admin threw load()
exception
javax.servlet.ServletException: Servlet.init() for servlet action threw
exception
~ at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:916)
~ at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:776)
~ at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3363)
~ at org.apache.catalina.core.StandardContext.start
(StandardContext.java:3586)
~ at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:774)
~ at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:760)
~ at org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:548)
~ at org.apache.catalina.core.StandardHostDeployer.addChild
(StandardHostDeployer.java:653)
~ at java.lang.reflect.Method.invoke0 (Method.java)
~ at java.lang.reflect.Method.invoke (Method.java:255)
~ at org.apache.commons.beanutils.MethodUtils.invokeMethod
(MethodUtils.java: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.xerces.parsers.AbstractSAXParser.endElement
(AbstractSAXParser.java:585)
~ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
(XMLDocumentFragmentScannerImpl.java:1083)
~ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
(XMLDocumentFragmentScannerImpl.java:1526)
~ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(XMLDocumentFragmentScannerImpl.java:338)
~ at org.apache.xerces.parsers.XML11Configuration.parse
(XML11Configuration.java:828)
~ at org.apache.xerces.parsers.XML11Configuration.parse
(XML11Configuration.java:758)
~ at org.apache.xerces.parsers.XMLParser.parse (XMLParser.java:148)
~ at org.apache.xerces.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1178)
~ at org.apache.commons.digester.Digester.parse (Digester.java:1567)
~ at org.apache.catalina.core.StandardHostDeployer.install
(StandardHostDeployer.java:338)
~ at org.apache.catalina.core.StandardHost.install (StandardHost.java:772)
~ at org.apache.catalina.startup.HostConfig.deployDescriptors
(HostConfig.java:395)
~ at org.apache.catalina.startup.HostConfig.deployApps
(HostConfig.java:352)
~ at org.apache.catalina.startup.HostConfig.start (HostConfig.java:671)
~ at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:311)
~ at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:119)
~ at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1149)
~ at org.apache.catalina.core.StandardHost.start (StandardHost.java:707)
~ at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1141)
~ at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:316)
~ at org.apache.catalina.core.StandardService.start
(StandardService.java:450)
~ at org.apache.catalina.core.StandardServer.start
(StandardServer.java:2143)
~ at org.apache.catalina.startup.Catalina.start (Catalina.java:463)
~ at org.apache.catalina.startup.Catalina.execute (Catalina.java:350)
~ at org.apache.catalina.startup.Catalina.process (Catalina.java:129)
~ at java.lang.reflect.Method.invoke0 (Method.java)
~ at java.lang.reflect.Method.invoke (Method.java:255)
~ at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:156)
- ----- Root Cause -----
java.lang.NullPointerException
~ at gnu.java.net.PlainSocketImpl.socketConnect (PlainSocketImpl.java)
~ at gnu.java.net.PlainSocketImpl.connect (PlainSocketImpl.java:114)
~ at java.net.Socket.connect (Socket.java:440)
~ at java.net.Socket.connect (Socket.java:398)
~ at gnu.java.net.protocol.http.HTTPConnection.getSocket
(HTTPConnection.java:439)
~ at gnu.java.net.protocol.http.HTTPConnection.getOutputStream
(HTTPConnection.java:520)
~ at gnu.java.net.protocol.http.Request.dispatch (Request.java:332)
~ at gnu.java.net.protocol.http.HTTPURLConnection.connect
(HTTPURLConnection.java:228)
~ at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream
(HTTPURLConnection.java:448)
~ at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity
(XMLEntityManager.java:945)
~ at org.apache.xerces.impl.XMLEntityManager.startEntity
(XMLEntityManager.java:880)
~ at org.apache.xerces.impl.XMLEntityManager.startDTDEntity
(XMLEntityManager.java:847)
~ at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource
(XMLDTDScannerImpl.java:281)
~ at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch
(XMLDocumentScannerImpl.java:959)
~ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(XMLDocumentFragmentScannerImpl.java:338)
~ at org.apache.xerces.parsers.XML11Configuration.parse
(XML11Configuration.java:828)
~ at org.apache.xerces.parsers.XML11Configuration.parse
(XML11Configuration.java:758)
~ at org.apache.xerces.parsers.XMLParser.parse (XMLParser.java:148)
~ at org.apache.xerces.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1178)
~ at org.apache.commons.digester.Digester.parse (Digester.java:1567)
~ at org.apache.struts.action.ActionServlet.initServlet
(ActionServlet.java:1433)
~ at org.apache.struts.action.ActionServlet.init (ActionServlet.java:466)
~ at org.apache.webapp.admin.ApplicationServlet.init
(ApplicationServlet.java:107)
~ at javax.servlet.GenericServlet.init (GenericServlet.java:258)
~ at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:888)
~ at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:776)
~ at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3363)
~ at org.apache.catalina.core.StandardContext.start
(StandardContext.java:3586)
~ at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:774)
~ at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:760)
~ at org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:548)
~ at org.apache.catalina.core.StandardHostDeployer.addChild
(StandardHostDeployer.java:653)
~ at java.lang.reflect.Method.invoke0 (Method.java)
~ at java.lang.reflect.Method.invoke (Method.java:255)
~ at org.apache.commons.beanutils.MethodUtils.invokeMethod
(MethodUtils.java: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.xerces.parsers.AbstractSAXParser.endElement
(AbstractSAXParser.java:585)
~ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
(XMLDocumentFragmentScannerImpl.java:1083)
~ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
(XMLDocumentFragmentScannerImpl.java:1526)
~ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(XMLDocumentFragmentScannerImpl.java:338)
~ at org.apache.xerces.parsers.XML11Configuration.parse
(XML11Configuration.java:828)
~ at org.apache.xerces.parsers.XML11Configuration.parse
(XML11Configuration.java:758)
~ at org.apache.xerces.parsers.XMLParser.parse (XMLParser.java:148)
~ at org.apache.xerces.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1178)
~ at org.apache.commons.digester.Digester.parse (Digester.java:1567)
~ at org.apache.catalina.core.StandardHostDeployer.install
(StandardHostDeployer.java:338)
~ at org.apache.catalina.core.StandardHost.install (StandardHost.java:772)
~ at org.apache.catalina.startup.HostConfig.deployDescriptors
(HostConfig.java:395)
~ at org.apache.catalina.startup.HostConfig.deployApps
(HostConfig.java:352)
~ at org.apache.catalina.startup.HostConfig.start (HostConfig.java:671)
~ at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:311)
~ at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:119)
~ at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1149)
~ at org.apache.catalina.core.StandardHost.start (StandardHost.java:707)
~ at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1141)
~ at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:316)
~ at org.apache.catalina.core.StandardService.start
(StandardService.java:450)
~ at org.apache.catalina.core.StandardServer.start
(StandardServer.java:2143)
~ at org.apache.catalina.startup.Catalina.start (Catalina.java:463)
~ at org.apache.catalina.startup.Catalina.execute (Catalina.java:350)
~ at org.apache.catalina.startup.Catalina.process (Catalina.java:129)
~ at java.lang.reflect.Method.invoke0 (Method.java)
~ at java.lang.reflect.Method.invoke (Method.java:255)
~ at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:156)
2005-02-02 11:18:49 StandardWrapper[/admin:invoker]: Loading container
servlet invoker
2005-02-02 11:18:49 invoker: init
2005-02-02 11:18:49 jsp: init
- --
Barry Hawkins
All Things Computed
site: www.alltc.com
weblog: www.yepthatsme.com
Registered Linux User #368650
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFCASuL7bZ6kUftWZwRAngZAJ9/EEQ/0Bqu/BxCCaTXuxAUALnp0wCeMmbR
aNaqgs/25qT9X36Vk4FBT2g=
=n09L
-----END PGP SIGNATURE-----
Reply to: