Solved

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

Posted on 2002-06-20
4
183 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apps blocked by Java 9 79
Arrays.asList  VS  ArrayList 4 56
varialbe initialization 11 32
hibernate example issues from command prompt 10 40
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

776 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