JBOSS 4.2.3 to Wildfly Migration

472 views
Skip to first unread message

Vishal Chhabria

unread,
Sep 13, 2023, 1:12:53 PM9/13/23
to WildFly
Hello All, 

I have a legacy application running on JBOSS-4.2.3 with Hibernate 2.x.x and JSF-1.0 dependencies and need to migrate the application server to latest wildfly version. I would like to get thoughts on how we should approach this effort. Any references to valuable links and resources are more than welcome.

Thanks In Advance 
Vishal Chhabria

Tomasz Sidor

unread,
Sep 14, 2023, 2:56:26 AM9/14/23
to Vishal Chhabria, WildFly
hello, 
I migrated the application from jboss 4.2.3 to wildfly but I didn't find any instructions or manuals to migrate.
First step: create META-INF/jboss-deployment-structure.xml and exclude modules which are in your war application (example: org.hibernate).
Second: in web.xml add param org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL as true, and try to deploy.
Latest wildfly is dedicated to java > 11 (for example package javax replaced to jakarta) but version 26 run on java 8 and try on it.

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/3cca3eab-4c62-4b57-8b6b-775872a8ef35n%40googlegroups.com.


--
tom

Scott Marlow

unread,
Sep 14, 2023, 3:11:26 AM9/14/23
to Vishal Chhabria, WildFly
Hello,

On Wed, Sep 13, 2023 at 7:12 PM Vishal Chhabria <vishalch...@gmail.com> wrote:
Hello All, 

I have a legacy application running on JBOSS-4.2.3 with Hibernate 2.x.x and JSF-1.0 dependencies and need to migrate the application server to latest wildfly version. I would like to get thoughts on how we should approach this effort. Any references to valuable links and resources are more than welcome.

The latest WildFly is described here https://docs.wildfly.org/29 and the Jakarta EE 10 Specifications are described here https://jakarta.ee/specifications/platform/10/apidocs

The latest Hibernate ORM is described here https://hibernate.org/orm/documentation/6.2 (earlier Hibernate ORM versions are described as well going back to 4.2).

The Latest JSF (now called Jakarta Faces) is described at https://jakarta.ee/specifications/faces/

Scott


 

Thanks In Advance 
Vishal Chhabria

--

Jose Socola

unread,
Sep 14, 2023, 6:05:38 PM9/14/23
to Scott Marlow, Vishal Chhabria, WildFly
Hi, 

We have moved some legacy applications, icefaces 1.8, jsf 1.2 from Jboss 4.2 to Wildfly 26.1.3. JDK17 javax works fine on version 26, if you want to use wildfly 29 you need to move to jakarta.

1. Inside web.xml includes those lines and add all jsf library to web-inf/lib

<context-param>

<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

<param-value>true</param-value>

</context-param>

<context-param>

<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>

<param-value>resources.application</param-value>

</context-param>

<context-param>

<param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>

<param-value>true</param-value>

</context-param>


2. Make a file called jboss-deployment-structure.xml with all jars need, we moved some jars to modules folders and create structure therefore reduce size of war file.

<?xml version="1.0" encoding="UTF-8"?>

<jboss-deployment-structure>

<deployment>

<dependencies>

<module name="org.apache.poi" export="true" />

<module name="org.apache.commons.lang3" export="true" />

<module name="org.apache.commons.beanutils" export="true" />

<module name="org.apache.commons.fileupload" export="true" />

<module name="net.sourceforge.jtds" export="true" />

<module name="com.mylibrary...." export="true" />

</dependencies>

</deployment>

</jboss-deployment-structure>


3. On /bin/standalone.conf you need put
if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="$JBOSS_JAVA_SIZING -Djava.net.preferIPv4Stack=true"
   JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
   JAVA_OPTS="$JAVA_OPTS --add-opens java.base/java.lang=ALL-UNNAMED"
   JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.lang.reflect=ALL-UNNAMED"
   JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.io=ALL-UNNAMED"
   JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.text=ALL-UNNAMED"
   JAVA_OPTS="$JAVA_OPTS --add-opens=java.sql/java.sql=ALL-UNNAMED"
   JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.net=ALL-UNNAMED"
   JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util=ALL-UNNAMED"
   JAVA_OPTS="$JAVA_OPTS  --add-opens=java.base/java.math=ALL-UNNAMED"


Regards,
JS

Vishal Chhabria

unread,
Sep 20, 2023, 3:07:56 AM9/20/23
to Jose Socola, Scott Marlow, ama...@gmail.com, WildFly
Thank you all for your valuable inputs. We have successfully migrated our application to Wildfly 26.1.3.

Best Regards
--
Vishal Chhabria
Reply all
Reply to author
Forward
0 new messages