Currently,

I have both Apache and Tomcat installed and have configured Tomcat to
utilize Virtual Hosts for each application with each running on it's own
Tomcat JVM
utilizing different port numbers.


I'm able to start and terminate the applications independantly of each other
which was the major goal.

But, I'm receiving a couple of  problems I didn't expect and would like to
know how to resolve these issue:

(Issue 1.)
        Since I have created virtual hosts for the applications each running on
it's own Tomcat JVM and seperate port. I should be able to access the
process thru Web Server(ie. Apache) or thru the Servlet Engine (ie. Tomcat)
just by typing the following on the browser:

Apache
------
  http://hire.cysivedemo.com/recruiting/jsp/Login.jsp

  Note: Should access the application using the default port

OR

Tomcat
------
  http://hire.cysivedemo.com:8008/recruiting/jsp/Login.jsp


The access thru Apache works fine. but, when trying to access directly thru
Tomcat
I get th following exception on the server side:

Redirecting to /recruiting/jsp/Login.jsp...
Redirecting to /recruiting/jsp/Login.jsp?showLoginError=true...
HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
java.io.IOException: Stream broken
        at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
2ConnectionHandler.java:386)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:134)
        at
org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:366)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411)
        at java.lang.Thread.run(Thread.java:484)


>From what I understand about Tomcat I shouldn't have to have Apache up and
running to access the application directly with Tomcat.

(Issue 2.)
        Since I pulled the applications apart and created a specific
server_xxxx.xml file for each application. Which contains the Logging,
Connector, Threads and Context definition needed by the applications.

The problem I'm seeing is that even though I only have one context defined
for the application it is loading other context that are not defined by the
file. This does not seem to be causing a problem but, was wondering why it
is doing this and will this cause problems. If so how do I fix it.

In the example below the Context Log: path="/airbank" should not have been
there.
Example:

Context log: path="/recruiting" Adding context path="/recruiting"
docBase="weba
pps/recruiting"
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat install="c:\tomcat" home="C:\tomcat"
classPath="c:\tomcat\classe
s;c:\tomcat\lib\webserver.jar;c:\tomcat\lib\jasper.jar;c:\tomcat\lib\xml.jar
;c:\
tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar;.;c:\jdk1.3\lib;c:\jdk1.3\lib
\too
ls.jar;c:\jdk1.3\jre\lib\rt.jar;c:\tomcat\lib\servlet.jar;C:\WINNT\system32;
C:\W
INNT;C:\Progra~1\Dell\OpenManage\Resolu~1\Common\bin;C:\WINNT\Java\Classes\R
xAss
istant.zip;"
Context log: path="/airbank" Automatic context load
docBase="C:\tomcat\webapps\a
irbank"
...Initializing Raffle servlet.
30 10 5
Starting tcp endpoint on 8009 with
org.apache.tomcat.service.connector.Ajp12Conn
ectionHandler


(Issue 3.)
        Another problem I noticed with the above example is that it seems to be
automatically executing the Raffle Application which is defined by a totally
seperate server_raffle.xml file.


In my system I have 4 seperate applications each being defined by it's own
server_xxx.xml file. The virtual hosts are all defined within
my-tomcat-apache.conf
which is the being loaded by Apache in it's  httpd.conf file

Verions & System Info:
Apache 1.3.14
Tomcat 1.0
Win32 System


Any help with this problem would be greatly appreciated!!
Thanks,
-Ben



Reply via email to