I've tried to create an absolute minimal HelloWorld sample to run in
Tomcat. I plan to use wicket as an auxiliary rendering technology for an
existing webapp so to start off with I've attempted to add just the
barest minimum classes and HTML files from the HelloWorld example but
it's not working for some reason.

I've repackaged WicketExampleApplication.*, WicketExampleHeader.* and
WicketExamplePage.* to com.sas.av.ui.wicket.templates.

I've repackaged HelloWorld.* and HelloWorldApplication.* to
com.sas.av.ui.wicket.templates.original

I've updated all the internal "package" statements to reflect the new
packaging.

I've added to web.xml the Servlet and Servlet mapping elements required
to configure the new wicket HelloWorld app.

When I type http://dev.myhost/helloworld into my browser I get the
following error:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet
HelloWorldApplication threw exception
        
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
        
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAcc
essLogValve.java:495)
        
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
        
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.j
ava:833)
        
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.proce
ss(Http11AprProtocol.java:639)
        
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
        java.lang.Thread.run(Unknown Source)

root cause

wicket.WicketRuntimeException: Unable to create application of class
com.sas.av.ui.wicket.templates.original.HelloWorldApplication
        
wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
(ContextParamWebApplicationFactory.java:68)
        wicket.protocol.http.WicketServlet.init(WicketServlet.java:275)
        javax.servlet.GenericServlet.init(GenericServlet.java:211)
        
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
        
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAcc
essLogValve.java:495)
        
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
        
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.j
ava:833)
        
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.proce
ss(Http11AprProtocol.java:639)
        
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
        java.lang.Thread.run(Unknown Source)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.20 logs.

Any ideas?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to