You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Alexandr Nikolaev <al...@inbox.ru> on 2011/03/28 08:04:09 UTC

Deploying Juddi to JBoss 5.1.0.GA

-----Original Message-----

> Hi, help me please to correctly run Juddi 3.0.4 under JBossAS-5.1.GA. I've finally deployed it with no exceptions
> and start page (http://localhost:8080/juddi) is ok. But i can't access any service endpoints
> like http://localhost:8080/juddi/services/inquire (http://localhost:8080/juddiv3/services/inquire).
> Services page http://localhost:8080/juddi/services is unaccessible too.
> 
> I made the following steps:
> 
> 1. Install JBoss-5.1.0-GA (jdk6)
> 2. Deploy jboss jbossws-cxf-3.2.0.GA
> 3. Create datasource JuddiDS with empty db (postgress)
> 4. Build Juddi 3.0.4 from source with "mvn clean install -Dpersistence=hibernate"
>    (binary dist version use openjpa by default)
> 5. Unpack juddi.war (from juddiv3-war/target folder)
> 6. Create WEB-INF/jboss-web.xml just like here http://juddi.apache.org/docs/3.0/userguide/html/chap-deployjboss.html
> 7. Fix WEB-INF/classes/META-INF/persistence.xml, set non-jta datasource and hibernate dialect
> 8. Remove installed by default juddi-service.sar from jboss deploy folder
> 9. Replace juddi.war/WEB-INF/lib/juddi-core-openjpa-3.0.4.jar with juddi-core-3.0.4.jar built from source (juddi-core/target)
>    (without it i got persistence exceptions on deployment)
> 10. Deploy juddi.war folder to jboss
> 
> What am i doing wrong?
> 
> Thanks in advance
>  
> --
> Best regards,
> Alex Nikolaev
> 
> 
> 
> 

Re: Deploying Juddi to JBoss 5.1.0.GA

Posted by everson santos <ev...@yahoo.com.br>.
what's the best way to install juddi, by default or do like alex did ?

--- Em seg, 28/3/11, Tom Cunningham <tc...@redhat.com> escreveu:

De: Tom Cunningham <tc...@redhat.com>
Assunto: Re: Deploying Juddi to JBoss 5.1.0.GA
Para: user@juddi.apache.org
Data: Segunda-feira, 28 de Março de 2011, 8:38

You need to replace the web.xml with the jboss-ws-native-web.xml file in 
docs/examples/appserver/jboss :

http://svn.apache.org/repos/asf/juddi/trunk/docs/examples/appserver/jboss/jbossws-native-web.xml

On 03/28/2011 02:04 AM, Alexandr Nikolaev wrote:
> -----Original Message-----
>
>> Hi, help me please to correctly run Juddi 3.0.4 under JBossAS-5.1.GA. I've finally deployed it with no exceptions
>> and start page (http://localhost:8080/juddi) is ok. But i can't access any service endpoints
>> like http://localhost:8080/juddi/services/inquire (http://localhost:8080/juddiv3/services/inquire).
>> Services page http://localhost:8080/juddi/services is unaccessible too.
>>
>> I made the following steps:
>>
>> 1. Install JBoss-5.1.0-GA (jdk6)
>> 2. Deploy jboss jbossws-cxf-3.2.0.GA
>> 3. Create datasource JuddiDS with empty db (postgress)
>> 4. Build Juddi 3.0.4 from source with "mvn clean install -Dpersistence=hibernate"
>>     (binary dist version use openjpa by default)
>> 5. Unpack juddi.war (from juddiv3-war/target folder)
>> 6. Create WEB-INF/jboss-web.xml just like here http://juddi.apache.org/docs/3.0/userguide/html/chap-deployjboss.html
>> 7. Fix WEB-INF/classes/META-INF/persistence.xml, set non-jta datasource and hibernate dialect
>> 8. Remove installed by default juddi-service.sar from jboss deploy folder
>> 9. Replace juddi.war/WEB-INF/lib/juddi-core-openjpa-3.0.4.jar with juddi-core-3.0.4.jar built from source (juddi-core/target)
>>     (without it i got persistence exceptions on deployment)
>> 10. Deploy juddi.war folder to jboss
>>
>> What am i doing wrong?
>>
>> Thanks in advance
>>
>> --
>> Best regards,
>> Alex Nikolaev
>>
>>
>>
>>


Re: Deploying Juddi to JBoss 5.1.0.GA

Posted by Kurt T Stam <ku...@gmail.com>.
Let me add one more thing, by default we package up the webservices 
stack (cxf) and the JPA (OpenJPA) stacks in the juddiv3.war. On a
full fledged appserver like JBoss you probably don't want to do that and 
use the webservices stack and JPA implementation that ships
with the appserver. This will make the war very light weight , deploys 
fast and should be easier to work with.

--Kurt


On 3/28/11 9:15 AM, Kurt T Stam wrote:
> Each application server requires slightly different configuration 
> files. We therefore try to document the steps for the different
> appservers (even different version of an appserver may require 
> different config). It is not about the 'best' way. It is about
> how to make it work in the environment/application server you picked.
>
> --K
>
> On 3/28/11 8:45 AM, everson santos wrote:
>>
>> what's the best way to install juddi, by default or do like alex did ?
>>
>> --- Em *seg, 28/3/11, Tom Cunningham /<tc...@redhat.com>/* escreveu:
>>
>>
>>     De: Tom Cunningham <tc...@redhat.com>
>>     Assunto: Re: Deploying Juddi to JBoss 5.1.0.GA
>>     Para: user@juddi.apache.org
>>     Data: Segunda-feira, 28 de Março de 2011, 8:38
>>
>>     You need to replace the web.xml with the jboss-ws-native-web.xml
>>     file in
>>     docs/examples/appserver/jboss :
>>
>>     http://svn.apache.org/repos/asf/juddi/trunk/docs/examples/appserver/jboss/jbossws-native-web.xml
>>
>>     On 03/28/2011 02:04 AM, Alexandr Nikolaev wrote:
>>     > -----Original Message-----
>>     >
>>     >> Hi, help me please to correctly run Juddi 3.0.4 under
>>     JBossAS-5.1.GA. I've finally deployed it with no exceptions
>>     >> and start page (http://localhost:8080/juddi) is ok. But i
>>     can't access any service endpoints
>>     >> like http://localhost:8080/juddi/services/inquire
>>     (http://localhost:8080/juddiv3/services/inquire).
>>     >> Services page http://localhost:8080/juddi/services is
>>     unaccessible too.
>>     >>
>>     >> I made the following steps:
>>     >>
>>     >> 1. Install JBoss-5.1.0-GA (jdk6)
>>     >> 2. Deploy jboss jbossws-cxf-3.2.0.GA
>>     >> 3. Create datasource JuddiDS with empty db (postgress)
>>     >> 4. Build Juddi 3.0.4 from source with "mvn clean install
>>     -Dpersistence=hibernate"
>>     >>     (binary dist version use openjpa by default)
>>     >> 5. Unpack juddi.war (from juddiv3-war/target folder)
>>     >> 6. Create WEB-INF/jboss-web.xml just like here
>>     http://juddi.apache.org/docs/3.0/userguide/html/chap-deployjboss.html
>>     >> 7. Fix WEB-INF/classes/META-INF/persistence.xml, set non-jta
>>     datasource and hibernate dialect
>>     >> 8. Remove installed by default juddi-service.sar from jboss
>>     deploy folder
>>     >> 9. Replace juddi.war/WEB-INF/lib/juddi-core-openjpa-3.0.4.jar
>>     with juddi-core-3.0.4.jar built from source (juddi-core/target)
>>     >>     (without it i got persistence exceptions on deployment)
>>     >> 10. Deploy juddi.war folder to jboss
>>     >>
>>     >> What am i doing wrong?
>>     >>
>>     >> Thanks in advance
>>     >>
>>     >> --
>>     >> Best regards,
>>     >> Alex Nikolaev
>>     >>
>>     >>
>>     >>
>>     >>
>>
>


Re: Deploying Juddi to JBoss 5.1.0.GA

Posted by Kurt T Stam <ku...@gmail.com>.
Each application server requires slightly different configuration files. 
We therefore try to document the steps for the different
appservers (even different version of an appserver may require different 
config). It is not about the 'best' way. It is about
how to make it work in the environment/application server you picked.

--K

On 3/28/11 8:45 AM, everson santos wrote:
>
> what's the best way to install juddi, by default or do like alex did ?
>
> --- Em *seg, 28/3/11, Tom Cunningham /<tc...@redhat.com>/* escreveu:
>
>
>     De: Tom Cunningham <tc...@redhat.com>
>     Assunto: Re: Deploying Juddi to JBoss 5.1.0.GA
>     Para: user@juddi.apache.org
>     Data: Segunda-feira, 28 de Março de 2011, 8:38
>
>     You need to replace the web.xml with the jboss-ws-native-web.xml
>     file in
>     docs/examples/appserver/jboss :
>
>     http://svn.apache.org/repos/asf/juddi/trunk/docs/examples/appserver/jboss/jbossws-native-web.xml
>
>     On 03/28/2011 02:04 AM, Alexandr Nikolaev wrote:
>     > -----Original Message-----
>     >
>     >> Hi, help me please to correctly run Juddi 3.0.4 under
>     JBossAS-5.1.GA. I've finally deployed it with no exceptions
>     >> and start page (http://localhost:8080/juddi) is ok. But i can't
>     access any service endpoints
>     >> like http://localhost:8080/juddi/services/inquire
>     (http://localhost:8080/juddiv3/services/inquire).
>     >> Services page http://localhost:8080/juddi/services is
>     unaccessible too.
>     >>
>     >> I made the following steps:
>     >>
>     >> 1. Install JBoss-5.1.0-GA (jdk6)
>     >> 2. Deploy jboss jbossws-cxf-3.2.0.GA
>     >> 3. Create datasource JuddiDS with empty db (postgress)
>     >> 4. Build Juddi 3.0.4 from source with "mvn clean install
>     -Dpersistence=hibernate"
>     >>     (binary dist version use openjpa by default)
>     >> 5. Unpack juddi.war (from juddiv3-war/target folder)
>     >> 6. Create WEB-INF/jboss-web.xml just like here
>     http://juddi.apache.org/docs/3.0/userguide/html/chap-deployjboss.html
>     >> 7. Fix WEB-INF/classes/META-INF/persistence.xml, set non-jta
>     datasource and hibernate dialect
>     >> 8. Remove installed by default juddi-service.sar from jboss
>     deploy folder
>     >> 9. Replace juddi.war/WEB-INF/lib/juddi-core-openjpa-3.0.4.jar
>     with juddi-core-3.0.4.jar built from source (juddi-core/target)
>     >>     (without it i got persistence exceptions on deployment)
>     >> 10. Deploy juddi.war folder to jboss
>     >>
>     >> What am i doing wrong?
>     >>
>     >> Thanks in advance
>     >>
>     >> --
>     >> Best regards,
>     >> Alex Nikolaev
>     >>
>     >>
>     >>
>     >>
>


Re: Deploying Juddi to JBoss 5.1.0.GA

Posted by everson santos <ev...@yahoo.com.br>.
what's the best way to install juddi, by default or do like alex did ?

--- Em seg, 28/3/11, Tom Cunningham <tc...@redhat.com> escreveu:

De: Tom Cunningham <tc...@redhat.com>
Assunto: Re: Deploying Juddi to JBoss 5.1.0.GA
Para: user@juddi.apache.org
Data: Segunda-feira, 28 de Março de 2011, 8:38

You need to replace the web.xml with the jboss-ws-native-web.xml file in 
docs/examples/appserver/jboss :

http://svn.apache.org/repos/asf/juddi/trunk/docs/examples/appserver/jboss/jbossws-native-web.xml

On 03/28/2011 02:04 AM, Alexandr Nikolaev wrote:
> -----Original Message-----
>
>> Hi, help me please to correctly run Juddi 3.0.4 under JBossAS-5.1.GA. I've finally deployed it with no exceptions
>> and start page (http://localhost:8080/juddi) is ok. But i can't access any service endpoints
>> like http://localhost:8080/juddi/services/inquire (http://localhost:8080/juddiv3/services/inquire).
>> Services page http://localhost:8080/juddi/services is unaccessible too.
>>
>> I made the following steps:
>>
>> 1. Install JBoss-5.1.0-GA (jdk6)
>> 2. Deploy jboss jbossws-cxf-3.2.0.GA
>> 3. Create datasource JuddiDS with empty db (postgress)
>> 4. Build Juddi 3.0.4 from source with "mvn clean install -Dpersistence=hibernate"
>>     (binary dist version use openjpa by default)
>> 5. Unpack juddi.war (from juddiv3-war/target folder)
>> 6. Create WEB-INF/jboss-web.xml just like here http://juddi.apache.org/docs/3.0/userguide/html/chap-deployjboss.html
>> 7. Fix WEB-INF/classes/META-INF/persistence.xml, set non-jta datasource and hibernate dialect
>> 8. Remove installed by default juddi-service.sar from jboss deploy folder
>> 9. Replace juddi.war/WEB-INF/lib/juddi-core-openjpa-3.0.4.jar with juddi-core-3.0.4.jar built from source (juddi-core/target)
>>     (without it i got persistence exceptions on deployment)
>> 10. Deploy juddi.war folder to jboss
>>
>> What am i doing wrong?
>>
>> Thanks in advance
>>
>> --
>> Best regards,
>> Alex Nikolaev
>>
>>
>>
>>


Re: Deploying Juddi to JBoss 5.1.0.GA

Posted by Tom Cunningham <tc...@redhat.com>.
You need to replace the web.xml with the jboss-ws-native-web.xml file in 
docs/examples/appserver/jboss :

http://svn.apache.org/repos/asf/juddi/trunk/docs/examples/appserver/jboss/jbossws-native-web.xml

On 03/28/2011 02:04 AM, Alexandr Nikolaev wrote:
> -----Original Message-----
>
>> Hi, help me please to correctly run Juddi 3.0.4 under JBossAS-5.1.GA. I've finally deployed it with no exceptions
>> and start page (http://localhost:8080/juddi) is ok. But i can't access any service endpoints
>> like http://localhost:8080/juddi/services/inquire (http://localhost:8080/juddiv3/services/inquire).
>> Services page http://localhost:8080/juddi/services is unaccessible too.
>>
>> I made the following steps:
>>
>> 1. Install JBoss-5.1.0-GA (jdk6)
>> 2. Deploy jboss jbossws-cxf-3.2.0.GA
>> 3. Create datasource JuddiDS with empty db (postgress)
>> 4. Build Juddi 3.0.4 from source with "mvn clean install -Dpersistence=hibernate"
>>     (binary dist version use openjpa by default)
>> 5. Unpack juddi.war (from juddiv3-war/target folder)
>> 6. Create WEB-INF/jboss-web.xml just like here http://juddi.apache.org/docs/3.0/userguide/html/chap-deployjboss.html
>> 7. Fix WEB-INF/classes/META-INF/persistence.xml, set non-jta datasource and hibernate dialect
>> 8. Remove installed by default juddi-service.sar from jboss deploy folder
>> 9. Replace juddi.war/WEB-INF/lib/juddi-core-openjpa-3.0.4.jar with juddi-core-3.0.4.jar built from source (juddi-core/target)
>>     (without it i got persistence exceptions on deployment)
>> 10. Deploy juddi.war folder to jboss
>>
>> What am i doing wrong?
>>
>> Thanks in advance
>>
>> --
>> Best regards,
>> Alex Nikolaev
>>
>>
>>
>>