Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Apache jUDDI on Sun Java Application Server 9.1 - how to

843833Jan 22 2008 — edited Jan 22 2008
I've just installed jUDDI on AP 9.1...maybe this solution will be helpful for someone.

1. Download Apache jUDDI-web war
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/juddi/juddi-web/2.0rc5/juddi-web-2.0rc5.war
and jUDDI.jar
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/juddi/juddi/2.0rc5/juddi-2.0rc5.jar

2. Before we deploy juddi, we must set up database. If you look into juddi-2.0rc5.jar, you will see direcotry "juddi-sql" which contains sql scripst for database creation, for different vendors. I chose to run juddi on mysql.

After installing and starting mysql server i created database "juddi"
(from command prompt)
U:\>mysql -u root -p
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.45-community-nt MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database juddi;
Query OK, 1 row affected (0.00 sec)

mysql>
3. Next, i modified scripts in juddi-sql\mysql
- in "create_database.sql" I added (at the beginning) -
"use juddi;"
- and I replaced alle ${prefix} with "juddi_"

Next i ran command:
D:\praca\software\juddi\juddi-2.0rc5\juddi-sql\mysql>mysql -u root -p < create_database.sql
Enter password: ********

D:\praca\software\juddi\juddi-2.0rc5\juddi-sql\mysql>
4. Next we must insert a publisher, so i modified file "insert_publishers.sql" in juddi-sql directory:
Original file:
INSERT INTO ${prefix}PUBLISHER (PUBLISHER_ID,PUBLISHER_NAME,EMAIL_ADDRESS,IS_ENABLED,IS_ADMIN,MAX_BUSINESSES,MAX_SERVICES_PER_BUSINESS,MAX_BINDINGS_PER_SERVICE,MAX_TMODELS)
VALUES ('jdoe','John Doe','jdoe@juddi.org','true','true',25,20,10,100);
I changed publisher id, name and email, below is the file after my modifications looks:
use juddi;
INSERT INTO juddi_PUBLISHER (PUBLISHER_ID,PUBLISHER_NAME,EMAIL_ADDRESS,IS_ENABLED,IS_ADMIN,MAX_BUSINESSES,MAX_SERVICES_PER_BUSINESS,MAX_BINDINGS_PER_SERVICE,MAX_TMODELS)
VALUES ('jwozniczak','Jacek Wo&#378;niczak','jwozniczak@gmail.com','true','true',25,20,10,100);
I ran command:
D:\praca\software\juddi\juddi-2.0rc5\juddi-sql>mysql -u root -p < insert_publish
ers.sql
Enter password: ********

D:\praca\software\juddi\juddi-2.0rc5\juddi-sql>
5. Next, you must create connection pool and jdbc resource to juddi database
I named this jdbc resource "jdbc/juddiDB".

6. Now we can deploy juddi-web-2.0rc5.war

7. Before we test our installation, we must edit some files. Go to the application server install direcotory \domains\your_domain\applications\j2ee-modules\\juddi-web-2.0rc5\WEB-INF directory and:

- edit file juddi-users.xml and put there your publisher_id and set password
- look at the file juddi.properties and edit what you need. For example, if you used different name for jdbc resource, edit section:
# jUDDI DataSource to use
juddi.isUseDataSource=true
juddi.dataSource=java:comp/env/jdbc/juddiDB
uncomment line
juddi.tablePrefix=JUDDI_
and change it to
juddi.tablePrefix=juddi_
or set your prefix, if you chose different than I

- check this line, i didn't change AS port and name, so for me is correct
# The UDDI DiscoveryURL Prefix
juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
8. Finish. You can now launch juddi (for me the link is: http://localhost:8080/juddi/) and choose "validate".
If you don't see any red-colour lines, it means everything works :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 19 2008
Added on Jan 22 2008
0 comments
235 views