2 Replies Latest reply on May 30, 2009 4:58 PM by mambo

    Can't run examples or how to unregister MBean in JBoss

    mambo

      Hello,


      I tried to deploy seam examples to JBoss, but he answered with following stacktrace:



      17:12:15,783 ERROR [MainDeployer] Could not create deployment: file:/C:/Programme/jboss-4.0.4.GA/server/default/tmp/deploy/tmp55634jboss-seam-booking.ear-contents/jboss-seam-booking.jar-contents/booking-ds.xml
      org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=bookingDatasource
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
      .......




      I have this problem with Seam 2.1.1-GA and JBoss-4.2.3.GA, also i tried not deploy jboss-seam-booking-ds.xml, but then i getting this error:



      org.jboss.deployment.DeploymentException: create operation failed for package fi
      le:/C:/coding/java/jboss-4.2.3.GA/server/default/tmp/deploy/tmp51826jboss-seam-b
      ooking.ear-contents/jboss-seam-booking.jar-contents/jboss-seam-booking-ds.xml; -
       nested throwable: (javax.management.InstanceNotFoundException: persistence.unit
      s:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase
       is not registered.)