aspose file tools*
The moose likes JSP and the fly likes [JSTL] The absolute uri cannot be resolved in either web.xml or the jar files deployed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "[JSTL] The absolute uri cannot be resolved in either web.xml or the jar files deployed" Watch "[JSTL] The absolute uri cannot be resolved in either web.xml or the jar files deployed" New topic
Author

[JSTL] The absolute uri cannot be resolved in either web.xml or the jar files deployed

Tiago Hillebrandt
Greenhorn

Joined: Jun 07, 2008
Posts: 19
I'm trying to use JSTL tags into my "Dynamic Web Project" in Eclipse 3.5.2 (Galileo, using Ubuntu Lucid 10.04, up-to-date, with oracle jvm).

I have jstl.jar and standard.jar at my WEB-INF/lib folder, and they are in "Java Build Path" from project.

But when i try to run my example project, in an Apache Tomcat 6.0.26 server, i got this error:

SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/functions cannot be resolved in either web.xml or the jar files deployed with this application


The code that i'm trying to execute is:



Follow the content of file web.xml:



This is an Eclipse bug or i'm making something wrong? I tried to make it from many times, including using fn.tld into WEB-INF/tlds folder, but i can not.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
162

Do you need to add this to your web.xml?



[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61755
    
  67

Nothing needs to be added to the deployment descriptor. If the jar files are in the correct place, the container will find them by their URI.

I suspect the IDE is not configured properly. Does this work when you set up the web app outside of the IDE?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Tiago Hillebrandt
Greenhorn

Joined: Jun 07, 2008
Posts: 19
Well, thanks for help!

I discovered that Tomcat doesn't load correctly my JAR files into WEB-INF/lib folder... I tried to run it directly in server and the problem persists.

To solve it, i added my JARs file into $CATALINA_HOME/lib folder. This is strange, but now is working....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61755
    
  67

Hmm, you should not have to do that. I've never had such an issue.
Tiago Hillebrandt
Greenhorn

Joined: Jun 07, 2008
Posts: 19
Bear Bibeault, me too. This is the first time that i need to make this.

I reinstalled Tomcat and the issue persists. I don't have idea why this happen.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61755
    
  67

Are you sure that you are using the correct versions of the JSTL jar files? You can take a look in the jars and make sure that aTLD with the proper URI exists.
Tiago Hillebrandt
Greenhorn

Joined: Jun 07, 2008
Posts: 19
The JAR files are correct. I open standard.jar and I can see the .tld files from JSTL, and the URI defined into tld files is equal from my code.

When i put the JARs into $CATALINA_HOME/lib folder every works; so i think that this version is correct.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61755
    
  67

Curiouser and curiouser, as Alice would say.

And since this a far from your fist app, I assume you know the proper web app folder structure...

And it's just this one web app?
Tiago Hillebrandt
Greenhorn

Joined: Jun 07, 2008
Posts: 19
I have upgraded from Ubuntu Karmic to Lucid yesterday. Since i upgrade, the error is happening in all my web projects.

I'll try to reinstall Eclipse and use another IDE.

Thanks for quick reply
Tiago Hillebrandt
Greenhorn

Joined: Jun 07, 2008
Posts: 19
Well, I tested the project in another operating system, and every work correctly.

So, the problem isn't the project or IDE, but the operating system. I have upgraded through dist-upgrade, so i going to reinstall it from scratch.

Thanks for help!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61755
    
  67

Ga!

Sorry for your troubles. But at least glad that the mystery has been solved. Nasty one!

Tiago Hillebrandt
Greenhorn

Joined: Jun 07, 2008
Posts: 19
hey, it's truth, not an excuse! the problem is on my operating system, because i execute the project in another pc with Ubuntu 9.10 and it works correctly.

well, do you understand from hibernate? can you help me with the question posted in ORM Forum?

http://www.coderanch.com/t/498247/ORM/java/Accessing-hibernate-cfg-xml-web
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [JSTL] The absolute uri cannot be resolved in either web.xml or the jar files deployed