0 Replies Latest reply on Jan 25, 2006 5:57 PM by andy malycky

    having a problem with the deploy.service.archive task

    andy malycky Newbie

      I am trying (with a teethgrinding lack of success) to get a new jBPM SAR deployed on my local jboss instance

      - downloaded the 3.0.2 quickstart bundle

      - So if I understand the architecture correctly I have a SAR deployed (with the core jBPM lib) and a jBPM webapp that will use the SAR when using the jbpm session to create process instances, etc.

      - I want to use Oracle, used the jBPM-db tools to generate the DDL scripts, they run fine manually, test scripts executed fine, tables are now there

      - executed "build.service.archive" after changing the properties to the Oracle equivalents in jbpm\src\config.files\hibernate.cfg.xml (commented out the HyperDB stuff)

      - the generated jbpm\build\jbpm.sar.dir\jbpm.sar.cfg.jar now contains the hibernate cfg as well, and jbpm.hibernate.cfg.xml in the same archive has the oracle stuff too

      try to deploy using "deploy.service.archive", get an error saying the mbean already exists, run "undeploy.service.archive", undeployresult.html claims success, but will still not let me do the deploy (same reason)

      15:49:19,898 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss/jb
      pm/build/jbpm.sar
      org.jboss.deployment.DeploymentException: Trying to install an already registere
      d mbean: jboss.jbpm:name=DefaultJbpm,service=JbpmService
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:70)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
      tor.java:431)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
      :153)
      at org.jboss.system.ServiceController.install(ServiceController.java:215
      )
      at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:232)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at org.jboss.deployment.MainDeployer.redeploy(MainDeployer.java:544)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:243)
      at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOpByName(HtmlAdap
      torServlet.java:272)
      at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdap
      torServlet.java:87)
      at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServle
      t.java:62)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:159)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
      at java.lang.Thread.run(Thread.java:534)
      ... 33 more

      Not sure why this is failing BUT, I stop the server, copy the jbpm.sar.cfg.jar to my \server\jbpm\deploy\jbpm.sar dir (overwrite the old one), and restart

      Am I completely off my nut to expect that the jbpm in the SAR will now use the config info in the sar.cfg.jar file to connect to Oracle now???

      I see no connections to oracle in the start up log and I use the WebApp to make a few instances, etc. and I see nothing the the oracle tables.

      I know when I get this working I'll kick myself for some stupid thing, but right now I'm at a loss...