[ 
https://issues.apache.org/jira/browse/JUDDI-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007440#comment-14007440
 ] 

Daniel Ferreira Castro commented on JUDDI-878:
----------------------------------------------

>From now on I am getting a problem with some dependency that is not present.
This was the problem happening

12:09:48,973 ERROR [org.jboss.as.server.deployment.scanner] 
(DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and 
was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: 
Services with missing/unavailable dependencies" => 
["jboss.persistenceunit.\"juddiv3.war#juddiDatabase\"jboss.naming.context.java.jboss.datasource.juddiv3Missing[jboss.persistenceunit.\"juddiv3.war#juddiDatabase\"jboss.naming.context.java.jboss.datasource.juddiv3]","jboss.naming.context.java.module.juddiv3.juddiv3.env.juddiv3jboss.naming.context.java.jboss.datasource.juddiv3Missing[jboss.naming.context.java.module.juddiv3.juddiv3.env.juddiv3jboss.naming.context.java.jboss.datasource.juddiv3]"]}}}
My next attempt was to check if there is any lib that is not present on my 
openjpa configuration.  So I folowed what is written here. 
https://community.jboss.org/thread/201329

My juddiv3.war.failed has this content

{"JBAS014653: Composite operation failed and was rolled back. Steps that 
failed:" => {"Operation step-2" => {"JBAS014771: Services with 
missing/unavailable dependencies" => 
["jboss.persistenceunit.\"juddiv3.war#juddiDatabase\"jboss.naming.context.java.jboss.datasource.juddiv3Missing[jboss.persistenceunit.\"juddiv3.war#juddiDatabase\"jboss.naming.context.java.jboss.datasource.juddiv3]","jboss.naming.context.java.module.juddiv3.juddiv3.env.juddiv3jboss.naming.context.java.jboss.datasource.juddiv3Missing[jboss.naming.context.java.module.juddiv3.juddiv3.env.juddiv3jboss.naming.context.java.jboss.datasource.juddiv3]"]}}}

And it was the same as before.

Then I thought that could be because there are no other jars, like serp, and I 
put everything inside 
C:\Java\jboss-as-7.1.1.Final\modules\org\apache\openjpa\main like below

23/05/2014  14:41    <DIR>          .
23/05/2014  14:41    <DIR>          ..
22/05/2014  18:14            43.398 asm-3.2.jar
13/05/2010  13:50           232.019 commons-beanutils-1.8.3.jar
20/07/2011  10:05           575.389 commons-collections-3.2.1.jar
05/10/2010  11:51           160.519 commons-dbcp-1.4.jar
24/04/2009  09:48           261.809 commons-lang-2.4.jar
06/01/2009  08:52            38.015 commons-logging-1.0.4.jar
20/07/2011  10:09            96.221 commons-pool-1.5.4.jar
22/02/2010  15:34         2.512.189 derby-10.5.3.0_1.jar
02/02/2009  10:01            32.359 geronimo-jms_1.1_spec-1.1.1.jar
13/05/2010  13:47           120.194 geronimo-jpa_2.0_spec-1.1.jar
02/02/2009  10:01            16.030 geronimo-jta_1.1_spec-1.1.1.jar
13/05/2010  13:50            58.990 geronimo-validation_1.0_spec-1.1.jar
23/05/2014  14:40               877 module.xml
22/05/2014  11:11         4.659.265 openjpa-2.2.1.jar
23/05/2014  10:20         1.419.282 openjpa-jdbc-2.2.1.jar
23/05/2014  14:26               465 openjpa-jdbc-2.2.1.jar.index
23/05/2014  10:19         1.452.412 openjpa-kernel-2.2.1.jar
23/05/2014  14:26               608 openjpa-kernel-2.2.1.jar.index
23/05/2014  10:19           471.287 openjpa-lib-2.2.1.jar
23/05/2014  14:26               589 openjpa-lib-2.2.1.jar.index
23/05/2014  10:19           827.243 openjpa-persistence-2.2.1.jar
23/05/2014  14:26               423 openjpa-persistence-2.2.1.jar.index
23/05/2014  10:18           150.895 openjpa-persistence-jdbc-2.2.1.jar
23/05/2014  14:26               237 openjpa-persistence-jdbc-2.2.1.jar.index
10/09/2010  13:08           280.065 org.apache.bval.bundle-0.2-incubating.jar
20/07/2011  10:05           205.877 serp-1.13.1.jar
23/05/2014  14:34               176 serp-1.13.1.jar.index

But the problem remains the same



> Fix Jboss AS 7.x deployment
> ---------------------------
>
>                 Key: JUDDI-878
>                 URL: https://issues.apache.org/jira/browse/JUDDI-878
>             Project: jUDDI
>          Issue Type: Bug
>          Components: core, documentation, website
>            Reporter: Daniel Ferreira Castro
>            Assignee: Kurt T Stam
>            Priority: Minor
>             Fix For: 3.2.1
>
>         Attachments: 2014-05-23#1231server.log, Install.java, Juddi.png, 
> boot.log, fix.png, git.png, jboss-web.xml, juddiv3 (jboss7).war, 
> libOpenJPA221.png, modules.xml, persistence.xml, server - 20140429.log, 
> server.log, server.log, server.log
>
>
> The online Apache jUDDI Guide specifies at the end of this link (OpenJPA and 
> JBossWS-CXF) 
> http://juddi.apache.org/docs/3.2/juddi-guide/html_single/#_jbossas_7_x_jbosseap_6_x
> says "and in the `modules/system/layers/base/org/jboss/as/jpa/main/module.xml 
> add dependency <module name="org.jboss.as.jpa.openjpa"/>"
> But this folder structure does not exists on jboss-as7 and there is no 
> previous instructions about how to create it and what to put i in.  There are 
> tow previous instrctions to create:
> <jboss>/modules/system/layers/base/org/apache/openjpa/main and
> <jboss>/modules/system/layers/base/org/jboss/as/jpa/openjpa/main
> but not <jboss>/modules/system/layers/base/org/jboss/as/jpa/main/module.xml
> So, when I try to deploy it to Jboss AS 7.1.1 I get an exception
> 11:42:43,356 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: 
> Read persistence.xml for juddiDatabase
> 11:42:43,864 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) 
> MSC00001: Failed to start service 
> jboss.module.service."deployment.juddiv3.war".main: org.jboss.msc.service
> .StartException in service 
> jboss.module.service."deployment.juddiv3.war".main: Failed to load module: 
> deployment.juddiv3.war:main
>         at 
> org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91)
>  [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:1110)
>  [rt.jar:1.7.0_11]
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>  [rt.jar:1.7.0_11]
>         at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
> Caused by: org.jboss.modules.ModuleNotFoundException: Module 
> org.apache.openjpa:main is not found in local module loader @655c8c (roots: 
> c:\Java\jboss-as-7.1.1.Final\modules)
>         at 
> org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126)
>         at 
> org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)
>         at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)
>         at 
> org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)
>         at org.jboss.modules.Module.addPaths(Module.java:841)
>         at org.jboss.modules.Module.link(Module.java:1181)
>         at org.jboss.modules.Module.relinkIfNecessary(Module.java:1207)
>         at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208)
>         at 
> org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70)
>  [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
>         ... 5 more
> 11:42:44,112 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) 
> JBAS015870: Deploy of deployment "juddiv3.war" was rolled back with failure 
> message {"JBAS014671: Failed se
> rvices" => {"jboss.module.service.\"deployment.juddiv3.war\".main" => 
> "org.jboss.msc.service.StartException in service 
> jboss.module.service.\"deployment.juddiv3.war\".main: Failed
> to load module: deployment.juddiv3.war:main"}}
> 11:42:44,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) 
> JBAS015877: Stopped deployment juddiv3.war in 159ms
> 11:42:44,274 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) 
> JBAS014774: Service status report
> JBAS014777:   Services which failed to start:      service 
> jboss.module.service."deployment.juddiv3.war".main: 
> org.jboss.msc.service.StartException in service jboss.module.service.
> "deployment.juddiv3.war".main: Failed to load module: 
> deployment.juddiv3.war:main
> 11:42:44,283 ERROR [org.jboss.as.server.deployment.scanner] 
> (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and 
> was rolled back. Steps that failed:" => {"O
> peration step-2" => {"JBAS014671: Failed services" => 
> {"jboss.module.service.\"deployment.juddiv3.war\".main" => 
> "org.jboss.msc.service.StartException in service jboss.module.servi
> ce.\"deployment.juddiv3.war\".main: Failed to load module: 
> deployment.juddiv3.war:main"}}}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to