Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Migrating an existing web app from tomcat 3.1 to 3.2.4 or after

Status
Not open for further replies.

anastasiatx

Programmer
Oct 31, 2002
3
0
0
US
I've inherited an existing web application that runs in tomcat 3.1 as standalone servletcontainer.
Server.xml has <Context path=&quot;/&quot; docBase=&quot;webpages&quot; />
Under webpages we have directories:
TessWeb (main entry point to the web application)
WEB-INF (with the web.xml that defines servlets used in TessWeb)
webpages has index.jsp that simply forwards to /TessWeb.

The tomcat directories are
bin,etc,lib,logs,etc,conf,webpages,work.

There are many jsp pages and servlets (the servlets are compiled and put in the tomcathome lib directory) which have explicit directory references /TessWeb/subdira/
etc...

I am trying to migrate to 3.2.4
I can't seem to get the context to be webapps dir.
(btw does anyone know why dir name changed from webpages in tomcat 3.1 to webapp in timcat 3.2.4 and later).
I added the contect path=&quot;&quot; docBase=&quot;webapps&quot; to server.xml.
My tomcat log shows:
ContextManager: Adding context Ctx( )
ContextManager: Adding context Ctx( /index.jsp )
ContextManager: Adding context Ctx( /TessWeb )
ContextManager: Adding context Ctx( /WEB-INF )
PoolTcpConnector: Starting HttpConnectionHandler on 8080
Ctx( /TessWeb ): IOException in: R( /TessWeb + /framework/images/pes_home.gif + null) Connection aborted by peer: socket write error
2002-10-31 09:40:21 - Ctx( /TessWeb ): IOException in: R( /TessWeb + /framework/images/pes_home.gif + null) Connection reset by peer: socket write error

Why did tomcat add CTX for /index.jsp, /TessWeb, AND, web-inf????
Tomcat3.1 log does not even seem to have the concept of Ctx?


Any ideas???
 
hi

Instead of : path=&quot;&quot; docBase=&quot;webapps&quot;
try : path=&quot;/&quot; docbase=&quot;tessWeb&quot;

because under webapps, each directory is a web application.

you can map url &quot;/&quot; with a real directory &quot;tessWeb&quot;.



manu0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top