http://forums.sun.com/thread.jspa?threadID=486791
mismatch between wrong uri in jsp tlds (embedded in jsp( and the standard.jar/jstl.jar version you implemented in webapp's /WEB-INF/lib Follow these steps exactly: 1. If you like, download the latest standard.jar from http://www.apache.org/dist/jakarta/taglibs/standard/jakarta-taglibs-standard-current.zip or goto step 4 2. Unzip it 3. Copy the standard.jar and jstl.jar file into WEB-INF/lib directory in you project 4. Open standard.jar with say winzip 5. Find *.tld files 6. Note all the *.tld files 7. In the WEB-INF directory, delete all the *.tld files already in standard.jar. You don't need them in WEB-INF. Also remove the <taglib>blah blah blah </taglib> of these *.tld files. For example: <taglib> <taglib-uri>http://java.sun.com/jsf/core</taglib-uri> <taglib-location>/WEB-INF/c.tld</taglib-location> </taglib> 8. Assume standard.jar is still open in winzip, open say c.ltd, and you would find: <?xml version="1.0" encoding="UTF-8" ?> <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd" version="2.0"> <description>JSTL 1.1 core library</description> <display-name>JSTL core</display-name> <tlib-version>1.1</tlib-version> <short-name>c</short-name> <uri>http://java.sun.com/jsp/jstl/core</uri> <validator> so and so... </taglib> 8. Notice the <uri>, it is different from http://java.sun.com/jstl/core in step 1. This is the problem. You need to use <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> and not <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> If you havn't noticed the difference - its the addition of "jsp/" HTH Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sat, 14 Mar 2009 16:37:52 -0400 > Subject: Re: org.apache.jasper.JasperException: The absolute uri: > http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the > jar files deployed with this application > From: nowuk...@gmail.com > To: users@tomcat.apache.org > > Mark, > > I think I understand what you are saying about path and docBase being > invalid in my setup (per docs, they should not be set in context.xml, > which is not the same as setting them to empty), however even with > these changes, the outcome is exactly the same. > > I even added override="false" thinking that maybe something gets > derived from default host. > > I also tried setting defaultHost to my app hostname to no avail. > > New cleaned up context: > > <Context cachingAllowed="false" cookies="true" displayName="Example" > reloadable="true" swallowOutput="true" override="false"> > > <Resource name="jdbc/exampleDS" ... unchanged ... /> > > </Context> > > > Is anyone running a ROOT webapp with subdirectories under a virtual > host in Tomcat 6.0.x successfully and is willing to share > configuration details? > > > TIA, > > Ed > > > > On Sat, Mar 14, 2009 at 3:24 PM, Mark Thomas <ma...@apache.org> wrote: > > Gmail User wrote: > >> Mark, > >> > >> The server.xml is 6.0.18 distribution version. I added host to it > >> (host name changed for privacy): > >> > >> <Host name="example.com" appBase="/var/webapps/example.com" > >> unpackWARs="false" path="" autoDeploy="false" xmlValidation="false" > >> xmlNamespaceAware="false"> > > > > Path is not a valid attribute for a host element. That should not be > > affecting you though. > > > >> <Alias>www.example.com</Alias> > >> </Host> > >> > >> > >> The corresponding /var/webapps/example.com/ROOT/META-INF/context.xml > >> was copied over from the original 5.5.15 server.xml that still works: > > Generally copying config from one major version to another is a bad > > idea. It is usually better to start afresh and add when you need. > > > >> <Context className="org.apache.catalina.core.StandardContext" > >> cachingAllowed="false" > >> charsetMapperClass="org.apache.catalina.util.CharsetMapper" > >> cookies="true" crossContext="false" debug="0" displayName="Example" > >> docBase="" mapperClass="org.apache.catalina.core.StandardContextMapper" > >> path="" privileged="false" reloadable="true" swallowOutput="true" > >> useNaming="true" > >> wrapperClass="org.apache.catalina.core.StandardWrapper"> > > > > Lots of defaults in there you don't need. It could be a lot simpler. > > Neither docBase nor path are valid in a context.xml file. This may be > > the cause of the issue you are seeing. > > > > Mark > > > >> <Manager className="org.apache.catalina.session.StandardManager" > >> algorithm="MD5" checkInterval="30" debug="0" duplicates="0" > >> expiredSessions="41" maxActive="11" maxActiveSessions="-1" > >> maxInactiveInterval="1800" pathname="SESSIONS.ser" > >> randomClass="java.security.SecureRandom" rejectedSessions="0" > >> sessionCounter="42"> > >> </Manager> > >> > >> <Resource name="jdbc/exampleDS" auth="Container" > >> type="javax.sql.DataSource" maxActive="75" maxIdle="10" maxWait="5000" > >> driverClassName="org.gjt.mm.mysql.Driver" > >> username="example" removeAbandoned="true" removeAbandonedTimeout="60" > >> validationQuery="SELECT 1" testOnBorrow="true" testWhileIdle="true" > >> timeBetweenEvictionRunsMillis="10000" > >> minEvictableIdleTimeMillis="60000" > >> url="jdbc:mysql://localhost/example?useUnicode=true&charEncoding=utf-8&mysqlEncoding=utf8&cachePrepStmts=true&useServerPrepStmts=false" > >> /> > >> </Context> > >> > >> > >> BTW, if I define the context inside server.xml, the data souce gets > >> set correctly. If defined in context.xml, the app barfs with > >> exception: > >> > >> Cannot create JDBC driver of class '' for connect URL 'null' > >> java.lang.NullPointerException > >> > >> BUT one error at a time (this one is not critical at this point, but > >> would be nice to be able to define it in the context.xml). > >> > >> > >> Ed > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > _________________________________________________________________ HotmailĀ® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009