wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes JSP Exception only on JBoss not Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JSP Exception only on JBoss not Tomcat?" Watch "JSP Exception only on JBoss not Tomcat?" New topic
Author

JSP Exception only on JBoss not Tomcat?

Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
Hi, when I try to deploy some JSP-s on the JBoss 5.G.A, I get following exception :


There is no much information about this issue on web. I try something like it is described in this article, but doesn't help much. I appreciate any help. Thanks!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

What JAR files are in your WEB-INF/lib directory? Do you perhaps have the Jasper JAR file there? If so, remove it.


JBoss In Action
Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
I believe that Eclipse make problems, because I publish application of JBoss, using some plug-ins. Eclipse automatically add ligraries into WEB-INF/lib, like:
servlet.jar, jsp.jar, jstl.jar, and export it into deploy directory of Jboss. I am sure that eclipse-jboss plug-ins, create problem. Sometimes (mostly) it want even to export project I marked to be deployed on JBoss. Is there maybe some other bug-fixed plug in so I can test my application in eclipse, starting JBoss server from eclipse?
Thanks
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9963
    
163

The root cause of this issue, which is caused by jar files containing javax.servlet.* in the application's packaging, suddenly showing up prominently in AS-5.1 is this. That fix will be available in the next release of AS. In the mean time, remove the jar file(s) containing javax.servlet.* classes, from your application packaging.

[My Blog] [JavaRanch Journal]
Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
Thanks guys for your cooperation. Omitting classes (packages) added by eclipse itself resolve the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Exception only on JBoss not Tomcat?
 
Similar Threads
Passing List from Servlet to jsp ? - value of list becomes NULL
java.lang.ClassCastException: org.apache.struts.taglib.html.MessagesTei
if the request parameter name matches the bean property name, ....
Failure to load tld files
struts 1.2 problem