juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex O'Ree (JIRA)" <juddi-...@ws.apache.org>
Subject [jira] [Commented] (JUDDI-878) Documentation with missing steps
Date Sun, 11 May 2014 20:07:18 GMT

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

Alex O'Ree commented on JUDDI-878:
----------------------------------

Daniel, I made some progress on this using the following steps.

download and unzip jboss as 7.1.1 community
download openjpa 2.2.1
create the folder jboss-as-7.1.1.Final\modules\org\apache\openjpa\main
extract contents from openjpa2.2.1.zip/lib there, also copy in the openjpa2.2.1 jar file from
zip root
create jboss-as-7.1.1.Final\modules\org\apache\openjpa\main\module.xml
<module xmlns="urn:jboss:module:1.1" name="org.apache.openjpa"> 
    <resources> 
        <resource-root path="openjpa-2.2.1.jar"/> 
        <resource-root path="serp-1.13.1.jar"/> 
    </resources> 
        <dependencies> 
            <module name="javax.persistence.api"/> 
            <module name="javax.transaction.api"/> 
            <module name="javax.validation.api"/> 
            <module name="org.apache.commons.lang"/> 
            <module name="org.apache.commons.collections"/> 
            <module name="org.apache.log4j"/> 
        </dependencies> 
</module>

build juddiv3-war with 
mvn clean install -Popenjpa-jboss7up

copy the target\juddiv3.war into 
jboss/standalone/deployments


finally, start up jboss


This will get juddi deployed, however there's a logic error somewhere that needs to be tracked
down. Here's what i'm getting


16:01:16,829 INFO  [org.apache.juddi.config.Install] (MSC service thread 1-6) Loading the
root Publisher from file root_
Publisher.xml
16:01:16,858 INFO  [org.apache.juddi.config.Install] (MSC service thread 1-6) Loading the
content of file: vfs:/C:/juddi
/boss-as-7.1.1.Final/jboss-as-7.1.1.Final/bin/content/juddiv3.war/WEB-INF/lib/juddi-core-openjpa-3.2.1-SNAPSHOT.jar/judd
i_install_data/root_Publisher.xml
16:01:17,323 ERROR [org.apache.juddi.servlets.RegistryServlet] (MSC service thread 1-6) jUDDI
registry could not be star
ted.org.apache.commons.configuration.ConfigurationException: java.io.FileNotFoundException:
C:\juddi\boss-as-7.1.1.Final
\jboss-as-7.1.1.Final\bin\content\juddiv3.war\WEB-INF\lib\juddi-core-openjpa-3.2.1-SNAPSHOT.jar
(The system cannot find
the path specified): org.apache.commons.configuration.ConfigurationException: org.apache.commons.configuration.Configura
tionException: java.io.FileNotFoundException: C:\juddi\boss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\content\juddiv3.war\
WEB-INF\lib\juddi-core-openjpa-3.2.1-SNAPSHOT.jar (The system cannot find the path specified)
        at org.apache.juddi.config.AppConfig.getPersistentConfiguration(AppConfig.java:174)
[juddi-core-openjpa-3.2.1-SN
APSHOT.jar:]
        at org.apache.juddi.config.AppConfig.loadConfiguration(AppConfig.java:147) [juddi-core-openjpa-3.2.1-SNAPSHOT.ja
r:]
        at org.apache.juddi.config.AppConfig.<init>(AppConfig.java:87) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.config.AppConfig.getInstance(AppConfig.java:237) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.config.AppConfig.getConfiguration(AppConfig.java:259) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar
:]
        at org.apache.juddi.replication.ReplicationNotifier.<init>(ReplicationNotifier.java:57)
[juddi-core-openjpa-3.2.
1-SNAPSHOT.jar:]
        at org.apache.juddi.Registry.start(Registry.java:83) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.servlets.RegistryServlet.init(RegistryServlet.java:46) [classes:]
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
[jbossweb-7.0.13.Final.jar:]
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)
[jbossweb-7.0.13.Final.jar:
]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
[jboss-as-web-7.1.1.Fina
l.jar:7.1.1.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_45]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: org.apache.commons.configuration.ConfigurationException: java.io.FileNotFoundException:
C:\juddi\boss-as-7.1.
1.Final\jboss-as-7.1.1.Final\bin\content\juddiv3.war\WEB-INF\lib\juddi-core-openjpa-3.2.1-SNAPSHOT.jar
(The system canno
t find the path specified)
        at org.apache.juddi.config.Install.getPublishers(Install.java:582) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.config.Install.install(Install.java:120) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.config.AppConfig.getPersistentConfiguration(AppConfig.java:172)
[juddi-core-openjpa-3.2.1-SN
APSHOT.jar:]
        ... 17 more
Caused by: java.io.FileNotFoundException: C:\juddi\boss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\content\juddiv3.war\WEB-
INF\lib\juddi-core-openjpa-3.2.1-SNAPSHOT.jar (The system cannot find the path specified)
        at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.7.0_45]
        at java.util.zip.ZipFile.<init>(ZipFile.java:215) [rt.jar:1.7.0_45]
        at java.util.zip.ZipFile.<init>(ZipFile.java:145) [rt.jar:1.7.0_45]
        at java.util.jar.JarFile.<init>(JarFile.java:153) [rt.jar:1.7.0_45]
        at java.util.jar.JarFile.<init>(JarFile.java:117) [rt.jar:1.7.0_45]
        at org.apache.juddi.config.Install.getPublishers(Install.java:559) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        ... 19 more

16:01:17,394 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/juddiv3]]
(MSC service thread 1-
6) Servlet /juddiv3 threw load() exception: java.io.FileNotFoundException: C:\juddi\boss-as-7.1.1.Final\jboss-as-7.1.1.F
inal\bin\content\juddiv3.war\WEB-INF\lib\juddi-core-openjpa-3.2.1-SNAPSHOT.jar (The system
cannot find the path specifie
d)
        at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.7.0_45]
        at java.util.zip.ZipFile.<init>(ZipFile.java:215) [rt.jar:1.7.0_45]
        at java.util.zip.ZipFile.<init>(ZipFile.java:145) [rt.jar:1.7.0_45]
        at java.util.jar.JarFile.<init>(JarFile.java:153) [rt.jar:1.7.0_45]
        at java.util.jar.JarFile.<init>(JarFile.java:117) [rt.jar:1.7.0_45]
        at org.apache.juddi.config.Install.getPublishers(Install.java:559) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.config.Install.install(Install.java:120) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.config.AppConfig.getPersistentConfiguration(AppConfig.java:172)
[juddi-core-openjpa-3.2.1-SN
APSHOT.jar:]
        at org.apache.juddi.config.AppConfig.loadConfiguration(AppConfig.java:147) [juddi-core-openjpa-3.2.1-SNAPSHOT.ja
r:]
        at org.apache.juddi.config.AppConfig.<init>(AppConfig.java:87) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.config.AppConfig.getInstance(AppConfig.java:237) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.config.AppConfig.getConfiguration(AppConfig.java:259) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar
:]
        at org.apache.juddi.replication.ReplicationNotifier.<init>(ReplicationNotifier.java:57)
[juddi-core-openjpa-3.2.
1-SNAPSHOT.jar:]
        at org.apache.juddi.Registry.start(Registry.java:83) [juddi-core-openjpa-3.2.1-SNAPSHOT.jar:]
        at org.apache.juddi.servlets.RegistryServlet.init(RegistryServlet.java:46) [classes:]
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
[jbossweb-7.0.13.Final.jar:]
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)
[jbossweb-7.0.13.Final.jar:
]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
[jboss-as-web-7.1.1.Fina
l.jar:7.1.1.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_45]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

16:01:17,525 INFO  [org.jboss.web] (MSC service thread 1-6) JBAS018210: Registering web context:
/juddiv3
16:01:17,540 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015951: Admin console listening
on http://127.0.0.1:9990
16:01:17,543 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015874: JBoss AS 7.1.1.Final
"Brontes" started in 55184ms
 - Started 243 of 320 services (76 services are passive or on-demand)
16:01:17,662 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed
"juddiv3.war"


This is clearly a config issue in which something is different in jboss7. Do you have any
suggestions?

> Documentation with missing steps
> --------------------------------
>
>                 Key: JUDDI-878
>                 URL: https://issues.apache.org/jira/browse/JUDDI-878
>             Project: jUDDI
>          Issue Type: Bug
>          Components: website
>            Reporter: Daniel Ferreira Castro
>            Assignee: Kurt T Stam
>            Priority: Minor
>         Attachments: jboss-web.xml, juddiv3.war, persistence.xml, server - 20140429.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)

Mime
View raw message