[ale] Redhat v9, Tomcat v4.1.24, J2sdk v1.4.2 HTTP Status 500No Context configured...

Ryan Matteson mattesonry at corp.earthlink.net
Tue Jul 29 11:39:56 EDT 2003


Deploy the sample index.jsp into the $CATALINA_HOME/webapps/ROOT
directory. Then connect to the site and see if it displays. If
an error is generated, It will spew out exceptions and information
in the tomcat logfiles.

- Ryan

Nathan J. Underwood wrote:

> I ended up uninstalling everything (a user installed it, couldn't get it to
> work, so told me to do it).  Read the docs, re-installed, setup the variables,
> and uncommented the root context area out of server.xml.  I was sure that this
> would fix it, but it didn't.  It did change the error, though, and started
> giving me a 404 error.  The RPM didn't install ANYTHING in the webapps
> directory.  Thought that this may help someone.
> 
> 
> 
> Quoting Ryan Matteson <mattesonry at corp.earthlink.net>:
> 
> 
>>Did you use the stock server.xml that comes with the release? I
>>happened to notice:
>>
>>/usr/bin/dtomcat4: line 263: /../bin/java: No such file or directory
>>
>>Are you sure your JAVA_HOME is setup correctly? If you go into
>>the webapps/ROOT folder, and deploy the following:
>>
>><HTML>
>><BODY>
>>You are now connected to <SERVER NAME>t!<br>
>><br>
>>The time is now <%= new java.util.Date() %>
>></BODY>
>></HTML>
>>
>>and attempt to access the site:
>>
>>http://localhost:8080/index.jsp
>>
>>You should get a basic screen with the time and whatever you change
>>the hostname to be.
>>
>>Hope this helps,
>>- Ryan
>>
>>
>>Nathan J. Underwood wrote:
>>
>>>My ignorance of tomcat is going to be quickly exposed here, but I'll do my
>>
>>best
>>
>>>:-D.  
>>>
>>>When I start the service (service tomcat4 start), it appears to start ok
>>
>>(I'm
>>
>>>hoping this is the tomcat web container that you spoke of).
>>>
>>>I'm installing everything from rpm (fresh install, trying to keep it
>>
>>clean), and
>>
>>>the filenames that I installed were j2sdk-1_4_2-linux-i586.rpm and
>>>tomcat4-4.1.24-full.2jpp.noarch.rpm.  Both installed with rpm -ivh
>>
>><filename>
>>
>>>with no problem.
>>>
>>>I created / edited /etc/java/java.conf to include the JAVA_HOME path
>>
>>variable,
>>
>>>and setup the TOMCAT_HOME path variable.
>>>
>>>** catalina.out file follows **
>>>
>>>[root at borg tomcat4]# cat catalina.out
>>>/usr/bin/dtomcat4: line 263: /../bin/java: No such file or directory
>>>Jul 28, 2003 10:12:28 AM org.apache.commons.modeler.Registry loadRegistry
>>>INFO: Loading registry information
>>>Jul 28, 2003 10:12:29 AM org.apache.commons.modeler.Registry getRegistry
>>>INFO: Creating new Registry instance
>>>Jul 28, 2003 10:12:31 AM org.apache.commons.modeler.Registry getServer
>>>INFO: Creating MBeanServer
>>>Jul 28, 2003 10:12:33 AM org.apache.coyote.http11.Http11Protocol init
>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>Starting service Tomcat-Standalone
>>>Apache Tomcat/4.1
>>>Jul 28, 2003 10:12:36 AM org.apache.coyote.http11.Http11Protocol start
>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 10:12:36 AM org.apache.jk.common.ChannelSocket init
>>>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>>>Jul 28, 2003 10:12:36 AM org.apache.jk.server.JkMain start
>>>INFO: Jk running ID=0 time=13/246  config=/var/tomcat4/conf/jk2.properties
>>>Stopping service Tomcat-Standalone
>>>Jul 28, 2003 11:19:56 AM org.apache.commons.modeler.Registry loadRegistry
>>>INFO: Loading registry information
>>>Jul 28, 2003 11:19:57 AM org.apache.commons.modeler.Registry getRegistry
>>>INFO: Creating new Registry instance
>>>Jul 28, 2003 11:19:59 AM org.apache.commons.modeler.Registry getServer
>>>INFO: Creating MBeanServer
>>>Jul 28, 2003 11:20:01 AM org.apache.coyote.http11.Http11Protocol init
>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>Starting service Tomcat-Standalone
>>>Apache Tomcat/4.1
>>>Jul 28, 2003 11:20:03 AM org.apache.coyote.http11.Http11Protocol start
>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 11:20:03 AM org.apache.jk.common.ChannelSocket init
>>>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>>>Jul 28, 2003 11:20:04 AM org.apache.jk.server.JkMain start
>>>INFO: Jk running ID=0 time=3/383  config=/var/tomcat4/conf/jk2.properties
>>>Stopping service Tomcat-Standalone
>>>Jul 28, 2003 1:34:33 PM org.apache.commons.modeler.Registry loadRegistry
>>>INFO: Loading registry information
>>>Jul 28, 2003 1:34:34 PM org.apache.commons.modeler.Registry getRegistry
>>>INFO: Creating new Registry instance
>>>Jul 28, 2003 1:34:36 PM org.apache.commons.modeler.Registry getServer
>>>INFO: Creating MBeanServer
>>>Jul 28, 2003 1:34:38 PM org.apache.coyote.http11.Http11Protocol init
>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>Starting service Tomcat-Standalone
>>>Apache Tomcat/4.1
>>>Jul 28, 2003 1:34:40 PM org.apache.coyote.http11.Http11Protocol start
>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 1:34:41 PM org.apache.jk.common.ChannelSocket init
>>>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>>>Jul 28, 2003 1:34:41 PM org.apache.jk.server.JkMain start
>>>INFO: Jk running ID=0 time=3/152  config=/var/tomcat4/conf/jk2.properties
>>>Stopping service Tomcat-Standalone
>>>Jul 28, 2003 1:35:33 PM org.apache.tomcat.util.net.PoolTcpEndpoint
>>
>>closeServerSocket
>>
>>>SEVERE: Caught exception trying to unlock accept.
>>>java.net.ConnectException: Connection refused
>>>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
>>>        at
>>
>>java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
>>
>>>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
>>>        at java.net.Socket.connect(Socket.java:452)
>>>        at java.net.Socket.connect(Socket.java:402)
>>>        at java.net.Socket.<init>(Socket.java:309)
>>>        at java.net.Socket.<init>(Socket.java:124)
>>>        at
>>>
>>
> org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:326)
> 
>>>        at
>>>
>>
>>org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397)
>>
>>>        at
>>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
>>>        at
>>>
>>
>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
>>
>>>        at java.lang.Thread.run(Thread.java:534)
>>>Jul 28, 2003 1:35:33 PM org.apache.tomcat.util.net.PoolTcpEndpoint
>>
>>closeServerSocket
>>
>>>SEVERE: Caught exception trying to close socket.
>>>java.lang.NullPointerException
>>>        at
>>>
>>
> org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:338)
> 
>>>        at
>>>
>>
>>org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397)
>>
>>>        at
>>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
>>>        at
>>>
>>
>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
>>
>>>        at java.lang.Thread.run(Thread.java:534)
>>>Jul 28, 2003 1:35:33 PM org.apache.tomcat.util.net.PoolTcpEndpoint
>>
>>acceptSocket
>>
>>>WARNING: Reinitializing ServerSocket
>>>Jul 28, 2003 1:35:59 PM org.apache.commons.modeler.Registry loadRegistry
>>>INFO: Loading registry information
>>>Jul 28, 2003 1:35:59 PM org.apache.commons.modeler.Registry getRegistry
>>>INFO: Creating new Registry instance
>>>Jul 28, 2003 1:36:01 PM org.apache.commons.modeler.Registry getServer
>>>INFO: Creating MBeanServer
>>>Jul 28, 2003 1:36:04 PM org.apache.coyote.http11.Http11Protocol init
>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>Starting service Tomcat-Standalone
>>>Apache Tomcat/4.1
>>>Jul 28, 2003 1:36:06 PM org.apache.coyote.http11.Http11Protocol start
>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 1:36:06 PM org.apache.jk.common.ChannelSocket init
>>>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>>>Jul 28, 2003 1:36:06 PM org.apache.jk.server.JkMain start
>>>INFO: Jk running ID=0 time=4/250  config=/var/tomcat4/conf/jk2.properties
>>>Stopping service Tomcat-Standalone
>>>/usr/bin/dtomcat4: line 263: /../bin/java: No such file or directory
>>>Jul 28, 2003 2:29:42 PM org.apache.commons.modeler.Registry loadRegistry
>>>INFO: Loading registry information
>>>Jul 28, 2003 2:29:42 PM org.apache.commons.modeler.Registry getRegistry
>>>INFO: Creating new Registry instance
>>>Jul 28, 2003 2:29:45 PM org.apache.commons.modeler.Registry getServer
>>>INFO: Creating MBeanServer
>>>Jul 28, 2003 2:29:47 PM org.apache.coyote.http11.Http11Protocol init
>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>GlobalResourcesLifecycleListener: Exception processing Global JNDI
>>
>>Resources
>>
>>>javax.naming.NamingException: /var/tomcat4/conf/tomcat-users.xml
>>
>>(Permission denied)
>>
>>>        at org.apache.naming.NamingContext.lookup(Unknown Source)
>>>        at org.apache.naming.NamingContext.lookup(Unknown Source)
>>>        at
>>>
>>
>>org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Unknown
>>
>>>Source)
>>>        at
>>>
>>
>>org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Unknown
>>
>>>Source)
>>>        at
>>>
>>
>>org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(Unknown
>>
>>>Source)
>>>        at
>>
>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
>>
>>>Source)
>>>        at org.apache.catalina.core.StandardServer.start(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.start(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.process(Unknown Source)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at
>>>
>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>>        at
>>>
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>>>        at java.lang.reflect.Method.invoke(Method.java:324)
>>>        at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
>>>Starting service Tomcat-Standalone
>>>Apache Tomcat/4.1
>>>javax.naming.NamingException: /var/tomcat4/conf/tomcat-users.xml
>>
>>(Permission denied)
>>
>>>        at org.apache.naming.NamingContext.lookup(Unknown Source)
>>>        at org.apache.naming.NamingContext.lookup(Unknown Source)
>>>        at org.apache.catalina.realm.UserDatabaseRealm.start(Unknown
>>
>>Source)
>>
>>>        at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>>>        at org.apache.catalina.core.StandardEngine.start(Unknown Source)
>>>        at org.apache.catalina.core.StandardService.start(Unknown Source)
>>>        at org.apache.catalina.core.StandardServer.start(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.start(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.process(Unknown Source)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at
>>>
>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>>        at
>>>
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>>>        at java.lang.reflect.Method.invoke(Method.java:324)
>>>        at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
>>>Catalina.start: LifecycleException:  No UserDatabase component found under
>>
>>key
>>
>>>UserDatabase
>>>LifecycleException:  No UserDatabase component found under key
>>
>>UserDatabase
>>
>>>        at org.apache.catalina.realm.UserDatabaseRealm.start(Unknown
>>
>>Source)
>>
>>>        at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>>>        at org.apache.catalina.core.StandardEngine.start(Unknown Source)
>>>        at org.apache.catalina.core.StandardService.start(Unknown Source)
>>>        at org.apache.catalina.core.StandardServer.start(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.start(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.process(Unknown Source)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at
>>>
>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>>        at
>>>
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>>>        at java.lang.reflect.Method.invoke(Method.java:324)
>>>        at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
>>>Stopping service Tomcat-Standalone
>>>Catalina.stop: LifecycleException:  Coyote connector has not been started
>>>LifecycleException:  Coyote connector has not been started
>>>        at
>>
>>org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1160)
>>
>>>        at org.apache.catalina.core.StandardService.stop(Unknown Source)
>>>        at org.apache.catalina.core.StandardServer.stop(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.start(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>>>        at org.apache.catalina.startup.Catalina.process(Unknown Source)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at
>>>
>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>>        at
>>>
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>>>        at java.lang.reflect.Method.invoke(Method.java:324)
>>>        at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
>>>Jul 28, 2003 2:41:31 PM org.apache.commons.modeler.Registry loadRegistry
>>>INFO: Loading registry information
>>>Jul 28, 2003 2:41:31 PM org.apache.commons.modeler.Registry getRegistry
>>>INFO: Creating new Registry instance
>>>Jul 28, 2003 2:41:33 PM org.apache.commons.modeler.Registry getServer
>>>INFO: Creating MBeanServer
>>>Jul 28, 2003 2:41:36 PM org.apache.coyote.http11.Http11Protocol init
>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 2:41:36 PM org.apache.jk.server.JkMain init
>>>WARNING: No properties file found /var/tomcat4/conf/jk2.properties
>>>Starting service Tomcat-Standalone
>>>Apache Tomcat/4.1
>>>Jul 28, 2003 2:41:38 PM org.apache.coyote.http11.Http11Protocol start
>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 2:41:38 PM org.apache.jk.common.ChannelSocket init
>>>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>>>Jul 28, 2003 2:41:38 PM org.apache.jk.server.JkMain start
>>>INFO: Jk running ID=0 time=3/176  config=null
>>>Stopping service Tomcat-Standalone
>>>Jul 28, 2003 2:43:59 PM org.apache.commons.modeler.Registry loadRegistry
>>>INFO: Loading registry information
>>>Jul 28, 2003 2:44:00 PM org.apache.commons.modeler.Registry getRegistry
>>>INFO: Creating new Registry instance
>>>Jul 28, 2003 2:44:02 PM org.apache.commons.modeler.Registry getServer
>>>INFO: Creating MBeanServer
>>>Jul 28, 2003 2:44:04 PM org.apache.coyote.http11.Http11Protocol init
>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 2:44:04 PM org.apache.jk.server.JkMain init
>>>WARNING: No properties file found /var/tomcat4/conf/jk2.properties
>>>Starting service Tomcat-Standalone
>>>Apache Tomcat/4.1
>>>Jul 28, 2003 2:44:06 PM org.apache.coyote.http11.Http11Protocol start
>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 2:44:06 PM org.apache.jk.common.ChannelSocket init
>>>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>>>Jul 28, 2003 2:44:07 PM org.apache.jk.server.JkMain start
>>>INFO: Jk running ID=0 time=4/383  config=null
>>>Stopping service Tomcat-Standalone
>>>Jul 28, 2003 4:48:38 PM org.apache.commons.modeler.Registry loadRegistry
>>>INFO: Loading registry information
>>>Jul 28, 2003 4:48:38 PM org.apache.commons.modeler.Registry getRegistry
>>>INFO: Creating new Registry instance
>>>Jul 28, 2003 4:48:40 PM org.apache.commons.modeler.Registry getServer
>>>INFO: Creating MBeanServer
>>>Jul 28, 2003 4:48:43 PM org.apache.coyote.http11.Http11Protocol init
>>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 4:48:43 PM org.apache.jk.server.JkMain init
>>>WARNING: No properties file found /var/tomcat4/conf/jk2.properties
>>>Starting service Tomcat-Standalone
>>>Apache Tomcat/4.1
>>>Jul 28, 2003 4:48:45 PM org.apache.coyote.http11.Http11Protocol start
>>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>>Jul 28, 2003 4:48:45 PM org.apache.jk.common.ChannelSocket init
>>>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>>>Jul 28, 2003 4:48:45 PM org.apache.jk.server.JkMain start
>>>INFO: Jk running ID=0 time=4/377  config=null
>>>[root at borg tomcat4]#
>>>
>>>
>>>Quoting Ryan Matteson <mattesonry at corp.earthlink.net>:
>>>
>>>
>>>
>>>>Does the tomcat web container startup successfully? Which SDK
>>>>are you using with the tomcat installation? Did you setup
>>>>your JAVA_HOME, TOMCAT_HOME and PATH variables? What do the
>>>>logs in $CATALINA_HOME/logs have to say?
>>>>
>>>>Nathan J. Underwood wrote:
>>>>
>>>>
>>>>
>>>>>Tried to be as descriptive in the subject as possible :-D.  I've got a
>>>>
>>>>Dell
>>>>
>>>>
>>>>>PowerEdge 4300 running RH v9 (clean install, no apache). I've been tasked
>>>>
>>>>with
>>>>
>>>>
>>>>>getting Tomcat v4.1.24 up and running on the machine.  Seems easy, but I
>>>>
>>>>have it
>>>>
>>>>
>>>>>installed, seems to be ok, but when you go to the page
>>>>>(http://servername.com:8080) you get an HTTP Status 500 message stating
>>>>
>>>>"No
>>>>
>>>>
>>>>>Context configured to proceed this request".  Short story, I'm stuck. 
>>
>>Any
>>
>>>>ideas?
>>>>
>>>>
>>>>_______________________________________________
>>>>Ale mailing list
>>>>Ale at ale.org
>>>>http://www.ale.org/mailman/listinfo/ale
>>>>
>>>
>>>
>>>
>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale
>>
> 
> 
> 


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list