hi
sorry for long delay
I am interesting if there is any workaround for that bug in jboss 7.1.1
I installed WildFly, changed standalone.xml. Now server won't start.
15:40:28,083 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 28) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("jdbc-driver" => "mysql")
]) - failure description: "JBAS010441: Failed to load module for driver [com.mysql]"
15:40:28,097 INFO [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service
15:40:28,099 INFO [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mail/Default]
15:40:28,197 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
15:40:28,198 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-11) JBAS010417: Started Driver service with driver-name = h2
15:40:28,337 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017527: Creating file handler for path D:\arctur\wildfly-8.0.0.Beta2-SNAPSHOT/welcome-content
15:40:28,404 INFO [org.wildfly.extension.undertow] (MSC service thread 1-14) JBAS017525: Started server default-server.
15:40:28,415 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017531: Host domene starting
15:40:28,416 INFO [org.wildfly.extension.undertow] (MSC service thread 1-12) JBAS017531: Host default-host starting
15:40:28,472 INFO [org.wildfly.extension.undertow] (MSC service thread 1-14) JBAS017519: Undertow HTTP listener default listening on localhost/127.0.0.1:8080
15:40:28,706 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-10) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
15:40:28,755 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "domene-ear.ear" (runtime-name: "domene-ear.ear")
15:40:28,759 INFO [org.jboss.as.remoting] (MSC service thread 1-11) JBAS017100: Listening on 127.0.0.1:9999
15:40:28,773 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory D:\arctur\wildfly-8.0.0.Beta2-SNAPSHOT\standalone\deployments
15:40:28,807 INFO [org.jboss.ws.common.management] (MSC service thread 1-14) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.2.Final
15:40:29,128 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "null" (runtime-name: "domene-ejb-1.0-SNAPSHOT.jar")
15:40:29,128 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "null" (runtime-name: "domene-web-1.0-SNAPSHOT.war")
15:40:29,691 INFO [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for domainDS
15:40:29,691 INFO [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for services
15:40:29,757 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC000001: Failed to start service jboss.deployment.subunit."domene-ear.ear"."domene-ejb-1.0-SNAPSHOT.jar".DEPENDENCIES: org.jboss.msc.service.StartException in service jboss.deployment.subunit."domene-ear.ear"."domene-ejb-1.0-SNAPSHOT.jar".DEPENDENCIES: JBAS018733: Failed to process phase DEPENDENCIES of subdeployment "domene-ejb-1.0-SNAPSHOT.jar" of deployment "domene-ear.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]
Caused by: java.lang.IllegalArgumentException: JBAS011470: Persistence unitName was not specified and there are 2 persistence unit definitions in application deployment subdeployment "domene-ejb-1.0-SNAPSHOT.jar" of deployment "domene-ear.ear". Either change the application deployment to have only one persistence unit definition or specify the unitName for each reference to a persistence unit.
at org.jboss.as.jpa.container.PersistenceUnitSearch.ambiguousPUError(PersistenceUnitSearch.java:187)
at org.jboss.as.jpa.container.PersistenceUnitSearch.findWithinDeployment(PersistenceUnitSearch.java:153)
at org.jboss.as.jpa.container.PersistenceUnitSearch.findPersistenceUnitSupplier(PersistenceUnitSearch.java:75)
at org.jboss.as.jpa.container.PersistenceUnitSearch.resolvePersistenceUnitSupplier(PersistenceUnitSearch.java:64)
at org.jboss.as.jpa.processor.JPAAnnotationProcessor.getPersistenceUnit(JPAAnnotationProcessor.java:369)
at org.jboss.as.jpa.processor.JPAAnnotationProcessor.getBindingSource(JPAAnnotationProcessor.java:293)
at org.jboss.as.jpa.processor.JPAAnnotationProcessor.processField(JPAAnnotationProcessor.java:171)
at org.jboss.as.jpa.processor.JPAAnnotationProcessor.processPersistenceAnnotations(JPAAnnotationProcessor.java:138)
at org.jboss.as.jpa.processor.JPAAnnotationProcessor.deploy(JPAAnnotationProcessor.java:100)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
... 5 more
15:40:29,762 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "domene-ear.ear")]) - failure description: {
"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"domene-ear.ear\".\"domene-ejb-1.0-SNAPSHOT.jar\".DEPENDENCIES" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"domene-ear.ear\".\"domene-ejb-1.0-SNAPSHOT.jar\".DEPENDENCIES: JBAS018733: Failed to process phase DEPENDENCIES of subdeployment \"domene-ejb-1.0-SNAPSHOT.jar\" of deployment \"domene-ear.ear\"
Caused by: java.lang.IllegalArgumentException: JBAS011470: Persistence unitName was not specified and there are 2 persistence unit definitions in application deployment subdeployment \"domene-ejb-1.0-SNAPSHOT.jar\" of deployment \"domene-ear.ear\". Either change the application deployment to have only one persistence unit definition or specify the unitName for each reference to a persistence unit."},
"JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {
"Services that were unable to start:" => [
"jboss.deployment.subunit.\"domene-ear.ear\".\"domene-web-1.0-SNAPSHOT.war\".CONFIGURE_MODULE",
"jboss.deployment.unit.\"domene-ear.ear\".CONFIGURE_MODULE"
],
"Services that may be the cause:" => ["jboss.jdbc-driver.mysql"]
}
}
15:40:29,764 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "MySqlDS")
]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.data-source.java:jboss/datasources/MysqlDS is missing [jboss.jdbc-driver.mysql]",
"jboss.driver-demander.java:jboss/datasources/MysqlDS is missing [jboss.jdbc-driver.mysql]"
]}
15:40:29,765 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "domeneDS")
]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.data-source.java:jboss/datasources/domeneDS is missing [jboss.jdbc-driver.mysql]",
"jboss.driver-demander.java:jboss/datasources/domeneDS is missing [jboss.jdbc-driver.mysql]"
]}
15:40:29,767 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "MySqlDS")
]) - failure description: {
"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.data-source.java:jboss/datasources/MysqlDS is missing [jboss.jdbc-driver.mysql]",
"jboss.driver-demander.java:jboss/datasources/MysqlDS is missing [jboss.jdbc-driver.mysql]"
],
"JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {
"Services that were unable to start:" => [
"jboss.data-source.reference-factory.MySqlDS",
"jboss.naming.context.java.jboss.datasources.MysqlDS"
],
"Services that may be the cause:" => ["jboss.jdbc-driver.mysql"]
}
}
15:40:29,768 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "domeneDS")
]) - failure description: {
"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.data-source.java:jboss/datasources/domeneDS is missing [jboss.jdbc-driver.mysql]",
"jboss.driver-demander.java:jboss/datasources/domeneDS is missing [jboss.jdbc-driver.mysql]"
],
"JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {
"Services that were unable to start:" => [
"jboss.data-source.reference-factory.domeneDS",
"jboss.naming.context.java.jboss.datasources.domeneDS"
],
"Services that may be the cause:" => ["jboss.jdbc-driver.mysql"]
}
}
15:40:29,799 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "domene-ear.ear" (runtime-name : "domene-ear.ear")
15:40:29,801 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.jdbc-driver.mysql (missing) dependents: [service jboss.data-source.java:jboss/datasources/MysqlDS, service jboss.data-source.java:jboss/datasources/domeneDS, service jboss.driver-demander.java:jboss/datasources/MysqlDS, service jboss.driver-demander.java:jboss/datasources/domeneDS]
JBAS014777: Services which failed to start: service jboss.deployment.subunit."domene-ear.ear"."domene-ejb-1.0-SNAPSHOT.jar".DEPENDENCIES: org.jboss.msc.service.StartException in service jboss.deployment.subunit."domene-ear.ear"."domene-ejb-1.0-SNAPSHOT.jar".DEPENDENCIES: JBAS018733: Failed to process phase DEPENDENCIES of subdeployment "domene-ejb-1.0-SNAPSHOT.jar" of deployment "domene-ear.ear"
15:40:30,028 INFO [org.jboss.as.server.deployment] (MSC service thread 1-12) JBAS015877: Stopped deployment null (runtime-name: domene-ejb-1.0-SNAPSHOT.jar) in 4ms
15:40:30,031 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015877: Stopped deployment null (runtime-name: domene-web-1.0-SNAPSHOT.war) in 7ms
15:40:30,033 INFO [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015877: Stopped deployment domene-ear.ear (runtime-name: domene-ear.ear) in 10ms
15:40:30,334 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
15:40:30,334 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
15:40:30,335 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.0.0.Beta2-SNAPSHOT "WildFly" started (with errors) in 10694ms - Started 188 of 233 services (8 services failed or missing dependencies, 65 services are lazy, passive or on-demand)
15:40:30,458 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "domene-ear.ear" (runtime-name: "domene-ear.ear")
15:40:30,459 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."domene-ear.ear"."domene-ejb-1.0-SNAPSHOT.jar".DEPENDENCIES
15:40:34,821 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found domene-ear.ear in deployment directory. To trigger deployment create a file called domene-ear.ear.dodeploy
Deployment is in ear.
I have two beans.xml
One in ejb/src/main/resources/META_INF
Second in war/src/main/webapp/WEB_INF
I don't have any ejb-jar.xml file