tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig O'Brien" <cr...@dynamic-apps.com>
Subject RE: Tomcat hangs when my ORACLE database instance is running
Date Fri, 01 Jun 2001 21:59:17 GMT
Do a netstat -a from your shell to see where your conflict is. Do it with
nothing running, do it again with only oracle running, stop oracle and do it
again with tomcat running (confirm it is running) and find the conflict. I
am not familiar with Oracle on Solaris.  The Oracle command console for NT
has an easy "stop http server" button. Oracle 8i is really meant to be run
on its own machine so it conflicts with other server instillations. (IIS,
Apache, etc port 80 etc.)

Look in the bin directory. Look in your etc/services directory to see what
ports are registered. Do a search for JServ. Search the directory tree. You
could always kill the process if you can identify it. If all else fails,
...read the manual.

Oracle works fine without its http server running in my development
environment.

Good luck,
Craig

-----Original Message-----
From: Barry Hodges [mailto:Barry.Hodges@primus.com]
Sent: Friday, June 01, 2001 1:27 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: Tomcat hangs when my ORACLE database instance is running


I have changed the ajp12 port for my tomcat to 9009, but I get the same
problem.
How can I stop the Oracle/Apache/Jserv web server but keep my database
instance running?

-----Original Message-----
From: Craig O'Brien [mailto:craig@dynamic-apps.com]
Sent: Friday, June 01, 2001 4:13 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Tomcat hangs when my ORACLE database instance is running


Oracle 8i includes its own apache server and Jserv.  Jserv has a port
conflict with Tomcat's ajp12 (8007 I believe??).  Stop the
Oracle/Apache/Jserv web server and you will not have the problem. It starts
by default when you start Oracle. You must reassign the port for one or the
other if you want both servers running.

Regards,
Craig

-----Original Message-----
From: Barry Hodges [mailto:Barry.Hodges@primus.com]
Sent: Friday, June 01, 2001 12:55 PM
To: Tomcat (E-mail)
Subject: Tomcat hangs when my ORACLE database instance is running


OS: SunSolaris 2.6
Database: ORACLE 8.1.6 patchset 2
WebServer: Tomcat 3.2.1

I have Tomcat running as a standalone jsp container. If I startup the
database instance before starting Tomcat, Tomcat hangs before the
HttpConnectionHandler and Ajp12ConnectionHandler are started. After this I
am
unable to browse to my jsp applications. Here is the output to the tomcat
console:
Using classpath:
/usr/j2se/src.jar:/usr/j2se/jre/lib/rt.jar:/usr/j2se/tools.jar:/usr/local/ja
karta-tomcat-3.2.1/classes:/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/
local/jakarta-tomcat-3.2.1/lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/li
b/jaxp.jar:/usr/local/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta
-tomcat-3.2.1/lib/servlet.jar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/
local/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/j2se/lib/tools.jar
Starting tomcat. Check logs/tomcat.log for error messages
2001-06-01 12:49:37 - ContextManager: Adding context Ctx( /examples )
2001-06-01 12:49:37 - ContextManager: Adding context Ctx( /admin )
2001-06-01 12:49:37 - ContextManager: Adding context Ctx(  )
2001-06-01 12:49:37 - ContextManager: Adding context Ctx( /test )

If I start tomcat before starting my database instance, I can navigate to
all of my pages. However I do get the following error message in my tomcat
console when I navigate to my first jsp page:
2001-06-01 12:46:10 - ContextManager: SocketException reading request,
ignored - java.net.SocketException: Connection reset by peer
        at java.net.PlainSocketImpl.socketAvailable(Native Method)
        at java.net.PlainSocketImpl.available(PlainSocketImpl.java:462)
        at java.net.SocketInputStream.available(SocketInputStream.java:137)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:214)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)

Has anyone encountered this problem before? What can I do to resolve this
conflict?

Barry Hodges
Sr. Engineer, Software
PRIMUS*
<mailto:barry.hodges@primus.com>



Mime
View raw message