This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JBoss and the fly likes NO SUCH METHOD ERROR Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "NO SUCH METHOD ERROR" Watch "NO SUCH METHOD ERROR" New topic
Author

NO SUCH METHOD ERROR

Niroopa Sunkara
Greenhorn

Joined: Apr 27, 2012
Posts: 3
Hai.. m new to Jboss

m trying to deploy a WAR file in jbosss6.0 with DB2 as back end..

initially i was getting the below exception during deployment.

Exception: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrapperDataSource cannot be cast to javax.sql.DataSource

then, by reading the previous posts, i have moved one of the jar file(j2ee.jar) from WEB-INF/lib to server/default/lib/..

Nw m getting the below error..
ERROR [org.apache.catalina.connector.CoyoteAdapter] (http-127.0.0.1-8080-1) An exception or error occurred in the container during the request processing: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getEffectiveSessionTrackingModes()Ljava/util/Set;
at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:567)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:359)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]



so, please could anyone help me out..
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

Get rid of the j2ee.jar file. JBoss already provides that functionality. (Apparently you are using an older version of j2ee.jar which is missing the method in question.)


JBoss In Action
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: NO SUCH METHOD ERROR
 
Similar Threads
Tomcat 7 + cookies
Unable to find java compiler for compiling JSP
new to JSF- getting error
Jboss Exception
Error loading WebappClassLoader delegate: false