Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NO SUCH METHOD ERROR

 
Niroopa Sunkara
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic