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