Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using Virtual Host gives - Absolute uri: http://java.sun.com/jsf/core can

843844Jun 26 2008 — edited Jun 26 2008
I've got a new JSF based webapp (Tomcat 6.?, Tomahawk-1.1.6, JSF 1.2, Java EE 5 SDK) which functions properly when using my http://PrimaryDomain/zzz url to access my webapps/zzz application.

All components of the application are placed under 'webapps/zzz'. It's not in a war.

However, after successfully accessing the same webapps/zzz via a virtual host, (lets say http://Sleepyhead.com) and then clicking on any button I get this:

WARNING: Internal Error: File /WEB-INF/web.xml not found
Jun 25, 2008 11:14:05 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
...

Clearly, via Sleepyhead.com some of the jar's and/or tld's within webapps/zzz/WEB-INF/lib cannot be found.

In my conf/server.xml I have this for the virtual host...
<Host name="Sleepyhead.com" appBase="webapps/zzz"> <Context path="" docBase="" reloadable="true" debug="0"/> </Host>

Yes, I can copy jars and tld's from webapps/zzz/WEB-INF/lib to the catalina/lib, but I'd rather not go that direction. I'd rather plop my application into webapps.

My question is, why are these jar's not visible when accessed thru my virtual host?

TIA
Tom
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2008
Added on Jun 26 2008
2 comments
154 views