[Resolved] Bonita and Jboss

edouard.lafon's picture
Post submitted by edouard.lafon Thu, 02/04/2010 - 16:54

Hi

i am trying to configure Bonita to run with Jboss.

I would like to have on one machine the runtime environment and on another one the bonita application.



I jumped from post to post but i didn't get which step should be done :(



So i downloaded the latest version.

I copied all libs to the Jboss lib folder

I copied all conf files to the conf folder of jboss



What's next ? I saw that i need to configure some properties files on the server but which one exactly and with which information ?





thx for your help.

Comments

Submitted by charles.souillard Thu, 02/04/2010 - 17:05
Submitted by edouard.lafon Thu, 02/04/2010 - 17:22

thx but this for configurating the client. I am trying to configure the server.



I also copied to the deploy folder of Jboss the folder ear\ejb3 from bonita.

I launched the server and i get the error:


  1. <br>
  2. DEPLOYMENTS IN ERROR:<br>
  3. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=bamAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee<br>
  4. :jar=ejb-jar.xml,name=bamAPIBean,service=EJB3' **<br>
  5. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=queryRuntimeAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'j<br>
  6. boss.j2ee:jar=ejb-jar.xml,name=queryRuntimeAPIBean,service=EJB3' **<br>
  7. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=webAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee<br>
  8. :jar=ejb-jar.xml,name=webAPIBean,service=EJB3' **<br>
  9. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=identityAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss<br>
  10. .j2ee:jar=ejb-jar.xml,name=identityAPIBean,service=EJB3' **<br>
  11. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=runtimeAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.<br>
  12. j2ee:jar=ejb-jar.xml,name=runtimeAPIBean,service=EJB3' **<br>
  13. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=queryDefinitionAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on<br>
  14. 'jboss.j2ee:jar=ejb-jar.xml,name=queryDefinitionAPIBean,service=EJB3' **<br>
  15. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=commandAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.<br>
  16. j2ee:jar=ejb-jar.xml,name=commandAPIBean,service=EJB3' **<br>
  17. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=managementAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jbo<br>
  18. ss.j2ee:jar=ejb-jar.xml,name=managementAPIBean,service=EJB3' **<br>





Any clue ? :)



thx

Submitted by haschibaschi Fri, 02/05/2010 - 16:21

Perhaps you bring it up with the howto for v4:

http://www.bonitasoft.org/forum/viewtopic.php?id=63



I didn't have already the time to try it with v5.



When you were successfull please make a note at the end of the howto.

Submitted by edouard.lafon Mon, 02/08/2010 - 10:56

Hi all



Here are the steps i have done



1) installed the database using this post and using the default configuration of hibernate-core.properties and hibernate-history.properties

http://www.bonitasoft.org/forum/viewtopic.php?id=2249



2) generated ejb3 folder using the command "ant ear.ejb3"



3) copied the generated jars from \runtime\lib to \server\default\lib



4) Runned bonita and exported the "Buy a Mini" process



5) copied conf files from \conf to \server\default\conf



6) copied war files from \wars to \server\default\deploy



7) set environments variables

  1. <br>
  2. BONITA_OPTS = -Dorg.ow2.bonita.environment=%JBOSS_HOME%\server\default\conf\bonita-environment.xml;-Dorg.ow2.bonita.api-type=EJB3<br>
  3. LOG_OPTS = -Djava.util.logging.config.file=%JBOSS_HOME%\server\default\conf\logging.properties<br>
  4. SECURITY_OPTS = -Djava.security.auth.login.config=%JBOSS_HOME%\server\default\conf\jaas-standard.cfg<br>
  5. JAVA_OPTS = %LOG_OPTS% %SECURITY_OPTS% %BONITA_OPTS% -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true<br>





8) Runned jboss and get the next error message


  1. <br>
  2. <br>
  3. DEPLOYMENTS MISSING DEPENDENCIES:<br>
  4. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=bamAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  5. Dependency "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=bamAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")<br>
  6. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=commandAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  7. Dependency "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=commandAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")<br>
  8. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=identityAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  9. Dependency "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=identityAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")<br>
  10. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=managementAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  11. Dependency "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=managementAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")<br>
  12. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=queryDefinitionAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  13. Dependency "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=queryDefinitionAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")<br>
  14. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=queryRuntimeAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  15. Dependency "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=queryRuntimeAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")<br>
  16. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=runtimeAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  17. Dependency "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=runtimeAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")<br>
  18. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=webAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  19. Dependency "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=webAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")<br>
  20. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=bamAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  21. Dependency "jboss.j2ee:jar=ejb-jar.xml,name=bamAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=bamAPIBean,service=EJB3' **")<br>
  22. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=commandAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  23. Dependency "jboss.j2ee:jar=ejb-jar.xml,name=commandAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=commandAPIBean,service=EJB3' **")<br>
  24. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=identityAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  25. Dependency "jboss.j2ee:jar=ejb-jar.xml,name=identityAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=identityAPIBean,service=EJB3' **")<br>
  26. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=managementAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  27. Dependency "jboss.j2ee:jar=ejb-jar.xml,name=managementAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=managementAPIBean,service=EJB3' **")<br>
  28. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=queryDefinitionAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  29. Dependency "jboss.j2ee:jar=ejb-jar.xml,name=queryDefinitionAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=queryDefinitionAPIBean,service=EJB3' **")<br>
  30. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=queryRuntimeAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  31. Dependency "jboss.j2ee:jar=ejb-jar.xml,name=queryRuntimeAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=queryRuntimeAPIBean,service=EJB3' **")<br>
  32. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=runtimeAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  33. Dependency "jboss.j2ee:jar=ejb-jar.xml,name=runtimeAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=runtimeAPIBean,service=EJB3' **")<br>
  34. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=webAPIBean,service=EJB3_endpoint" is missing the following dependencies:<br>
  35. Dependency "jboss.j2ee:jar=ejb-jar.xml,name=webAPIBean,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=webAPIBean,service=EJB3' **")<br>
  36. <br>
  37. DEPLOYMENTS IN ERROR:<br>
  38. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=commandAPIBean,service=EJB3" is in error due to the following reason(s): javax.naming.NameAlreadyBoundException: commandAPI, **ERROR**<br>
  39. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=managementAPIBean,service=EJB3" is in error due to the following reason(s): javax.naming.NameAlreadyBoundException: managementAPI, **ERROR**<br>
  40. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=queryRuntimeAPIBean,service=EJB3" is in error due to the following reason(s): javax.naming.NameAlreadyBoundException: queryRuntimeAPI, **ERROR**<br>
  41. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=managementAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=managementAPIBean,service=EJB3' **<br>
  42. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=webAPIBean,service=EJB3" is in error due to the following reason(s): javax.naming.NameAlreadyBoundException: webAPI, **ERROR**<br>
  43. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=bamAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=bamAPIBean,service=EJB3' **<br>
  44. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=queryRuntimeAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=queryRuntimeAPIBean,service=EJB3' **<br>
  45. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=queryDefinitionAPIBean,service=EJB3" is in error due to the following reason(s): javax.naming.NameAlreadyBoundException: queryDefinitionAPI, **ERROR**<br>
  46. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=webAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=webAPIBean,service=EJB3' **<br>
  47. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=identityAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=identityAPIBean,service=EJB3' **<br>
  48. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=identityAPIBean,service=EJB3" is in error due to the following reason(s): javax.naming.NameAlreadyBoundException: identityAPI, **ERROR**<br>
  49. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=bamAPIBean,service=EJB3" is in error due to the following reason(s): javax.naming.NameAlreadyBoundException: bamAPI, **ERROR**<br>
  50. Deployment "jboss.j2ee:ear=bonita.ear,jar=bonita-ejbjar.jar,name=runtimeAPIBean,service=EJB3" is in error due to the following reason(s): javax.naming.NameAlreadyBoundException: runtimeAPI, **ERROR**<br>
  51. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=runtimeAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=runtimeAPIBean,service=EJB3' **<br>
  52. Deployment "vfsfile:/C:/aze/jboss-5.1.0.GA/server/default/deploy/ejb3/ejb-jar.xml" is in error due to the following reason(s): java.lang.IllegalStateException: jboss.j2ee:jar=ejb-jar.xml,name=bamAPIBean,service=EJB3_endpoint is already installed.<br>
  53. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=commandAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=commandAPIBean,service=EJB3' **<br>
  54. Deployment "jboss.j2ee:jar=ejb-jar.xml,name=queryDefinitionAPIBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:jar=ejb-jar.xml,name=queryDefinitionAPIBean,service=EJB3' **<br>
  55. <br>
  56. 10:42:31,953 INFO [Http11Protocol]+¢marrage de Coyote HTTP/1.1 sur http-127.0.0.1-8080<br>
  57. 10:42:32,140 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009<br>
  58. 10:42:32,156 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 5m:18s:297ms<br>





Can someone help me plz ?



thx

Submitted by rlg Mon, 02/08/2010 - 14:34

Hi,



the warning messages are about JAXWSDeployerHookPreJSE which seems to be the deployer for your webservices. I guess these warnings are not usefull for the Bonita engine deployment.



do you succeed to access to your engine? does it work?

Submitted by rlg Mon, 02/08/2010 - 11:08

Hi,


javax.naming.NameAlreadyBoundException: commandAPI





it seems that you define twice the bonita bean in your jndi. Please verify your jndi configuration.

Submitted by edouard.lafon Mon, 02/08/2010 - 14:05

ok i updated



3) copied bonita-conf.jar from \runtime\lib to \server\default\lib



and add a new one



But now i have the next warning messages :

  1. <br>
  2. 13:45:05,187 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'<br>
  3. 13:45:20,062 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.security.server.CredentialsEncryptionServlet<br>
  4. 13:45:20,125 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.forms.server.FormsServlet<br>
  5. 13:45:20,140 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.servlet.FileUploadServlet<br>
  6. 13:45:20,140 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.servlet.AttachmentDownloadServlet<br>
  7. 13:45:20,156 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.security.server.LoginServlet<br>
  8. 13:45:34,218 INFO [TomcatDeployment] deploy, ctxPath=/Buy_a_MINI--3.0<br>
  9. 13:45:35,234 INFO [TomcatDeployment] deploy, ctxPath=/<br>
  10. 13:45:35,328 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.security.server.CredentialsEncryptionServlet<br>
  11. 13:45:35,687 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.forms.server.FormsServlet<br>
  12. 13:45:35,781 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.servlet.FileUploadServlet<br>
  13. 13:45:35,781 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.servlet.AttachmentDownloadServlet<br>
  14. 13:45:35,781 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.security.server.LoginServlet<br>
  15. 13:45:53,421 INFO [TomcatDeployment] deploy, ctxPath=/bonita-app<br>
  16. 13:45:53,625 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.security.server.CredentialsEncryptionServlet<br>
  17. 13:45:53,671 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.server.bam.birt.BonitaWebReport<br>
  18. 13:45:53,718 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.security.server.LoginServlet<br>
  19. 13:45:53,750 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.server.LoginServlet<br>
  20. 13:45:53,843 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.server.processes.ProcessServlet<br>
  21. 13:45:53,859 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.forms.server.FormsServlet<br>
  22. 13:45:53,906 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.servlet.FileUploadServlet<br>
  23. 13:45:54,031 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.servlet.AttachmentDownloadServlet<br>
  24. 13:45:54,046 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.server.labels.LabelServlet<br>
  25. 13:45:54,078 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.server.cases.CaseServlet<br>
  26. 13:45:54,171 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.server.steps.StepServlet<br>
  27. 13:45:54,718 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.server.users.UserServlet<br>
  28. 13:45:54,921 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.server.identity.IdentityServlet<br>
  29. 13:45:54,937 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.bonitasoft.console.server.bam.ReportingServlet<br>
  30. 13:48:05,546 INFO [TomcatDeployment] deploy, ctxPath=/bonita<br>
  31. 13:48:12,343 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console<br>
  32. 13:48:13,687 INFO [Http11Protocol]+¢marrage de Coyote HTTP/1.1 sur http-127.0.0.1-8080<br>
  33. 13:48:14,000 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009<br>
  34. 13:48:14,093 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 9m:33s:453ms<br>





Do you know why ?



thx

Submitted by edouard.lafon Mon, 02/08/2010 - 17:41
Submitted by rlg Mon, 02/08/2010 - 19:05

Great, I will switch this thread in resolved, if you have another issue, please open a new thread ;)