I don't know but <Context path="" sounds wrong. I didn't check but can
you try <Context path="/" instead ? Just a thought. Also specifying
appBase and than giving a full path to the docBase doesn't seem right.
It's a configuration issue I suppose. Keep trying. Also it would be
usefull if you can provide some stacktrace, anything.
halo 0309 wrote:
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 <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
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user