tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomcat User6 <SPA...@DIGITAS.COM>
Subject Server.xml Host Configuration
Date Thu, 24 Jul 2008 16:52:11 GMT

I am facing a problem in my application with " tld not found" error.

The absolute uri: http://www.mySite.com/tags-abc cannot be resolved in
either web.xml or the jar files deployed with this application

Here is my directory at server "/var/www/mySitelocal_stage/philly" (philly
is my application root directory)

Here is the taglib entry in web.xml file

   <jsp-config>
	<taglib>
	    <taglib-uri>http://www.mySite.com/tags-abc</taglib-uri>
	    <taglib-location>/WEB-INF/abc.tld</taglib-location>
             </taglib>
    </jsp-config>

My abc.tld is at /WEB-INF/ directory.

when I try for first page with "stage2.philly.mySite.com "it works fine. No
errors at all. 
But when I try "http://stage2.philly.mySite.com/events/index.jsp" it gives
me the error for tld.

The absolute uri: http://www.mySite.com/tags-abc cannot be resolved in
either web.xml or the jar files deployed with this application

Both the "first page's jsp" and "events/index.jsp" is having the tld
included as

<%@ taglib uri="http://www.mySite.com/tags-abc" prefix="app" %>.

My home page is directly under /WEB-INF/ folder., where as for second URL I
have "/WEB-INF/events/index.jsp"

The atrange thing is, whe I try this application on my local machine, it
works fine with both the URL. but on server it fails.

I have server.xml entry on Server as below:

<Host name="stage2.philly.mySite.com"
  appBase="/var/www/mySitelocal_stage/philly"
  unpackWARs="true"
  autoDeploy="false"
  xmlValidation="false"
  xmlNamespaceAware="false">
  <Alias>stage2.philly.mySite.com</Alias>
  <Alias>192.168.1.166</Alias>
  <Alias>207.97.248.156</Alias>
  <Context docBase="/var/www/mySitelocal_stage/philly" path="" />
  <Valve className="org.apache.catalina.valves.AccessLogValve"
     directory="logs"
     prefix="www_phillymySite_com_log."
     suffix=".txt"
     pattern="common"
     resolveHosts="false"/>
</Host>


IT MUST BE CAUSING THAT.

Please help me out with possible solutions for this problem.

If you need anything else apart from this, then please let me know.

Thank You,






-- 
View this message in context: http://www.nabble.com/Server.xml-Host-Configuration-tp18636070p18636070.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


Mime
View raw message