• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ServletException using JBoss and JSTL

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm trying to use the JSTL - XML tag library, but I have problems using the x:out 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
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 x:out 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
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic