You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Arun Gupta <ar...@gmail.com> on 2009/08/28 20:24:55 UTC

Broken URLs when app packaged as WAR

Created a Wicket application and runs fine using "mvn jetty:run" and
then created a WAR using "mvn package". When the app is deployed in
Tomcat, only the home page shows up correctly but all other links
giving 404.

For example

http://localhost:8080/runner/newrun works fine with Jetty but
http://localhost:8080/runner-1.0-SNAPSHOT/runner/newrun gives an error
in Tomcat.

Any idea ?

-Arun

-- 
Need Application Server ? - Download glassfish.org
Blog: http://blog.arungupta.me

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Broken URLs when app packaged as WAR

Posted by Mathias Nilsson <wi...@gmail.com>.
Should't that be

http://localhost:8080/runner-1.0-SNAPSHOT/newrun
-- 
View this message in context: http://www.nabble.com/Broken-URLs-when-app-packaged-as-WAR-tp25194698p25204500.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Broken URLs when app packaged as WAR

Posted by Major Péter <ma...@sch.bme.hu>.
Maybe this helps you:
http://www.coderanch.com/t/87915/Tomcat/tomcat-define-context-root-name

How did you mounted your url's? How did you created your link to the 
newrun page?

Regards,
Peter

2009-08-28 20:24 keltezéssel, Arun Gupta írta:
> Created a Wicket application and runs fine using "mvn jetty:run" and
> then created a WAR using "mvn package". When the app is deployed in
> Tomcat, only the home page shows up correctly but all other links
> giving 404.
>
> For example
>
> http://localhost:8080/runner/newrun works fine with Jetty but
> http://localhost:8080/runner-1.0-SNAPSHOT/runner/newrun gives an error
> in Tomcat.
>
> Any idea ?
>
> -Arun

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org