problem with xercesImpl.jar

Discussion in 'Java' started by sean, Nov 4, 2003.

  1. sean

    sean Guest

    I'm deploying a simple XML parsing servlet using the latest
    2.5.0 xerces jars in it's lib directory.

    This servlet runs fine on my local machine, but when I deploy it
    to the production server, the JRE throws a java.lang.NoSuchMethodError
    for the method
    method parse(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;)V not found

    This method is definitely in the latest xerces jar, so I'm guessing
    it's picking up an obsolete jar file somewhere before the current
    jar in the classpath.

    Unfortunately I have little control over the production server, so
    can anyone suggest how I can force xerces to use the actual
    latest library?

    Thanks,
    Sean
     
    sean, Nov 4, 2003
    #1
    1. Advertising

  2. sean

    David Baer Guest

    can you manipulate the CLASSPATH-variable of your production server?

    make sure the 2.5-version is in the classpath.

    d.

    sean wrote:

    > I'm deploying a simple XML parsing servlet using the latest
    > 2.5.0 xerces jars in it's lib directory.
    >
    > This servlet runs fine on my local machine, but when I deploy it
    > to the production server, the JRE throws a java.lang.NoSuchMethodError
    > for the method
    > method parse(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;)V
    > not found
    >
    > This method is definitely in the latest xerces jar, so I'm guessing
    > it's picking up an obsolete jar file somewhere before the current
    > jar in the classpath.
    >
    > Unfortunately I have little control over the production server, so
    > can anyone suggest how I can force xerces to use the actual
    > latest library?
    >
    > Thanks,
    > Sean
     
    David Baer, Nov 4, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sean
    Replies:
    0
    Views:
    589
  2. Arnold Peters
    Replies:
    0
    Views:
    630
    Arnold Peters
    Jan 5, 2005
  3. muttley
    Replies:
    0
    Views:
    2,789
    muttley
    Oct 20, 2005
  4. cyberco
    Replies:
    4
    Views:
    3,864
    Roedy Green
    Feb 14, 2006
  5. Arnold Peters
    Replies:
    0
    Views:
    699
    Arnold Peters
    Jan 5, 2005
Loading...

Share This Page