1 Reply Latest reply on Jul 11, 2005 2:42 PM by Chris Rauschuber

    Exception in deployment of ejb3 tutorial on AS 4.0.3RC1

    Chris Rauschuber Newbie

      I'm trying to deploy the stateless tutorial from EJB3 Beta 1(jboss-EJB-3.0_Beta/docs/tutorial/stateless), but I get the following:

      10:03:36,372 INFO [JaccHelper] Initialising JACC Context for deployment: tutorial.ejb3
      10:03:36,405 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=org.jboss.tutorial.stateless.bean.CalculatorBean, class=org.jboss.tutorial.stateless.bean.CalculatorBean, type=STATELESS
      10:03:36,483 INFO [JaccHelper] org.jboss.tutorial.stateless.bean.CalculatorBean has no @SecurityDomain - skipping JACC configuration
      10:03:36,493 INFO [JaccHelper] JACC Policy Configuration for deployment has been put in service
      10:03:36,494 INFO [Ejb3Module] EJB3 deployment time took: 122
      10:03:36,558 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=org.jboss.tutorial.stateless.bean.CalculatorBean
      java.lang.ClassCastException: org.jboss.ejb3.stateless.StatelessContainer
       at org.jboss.naming.Util.createSubcontext(Util.java:52)
       at org.jboss.naming.Util.createSubcontext(Util.java:35)
       at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:57)
       at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:64)
       at org.jboss.ejb3.stateless.StatelessManager.startService(StatelessManager.java:79)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:267)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:217)
      


      This is on JBoss 4.0.3RC1 installed with the installer and the ejb3 option selected. I verified that the ejb3.deployer folder is in deploy. I built the tutorial with the ant script supplied, only changing the server config from all->default(what I specified in the installer).


      Thanks,
      Chris