This week's book giveaway is in the Design forum.
We're giving away four copies of Experimentation for Engineers: From A/B testing to Bayesian optimization and have David Sweet on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of course the class Nodo have setters and getters:

 
Sheriff
Posts: 67699
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

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


Looks like you are missing the jar file for JDOM.
 
Jon Pepe
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Sheriff
Posts: 67699
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
You should have mentioned this is an IDE setup issue. Moved to the IDEs forum.
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic