Migrating from Weblogic to JBoss
pyroplasm Feb 7, 2012 11:55 AMHello,
I am part of a team that is migrating an application from Weblogic 11g to JBoss Enterprise Platform 5.0.1.CR2. I know that part of this is to change the existing weblogic.xml file over to a jboss.xml file. I have seen some things online about using XLST stylesheets to do this, I believe, at runtime but this really isn't an option for me. I'm looking to see if there is either a methodoligy that I need to use when converting it over from JBoss to Weblogic or if there is some kind of tool that I can use that I give some information and it does the conversion or if I need to use something like the XLST but I only need to use it once and it converts my code. Below is my weblogic.xml file. Any help would be appreciated.
[code]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC
"-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<description>
sensitive
</description>
<!-- Disables session cookies and encoding the session ID in the URL because we're not using sessions -->
<session-descriptor>
<session-param>
<param-name>TimeoutSecs</param-name>
<param-value>120</param-value> <!-- 30 minute timeout -->
</session-param>
<session-param>
<param-name>URLRewritingEnabled</param-name>
<param-value>false</param-value>
</session-param>
<session-param>
<param-name>CookiesEnabled</param-name>
<param-value>false</param-value>
</session-param>
</session-descriptor>
<jsp-descriptor>
<jsp-param>
<param-name>compileFlags</param-name>
<param-value>-g</param-value>
</jsp-param>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
<context-root>sensitive</context-root>
</weblogic-web-app>
[/code]
I also have a web.xml file that was told needed to be changed.
[code]
<?xml version="1.0" encoding="UTF-8"?>
<!-- Filename: web.xml -->
<!-- $Header: //VM_Data/IRS_GOV/Source_Code/a/Source_Code/IRS_App/JAVA/sensitive/WebContent/WEB-INF/web.xml-arc 1.15 Aug 18 2010 12:34:24 me $ -->
<!-- $Revision: 1.15 $ -->
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Application</display-name>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:log4j.properties</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/foundation-core-context.xml,
classpath:/integration-context.xml,
classpath:/integration-core-context.xml,
classpath:/service-context.xml,
classpath:/controller-servlet.xml,
classpath:/controller-support.xml,
classpath:/override-context.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>log4j</servlet-name>
<servlet-class>sensitive.servlet.Log4jServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/classes/log4j.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>namespace</param-name>
<param-value>classes/controller-servlet</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>errorHandlerServlet</servlet-name>
<servlet-class>sensitive.servlet.ErrorServlet</servlet-class>
<init-param>
<param-name>errorPage</param-name>
<param-value>/WEB-INF/error.jsp</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>log4j</servlet-name>
<url-pattern>/log4j</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/list/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>errorHandlerServlet</servlet-name>
<url-pattern>/errorHandlerServlet</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>400</error-code>
<location>/WEB-INF/errorPages/400errorPage.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/errorPages/403errorPage.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/errorPages/404errorPage.jsp</location>
</error-page>
<error-page>
<error-code>408</error-code>
<location>/WEB-INF/errorPages/408errorPage.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/WEB-INF/errorPages/500errorPage.jsp</location>
</error-page>
<error-page>
<error-code>503</error-code>
<location>/WEB-INF/errorPages/503errorPage.jsp</location>
</error-page>
<error-page>
<error-code>504</error-code>
<location>/WEB-INF/errorPages/504errorPage.jsp</location>
</error-page>
<error-page>
<error-code>505</error-code>
<location>/WEB-INF/errorPages/505errorPage.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/errorHandlerServlet</location>
</error-page>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>
</web-app>
[/code]