You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Terry <tr...@bplglobal.net> on 2010/10/11 23:21:26 UTC

tomcat host gives 404 on dynamic resources including wicket-events.js

wicket 1.4 - tomcat 6.0 or 7.0

Having issue with resolving dynamic resources when deployed as virtual host
in tomcat

server.xml snippet...

<Host name="a.bem.com" appBase="webapps/BEMA" unpackWARs="false"
autoDeploy="false">
  <Context path="" docBase="."/>
</Host>

<Host name="b.bem.com" appBase="webapps/BEMB" unpackWARs="false"
autoDeploy="false">
  <Context path="" docBase="."/>
</Host>

both apps load with either url...
http://192.168.100.70:8080/BEMA OR http://a.bem.com:8080
http://192.168.100.70:8080/BEMB OR http://b.bem.com:8080

however - when the vitual host access is used (a.bem.com) requests for
dynamic resources produce 404 (static requests and pages load fine)

for example...http://a.bem.com:8080 ...cannot find wicket-event.js

---
Request
URL:http://a.bem.com:8080/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
Request Method:GET
Status Code:404 Not Found
---

but ...http://192.168.100.70:8080/BEMA ...finds it just fine

---
Request
URL:http://192.168.100.70:8080/BEMA/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
Request Method:GET
Status Code:200 OK
---

Same exact apps...deployed by simply renaming war file...our customer want
to deploy the exact same app on Tomcat several - but with different
configurations/resources/database

Any ideas,

Thanks,
Terry
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/tomcat-host-gives-404-on-dynamic-resources-including-wicket-events-js-tp2990681p2990681.html
Sent from the Users forum 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