Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help needed for EJB3 Entity bean deployment in jboss

 
satabdi das
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Recently I have started preparing for SCBCD 1.5. i know ejb2 but don't have much knowledge on ejb3.

I am getting a classcast exception when ever I try to add a new book using my ejb3 entitybean 3. I have some idea about this. this is some classloader problem in jboss. it is using some classloader for jar file and some other for ear file. But I don't know how to fix this for ejb3. Please help me in this.

The exception I am getting is,

14:44:19,689 ERROR [STDERR] java.lang.ClassCastException: $Proxy120 cannot be cast to com.honeywell.ejb.entity.bookEjb3.BookCatalogInterface
14:44:19,689 ERROR [STDERR] at com.honeywell.ejbClient.ControllerClient.addBook(ControllerClient.java:381)
14:44:19,689 ERROR [STDERR] at com.honeywell.ui.ControllerServlet.getDispatchPage(ControllerServlet.java:596)
14:44:19,721 ERROR [STDERR] at com.honeywell.ui.ControllerServlet.doPost(ControllerServlet.java:237)
14:44:19,721 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
14:44:19,721 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
14:44:19,721 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
14:44:19,721 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
14:44:19,721 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
14:44:19,721 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
14:44:19,721 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
14:44:19,721 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
14:44:19,721 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
14:44:19,721 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
14:44:19,721 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)

Regards,
Satabdi
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satabdi,

Kindly look through the recent threads on this forum. A very similar issue has been addressed recently.

Best regards,
Reza
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic