- 浏览: 3513298 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (1491)
- Hibernate (28)
- spring (37)
- struts2 (19)
- jsp (12)
- servlet (2)
- mysql (24)
- tomcat (3)
- weblogic (1)
- ajax (36)
- jquery (47)
- html (43)
- JS (32)
- ibatis (0)
- DWR (3)
- EXTJS (43)
- Linux (15)
- Maven (3)
- python (8)
- 其他 (8)
- JAVASE (6)
- java javase string (0)
- JAVA 语法 (3)
- juddiv3 (15)
- Mule (1)
- jquery easyui (2)
- mule esb (1)
- java (644)
- log4j (4)
- weka (12)
- android (257)
- web services (4)
- PHP (1)
- 算法 (18)
- 数据结构 算法 (7)
- 数据挖掘 (4)
- 期刊 (6)
- 面试 (5)
- C++ (1)
- 论文 (10)
- 工作 (1)
- 数据结构 (6)
- JAVA配置 (1)
- JAVA垃圾回收 (2)
- SVM (13)
- web st (1)
- jvm (7)
- weka libsvm (1)
- weka屈伟 (1)
- job (2)
- 排序 算法 面试 (3)
- spss (2)
- 搜索引擎 (6)
- java 爬虫 (6)
- 分布式 (1)
- data ming (1)
- eclipse (6)
- 正则表达式 (1)
- 分词器 (2)
- 张孝祥 (1)
- solr (3)
- nutch (1)
- 爬虫 (4)
- lucene (3)
- 狗日的腾讯 (1)
- 我的收藏网址 (13)
- 网络 (1)
- java 数据结构 (22)
- ACM (7)
- jboss (0)
- 大纸 (10)
- maven2 (0)
- elipse (0)
- SVN使用 (2)
- office (1)
- .net (14)
- extjs4 (2)
- zhaopin (0)
- C (2)
- spring mvc (5)
- JPA (9)
- iphone (3)
- css (3)
- 前端框架 (2)
- jui (1)
- dwz (1)
- joomla (1)
- im (1)
- web (2)
- 1 (0)
- 移动UI (1)
- java (1)
- jsoup (1)
- 管理模板 (2)
- javajava (1)
- kali (7)
- 单片机 (1)
- 嵌入式 (1)
- mybatis (2)
- layui (7)
- asp (12)
- asp.net (1)
- sql (1)
- c# (4)
- andorid (1)
- 地价 (1)
- yihuo (1)
- oracle (1)
最新评论
-
endual:
https://blog.csdn.net/chenxbxh2 ...
IE6 bug -
ice86rain:
你好,ES跑起来了吗?我的在tomcat启动时卡在这里Hibe ...
ES架构技术介绍 -
TopLongMan:
...
java public ,protect,friendly,private的方法权限(转) -
贝塔ZQ:
java实现操作word中的表格内容,用插件实现的话,可以试试 ...
java 读取 doc poi读取word中的表格(转) -
ysj570440569:
Maven多模块spring + springMVC + JP ...
Spring+SpringMVC+JPA
How to install jUDDI on Tomcat by yourself
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.
- Download and install MySQL Community Server 5.5.14. Choose the MSI installer version;
- Now let’s create a user and a database for jUDDI…
- Execute the MySQL Command Line Client (It’s in Windows’ Program menu);
- Execute these 3 commands: “CREATE USER ‘juddi’@'localhost’ IDENTIFIED BY ‘juddi’;“, “CREATE DATABASE juddi;” and “GRANT ALL PRIVILEGES ON juddi.* TO ‘juddi’@'localhost’;“;
- Download jUDDI portal bundle 3.0.4 and unzip it. Although this zip have an embeded Tomcat installation we won’t use it. We’ll need jus some webapps inside it.
- Copy the juddiv3, pluto and juddi-portlets folders (they are located inside the webapps folder in the zip file) to Tomcat‘s webapps folder. Again, just as a reference my webapps folder is in C:\Program Files\apache-tomcat-6.0.29\webapps;
- Also copy the following libraries from your zip’s juddi-portal-bundle-3.0.4\lib folder to your existing C:\Program Files\apache-tomcat-6.0.29\webapps folder:
- castor-1.1.1.jar
- commons-discovery-0.2.jar
- commons-logging-1.1.jar
- pluto-container-1.1.7.jar
- pluto-descriptor-api-1.1.7.jar
- pluto-descriptor-impl-1.1.7.jar
- pluto-taglib-1.1.7.jar
- portlet-api-1.0.jar
- log4j-1.2.13.jar
- Download MySQL Connector/J 5.1.17 (the official JDBC driver for MySQL) and unzip it. Find the mysql-connector-java-5.1.17-bin.jar file and copy it to the lib folder of your existing Tomcat installation. My Tomcat‘s lib is in C:\Program Files\apache-tomcat-6.0.29\lib;
- Open the file C:\Program Files\apache-tomcat-6.0.29\webapps\juddiv3\META-INF\context.xml with any text editor and edit it in order to look like this…
-
- <?xml version=”1.0″ encoding=”UTF-8″?>
- <Context>
- <WatchedResource>WEB-INF/web.xml</WatchedResource>
- <Resource
- name=”jdbc/juddiDB“
- auth=”Container”
- type=”javax.sql.DataSource”
- username=”juddi”
- password=”juddi”
- driverClassName=”com.mysql.jdbc.Driver”
- url=”jdbc:mysql://localhost:3306/juddi”
- />
- </Context>
-
- Now a very important thing. There are 3 other files that must be in synch with the context.xml. The resource name juddiDB must be present in the following files relative to C:\Program Files\apache-tomcat-6.0.29\webapps\juddiv3\WEB-INF\:
- .\web.xml: Set the value of <res-ref-name> as jdbc/juddiDB;
- .\classes\juddiv3.properties: Set the property juddi.persistenceunit.name with value juddiDB;
- .\classes\META-INF\persistence.xml: Set the persistence-unit‘ name to juddiDB, set <non-jta-data-source> value to java:comp/env/jdbc/juddiDB and make sure there is a <property name=”openjpa.jdbc.DBDictionary” value=”mysql“/> element in it.
Step 4 – Add users and roles to Tomcat
- Open C:\Arquivos de programas\apache-tomcat-6.0.32\conf\tomcat-users.xml and make sure it looks like this one:
<?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
…or like the following one if you click on the jUDDI Portal link…
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.
发表评论
-
(准备开源JUDDI v3.04) 程序版调用的源码
2012-01-04 09:47 1870真的准备开源,虽然我每天接触开源,但是真的想把自己搞了2 ... -
juddiv3 tmodel的代码
2011-08-29 09:09 1833环境:juddiv3+tomcat6.0+MySQL5.1+M ... -
juddiv3 client publisher代码
2011-08-24 15:07 1697package juddiv3admin.juddiv ... -
juddiv3 客户端发布代码(转)
2011-08-24 14:55 1642package publish; import java.u ... -
Installing the jUDDI UDDI Server and Publishing WSDL
2011-08-18 17:41 1863Installing the jUDDI UDDI Ser ... -
juddi操作界面的基本使用(转载)
2011-08-12 16:32 2314文章分类:Web前端 转自链接:http://www ... -
Juddiv3 客户端
2011-08-11 00:41 1660juddiv3.property -
UDDI Registry架构及作用
2011-08-11 00:39 1824Chapter 1. UDDI Regi ... -
Juddiv3 一些问题的解决
2011-08-08 22:20 1509http://mail-archives.apache. ... -
Juddiv3 发布 查询web services
2011-08-07 01:17 1583package juddiv3admin.juddiv3; ... -
Juddiv3 取得令牌的web services代码
2011-08-07 01:08 1708package my.udditestaxis.cl ... -
Juddiv3 参数介绍
2011-08-06 19:11 1747UDDI 注册中心的使用 ... -
JUDDIV3 客户端代码(转载)
2011-08-06 15:50 1856出处:http://blog.chinaunix.net/u3 ... -
JUDDIV3 部署
2011-05-03 15:12 1575JUDDIV3部署了2天了,不用脑子的集成版就下了,用脑子的d ...
相关推荐
在eclipse中无插件,实现自动将项目部署在tomcat下的webapps文件夹下
xxl-job-1.7.2导入到myeclipse并部署到tomcat的正确方法 基于tomcat8.x 亲测 完美通过
详细说明了windows服务器nginx+tomcat+mysql部署及配置(配置阿里云后台安全组,配置域名)很适合新手学习 附件中包含: 1.操作说明文档 2.操作录屏 3.安装所用到的软件安装包 1)Windows Server 2019 数据中心版 ...
springboot项目打成war包并部署到Linux的Tomcat中流程目录:启动类继承`SpringBootServletInitializer`pom文件添加`war`mvn命令操作(clean、install)打好的war包部署到Linux的Tomcat中本地访问部署好的项目 ...
Docker容器部署tomcat出现中文乱码.docx
在linux下部署tomcat,包括firefox静默升级、配置本地yum仓库
三种方法部署项目到tomcat 随便选一种
eclipse 部署tomcat 服务时出现问题
同时部署多个Tomcat,同时部署多个Tomcat,同时部署多个Tomcat,同时部署多个Tomcat,同时部署多个Tomcat
ubuntu中部署tomcat
birt 相关部署信息,birt 部署在tomcat 中简单信息
web项目是企业以及政府部门最常用的工具,政府门户网站,企业官网等基本都是web项目,web项目所使用的技术也是在不断的更新,前几年的技术基本上都是jsp+ssh,到...本文主要介绍了springboot+VUE怎么使用tomcat去部署
springboot项目通过maven命令实现一键部署至本地tomcat容器
Spring Boot部署到外部Tomcat的demo,部署到Tomcat webapps目录下,启动Tomcat自动解压,打开浏览器输入http://127.0.0.1:8080/MavenSpringBoot/hello即可看到效果
tomcat版本是8.5.49,资源包含案例和tomcat。tomcat版本是8.5.49,资源包含案例和tomcat
Tomcat部署,Tomcat部署,Tomcat部署,Tomcat部署,Tomcat部署,Tomcat部署,Tomcat部署
tomcat服务器上部署项目
自动化部署项目,自动化部署项目_Tomcat Shell
详细地说明在Tomcat中部署JavaWeb应用
将tomcat5.5 admin部署到 Tomcat7.0上