File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Help needed for EJB3 Entity bean deployment in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Help needed for EJB3 Entity bean deployment in jboss" Watch "Help needed for EJB3 Entity bean deployment in jboss" New topic
Author

Help needed for EJB3 Entity bean deployment in jboss

satabdi das
Greenhorn

Joined: Jul 17, 2007
Posts: 28
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

Joined: Feb 01, 2005
Posts: 580
    
    5
Satabdi,

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

Best regards,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help needed for EJB3 Entity bean deployment in jboss
 
Similar Threads
how to make java database connectivity with oracle 10g on windows vista operating system.
Passing List from Servlet to jsp ? - value of list becomes NULL
java.lang.IllegalStateException: Cannot forward after response has been committed error
I am getting java.lang.LinkageError: loader constraint violation:
javax.naming.CannotProceedException; remaining name