M
M
Sorry if this question has been asked before but I've searched google
groups, and the tomcat user's guide to no avail.
I've been asked to update our existing Apache / ApacheJServ system to
Tomcat with Apache. At the moment I'm looking into Tomcat 3.3.1a but
might consider the newer versions. Currently I'm running tomcat as a
stand alone to test my servlets.
I've installed tomcat under d:\apps\tomcat\ but my TOMCAT_HOME is
under d:\tomcat\
The first line of my server.xml (d:\tomcat\conf\server.xml):
<ContextManager workDir="d:\tomcat\work" home="d:\tomcat">
My web app is under d:\test\ but all my servlets are NOT under
d:\test\WEB-INF\classes\ but rather somewhere else on the filesystem
My web.xml for this app looks like:
<web-app>
<servlet>
<servlet-name>
Test
</servlet-name>
<servlet-class>
dx.servlet.profile.TestServlet
</servlet-class>
</servlet>
</web-app>
The servlet dx.servlet.profile.TestServlet lies under
d:\sites\server\classes\dx\servlet\profile\
I know older versions of tomcat would use the system classpath on
start up, and I guess that's the problem as to why tomcat can't find
my servlets. Is there a way to have my servlets NOT under
WEB-INF\classes but under some other directory? If so how would I go
about doing this?
thanks
groups, and the tomcat user's guide to no avail.
I've been asked to update our existing Apache / ApacheJServ system to
Tomcat with Apache. At the moment I'm looking into Tomcat 3.3.1a but
might consider the newer versions. Currently I'm running tomcat as a
stand alone to test my servlets.
I've installed tomcat under d:\apps\tomcat\ but my TOMCAT_HOME is
under d:\tomcat\
The first line of my server.xml (d:\tomcat\conf\server.xml):
<ContextManager workDir="d:\tomcat\work" home="d:\tomcat">
My web app is under d:\test\ but all my servlets are NOT under
d:\test\WEB-INF\classes\ but rather somewhere else on the filesystem
My web.xml for this app looks like:
<web-app>
<servlet>
<servlet-name>
Test
</servlet-name>
<servlet-class>
dx.servlet.profile.TestServlet
</servlet-class>
</servlet>
</web-app>
The servlet dx.servlet.profile.TestServlet lies under
d:\sites\server\classes\dx\servlet\profile\
I know older versions of tomcat would use the system classpath on
start up, and I guess that's the problem as to why tomcat can't find
my servlets. Is there a way to have my servlets NOT under
WEB-INF\classes but under some other directory? If so how would I go
about doing this?
thanks