i dont think you can share wicket between contexts. the problem is that wicket cannot create your application's class using Class.newInstance() because the server classloader that loads it from the shared libs dir does not see jars inside context dirs. This works opposite to a webapp classloader that sees jars inside context's web-inf/lib AND the shared jars.

-Igor


On 12/20/05, karthik Guru <[EMAIL PROTECTED]> wrote:
Hi All,
 
I just started playing around with wicketsince yesterday and i ran into a strange problem with tomcat 5.5
As long as I have all the required wicket jars under "webapps/Context/WEB-INF/lib", things seem to be working fine. Moment I move the wicket jars from the "webapps/Context/WEB-INF/lib" to
"Tomcat 5.5\shared\lib", i see an exception when accessing the page.
 
exception:
 
javax.servlet.ServletException: Servlet.init() for servlet HelloWorldApplication threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148)
 
rootcause:
 
wicket.WicketRuntimeException: Unable to create application of class com.wicketdev.app.HelloWorldApplication
wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java :58)
wicket.protocol.http.WicketServlet.init(WicketServlet.java:245)
 
Any idea what is the cause for this error?
 
thanks
karthik

Reply via email to