• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

web apps throw exception in jboss,run in tomcat

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok , my problem is solved.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But why don't you specify how your problem was solved ?
 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi How u solved ur probelm?
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know the solution??

I'm desperate...

Thanks..
 
Vitor Isaia
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic