2 Replies Latest reply on Feb 10, 2006 5:20 AM by boerse

    Enable Statistics + error on deploy, about to spring out fro

    boerse

      Hi, appart from the other post, i have another 2 questions:

      1. I would like to enable the statistics, when i do a ant build.deploy.xml create.jbpm.configuration i read, among many other messages:

      [loadidentities] 00:54:47,353 INFO SettingsFactory : Statistics: disabled

      I want to activate the logs of the process (not only the ones of the application) to know average times between states, mean times of processes, etc. Which file has to be modified?

      2 When i deploy websale (lightly modified) with jbpm 3.0.2 on JBoss 4.0.3SP1, everything seems to be going fine, BUT when i do the final:

      ant -f build.deploy.xml start.jboss i receive a loto of errors informing there was an error Trying to install an already existing mbean. Does anybody know how to solve this problem? I've searched and searched in the forum with no success... :( Thanks!

      [startjboss] 01:38:58,245 ERROR [MainDeployer] Could not create deployment: file
      :/C:/Server/jbpm-3.0.2/jbpm-server/server/jbpm/deploy/attrpm-service.xml
      [startjboss] org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss:service=AttributePersistenceService
      [startjboss] at org.jboss.system.ServiceCreator.install(ServiceCreator.java:7
      0)
      [startjboss] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceC
      onfigurator.java:431)
      [startjboss] at org.jboss.system.ServiceConfigurator.install(ServiceConfigura
      tor.java:153)
      [startjboss] at org.jboss.system.ServiceController.install(ServiceController.
      java:215)
      [startjboss] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [startjboss] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [startjboss] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [startjboss] at java.lang.reflect.Method.invoke(Method.java:324)
      [startjboss] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Reflected
      Dispatcher.java:141)
      [startjboss] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      [startjboss] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      [startjboss] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBean
      Invoker.java:245)
      [startjboss] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.ja
      va:644)
      [startjboss] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176
      )


        • 1. Re: Enable Statistics + error on deploy, about to spring out
          boerse

          For 1 i think i found a solution:

          in hibernate.cfg.xml
          change
          true

          if i do an ant -f build.deploy.xml create.jbpm.configuration it seems to inform the statistics are enabled.

          2. Still persists the errors but the application seems to work anyway

          Isn't there any web, tutorial or something where the infos about the configuration and use of jBPM 3 sumarized are to help in the develop of an application, it's (at least for me) really frustrating to be working hours and hours just just to make things work, i don't sincerelly know if i have done any progress in the last 7 days working all day long... i just want to make and deploy a similar application as websale activating the statistics and make it work without errors... jBPM w JBoss seems to be incredible powerful but difficult (for me) to configure. If i get the things to work i promise to post a text with all the steps i've done to reach my target (probably the same as many other developers)... Thanks for your support!

          • 2. Re: Enable Statistics + error on deploy, about to spring out
            boerse

            for those who have the problem with the deploy informing that a mbean is already installed, i give you a solution (but i don't know the reason). Delete (JBoss 4.03SP1) from jboss/server/default/deploy the files marked as problematic and works fine with no errors, where this services are already defined to be loaded, i don't know, but it's something at least...

            ERROR [MainDeployer] Could not create deployment: file:/C:/Server/jbpm-3.0.2/jbpm-server/server/jbpm/deploy/attrpm-service.xml
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss:service=AttributePersistenceService
            ERROR [MainDeployer] Could not create deployment: file:/C:/Server/jbpm-3.0.2/jbpm-server/server/jbpm/deploy/dynclassloader-service.xml
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.rmi:type=RMIClassLoader
            ERROR [MainDeployer] Could not create deployment: file:/C:/Server/jbpm-3.0.2/jbpm-server/server/jbpm/deploy/invokers-service.xml
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss:service=invoker,type=jrmp
            ERROR [MainDeployer] Could not create deployment: file:/C:/Server/jbpm-3.0.2/jbpm-server/server/jbpm/deploy/jdbc-metadata-service.xml
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jdbc:service=metadata
            ERROR [MainDeployer] Could not create deployment: file:/C:/Server/jbpm-3.0.2/jbpm-server/server/jbpm/deploy/jsr77-service.xml
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.management.local:j2eeType=J2EEDomain,name=Manager
            ERROR [MainDeployer] Could not create deployment: file:/C:/Server/jbpm-3.0.2/jbpm-server/server/jbpm/deploy/jta-service.xml
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss:service=XidFactory
            ERROR [MainDeployer] Could not create deployment: file:/C:/Server/jbpm-3.0.2/jbpm-server/server/jbpm/deploy/naming-service.xml
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss:service=Naming
            ERROR [MainDeployer] Could not create deployment: file:/C:/Server/jbpm-3.0.2/jbpm-server/server/jbpm/deploy/security-service.xml
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.security:service=SecurityConfig


            Hope it helps you as it helped me