aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Error with JSP: Doesn't work with my object, it does with a String 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 » Engineering » IDEs, Version Control and other tools
Bookmark "Error with JSP: Doesn Watch "Error with JSP: Doesn New topic
Author

Error with JSP: Doesn't work with my object, it does with a String

Jon Pepe
Greenhorn

Joined: Dec 07, 2011
Posts: 5
I'm reediting: It's a Maven project and I have to add a external file to the repository.

I'm explaining what happened. The class Nodo had a method that uses JDOM library, and it was failing. That's why it worked with a string, a string doesn't use that library. Now I have supressed that method and it works, but I still need that method. Do you know how can I make it work? As I say down here, I use Springsource Tool Suite (eclipse) and I had added the jdom.jar file as a external jar in the build path.


Hi guys,
I hope you can help me. I'm creating an easy MVC web app with Spring Framework (using STS) and I'm having problems with JSP.

I have a jsp page where I want to show some properties of my object "Nodo", but I'm getting this error:


---------------------------------
NODO CLASS


-------------------------------------
CONTROLLER


-------------------------------------
WEB.XML

--------------------------------------------------
SIM-SERVLET.XML


----------------


I hope it's a silly error and you can help me, it would be great for me. Thank you.
Jon Pepe
Greenhorn

Joined: Dec 07, 2011
Posts: 5
Of course the class Nodo have setters and getters:

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/jdom/JDOMException

Looks like you are missing the jar file for JDOM.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jon Pepe
Greenhorn

Joined: Dec 07, 2011
Posts: 5
Bear Bibeault wrote:
javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/jdom/JDOMException

Looks like you are missing the jar file for JDOM.


I've got it in the build path, I added as a external JAR with Eclipse.

I use JDOM for extracting information from an .xml document in a method in the Nodo class. I tried supressing it and it works! So I have to do something with that .jar because in the moment of the building something goes wrong. Can someone help me?

Bear Bibeault, thank you very much, really.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

You should have mentioned this is an IDE setup issue. Moved to the IDEs forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error with JSP: Doesn't work with my object, it does with a String