• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss Exception

 
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) to server/default/lib/... nw m getting the below mentioned exception.


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: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wrong forum. I'll move your post.
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An error like this usually means that you included JBoss JAR files in your app. Remove them. If you are not sure which ones to remove, post a list of all the JARs packaged with you app.
 
Niroopa Sunkara
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for the reply Peter Johnson...

two jar files are included in that app..

1) commons httpclient

2) j2ee.jar - it includes javax.sql.*classes..
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove j2ee.jar, JBoss AS already provides that functionality.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic