Hi,

Can you put a breakpoint in WicketServlet#init() ?
The only reason for that I see is this servlet to be initialized twice ...
Even better set the breakpoint in Application#setName() and see who is
calling it and how many times

On Thu, Apr 12, 2012 at 4:41 AM, Alex Rass <[email protected]> wrote:
> If someone could help me out with this issue, that would be awesome.
>
> Currently:
> Deploying on Tomcat 6.
>
> Default deploy folder is webapps
> webapps/ROOT is where my 1st wicket app is (lets call it App1)
> webapps.web2 is another Host record for a different URL.
> webapps.web2/app2 is my wicket app #2
>
> No matter what I tried, app#2 doesn't get started (but servlets from same 
> context work fine).
> When I go to the url, it says:
>
> java.lang.IllegalStateException: Application with name 'App2' already exists.'
>        org.apache.wicket.Application.setName(Application.java:854)
>        
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:337)
>        
> org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:271)
>        javax.servlet.GenericServlet.init(GenericServlet.java:212)
>        ...
>
> I tried renaming it to App3 (in web.xml and I get same message except it says 
> App3).
> I checked all the web.xml files on the server, no other one has App2 in it.
>
> I have lib folders under each app. I don't share anything beside DB drivers 
> in Tomcat's lib folder.
> I have Wicket 1.5.4 for App1 and 1.5.5 for App2 (donno if that makes a diff).
>
> Any ideas?
>
> Regards,
> - Alex.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to