can you show me a bit more stacktrace of that second trace?

Where does the constructor init starts?
It seems you are making a static instance inside your HomePage or
LocationPage.class??

johan


On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:

 I tried to add some nice URLs by adding the following to my application
class:



public void init()

{

      mountBookmarkablePage("/home", HomePage.class);

      mountBookmarkablePage("/location", LocationPage.class);

}



But then I get the following error when the web app is deployed:



java.lang.ExceptionInInitializerError

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Unknown Source)

        at
com.sas.av.ui.wicket.templates.original.HelloWorldApplication.class$(
HelloWorldApplication.java:40)

        at
com.sas.av.ui.wicket.templates.original.HelloWorldApplication.init(
HelloWorldApplication.java:41)



Caused by: wicket.WicketRuntimeException: there is no session attached to
current thread http-80-1

        at wicket.Session.get(Session.java:210)

        at wicket.Application$1.onInstantiation(Application.java:272)

        at wicket.Application.notifyComponentInstantiationListeners(
Application.java:823)

        at wicket.Component.<init>(Component.java:592)

        at wicket.MarkupContainer.<init>(MarkupContainer.java:123)

        at wicket.Page.<init>(Page.java:208)

        at wicket.markup.html.WebPage.<init>(WebPage.java:128)





The HomePage and LocationPage classes are available. For some reason
wicket thinks that no session has been set up yet – which is actually
correct. Why do we need a session set up if we haven't yet had to process
a HTTP request? We're just initializing the webapp.



Using Wicket 1.2.4

-------------------------------------------------------------------------
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


-------------------------------------------------------------------------
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