Solved

Jbuilder unable to invoke method that uses XML libraries from a servlet?

Posted on 2002-06-20
4
191 Views
Last Modified: 2013-11-24
I have written a class using JBuilder with methods that uses some XML libraries. It ran fine when it is invoked from another class. But when its invoked from a servlet. the following exceptions occured. Help?
org.xml.sax.SAXException: Namespace not supported by SAXParser
     at httpchanger.MapFileParser.process(MapFileParser.java:72)
     at httpchanger.mainclass.main(mainclass.java:46)
     at httpchanger.httpservlet.doGet(httpservlet.java:58)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
     at org.apache.tomcat.core.Handler.service(Handler.java:287)
     at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
     at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
     at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
     at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
     at java.lang.Thread.run(Thread.java:484)
0
Comment
Question by:tomboman
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 60 total points
ID: 7095971
 Make sure that both the JBuilder and your Servlets have access to the same XML APIs. And always use the latest.

  Hope it helps.
0
 
LVL 1

Expert Comment

by:laax
ID: 7121419
Hi,

   Check the CLASSPATH of your webserver and/or application server where your servlet resides.

Laax.
0
 
LVL 35

Expert Comment

by:girionis
ID: 8860596
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this
question is:

- points to girionis

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
map related example 6 55
Glassfish admin console not working 1 36
Why doesn't this text field show up on my Applet frame? 2 20
Java class and jar 3 25
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question