wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes web apps  throw exception in jboss,run in  tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "web apps  throw exception in jboss,run in  tomcat" Watch "web apps  throw exception in jboss,run in  tomcat" New topic
Author

web apps throw exception in jboss,run in tomcat

Hari priya
Ranch Hand

Joined: Mar 11, 2004
Posts: 134
Hello ,

I have a war file which run perfectly fine in tomcat 5.5.4 but throws exceptions in JBoss 4.0.1. Even struts-examples.war is throwing exceptions. Do I have to configure JBoss in any way to get the application running? The exception in jboss are -


org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
C:\jboss-4.0.1\server\default\work\jboss.web\localhost\cssadmin\org\apache\jsp\LoginPage_jsp.java:120: _jspx_meth_html_base_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.LoginPage_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_base_0(_jspx_th_html_html_0, _jspx_page_context))
^


Generated servlet error:
C:\jboss-4.0.1\server\default\work\jboss.web\localhost\cssadmin\org\apache\jsp\LoginPage_jsp.java:126: _jspx_meth_logic_notPresent_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.LoginPage_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_logic_notPresent_0(_jspx_th_html_html_0, _jspx_page_context))
^


Generated servlet error:
C:\jboss-4.0.1\server\default\work\jboss.web\localhost\cssadmin\org\apache\jsp\LoginPage_jsp.java:209: _jspx_meth_html_form_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.LoginPage_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_form_0(_jspx_th_html_html_0, _jspx_page_context))
^

----------More similar exception-----
Generated servlet error:
Note: C:\jboss-4.0.1\server\default\work\jboss.web\localhost\cssadmin\org\apache\jsp\LoginPage_jsp.java uses or overrides a deprecated API.

Generated servlet error:
Note: Recompile with -Xlint eprecation for details.

Generated servlet error:
Note: C:\jboss-4.0.1\server\default\work\jboss.web\localhost\cssadmin\org\apache\jsp\LoginPage_jsp.java uses unchecked or unsafe operations.

Generated servlet error:
Note: Recompile with -Xlint:unchecked for details.
8 errors

[ January 25, 2005: Message edited by: Hari priya ]

[ January 25, 2005: Message edited by: Hari priya ]

[ January 25, 2005: Message edited by: Hari priya ]

[ January 26, 2005: Message edited by: Hari priya ]
[ January 26, 2005: Message edited by: Hari priya ]
Hari priya
Ranch Hand

Joined: Mar 11, 2004
Posts: 134
I am not able to solve this problem yet. The only app that works is struts-blank.war. Other than that nothing works, though they all are getting deployed. I would be glad if some one can please help me out here. Thanks,
Hari priya
Ranch Hand

Joined: Mar 11, 2004
Posts: 134
ok , my problem is solved.
nahik kremer
Greenhorn

Joined: Feb 16, 2005
Posts: 1
But why don't you specify how your problem was solved ?
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
Hi How u solved ur probelm?
Vitor Isaia
Greenhorn

Joined: Mar 07, 2005
Posts: 12
How did you solve your problem?

I'm in the same situation... and I have no idea about how to solve it...
Vitor Isaia
Greenhorn

Joined: Mar 07, 2005
Posts: 12
Does anyone know the solution??

I'm desperate...

Thanks..
Vitor Isaia
Greenhorn

Joined: Mar 07, 2005
Posts: 12
Hello people, the problem was solved.

The problem was in the jars that I was including in my app's lib...

there was a conflict with jboss 4.0.1 jars...

so I took out all the jars of the app's lib, and tryed to deploy
without jars... so when the errors happened because of the missing
jars, I putted one by one just to solve the actual missing jar
problem... actually what I did was remove the unnecessary jar files....

thats it!

regards, Vitor Isaia
Hari priya
Ranch Hand

Joined: Mar 11, 2004
Posts: 134
hello,

As much as I remember, as Victor wrote, I had to remove jar files in my application that are conflicting with JBoss. compare jars in jboss lib and you applications' jar files.

Thanks,
Priya
 
jQuery in Action, 2nd edition
 
subject: web apps throw exception in jboss,run in tomcat
 
Similar Threads
JSP error in Jboss
Struts problem using JBoss 4.0.0
Problem in jsp (Struts tags)
errors while using html:form tag
cewolf problem in jboss