Hi all,
this is a beginners question ...
I am trying to deploy an application using wicket in the form of a WAR file and have it as the root of Tomcat. E.g. when opening "http://localhost
" I want my application to be deployed to the Tomcat root - I do not want to use an offset (like http://localhost/myapplication)
The thing is that when deploying to an offset like 'myapplication' above everything works just fine. When trying to deploy the same application (war file) to the tomcat root it does not seem that the Tomcat container finds the classes or jar files in the WEB-INF/lib directory;
e.g. the Wicket class files are not found.
From the Tomcat log file:
java.lang.ClassNotFoundException: wicket.protocol.http.WicketServlet
When deploying the war file to an offset it works like a charm ... This is ofcourse driving me nuts
From the server.xml config file (this does not work):
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" debug="0" privileged="true" docBase="C:\Java\apache-tomcat-5.5.13\anders\myhub.war"/>
</Host>
If I change the above to:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="myapplication" debug="0" privileged="true" docBase="C:\Java\apache-tomcat-5.5.13\anders\myhub.war"/>
</Host>
My application is available at http://localhost/myapplication
Any input greatly appreciated.
Thank you,
/Anders
- [Wicket-user] Tomcat 5.5 - cannot find wicket class files halo 0309
