Found it. wasn't wicket related at all. The apache conf was wrong. ProxyPass / http://localhost:8080/blog/
I used / instead of /blog/ as in the forward. So on every call a /blog/ was added and the link could not be found. On 3/3/07, Leon Pennings <[EMAIL PROTECTED]> wrote: > Hi all, first post here. > > First off, I really enjoy working with wicket. Brings back memories from the > days when I was still coding swing stuff. > Ok I got a problem with using PageLinks. Atleast, thats what I think it is. > When I develop on jboss at localhost:8080 nothing seems to be wrong. > But when I deploy to my server and I click a link, it tries to route to > localhost:8080. > Now I use an virtual host on my apache like this: > > <VirtualHost *:80> > ServerAdmin [EMAIL PROTECTED] > ServerName > theservername.com > > ServerAlias www.theservername.com > <IfModule mod_proxy.c> > > ProxyRequests Off > ProxyPass / > http://localhost:8080/blog/ > ProxyPassReverse / > http://localhost:8080/blog/ > </IfModule> > ErrorLog /var/log/blog/error.log > </VirtualHost> > > > Getting to the first page set in my WebApplication subclass is not an issue. > And I can see from logging that when I click a link, it gets to the server. > But when the server sends a response, the servername.com/xxx is changed to > localhost:8080/xxx > > any ideas on what I am doing wrong? > > I'm working with wicket version 1.2.3 > > Cheers, > > Leon.. > > a piece of wicket debug: > > 2007-03-02 21:01:45,843 DEBUG [ wicket.MarkupContainer] Rendering raw markup > 2007-03-02 21:01:45,844 DEBUG [wicket.Page] Rendered [Page class = > nl.pennings.b > log.home.Home, id = 1] > 2007-03-02 21:01:45,844 DEBUG [wicket.Component] End render [Page class = > nl.pen > nings.blog.home.Home, id = 1] > 2007-03-02 21:01:45,846 DEBUG [wicket.protocol.http.AbstractHt > tpSessionStore] St > ored attribute p:null:1{ nl.pennings.blog.home.Home} with size: 2.9K > 2007-03-02 21:01:45,849 DEBUG [wicket.Page] ending request for page [Page > class > = nl.pennings.blog.home.Home, id = 0], request [method = GET, protocol = > HTTP/1. > 1, requestURL = http://localhost:8080/blog/blog, contentType = null, > contentLeng > th = -1, contextPath = /blog, pathInfo = /blog, requestURI = /blog/blog, > servlet > Path = , pathTranslated = > /opt/jboss/server/default/./tmp/deploy/tmp20410blog.ea > r-contents/web-exp.war/blog] > ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
