wood burning stoves 2.0*
The moose likes JSP and the fly likes This absolute uri cannot be resolved in either web.xml or the jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "This absolute uri cannot be resolved in either web.xml or the jar files" Watch "This absolute uri cannot be resolved in either web.xml or the jar files" New topic
Author

This absolute uri cannot be resolved in either web.xml or the jar files

santosh dhulipala
Ranch Hand

Joined: Oct 21, 2010
Posts: 52
hi all,
i am trying to use displaytag in my application it was working finebut suddenly it is showing this excepton
it is working fine in tomcat 6.0 but it is not in tomcat 4.1

i am using display tag 1.2

org.apache.jasper.JasperException: This absolute uri (http://displaytag.sf.net) cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:595)


Thanks & Regards
Santosh Kumar.D

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Tomcat 4.1 is an old beast. Did you declare the library in web.xml ? (which you don't need to in Tomcat 6.0)


[My Blog]
All roads lead to JavaRanch
santosh dhulipala
Ranch Hand

Joined: Oct 21, 2010
Posts: 52
yeah but one of our deployed application server having it we are trying to upgrade

yes i have declared tag lib in web.xml

<taglib>
<taglib-uri>http://displaytag.sf.net</taglib-uri>
<taglib-location>displaytag.tld</taglib-location>
</taglib>


Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

With JSP1.2, you should even need it (sorry for asking).

Where did you put the library ?
santosh dhulipala
Ranch Hand

Joined: Oct 21, 2010
Posts: 52
in web.xml after the error page configuration and before the welcome file list


Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I mean where did you put the JAR file ?
santosh dhulipala
Ranch Hand

Joined: Oct 21, 2010
Posts: 52
i have placed displaytag1.2.jar file in tomcat.-->Commons-->lib and webapps-->project-->WEB-Inf-->Lib
i have extracted the Tld file and plcae in web-INf folder
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

You mean WEB-INF ?

1. Remove the TLD file. You don't need to extract it.
2. Remove the taglib declaration in web.xml
3. Leave the JAR in WEB-INF/lib
santosh dhulipala
Ranch Hand

Joined: Oct 21, 2010
Posts: 52
did still same exception
what could be the reason,
if it didnt solved i have to find some other sorting mechanism..

this is frustrating it worked untill two days back in the demo i presented but now..
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

santosh dhulipala wrote:this is frustrating it worked untill two days back in the demo i presented but now..

It is usually the opposite

Can you show your directory structure ? And be very careful to lower and upper cases. Post the directory and file names, exactly like they appear on your system.
santosh dhulipala
Ranch Hand

Joined: Oct 21, 2010
Posts: 52
please download the strcture pdf
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Everything looks fine. I'm running out of resources...
santosh dhulipala
Ranch Hand

Joined: Oct 21, 2010
Posts: 52
thank you Christophe Verré for you support its a small mistake and cleared it.

this what i have done kept the tld file in the WEB-INF folder
and in web.xml i have
added this

and its working
hope this helps some one in future and dont forget to ass forward slash before web-inf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60789
    
  65

And be aware that this is only necessary in Tomcat 4 and older containers.

P.S. It's WEB-INF not web-inf.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
santosh dhulipala
Ranch Hand

Joined: Oct 21, 2010
Posts: 52
Bear Bibeault thank you for information,
and sorry that i use lower case for WEB-INF

Thank you
 
 
subject: This absolute uri cannot be resolved in either web.xml or the jar files
 
Similar Threads
Class not found..
Trying to use jstl
Cant even get struts example app to work!
Trying to run first struts application
Jboss database qith mysql