Error when loading servlet using JDOM

hi,
I'm new in the servlet developpement and I would like to have your helps.
I use JDOM to access to XML files. I use Eclipse WTP, and Tomcat like servlet container.
When I try to load the simple servlet file, I get an exception which shows me that there is java.lang.NoClassDefFoundError: org/jdom/JDOMException.
I think there are problems in the configuration, but I don't know why. Any help would be welcome.
This is my code
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import org.jdom.xpath.XPath;
import org.jdom.*;
* Servlet implementation class for Servlet: test1
public class test1 extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
     String xparams_input_file="xparamsdata.xml";; //Fichier d'entr�e XML
     Document xparams_document;
     Element xparams_Element;
     /* (non-Java-doc)
     * @see javax.servlet.http.HttpServlet#HttpServlet()
     public test1() {
          super();
     /* (non-Java-doc)
     * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
     protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          // TODO Auto-generated method stub
          doPost(request,response);
     /* (non-Java-doc)
     * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
     protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          // TODO Auto-generated method stub
          System.out.println("TestOK");
     /* (non-Javadoc)
     * @see javax.servlet.GenericServlet#init()
     public void Lire_XParams_XML(){
          SAXBuilder saxBuilder = new SAXBuilder();
          try{               
               xparams_document = saxBuilder.build(xparams_input_file);
               xparams_Element = xparams_document.getRootElement();               
          catch (JDOMException e)
          { // indicates a well-formedness or other error
               //e.printStackTrace();
               System.out.println(xparams_input_file + " is not a well formed XML document.");
               System.out.println(e.getMessage());               
          catch (IOException e)
          { // indicates an IO problem
               System.out.println(xparams_input_file + " could not be parsed");
               System.out.println(e.getMessage());
     public void init() throws ServletException {
          // TODO Auto-generated method stub
          super.init();
          System.out.println("TestOK init");
And the errors
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error instantiating servlet class test1
     org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
     org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
     org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
     java.lang.Thread.run(Unknown Source)
root cause
java.lang.NoClassDefFoundError: org/jdom/JDOMException
     java.lang.Class.getDeclaredConstructors0(Native Method)
     java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
     java.lang.Class.getConstructor0(Unknown Source)
     java.lang.Class.newInstance0(Unknown Source)
     java.lang.Class.newInstance(Unknown Source)
     org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
     org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
     org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
     java.lang.Thread.run(Unknown Source)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Apache Tomcat/5.5.17

Have u set the classpath for jdom.jar. If u have jdom.jar file in ur machine , set the classpath to that. otherwise download one from the net .
http://www.jdom.org/dist/binary/
put it in ur build path.

Similar Messages

  • Error when loading data using transformation

    Hi,
    I load a text file into an application using Transformation file. The load failed with error "Enforced *DESTINATION cannot be empty". What does this error mean?
    Thanks

    Hi Liana,
    Do you have default logic turned on?
    When you validate and process the transformation file, select the file that you want to load at the first prompt.
    Do you get the same error?
    Thanks,
    John

  • ORA-00054 error when loading Oracle table using Data Services

    Hello,
    we are facing ORA-00054 error when loading Oracle table using BO Data services
    (Oracle 10g database, BODS Xi 3.2 SP3)
    Test Job performs
    1- truncate table
    2- load table (tested in standard and bulk load modes)
    Scenario when issue happens is:
    1- Run loading Job
    2- Job end in error for any Oracle data base error
    3- When re-running the same Job, Job fails with following error
         ORA-00054: resource busy and acquire with NOWAIT specified
    It seems after first failure, Oracle session for loading the table stays active and locks the table.
    To be able to rerun the Job, we are forced need to kill Oracle session manually to be able to run the Job again.
    Expected behaviour would be : on error rollback modifications made on table and BODS stops Oracle session in a clean way.
    Can somebody tell me / or point me to any BODS best practice about Oracle error handling to prevent such case?
    Thanks in advance
    Paul-Marie

    the ora-0054 can occure depending how the job failed before. If this occures you will need the DBA to release the lock on the table in question
    Or
           AL_Engine.exe on The server it creates the Lock. Need to Kill Them. Or stop it..
    This Problem Occurs when we select The Bulkloading Option in orclae  We also faced the same issue,Our admin has Killed the session. Then everything alright.

  • Error when loading XSLT mapping of the application

    Hi,
    I am using XSLT mapping in XI.
    It is working ok when I test it in Interface Mapping but it gives below error when I test end to end scenario.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">TRANSFORMER_CONF_EX</SAP:Code>
      <SAP:P1>com/cba/***.xsl</SAP:P1>
      <SAP:P2>urn:**:**</SAP:P2>
      <SAP:P3>450326d0-1559-11dd-99a1-d89c0a0a380b</SAP:P3>
      <SAP:P4>-1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when loading XSLT mapping of the application</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Yes, I have activated it
    Regards,
    Anirudh.

    hi
    please assure that if you save your xslt stylesheet locally, that it is saved in UTF-8 format, before you import it.
    Pls do export the imported archive as a zip file to your local disk and try opening the same. If its not then the zip file which you have uploaded might have got corrupted/is not fully uploaded.
    Try activating the imported archive and do a check before you do that. This you can do with a minor change in the description or so.
    reward points if found helpfull
    regards
    chandra.k

  • Error when loading lower case

    Hi Friends,
               I getting an error when loading the Infopackage ,
    "Value 'sss ' (hex. '737373 ') of characteristic Zapple contains invalid characters"
    I used the formula "To upper" in my T/R  still I was getting the same error" and also I edited the value in PSA to "SSS" and loaded and still pointing to the same error. when I do a find for "sss" I dont see any value in PSA.
    Please advice, it will be really appreciated,
    thanks alot in advance

    Hi,
    U cont see the special characters in display mode in PSA...
    for that First the check the reason for error,
    it is from PSA, and the status in the monitor turned to red with errors or collection eneded with source system.. then go to manage of data target delete the red request... now go to PSA in modelling then select ur infosource right click select the option edit PSA data..
    Now u can see the some special characteristics in the record that error occured... once it is complete then save come back to PSA screen then once again right click on the Infosource select immeadiate update.. it will work fine..
    Siddhu

  • Error -5000 and: Error when loading the transcode setting

    For a couple of days I've been trying to export my project on a DVD, but on the half way of the transcoding it comes the Error -5000, and then there is such a message, something about the navigation, can't be found etc... I work on a mac OS X, using Encore CS3, all my data I've got on my external harddisk, with space of 80 GB.
    Besides, when I'm trying to export my project on a blu-ray disc, there comes a message: Error when loading the transcode setting! I know that there are only two codecs there - H.264 and MPEG-2, and there are only MPEG-2 movie files there, so I set the MPEG-2 codec. And there comes such a thing! Having set the H.264, there comes the same. What can it be?
    And the last one is the copy protection. I know that it can be activated, with CGMS and Macrovision, only if the CSS option is set on "permit no copies". So I do, and then there comes a message - "for these settings there is no copy protection provided". So what now to do?

    My flash drive PNY comes up with error -5000 and i do not know what to do can you help me with this problems

  • JAVAMAP-Sax Parser ...............Linkage error when loading the class.

    Dear all,
    Do we have any extra things to execute the Java mapping using the Sax Parser?
    When I am executing the interface mapping ,I am getting the" Linkage error when loading the class" error.
    Kindly let me know your personnel maildId so that I can mail you the screen shots.
    Thanks,
    Srinivasa

    Dear sunil,
    Find the File.
    Source:
    <MTO_FTP_MAT_DETAILS>
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    TARGET
    MTI_FTP_MAT_DETAILS
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    Source:
    <MTO_FTP_MAT_DETAILS>
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    TARGET
    MTI_FTP_MAT_DETAILS
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    import com.sap.aii.mapping.api.StreamTransformation;
    class Echo {
    public static OutputStream out;
    public class myEcho extends DefaultHandler implements StreamTransformation {
    private Map map;
    public void setParameter(Map param) {
    map = param;
    public void execute(InputStream in, OutputStream out) {
    DefaultHandler handler = this;
    SAXParserFactory factory = SAXParserFactory.newInstance();
    try {
    SAXParser saxParser = factory.newSAXParser();
    Echo.out = out;
    saxParser.parse(in, handler);
    } catch (Throwable t) {
    t.printStackTrace();
    public void startDocument() throws SAXException {
    try {
    Echo.out.write("<?xml version='1.0' encoding='UTF-8'?>".getBytes());
    } catch (IOException e) {
    e.notify();
    public void endDocument() throws SAXException {
    try {
    Echo.out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    public void startElement(String namespaceURI, String sName, // simple name
    String qName, // qualified name
    Attributes attrs) throws SAXException {
    String eName = sName; // element name
    if ("".equals(eName))
    eName = qName; // not namespace-aware
    if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
    try {
    Echo.out.write(("<MTI_FTP_MAT_DETAILS>").getBytes());
    } catch (Exception e) {
    e.printStackTrace();
    } else {
    try {
    Echo.out.write(("<" + qName + ">").getBytes());
    } catch (Exception e) {
    e.printStackTrace();
    public void endElement(String namespaceURI, String sName, // simple name
    String qName // qualified name
    ) throws SAXException {
    String eName = sName; // element name
    if ("".equals(eName))
    eName = qName; // not namespace-aware
    if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
    try {
    Echo.out.write(("</MTI_FTP_MAT_DETAILS>").getBytes());
    } catch (Exception e) {
    e.printStackTrace();
    } else {
    try {
    Echo.out.write(("</" + qName + ">").getBytes());
    } catch (Exception e) {
    e.printStackTrace();
    public void characters(char buf[], int offset, int len)
    throws SAXException {
    String s = new String(buf, offset, len);
    try {
    Echo.out.write(s.getBytes());
    } catch (Exception e) {
    e.printStackTrace();

  • Can anyone list problems/errors when uploading data using BDC's and BAPI's?

    Can anyone list the problems/errors when uploading data using BDC's and BAPI's?

    Hi,
    If you are actually creating a BDC to load data pls be more specific.
    Data format incorrect. Tab delimited/ etc
    Dates in wrong formats
    Currency incorrect formats
    Missing screens
    Wrong transaction code
    File not found,
    Missing Mandatory fields,
    Screen resoultion.
    You should always use refresh for your Bdcdata table.
    Loop at internal table.
    refresh Bdcdata.
    regards,
    sowjanya.

  • I now get an 500 Internal Server error when loading Firefox, after updating RealPlayer

    I now get an 500 Internal Server error when loading Firefox, after updating RealPlayer.
    When I try to open Firefox, it opens. But there is the error message.
    What is this? How do I did rid of it?
    '''bold text'''

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    You can also check the connection settings in Tools > Options > Advanced : Network : Connection<br />
    If you do not need to use a proxy to connect to internet then select "No Proxy"
    See "Firefox connection settings":
    * [[Firefox cannot load websites but other programs can]]

  • 403 error when loading WAP

    I am getting a 403 error when loading WAP from the site https://localhost:30091. 
    It was working and suddenly stopped. How do I troubleshoot this issue ?

    Hi,
    Do you use any proxy on the WAP server? If yes, please disable the proxy and try again.
    Also, please check if there is any warning or error in the event viewer of the WAP server.
    We can check the event of Azure Pack at Applications and Services Logs-->Microsoft-->WindowsAzurePack
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Caller 09 is missing error when loading

    Hi,
    I'm getting the above error when loading transaction data from source system. (connected to Oracle system with DBLink so the source system is Myself). This system has just been upgraded to 3.5 but I had similar issue in Dev prior to the upgrade so I don't think its upgrade related.
    Full error message is that the datasource must be replicated. Timestamp in source system and timestamp in BW are different.
    I've tried the following (several times).
    1. Replicated datasource (by right clicking on source system underneath infosource), then used program RS_TRANSTRU_ACTIVATE_ALL to activate the transfer structures.
    2. Replicated datasource then manually activated transfer structure, communication structure, regenerated underlying programs of transfer structure and PSA program.
    3. I've already logged off and back on
    4. I've gone into RSA5, and reactivated the extract structure.
    In the infosource, if I display its status, its has last changed timestamp of today. But in the error message I'm getting a timestamp of 25.05.06 for source system and 25.1.2003 for BW (bearing in mind they are both in fact BW).
    Any ideas? Please help !!
    Thanks
    Sue

    Hi,
    Re: Errors when uploading ODS to infocube
    1. Activate transfer rules that belongs to the data source
    2. Activate the ODS
    3. Activate the update rules (infosource to ODS)
    4. Activate the update rules (ODS to infocube)
    5. Right-click at the ODS, choose 'Generate Export Data Source'
    6. Replicate the data source
    Shreya

  • Error while Loading Budgets Using AMG

    Error while Loading Budgets Using AMG
    Dear All,
    I am trying to load Budgets into ORACLE Projects using AMG API's..
    I have developed PL/SQL which uses below procedures of pa_budget_pub package.
    init_budget;
    load_budget_line;
    execute_draft_budget;
    baseline_budget;
    Procedure execute_create_draft_budget fails with following error message.
    error message: Please enter a valid product code for this project.
    error message: You entered an invalid API parameter.Please enter valid parameter and try again. Parameter Name: Resource List Parameter Value: 1446
    error message: Project: AC044. Please specify a valid resource list.
    error message: Project: AC044. Please specify a valid resource list.
    Could somebody explain me how to resolve this error message and load the budget lines.
    Thanks in Advance.
    Afsal Basha.

    What I'm saying is, verify the column name. Dont post if not possible.
    Example follows, with one table intentionally "hidden".
    SQL> create table "tEsT" ("MaxNumber" float, "MaxnumbeR" number);
    SQL> select table_name,column_name from user_tab_columns where table_name like 't%';
    TABLE_NAME                     COLUMN_NAME
    tEsT                           MaxNumber
    tEsT                           MaxnumbeR
    teST                           iD
    teST                           MaxNumberHth,
    Fredrik

  • Hp pavilion dv6 6180 help me for this error when I am using my recovery disk

    hp pavilion dv6 6180 help me for this error when I am using my recovery disk
    The destination drive is not connected

    Hello Mohammadshamlou.  I understand that you're having some issues using your Recovery Disc.  It is giving you the error that the drive is not connected.  Is this correct?  How long have you had the notebook?
    What issue originally led you to want to try a recovery?
    The error seems to imply that it is not detecting the hard drive as this would be the most logical destination drive.  So, I feel the best thing to try first is verify that the hard drive is in proper working order.  Follow these steps and please post the result. 
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • "500 internal server error" when trying to use F4 help in the variable sele

    Hi Experts,
    I am getting "500 internal server error" when trying to use F4 help in the variable selection screen (in WAD).
    How could this be resolved?
    Quick reply would be very helpfull.
    Thanks in advance !!

    It seems you are using wrong client ID. Make sure your logon pad has right details. You should verify this with your basis team.
    If the problem persists then try re-installing. But before you do that you can execute sapbexc.xla which is in the c:\program files\sap\bw. Type c:\ in cell c3 and click "start button". Any red flag means you have wrong version dll/ocx on your local drive, in that case you should reinstall with right patches.
    if this solution helps u then pls assign points

  • Runtime error when trying to use Thinkvantage system updater

    I get a runtime error when trying to use the Thinkvantage system updater.Have tried it numerous times and this is the exact message:
    "Runtime error!
    Program:C:\Program Files\Lenovo\System Update\tvsu.exe
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information."
    Can somebody please help me to get the Thinkvantage system updater working properly?
    Thanks-George
    This issue has since been resolved.Thanks-G

    I'm getting the same error.   I tried reinstalling system updater but it didn't help.

Maybe you are looking for

  • Third party process with Valuated sales order stock

    Hi All, We have third party sales order process with valuated sales order stock. The problem is that in the theird party PR which is triggered directly from the sales order it determines a stock account which is assigned to the BSX key in OBYC. But s

  • YUV OR VGA FOR EXTERNAL SCREEN

    I want to use an external screen but my VGA input of the external screen is already busy by another computer, so guys tell me if YUV is as good in terms of quality audio/video than VGA ?

  • Transfer entire album?

    I've got a 2gb nano and my music library is larger than that (about 3.5 gb). I've limited my songs to the most popular (4 and 5 star rating) and that works fairly well, but I have a couple of albums that I want the entire album. Is there a way to do

  • Computer won't turn on and the power cord doesn't light up

    My problem with the computer is that it will not turn on. The battery is fully charged, power cord is plugged into a working outlet. I have held down the power button for 10 second or even longer. Nothing turns it on and the power cord doesn't light

  • Most of my drop down menus showing faded black after installing final cut pro x.. Any ideas?

    I recently just installed final cut pro x on my computer. After installing it and rebooting, I noticed that my login picture was faded and orange looking and my drop down menus fonts are thick black text instead of the normal and certain menus are fa