• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you need to add this to your web.xml?

 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Tiago Hillebrandt
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm, you should not have to do that. I've never had such an issue.
 
Tiago Hillebrandt
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ga!

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

 
Tiago Hillebrandt
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

https://coderanch.com/t/498247/ORM/java/Accessing-hibernate-cfg-xml-web
 
She's brilliant. She can see what can be and is not limited to what is. And she knows this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic