User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 456,233 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,778 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 908 | Replies: 0
Reply
Join Date: Nov 2007
Posts: 1
Reputation: Jrock is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Jrock Jrock is offline Offline
Newbie Poster

x:forEach org/saxpath/SAXPathException

  #1  
Nov 7th, 2007
Hey everyone. Brand new to the forums. I have been looking all over and could not find much help. I have found one instance of the problem but it always occurs in JBoss and I am running Tomcat. I am pretty new to JSP, XML, and servlets so bare with me if I seem like an idiot -_-

I am trying to parse an XML document and display the information and I think I understand that part well enough. I am having problems even getting the page to serve up - it looks like it won't compile. I am working under "EasyEclipse Server" as that is what the station is set up for.

Here is my error when I try to load up the page:
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: org/saxpath/SAXPathException
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org/saxpath/SAXPathException
	java.lang.Class.getDeclaredMethods0(Native Method)
	java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
	java.lang.Class.getDeclaredMethods(Class.java:1763)
	java.beans.Introspector$1.run(Introspector.java:1265)
	java.security.AccessController.doPrivileged(Native Method)
	java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1263)
	java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129)
	java.beans.Introspector.getBeanInfo(Introspector.java:387)
	java.beans.Introspector.getBeanInfo(Introspector.java:159)
	org.apache.jasper.compiler.Generator$TagHandlerInfo.<init>(Generator.java:3728)
	org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(Generator.java:2130)
	org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1599)
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
	org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
	org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
	org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
	org.apache.jasper.compiler.Generator.generate(Generator.java:3320)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Here is the code that is causing the problem:
  <c:import   url="./sample.xml"    var="url" />
  <x:parse       xml="${url}"     var="doc"   />

<x:forEach     var="n"
                     select="$doc/person">


</x:forEach>


Now that code won't do anything production but I just wanted to get it down to the bare code that is causing the problem.

Here is what I have done/come up with:
It isn't finding the SAXPathException class so I went out and got the jaxen-1.1.1.jar file which has the SAXPathException in it and added it to the build path to no avail.

Any ideas or pointers? Thanks!


EDIT: I may have found the culprit, but still do not know how to fix it. My jar file has it in org/jaxen/saxpath/SAXPathException.

How can I either update the JAR file or change the way it is being called? Or is there a way around it since I don't really want to be messing with other people's source? Is there another JAR with that class in the correct package directory?

John Dodge
Last edited by Jrock : Nov 7th, 2007 at 3:40 am.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 5:06 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC