from
http://m-button.blogspot.com/2008/09/how-to-deploy-hudson-on-weblogic.html
Hudson is an excellent continuous integration engine !
But if you have already tried to use it on WebLogic, you may have encoutered the following error :
This error translated in English says :
"Your servlet container loaded its own Ant version, preventing Hudson to work.
Maybe you could try to fix that by either copying the Hudson lib in your container, or reversing the classloader tree with the child-delegation-first."
If you already read about the FilteringClassLoader mechanism article, it should ring a bell to you !
Well, that's exactly what we are going to do here.
First, as Hudson is available only in WAR format, we are going to create an EAR (because the filteringClassLoader only applies to enterprise applications).
It's easy : just add a "META-INF" folder, like :
ROOT_Folder
----> META-INF
----> application.xml
----> Manifest.mf
----> weblogic-application.xml
----> hudson.war
Your weblogic-application.xml should look like :
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://www.bea.com/ns/weblogic/weblogic-application
http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd">
<!-- server-version: 10.3 -->
<wls:application-param>
<wls:param-name>webapp.encoding.default</wls:param-name>
<wls:param-value>UTF-8</wls:param-value>
</wls:application-param>
<wls:prefer-application-packages>
<wls:package-name>org.apache.*</wls:package-name>
</wls:prefer-application-packages>
</wls:weblogic-application>
application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application version="1.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
<display-name>hudson</display-name>
<module>
<web>
<web-uri>hudson.war</web-uri>
<context-root>/hudson</context-root>
</web>
</module>
</application>
分享到:
相关推荐
How To Deploy Kamailio on Linux
maven deploy the local file to a remote server. 1.config your pom.xml; 2.config your setting.xml; 3.execte cmd --- mvn deploy
【标题】"hudson svn maven deploy BOM" 涉及到的IT知识点主要集中在持续集成工具Hudson、版本控制系统Subversion(SVN)、构建工具Maven以及部署插件和字符编码处理方面。以下是对这些关键概念的详细解释: 1. **...
Usage: How to deploy in low lantency mode?(CN, EN) Usage: How to ingest file/stream/device to RTMP?(CN, EN) Usage: How to delivery HLS by SRS HTTP server?(CN, EN) Usage: How to publish h.264 raw ...
标题中的 "[Deployer:149026]Deploy application WebContent on myserver" 提示我们这是一项关于部署Web应用程序的活动,其中“Deployer:149026”可能是一个特定部署工具或进程的标识符,而“myserver”指的是目标...
WebLogic Server是BEA Systems(现在已被Oracle公司收购)开发的一款Java应用服务器,它主要用于构建、部署和管理大型分布式Web应用程序、网络应用程序以及数据库应用程序。WebLogic Server以其高性能、可扩展性和高...
国外2B市场很早就成熟了,有一批专业人士一辈子都在研究数据管理及治理,有很多专业...John Ladley-Data Governance_ How to Design, Deploy and Sustain an Effective Data Governance Program-Morgan Kaufmann (2012)
Gather_how_to_deploy_tensorflow_models_as_much_I_c_Gather-Tensorflow-Serving
Several good tools and guides describe how to deploy Hadoop clusters, but very little documentation tells how to increase performance on a Hadoop cluster once it is deployed. This white paper ...
Deploy the edge computing data platform on docker.
and how to deploy their very own open source Platform-as-a-Service based on the upstream OpenShift Origin project. Product Details Paperback: 116 pages Publisher: Packt Publishing (October 24, 2013)...
Finally, we’ll learn how to deploy the application to a virtual server, and install custom domains and SSL certificates. It is my hope that by the time you are finished reading this book, you’ll ...
Following on from the Delivery part of the process, you will learn how to deploy a newly created, tested and verified artefact to the AWS infrastructure without manual intervention. You will then ...
Debian系统管理员的手册,内容非常丰富。更新到了 Debian 7。epub 格式适合在移动设备上阅读。这本书的网站上(http://debian-handbook.info/)有pdf版本。
laravel-deploy-on-shared-hosting, 将 Laravel 应用程序部署到共享主机服务的简单指南 如何在共享主机上部署 Laravel 应用程序 共享主机 Laravel 和流明应用的简易部署指南。For ( 你们中的许多人可能已经读过)的一...
Provides practical examples of how to design and deploy a world-class security infrastructure to protect both Windows 8 and non-Microsoft assets on your system Written by two Microsoft employees who ...
Preparing to Deploy NSX with Britton Johnson (@vcixnv) and Aaron Bolthouse (@Bhouse563) [720p].mp4Preparing to Deploy NSX with Britton Johnson (@vcixnv) and Aaron Bolthouse (@Bhouse563) [720p].mp4
Chapter 5, Using vSphere Auto Deploy, you will learn how to deploy stateless and stateful ESXi host without the need to have to run the ISO installation on the server hardware. Chapter 6, Using ...