juddiv3 部署到自己的tomcat中
?
?
Hi!
This week I had to install Apache jUDDI for the purpose of the “Knowledge Organization and WEB 3.0” class which is one of my Master’s degree disciplines at?PPGI-UFRJ.
When I went to jUDDI‘s web site I discovered that jUDDI have a embeded Apache Tomcat within it. No problem if I hadn’t already installed Tomcat.
Since I wouldn’t like to have 2 running Tomcat installations I decided to install and deploy jUDDI in my existing Tomcat installation. After a few searches in Google I could not find someone who have already done it. That’s why I decided to write this (not so comprehensive) instructions.
Well, since I have already had a running Tomcat installation you will have to install it. It’s very easy. You can find a lot of HOW TOs around. Therefore, I consider the following prerequisites for my step-by-step installation instructions of?jUDDI.
Prerequisites:
Java Platform, Standard Edition (Java SE). I have?jdk1.6.0_21;Apache Tomcat. I have?apache-tomcat-6.0.29?running on port 8080;Having properly installed and configured Java and Tomcat we can now start with the other jUDDI‘s prerequisites.
Step 1 – Install MySQL and create a database for jUDDIStep 4 – Add users and roles to Tomcat
<?xml version=’1.0′ encoding=’utf-8′?>
<tomcat-users>
<role rolename=”pluto“/>
<role rolename=”tomcat”/>
<role rolename=”manager”/>
<user username=”root” password=”root” roles=”pluto,tomcat,manager”/>
<user username=”uddi” password=”uddi” roles=”pluto,tomcat,manager”/>
<user username=”sales” password=”sales” roles=”pluto,tomcat,manager”/>
<user username=”marketing” password=”marketing” roles=”pluto,tomcat,manager”/>
<user username=”tomcat” password=”tomcat” roles=”manager”/>
</tomcat-users>
Step 5 – Enjoy your brand new Registry
Now start Tomcat and open your web browser at?http://localhost:8080/juddiv3/. You should see a Apache jUDDI‘s welcome page like this one…

Pluto: The jUDDI portal
Now you may for example connect to juddi MySQL database and execute the command “show tables;” just to list all tables created by the jUDDI installation process.
Some very important notes:
Of course the instructions on this post are not perfect for a production environment. I installed everything in my windows development sandbox. If you are installing it for a production environment I strongly recommend you not to use the same password as the login name of the MySQL user. Another thing is to change the default jUDDI Authentication.It’s possible to do the same thing for a Linux environment. Just follow the instructions having Linux on your mind;I’ll talk more about Apache jUDDI Registry on a next post.
Stay away from trouble!
Update at 2011-07-23 23:17
After logging in at Pluto you probably will see that the portlets don’t work. It may print some strack trace errors inside the portlet windows or a javascript alert “erro:null” is shown. To solve this problem you’ll have to do the following:
Make sure the file?juddiv3.properties of webapps/juddiv3 and webapps/uddi-portlets have the same configurations. Therefore, copy?webapps/juddiv3/WEB-INF/classes/juddiv3.properties to?webapps/uddi-portlets/WEB-INF/classes/juddiv3.properties.