You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ttcse <tt...@yahoo.com> on 2008/06/26 22:23:34 UTC
Virtual Host gives - Absolute uri: http://java.sun.com/jsf/core
cannot be resolved
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? What am I missing?
TIA !
Tom
--
View this message in context: http://www.nabble.com/Virtual-Host-gives---Absolute-uri%3A-http%3A--java.sun.com-jsf-core-cannot-be-resolved-tp18142349p18142349.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Virtual Host gives - Absolute uri: http://java.sun.com/jsf/core
cannot be resolved
Posted by Tom Tugan <tt...@yahoo.com>.
> Additionally Mark, having context info within the Host is not invalid.
> It's just not the preferred way anymore.
> I am well aware of that. However, having appBase == docBase is:
> a) invalid
> b) entirely the source of your problems.
> Mark
Thanks Mark.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
--
View this message in context: http://www.nabble.com/Virtual-Host-gives---Absolute-uri%3A-http%3A--java.sun.com-jsf-core-cannot-be-resolved-tp18142349p18161248.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Virtual Host gives - Absolute uri:
http://java.sun.com/jsf/corecannot be resolved
Posted by Tom Tugan <tt...@yahoo.com>.
> No, use a different appBase for each <Host> to avoid such issues.
Thanks Chuck. That's what I was trying to do but I didn't realize what it
looked like. I have a better understanding now. This was my first
attempt to have a separate appBase and domain name. I appreciate the free
documentation for this open-source product but it's still a struggle to work
with.
> A poor excuse for not following standard practice.
Standard practice is best. But no excuses, I was simply trying to
indicate that context within host should work anyway and shouldn't be a
factor in my problem.
Tom
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
--
View this message in context: http://www.nabble.com/Virtual-Host-gives---Absolute-uri%3A-http%3A--java.sun.com-jsf-core-cannot-be-resolved-tp18142349p18161192.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Virtual Host gives - Absolute uri: http://java.sun.com/jsf/core
cannot be resolved
Posted by Mark Thomas <ma...@apache.org>.
ttcse wrote:
> 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>
This host/context configuration is invalid. The appBase should be
"webapps", the directory "zzz" renamed to "ROOT" and the context element
above removed completely.
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org