- 浏览: 3558217 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (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 1897真的准备开源,虽然我每天接触开源,但是真的想把自己搞了2 ... -
juddiv3 tmodel的代码
2011-08-29 09:09 1857环境:juddiv3+tomcat6.0+MySQL5.1+M ... -
juddiv3 client publisher代码
2011-08-24 15:07 1717package juddiv3admin.juddiv ... -
juddiv3 客户端发布代码(转)
2011-08-24 14:55 1662package publish; import java.u ... -
Installing the jUDDI UDDI Server and Publishing WSDL
2011-08-18 17:41 1889Installing the jUDDI UDDI Ser ... -
juddi操作界面的基本使用(转载)
2011-08-12 16:32 2351文章分类:Web前端 转自链接:http://www ... -
Juddiv3 客户端
2011-08-11 00:41 1691juddiv3.property -
UDDI Registry架构及作用
2011-08-11 00:39 1852Chapter 1. UDDI Regi ... -
Juddiv3 一些问题的解决
2011-08-08 22:20 1531http://mail-archives.apache. ... -
Juddiv3 发布 查询web services
2011-08-07 01:17 1609package juddiv3admin.juddiv3; ... -
Juddiv3 取得令牌的web services代码
2011-08-07 01:08 1733package my.udditestaxis.cl ... -
Juddiv3 参数介绍
2011-08-06 19:11 1775UDDI 注册中心的使用 ... -
JUDDIV3 客户端代码(转载)
2011-08-06 15:50 1882出处:http://blog.chinaunix.net/u3 ... -
JUDDIV3 部署
2011-05-03 15:12 1609JUDDIV3部署了2天了,不用脑子的集成版就下了,用脑子的d ...
相关推荐
### 将xxl-job-1.7.2导入到MyEclipse并部署到Tomcat的详细步骤 ...通过以上步骤,您可以顺利地将xxl-job-1.7.2导入到MyEclipse,并部署到Tomcat中进行使用。希望这些详细步骤能够帮助您顺利完成部署工作。
tomcat文章中的项目部署的示例war包,用于部署项目测试 tomcat文章中的项目部署的示例war包,用于部署项目测试 tomcat文章中的项目部署的示例war包,用于部署项目测试 tomcat文章中的项目部署的示例war包,用于部署...
3. 第三,需要添加项目路径到Tomcat服务器的配置文件中。在Eclipse中部署Tomcat服务器时,需要添加项目路径到Tomcat服务器的配置文件中,以确保Tomcat服务器能够正确地启动项目。 4. 最后,需要启动Tomcat服务器。在...
本资源"springboot部署到外部tomcat容器.rar"显然是关于如何将Spring Boot应用部署到外部的Tomcat服务器上的教程。下面,我们将深入探讨这一主题。 首先,了解Spring Boot的内置Tomcat与外置Tomcat的区别至关重要。...
3. 复制Mule库文件:将Mule安装目录下的`lib`文件夹中除`boot`目录外的所有文件和文件夹复制到Tomcat的根目录下的`mule-libs`文件夹(如果不存在,则创建)。 4. 添加`boot`目录文件:将`lib/boot`目录下的所有必需...
3. **部署Java Web应用到Tomcat** - 将Java项目部署到Tomcat通常有以下几种方式: - 将JAR文件放入`$CATALINA_HOME/lib`目录,这样Tomcat会自动加载其中的Servlet和过滤器。 - 将JAR文件放入`$CATALINA_HOME/...
Docker 容器中 Tomcat 部署出现中文乱码解决方案 在 Docker 容器中部署 Tomcat 时,可能会遇到中文乱码的问题,这是由于 Docker 容器的 locale 设置导致的。在本文中,我们将介绍如何解决这个问题。 什么是 locale...
详细说明了windows服务器nginx+tomcat+mysql部署及配置(配置阿里云后台安全组,配置域名)很适合新手学习 附件中包含: 1.操作说明文档 2.操作录屏 3.安装所用到的软件安装包 1)Windows Server 2019 数据中心版 ...
【Jenkins实现Maven项目自动部署到Tomcat】是一篇关于自动化构建和部署流程的教程。该文档旨在教你如何利用Jenkins自动化处理Maven项目的编译、打包和部署到Tomcat服务器的过程,使得开发工作更加高效。以下是详细的...
3. **管理工具部署**:Tomcat提供了一个名为`Manager App`的Web管理界面,可以在浏览器中访问`http://localhost:8080/manager/html`(需要在`conf/tomcat-users.xml`中添加有足够权限的用户)。上传WAR文件或者通过...
### 项目部署到Tomcat的三种方法 在IT领域中,将开发完成的应用程序部署到生产环境是一项重要的工作。对于使用Java技术栈的开发者来说,Apache Tomcat作为一款开源、轻量级的Servlet容器,是部署Java Web应用程序的...
在实际开发过程中,经常需要将Spring Boot应用部署到Tomcat容器中运行。这种方式的优势在于可以充分利用Spring Boot自身的便捷特性,同时又能在企业级环境中利用Tomcat提供的稳定性和管理功能。 #### 二、Maven配置...
在本文中,我们将介绍如何将 Spring Boot 项目和 Vue 一起部署到 Tomcat 服务器中。这个过程需要我们对 Tomcat 服务器进行配置,以便能够正确地部署并运行我们的应用程序。 Spring Boot 项目和 Vue 的结合 在 ...
本篇文章将详细解释如何在Eclipse中创建一个基于Maven的Web项目,并将其部署到Tomcat服务器上。 首先,创建一个`Web Maven Project`: 1. 打开Eclipse,选择“File” -> “New” -> “Dynamic Web Project”。 2. ...
springboot项目打成war包并部署到Linux的Tomcat中流程目录:启动类继承`SpringBootServletInitializer`pom文件添加`war`mvn命令操作(clean、install)打好的war包部署到Linux的Tomcat中本地访问部署好的项目 ...
3. **版本控制**:在自动化部署中,版本控制工具如Git是必不可少的。通过Git,我们可以方便地管理代码版本,实现代码的版本回溯和协同开发。 4. **服务器环境准备**:确保目标服务器上已经安装了Tomcat、Java运行...
将Web项目部署到Tomcat中的方法之一,是部署没有封装到WAR文件中的Web项目。要使用这一方法部署未打包的webapp目录,只要把我们的项目(编译好的发布项目,非开发项目)放到Tomcat的webapps目录下就可以了。如下图所...