aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jboss error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss error" Watch "Jboss error" New topic
Author

Jboss error

ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 60
hai,

i am deployed my application in tomcat6.0. it works fine.. but the same application when i am trying to deploying in jboss5.0 its giving the following error...

please help


javax.servlet.ServletException: java.lang.LinkageError: Class javax/servlet/http/HttpServletRequest violates loader constraints
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:257)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause

java.lang.LinkageError: Class javax/servlet/http/HttpServletRequest violates loader constraints
java.lang.Class.getDeclaredMethods0(Native Method)
java.lang.Class.privateGetDeclaredMethods(Unknown Source)
java.lang.Class.getDeclaredMethods(Unknown Source)
org.jboss.injection.InjectionUtil.collapseXmlMethodInjectors(InjectionUtil.java:74)
org.jboss.web.tomcat.service.injection.TomcatInjectionUtils.processDynamicBeanAnnotations(TomcatInjectionUtils.java:59)
org.jboss.web.tomcat.service.TomcatInjectionContainer.processAnnotations(TomcatInjectionContainer.java:407)
org.jboss.web.tomcat.service.TomcatInjectionContainer.processDynamicBeanAnnotations(TomcatInjectionContainer.java:382)
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:274)
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:265)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:145)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10266
    
168

If you are packaging any jar file(s) containing javax.servlet.* classes, then remove those jars from your application packaging. Also, I would recommend that you upgrade to atleast JBoss AS 5.1.0 (if not JBoss AS 6.1.0 or AS7).

[My Blog] [JavaRanch Journal]
ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 60
hai Jaikiran Pai ,


i am deleted javax.servlet.* releted jar files.. but again i got the same error,
 
jQuery in Action, 2nd edition
 
subject: Jboss error