Announcement Announcement Module
Collapse
No announcement yet.
EJB echoService Example Problems Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EJB echoService Example Problems

    Hi

    I am trying to deploy the echoService (Pro Spring) example in my Jboss-4.0.2. This is my first time with Spring and EJBs. When I try to use the client (the servlet that obtains de bean) I am getting the followings errors:

    13:54:23,196 INFO [DefaultListableBeanFactory] Creating shared instance of singleton bean 'echoService'
    13:54:23,278 INFO [LocalStatelessSessionProxyFactoryBean] Located object with JNDI name [java:comp/env/ejb/echoService]: value=[ejb/echoServiceHome]
    13:54:23,382 INFO [CollectionFactory] Using JDK 1.4 collections
    13:54:23,474 ERROR [[ejb]] Servlet.service() for servlet ejb threw exception
    java.lang.ClassCastException
    at com.apress.prospring.ch13.ejbtest.EjbTestServlet.d oStatelessExample(Unknown Source)
    at com.apress.prospring.ch13.ejbtest.EjbTestServlet.d oGet(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:697)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve .invoke(CustomPrincipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:153)
    at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:552)


    Any ideas?

    Thanks a lot.
Working...
X