juddi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurt T Stam <kurt.s...@gmail.com>
Subject Re: publish a service using jUDDI
Date Thu, 13 Jan 2011 16:14:21 GMT
Hi Dintu,

Did you see the instructions in our docs?

http://juddi.apache.org/docs/3.0/userguide/html/chap-deployglassfish.html

BTW I would use the latest jUDDI v3 release (3.0.4) not an RC.

http://juddi.apache.org/releases.html

Cheers,

--Kurt


On 1/13/11 2:37 AM, Dintu wrote:
> I have followed the steps given below to install jUDDI.
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> STEP #1 (Database / User Creation)
> mysql on a different ip server:
>
> CREATE DATABASE juddi;
> CREATE user 'juddi'@'localhost' IDENTIFIED BY 'juddi';
> GRANT ALL privileges ON juddi.* TO juddi@localhost;
>
> I did not use the ip in the definition for the user ie juddi@10.---.---.---
>
> To verify that I could connect to the juddi database on the server I opened
> toad for MySQL on my laptop
> created a new connection for juddi and connected to MySQL on the server.
>
> STEP #2 (Database Connection Setup)
>  From glassfish v2.1.1 admin console:
>
> Create Connector Connection Pool(Resources->Connectors->Connector Connection
> Pools), name itjuddiPool, set Resource Adapter to jaxr-ra.
> Create Connector Resource (Resources->Connectors->ConnectorResources), name
> it juddi, set Pool Name to already created pooljuddiPool.
> Create Connection Pool (Resources->JDBC->Connection Pools),name it
> juddiPool, set Resource Type to javax.sql.DataSource, setDatabase Vendor to
> MySQL.
> Make sure following properties for a newly created pool are set:
> DatabaseName=juddi
> User=juddi
> Password=juddi
> Url=jdbc:mysql://10.---.---.---:3306/juddi
> I tried both Url and currently have serverName=10.---.---.--- and port=3306
>
> Create JDBC Resource (Resources->JDBC->JDBC Resources), nameit jdbc/juddiDB,
> set Pool Name to already created pool juddiPool.
> STEP #3 (JUDDI Install)
> Download jUDDI version: juddi-web-2.0xx.war
>
> 1. from the following link:
> http://www.apache.org/dist/ws/juddi/2_0/
> I used version:
> [http://www.apache.org/dist/ws/juddi/2_0/juddi-distribution-2.0.0-bin.zip]
> juddi-distribution-2.0.0-bin.zip
> I also tried
> [http://www.apache.org/dist/ws/juddi/3_0/juddi-dist-3.0.0.rc1.zip]
> juddi-dist-3.0.0.rc1.zip yesterday but things went south in a hurry with
> that install.
>
> 2. Unzip juddi-distribution-2.0.0-bin.zip get the war and deployed with the
> following:
> Glassfish Enterprise Server v2.1.1
> a) WebApplications
> b) Deploy....
> c) Browse war file on c drive
> d) made the Application Name: juddi and the Context Root juddi
> d) Click OK
>
> 3. Did a Launch of the new Web Application
> Got the juddi opening page my browser.
>
> 4. Clicked the validate link. I had some issues. The database was not
> connecting. I downloaded the mysql driver jar:
> mysql-connector-java-5.0.8-bin.jar
> Put it in my /opt/glassfish/lib directory.
> Bounced glassfish and the connection from the validate link worked.
>
> 5. But I also had some missing jUDDI dependencies revolving around AXIS1_4:
> I went to the following link and downloaded axis1_4:
> http://download.nextag.com/apache/ws/axis/1_4/
> The file:[http://download.nextag.com/apache/ws/axis/1_4/axis-bin-1_4.zip]
> axis-bin-1_4.zip
> I unzipped and transfered all the lib jar files to /opt/glassfish/lib
> That cleared up my missing dependencies from the juddi validate page
>
> 6. After that I checked to make sure my Database was up. Went to the
> database server used:
> mysql -ujuddi -p juddi
> type password at prompt
> show tables;
> everything looked like it was there:
> my PUBLISHER table has 2 entries:
> +--------------+----------------+-----------------+----------+------------+----------------+---------------------------+--------------------------+-------------+
> | PUBLISHER_ID | PUBLISHER_NAME | EMAIL_ADDRESS | IS_ADMIN | IS_ENABLED |
> MAX_BUSINESSES | MAX_SERVICES_PER_BUSINESS | MAX_BINDINGS_PER_SERVICE |
> MAX_TMODELS |
> +--------------+----------------+-----------------+----------+------------+----------------+---------------------------+--------------------------+-------------+
> | jdoe | John Doe | jdoe@juddi.org | true | true | 25 | 20 | 10 | 100 |
> | jdoe2 | John Doe2 | jdoe2@juddi.org | true | true | 25 | 20 | 10 | 100 |
> +--------------+----------------+-----------------+----------+------------+----------------+---------------------------+--------------------------+-------------+
> 2 rows in set (0.00 sec)
>
> Those where set up at install time.
>
> STEP #4 (Publish a webservice to JUDDI via glassfish):
> In the glassfish admin tool:
> 1) Click Web Services
> 2) Click existing Web Service under Name listing
> 3) Publish Tab
> 4) Publish....
> 5) Registeries juddi Add>  to Selected
> 6) put text in for Categories:
> 7) put text in for Description:
> 8) Clicked Publish Now
> 9) Got Error:
>
> An error has occurred
> com.sun.gjc.spi.jdbc40.DataSource40 cannot be cast to
> javax.xml.registry.ConnectionFactory
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> I have also validated and have no errors with respect to database
> connection. But I am clueless on how to publish a service in the jUDDI
> registry. Where I have to write the publish logic. Also if you could help me
> out in discovery and invoking the descriptions from registry using client,
> it would very helpful for me. Thank you in advance.


Mime
View raw message