juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Ferreira Castro (JIRA)" <juddi-...@ws.apache.org>
Subject [jira] [Commented] (JUDDI-878) Fix Jboss AS 7.x deployment
Date Mon, 02 Jun 2014 18:30:05 GMT

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

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

I made some progress here.
If I deploy the war file over the JBoss AS 7.1.1 Final using the java:jboss/datasources/ExampleDS
it deploys OK.
But if I try to configure it to use a DataSource pointing to a MySQL then I get the error
I was telling before.

The original files that deploys with sucess over h2 exampleDS are those

jboss-web.xml
<jboss-web>
    <context-root>juddiv3</context-root>

    <resource-ref>
        <res-ref-name>jdbc/juddidb</res-ref-name>
        <jndi-name>java:jboss/datasources/ExampleDS</jndi-name>
    </resource-ref>
</jboss-web>

persistence.xml

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence classpath:schemas/persistence_1_0.xsd"

             version="1.0">
  <persistence-unit name="juddiDatabase" transaction-type="RESOURCE_LOCAL">
    <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
    <non-jta-data-source>java:jboss/datasources/ExampleDS</non-jta-data-source>
    <!-- entity classes -->
    <class>org.apache.juddi.model.Address</class>
    <class>org.apache.juddi.model.AddressLine</class>
    <class>org.apache.juddi.model.AuthToken</class>
    <class>org.apache.juddi.model.BindingCategoryBag</class>
    <class>org.apache.juddi.model.BindingDescr</class>
    <class>org.apache.juddi.model.BindingTemplate</class>
    <class>org.apache.juddi.model.BusinessCategoryBag</class>
    <class>org.apache.juddi.model.BusinessDescr</class>
    <class>org.apache.juddi.model.BusinessEntity</class>
    <class>org.apache.juddi.model.BusinessIdentifier</class>
    <class>org.apache.juddi.model.BusinessName</class>
    <class>org.apache.juddi.model.BusinessService</class>
    <class>org.apache.juddi.model.CanonicalizationMethod</class>
    <class>org.apache.juddi.model.CategoryBag</class>
    <class>org.apache.juddi.model.Clerk</class>
    <class>org.apache.juddi.model.ClientSubscriptionInfo</class>
    <class>org.apache.juddi.model.Contact</class>
    <class>org.apache.juddi.model.ContactDescr</class>
    <class>org.apache.juddi.model.DiscoveryUrl</class>
    <class>org.apache.juddi.model.Email</class>
    <class>org.apache.juddi.model.InstanceDetailsDescr</class>
    <class>org.apache.juddi.model.InstanceDetailsDocDescr</class>
    <class>org.apache.juddi.model.KeyedReference</class>
    <class>org.apache.juddi.model.KeyedReferenceGroup</class>
    <class>org.apache.juddi.model.KeyDataValue</class>
    <class>org.apache.juddi.model.KeyInfo</class>
    <class>org.apache.juddi.model.Node</class>
    <class>org.apache.juddi.model.ObjectType</class>
    <class>org.apache.juddi.model.ObjectTypeContent</class>
    <class>org.apache.juddi.model.OverviewDoc</class>
    <class>org.apache.juddi.model.OverviewDocDescr</class>
    <class>org.apache.juddi.model.PersonName</class>
    <class>org.apache.juddi.model.Phone</class>
    <class>org.apache.juddi.model.Publisher</class>
    <class>org.apache.juddi.model.PublisherAssertion</class>
    <class>org.apache.juddi.model.PublisherAssertionId</class>
    <class>org.apache.juddi.model.Reference</class>
    <class>org.apache.juddi.model.ServiceCategoryBag</class>
    <class>org.apache.juddi.model.ServiceDescr</class>
    <class>org.apache.juddi.model.ServiceName</class>
    <class>org.apache.juddi.model.ServiceProjection</class>
    <class>org.apache.juddi.model.ServiceProjectionId</class>
    <class>org.apache.juddi.model.Signature</class>
    <class>org.apache.juddi.model.SignatureMethod</class>
    <class>org.apache.juddi.model.SignatureTransform</class>
    <class>org.apache.juddi.model.SignatureTransformDataValue</class>
    <class>org.apache.juddi.model.SignatureValue</class>
    <class>org.apache.juddi.model.SignedInfo</class>
    <class>org.apache.juddi.model.Subscription</class>
    <class>org.apache.juddi.model.SubscriptionChunkToken</class>
    <class>org.apache.juddi.model.SubscriptionMatch</class>
    <class>org.apache.juddi.model.TempKey</class>
	<class>org.apache.juddi.model.TempKeyPK</class>
    <class>org.apache.juddi.model.Tmodel</class>
    <class>org.apache.juddi.model.TmodelCategoryBag</class>
    <class>org.apache.juddi.model.TmodelDescr</class>
    <class>org.apache.juddi.model.TmodelIdentifier</class>
    <class>org.apache.juddi.model.TmodelInstanceInfo</class>
    <class>org.apache.juddi.model.TmodelInstanceInfoDescr</class>
    <class>org.apache.juddi.model.TransferToken</class>
    <class>org.apache.juddi.model.TransferTokenKey</class>
    <class>org.apache.juddi.model.UddiEntity</class>
    <class>org.apache.juddi.model.UddiEntityPublisher</class>
	<class>org.apache.juddi.model.ValueSetValues</class>

	<class>org.apache.juddi.model.ChangeRecord</class>
	<class>org.apache.juddi.model.CommunicationGraph</class>
	<class>org.apache.juddi.model.Operator</class>
	<class>org.apache.juddi.model.ReplicationConfiguration</class>
	<class>org.apache.juddi.model.Edge</class>
	<class>org.apache.juddi.model.ControlMessage</class>
	<class>org.apache.juddi.model.ReplicationMessage</class>
	

    <properties>
      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(SchemaAction='add')"/>
      <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/>
      <property name="openjpa.jdbc.UpdateManager" value="operation-order"/>
      <property name="openjpa.jdbc.DBDictionary" value="h2"/>
      <!-- dialects: derby, postgres, mysql,  oracle, sybase, sqlserver 
           for a complete list check the OpenJPA documentation -->
      <property name="openjpa.RuntimeUnenhancedClasses" value="warn"/>
      <property name="openjpa.Compatibility" value="CheckDatabaseForCascadePersistToDetachedEntity=true"/>
      <property name="jboss.as.jpa.providerModule" value="org.apache.openjpa" />
    </properties>
  </persistence-unit>
</persistence>

Then I reconfigured it to point to MySQL by changing the jndi name on both files and DBDictionary
in persistence.xml
Also changed to 
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(SchemaAction='add,deleteTableContents')"/>
<property name="openjpa.Log" value="DefaultLevel=TRACE, Tool=INFO"/> and got tons of
log files.

Redeployed.  The console says it is successful, but http://localhost:9990/juddiv3/ does not
responds.

> 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)

Mime
View raw message