File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes NO SUCH METHOD ERROR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
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: 5836
    
    7

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
 
GeeCON Prague 2014
 
subject: NO SUCH METHOD ERROR