aspose file tools*
The moose likes JBoss/WildFly and the fly likes ServletException using JBoss and JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "ServletException using JBoss and JSTL" Watch "ServletException using JBoss and JSTL" New topic
Author

ServletException using JBoss and JSTL

Mary White
Ranch Hand

Joined: Jan 27, 2003
Posts: 41
Hi,
I'm trying to use the JSTL - XML tag library, but I have problems using the xut tag. I'm using JSTL 1.0.3
My jsp is:

Using JBoss 3.2.2RC 2 I get the following error:
javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.Out_jsp._jspService(Out_jsp.java:107)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.............
I already copied the 4 jars and the 8 tlds that come with Web Services Developing Pack 1.1
Any idea qhat can be going wrong?
Thanks
Mary
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
Changing the URI of the taglib, I was able to load the JSP fine under JBoss 3.0.8 and jakarta JSTL. You might try running under an older JBoss just to verify it isn't a problem with your pre-release 3.2.2.
The stack trace isn't complete enough to figure out what is going on. I'd expect more information below. At the very least, take a look at the generated Out_jsp.java and see if what is on line 107 makes any sense as an error. It might be obvious from that.
If not, scale back your page a bit. Can you do the x arse all by itself? What about core tags? Can you do a c ut? The more you isolate the problem, the easier it will be to figure out and fix it.
Mary White
Ranch Hand

Joined: Jan 27, 2003
Posts: 41
Hi Norman,
I already isolated the problem, with the URI's I have right now the core tags and the x:parse works fine, once I add xut to my code I get the exception.
The complete exception is:

The line of the complied JSP that generates the exception says:

So, it's handling an excpetion.
Thanks
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
While, you need to know what that throwable is. Try wrapping the whole page in a big try/catch.
If it is only happenning on the xpath stuff, perhaps you don't have the xpath jars. With the jakartya JSTL distribution, this is saxpath.jar. (I think) In any event, grabbing look at the exception that is being caught should tell you pretty quickly what the issue is.
Mary White
Ranch Hand

Joined: Jan 27, 2003
Posts: 41
Hi Norman,
I just added the try-catch block as you suggested:

but I can't see the stacktreace in the console or in the browser.
I have the saxpath.jar, jaxen-full.jull.jar, jstl.jar and standard.jar in my war file.
Thanks
[ September 18, 2003: Message edited by: Mary White ]
[ September 18, 2003: Message edited by: Mary White ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServletException using JBoss and JSTL
 
Similar Threads
need a help regarding "JSTL with xml tag"
JSTL x:out problem
JSTL - x:out problem
org.jaxen. UnresolvableException: $dom
NoSuchMethodError when usin Tomcat and JSTL