[jBPM] - ERROR deploying a jBPM-Web-Application
by Ouadi BEL
Ouadi BEL [https://community.jboss.org/people/ouadi_dev] created the discussion
"ERROR deploying a jBPM-Web-Application"
To view the discussion, visit: https://community.jboss.org/message/800926#800926
--------------------------------------------------------------
Hi all,
When I want to start JBoss AS 7.1.1 for deploying a web application, I have these ERRORS, and I don't know what's the problem !
This is the error message :
=========================================================================
00:38:09,470 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
00:38:09,763 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
00:38:09,843 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
00:38:11,268 INFO [org.xnio] XNIO Version 3.0.3.GA
00:38:11,288 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
00:38:11,307 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
00:38:11,325 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
00:38:11,374 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
00:38:11,389 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
00:38:11,443 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
00:38:11,508 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
00:38:11,572 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
00:38:11,573 INFO [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
00:38:11,607 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
00:38:11,658 INFO [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
00:38:11,693 INFO [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final
00:38:11,755 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
00:38:11,760 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
00:38:11,778 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
00:38:11,840 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
00:38:12,190 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA
00:38:12,308 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
00:38:12,983 INFO [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:9999
00:38:12,984 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:4447
00:38:13,036 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory /home/ouadi/programing_tools/servres/JBoss/jboss-as-7.1.1.Final/standalone/deployments
00:38:13,204 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:/jBPM5_WebApp_Example_DS]
00:38:13,212 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
00:38:13,322 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "WebApplication2.war"
00:38:15,668 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/content/WebApplication2.war/WEB-INF/lib/mail-1.4.jar" does not point to a valid jar for a Class-Path reference.
00:38:15,810 INFO [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa
00:38:15,813 INFO [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for org.jbpm.task
00:38:15,828 INFO [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa
00:38:16,096 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."WebApplication2.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."WebApplication2.war".INSTALL: Failed to process phase INSTALL of deployment "WebApplication2.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011446: Failed to add persistence unit service for org.jbpm.persistence.jpa
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:383)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.persistenceunit."WebApplication2.war#org.jbpm.persistence.jpa" is already registered
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:374)
... 9 more
00:38:16,140 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "WebApplication2.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WebApplication2.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WebApplication2.war\".INSTALL: Failed to process phase INSTALL of deployment \"WebApplication2.war\""}}
00:38:16,143 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."WebApplication2.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."WebApplication2.war".INSTALL: Failed to process phase INSTALL of deployment "WebApplication2.war"
00:38:16,147 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WebApplication2.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WebApplication2.war\".INSTALL: Failed to process phase INSTALL of deployment \"WebApplication2.war\""}}}}
00:38:16,210 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment WebApplication2.war in 64ms
And this is my "persistence.xml" file :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/persistence">
<persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/jBPM5_WebApp_Example_DS</jta-data-source>
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
<class>org.jbpm.process.audit.ProcessInstanceLog</class>
<class>org.jbpm.process.audit.NodeInstanceLog</class>
<class>org.jbpm.process.audit.VariableInstanceLog</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>
<class>org.jbpm.task.Task</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.I18NText</class>
<class>org.jbpm.task.SubTasksStrategy</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Escalation</class>
<class>org.jbpm.task.Reassignment</class>
<class>org.jbpm.task.Notification</class>
<class>org.jbpm.task.BooleanExpression</class>
<class>org.jbpm.task.User</class>
<class>org.jbpm.task.PeopleAssignments</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example" />
<property name="hibernate.connection.username" value="root"/>
<property name="hibernate.connection.password" value="pass"/>
<property name="hibernate.connection.autocommit" value="true"/>
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="false" />
<!--
<property name="hibernate.transaction.manager_lookup_class" value=" org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/>
-->
</properties>
</persistence-unit>
<persistence-unit name="org.jbpm.task">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.Content</class>
<class>org.jbpm.task.BooleanExpression</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Delegation</class>
<class>org.jbpm.task.Escalation</class>
<class>org.jbpm.task.Group</class>
<class>org.jbpm.task.I18NText</class>
<class>org.jbpm.task.Notification</class>
<class>org.jbpm.task.EmailNotification</class>
<class>org.jbpm.task.EmailNotificationHeader</class>
<class>org.jbpm.task.PeopleAssignments</class>
<class>org.jbpm.task.Reassignment</class>
<class>org.jbpm.task.Status</class>
<class>org.jbpm.task.Task</class>
<class>org.jbpm.task.TaskData</class>
<class>org.jbpm.task.SubTasksStrategy</class>
<class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>
<class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>
<class>org.jbpm.task.User</class>
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example" />
<property name="hibernate.connection.username" value="root"/>
<property name="hibernate.connection.password" value="pass"/>
<property name="hibernate.connection.autocommit" value="true"/>
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="false" />
<!--
<property name="hibernate.transaction.manager_lookup_class" value=" org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/>
-->
</properties>
</persistence-unit>
</persistence>
Can anyone help me please.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/800926#800926]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
add Maven repositories to JBoss standalone
by Julio Carlos Barrera Juez
Hi.
I'm working with JBoss AS 7.1.1.Final and I want to add Maven repositories
to an standalone instance. I'm adding capabilities to standalone.xml file
by hand, in an OSGi subsystem to fulfil my project dependencies. Some of
these capabilities are not in JBoss Maven repositories. How can I add more
repositories to resolve my project dependencies? It is a little bit tedious
adding the dependencies by hand, one by one, in the standalone.xml file. Is
there a better way to achieve a dependency tree in a more automatic way?
Thank you!
11 years, 2 months
[jBPM] - Some conceptual jBPM5 questions
by Ouadi BEL
Ouadi BEL [https://community.jboss.org/people/ouadi_dev] created the discussion
"Some conceptual jBPM5 questions"
To view the discussion, visit: https://community.jboss.org/message/800780#800780
--------------------------------------------------------------
Hi all jBPM users,
I'm new in jBPM5 and workflow world, I already read the first 7 chapters in "jbpm5-developer-guide" book, but I have some concepts confused in my mind, can anyone explain me please these below questions ?
1. What's the main purpose of those classes
EntityManagerFactory, TaskService, TaskServiceSession ;
2. Which Data Base used to store our specific users and groups informations ?
3. Why we need to store our specific users and groups to this DB, since it's already defined in our process.bpmn file definition ?
4. When we build our Human Task UI in order to provide an Human Task Interaction, it is necessary to run the jbpm-gwt-console-server- 5.4.0.Final-EE6.war component in Jboss server ? Or just the jars library provided by jBPM5 suffice in order to managing our workflow life cycle without running and using jbpm-gwt-console-server-5.4.0.Final-EE6.war component ?
5. When we build a binary representation of our process.bpmn file definition using KnowledgeBuilder and KnowledgeBase classes, our application can self-managing the all workflow life cycle without running and using jbpm-gwt- console-server-5.4.0.Final-EE6.war component in Jboss server ?
Cheers,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/800780#800780]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
[Javassist] - Javaassist and Java Web Start. Its posible?
by Telcontar Thorongil
Telcontar Thorongil [https://community.jboss.org/people/telcontarvi] created the discussion
"Javaassist and Java Web Start. Its posible?"
To view the discussion, visit: https://community.jboss.org/message/799924#799924
--------------------------------------------------------------
Hi, i'm triying to deploy a desktop application with one class modified at runtime by javaassist. In my computer it's working fine, but when i deploy and start it by Java Web Start i'm facing several problems, last of them i can't resolve:
- First: ClassPool didnt found the class to modify, it was fixed by cp.insertClassPath(new ClassClassPath(XXXXX.class));
- Second: All .jar of an Java Web Start application must be signed by one and only one certificate, but when javaassist modify the class at runtime i supose the sign it's gone or it's invalid, so that this exception is launched:
java.lang.SecurityException: class "com.sch.coberturas.db.CobDao"'s signer information does not match signer information of other classes in the same package
Solved by isolating com.sch.coberturas.db.CobDao in a package with only this class in it
- Third: I suposse that Java Web Start detects that the modified class is not signed, or it's sign it's not valid and revokes permissions to the application so it can't do things like connecting to the database or to write files, making the app useless.
How can i solve this third problem?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799924#799924]
Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months