7 Replies Latest reply on Oct 5, 2017 11:59 AM by claudio4j

    Migration from JBoss 4.0 to Wildfly 9 [Failed]

    tbh_8772

      Hi All,

       

      Currently I am trying to migrating a J2EE application named "WEBAPP_TEST1" from Jboss 4.0.2 [Java 7] to Wildfly 9.0.2 Final [Java 8].

       

      However, I unable to start the server via standalone mode. Can help to provide some guidance on this issue?

       

      I have set JAVA_HOME and path as below:

      JAVA_HOME = C:\Program Files\Java\jdk1.8.0_51

      JBOSS_HOME = C:\wildfly-9.0.2.Final

      Path = %JAVA_HOME%\bin..etc

       

      I have added the jboss-web.xml under the WEB_INF folder:

       

      jboss-web.xml

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

      <jboss-web xmlns="http://www.jboss.com/xml/ns/javaee"

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

         xsi:schemaLocation="

            http://www.jboss.com/xml/ns/javaee

            http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd">

         <context-root>/</context-root>

      </jboss-web>

       

      JBoss Server Log:

      2017-10-01 14:46:16,735 INFO  [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final

      2017-10-01 14:46:17,050 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final

      2017-10-01 14:46:17,133 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) starting

      2017-10-01 14:46:17,135 DEBUG [org.jboss.as.config] (MSC service thread 1-7) Configured system properties:

      awt.toolkit = sun.awt.windows.WToolkit

      file.encoding = Cp1252

      file.encoding.pkg = sun.io

      file.separator = \

      java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment

      java.awt.printerjob = sun.awt.windows.WPrinterJob

      java.class.path = C:\wildfly-9.0.2.Final\jboss-modules.jar

      java.class.version = 52.0

      java.endorsed.dirs = C:\Program Files\Java\jdk1.8.0_51\jre\lib\endorsed

      java.ext.dirs = C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext

      java.home = C:\Program Files\Java\jdk1.8.0_51\jre

      java.io.tmpdir = C:\Users\user\AppData\Local\Temp\

      java.library.path = C:\Program Files\Java\jdk1.8.0_51\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Brackets\command;C:\Program Files (x86)\MySQL\MySQL Server 4.1\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Program Files\Java\jdk1.8.0_51\bin;C:\wildfly-9.0.2.Final\bin;C:\Users\user\AppData\Local\Microsoft\WindowsApps;;.

      java.net.preferIPv4Stack = true

      java.runtime.name = Java(TM) SE Runtime Environment

      java.runtime.version = 1.8.0_51-b16

      java.specification.name = Java Platform API Specification

      java.specification.vendor = Oracle Corporation

      java.specification.version = 1.8

      java.util.logging.manager = org.jboss.logmanager.LogManager

      java.vendor = Oracle Corporation

      java.vendor.url = http://java.oracle.com/

      java.vendor.url.bug = http://bugreport.sun.com/bugreport/

      java.version = 1.8.0_51

      java.vm.info = mixed mode

      java.vm.name = Java HotSpot(TM) 64-Bit Server VM

      java.vm.specification.name = Java Virtual Machine Specification

      java.vm.specification.vendor = Oracle Corporation

      java.vm.specification.version = 1.8

      java.vm.vendor = Oracle Corporation

      java.vm.version = 25.51-b03

      javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder

      javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory

      javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory

      javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory

      javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory

      javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory

      javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory

      javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory

      javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory

      javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory

      jboss.home.dir = C:\wildfly-9.0.2.Final

      jboss.host.name = admin

      jboss.modules.dir = C:\wildfly-9.0.2.Final\modules

      jboss.modules.system.pkgs = org.jboss.byteman

      jboss.node.name = admin

      jboss.qualified.host.name = admin

      jboss.server.base.dir = C:\wildfly-9.0.2.Final\standalone

      jboss.server.config.dir = C:\wildfly-9.0.2.Final\standalone\configuration

      jboss.server.data.dir = C:\wildfly-9.0.2.Final\standalone\data

      jboss.server.deploy.dir = C:\wildfly-9.0.2.Final\standalone\data\content

      jboss.server.log.dir = C:\wildfly-9.0.2.Final\standalone\log

      jboss.server.name = admin

      jboss.server.persist.config = true

      jboss.server.temp.dir = C:\wildfly-9.0.2.Final\standalone\tmp

      line.separator =

       

       

      logging.configuration = file:C:\wildfly-9.0.2.Final\standalone\configuration/logging.properties

      module.path = C:\wildfly-9.0.2.Final\modules

      org.jboss.boot.log.file = C:\wildfly-9.0.2.Final\standalone\log\server.log

      org.jboss.resolver.warning = true

      org.xml.sax.driver = __redirected.__XMLReaderFactory

      os.arch = amd64

      os.name = Windows 8.1

      os.version = 6.3

      path.separator = ;

      program.name = standalone.bat

      sun.arch.data.model = 64

      sun.boot.class.path = C:\Program Files\Java\jdk1.8.0_51\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_51\jre\classes

      sun.boot.library.path = C:\Program Files\Java\jdk1.8.0_51\jre\bin

      sun.cpu.endian = little

      sun.cpu.isalist = amd64

      sun.desktop = windows

      sun.io.unicode.encoding = UnicodeLittle

      sun.java.command = C:\wildfly-9.0.2.Final\jboss-modules.jar -mp C:\wildfly-9.0.2.Final\modules org.jboss.as.standalone -Djboss.home.dir=C:\wildfly-9.0.2.Final

      sun.java.launcher = SUN_STANDARD

      sun.jnu.encoding = Cp1252

      sun.management.compiler = HotSpot 64-Bit Tiered Compilers

      sun.os.patch.level =

      sun.stderr.encoding = cp437

      sun.stdout.encoding = cp437

      user.country = US

      user.dir = C:\wildfly-9.0.2.Final\bin

      user.home = C:\Users\user

      user.language = en

      user.name = user

      user.script =

      user.timezone = Asia/Singapore

      user.variant =

      2017-10-01 14:46:17,165 DEBUG [org.jboss.as.config] (MSC service thread 1-7) VM Arguments: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=C:\wildfly-9.0.2.Final\standalone\log\server.log -Dlogging.configuration=file:C:\wildfly-9.0.2.Final\standalone\configuration/logging.properties

      2017-10-01 14:46:18,593 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 25) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.

      2017-10-01 14:46:18,593 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 22) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/subsystem=batch' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.

      2017-10-01 14:46:18,638 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment WEBAPP_TEST1.war

      2017-10-01 14:46:18,837 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 7) WFLYDR0001: Content added at location C:\wildfly-9.0.2.Final\standalone\data\content\f6\8d58d245c41a37e637aba43c404f0ff57c62e6\content

      2017-10-01 14:46:18,856 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)

      2017-10-01 14:46:18,891 INFO  [org.xnio] (MSC service thread 1-1) XNIO version 3.3.1.Final

      2017-10-01 14:46:18,901 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.3.1.Final

      2017-10-01 14:46:18,968 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.

      2017-10-01 14:46:18,972 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem

      2017-10-01 14:46:18,973 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension

      2017-10-01 14:46:18,975 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0003: Undertow 1.2.9.Final starting

      2017-10-01 14:46:18,978 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0003: Undertow 1.2.9.Final starting

      2017-10-01 14:46:18,990 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main]

      2017-10-01 14:46:18,992 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem

      2017-10-01 14:46:19,002 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors

      2017-10-01 14:46:19,007 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem.

      2017-10-01 14:46:19,088 INFO  [org.jboss.as.connector] (MSC service thread 1-6) WFLYJCA0009: Starting JCA Subsystem (IronJacamar 1.2.5.Final)

      2017-10-01 14:46:19,098 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      2017-10-01 14:46:19,423 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 4.0.9.Final

      2017-10-01 14:46:19,427 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = h2

      2017-10-01 14:46:19,488 INFO  [org.jboss.as.naming] (MSC service thread 1-7) WFLYNAM0003: Starting Naming Service

      2017-10-01 14:46:19,490 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-6) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]

      2017-10-01 14:46:19,536 INFO  [org.jboss.as.security] (MSC service thread 1-8) WFLYSEC0001: Current PicketBox version=4.9.2.Final

      2017-10-01 14:46:19,707 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path C:\wildfly-9.0.2.Final/welcome-content

      2017-10-01 14:46:19,728 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0012: Started server default-server.

      2017-10-01 14:46:19,901 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0018: Host default-host starting

      2017-10-01 14:46:19,981 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006: Undertow HTTP listener default listening on /127.0.0.1:8080

      2017-10-01 14:46:20,064 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) WFLYDS0013: Started FileSystemDeploymentService for directory C:\wildfly-9.0.2.Final\standalone\deployments

      2017-10-01 14:46:20,078 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "WEBAPP_TEST1.war" (runtime-name: "WEBAPP_TEST1.war")

      2017-10-01 14:46:20,224 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]

      2017-10-01 14:46:20,327 INFO  [org.jboss.ws.common.management] (MSC service thread 1-8) JBWS022052: Starting JBoss Web Services - Stack CXF Server 5.0.0.Final

      2017-10-01 14:46:23,249 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."WEBAPP_TEST1.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."WEBAPP_TEST1.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "WEBAPP_TEST1.war"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:745)

      Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class sCustomerEnquiry with ClassLoader ModuleClassLoader for Module "deployment.WEBAPP_TEST1.war:main" from Service Module Loader

      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)

      at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:57)

      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:107)

      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:92)

      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)

      ... 5 more

      Caused by: java.lang.NoClassDefFoundError: HttpServletRequest

      at java.lang.Class.getDeclaredMethods0(Native Method)

      at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)

      at java.lang.Class.getDeclaredMethods(Class.java:1975)

      at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65)

      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)

      ... 10 more

      Caused by: java.lang.ClassNotFoundException: HttpServletRequest from [Module "deployment.WEBAPP_TEST1.war:main" from Service Module Loader]

      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)

      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)

      ... 15 more

       

       

      2017-10-01 14:46:23,282 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "WEBAPP_TEST1.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"WEBAPP_TEST1.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WEBAPP_TEST1.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"WEBAPP_TEST1.war\"

          Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class sCustomerEnquiry with ClassLoader ModuleClassLoader for Module \"deployment.WEBAPP_TEST1.war:main\" from Service Module Loader

          Caused by: java.lang.NoClassDefFoundError: HttpServletRequest

          Caused by: java.lang.ClassNotFoundException: HttpServletRequest from [Module \"deployment.WEBAPP_TEST1.war:main\" from Service Module Loader]"}}

      2017-10-01 14:46:23,343 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "WEBAPP_TEST1.war" (runtime-name : "WEBAPP_TEST1.war")

      2017-10-01 14:46:23,347 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report

      WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."WEBAPP_TEST1.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."WEBAPP_TEST1.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "WEBAPP_TEST1.war"

       

       

      2017-10-01 14:46:23,577 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management

      2017-10-01 14:46:23,579 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990

      2017-10-01 14:46:23,580 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) started (with errors) in 7141ms - Started 216 of 393 services (1 services failed or missing dependencies, 212 services are lazy, passive or on-demand)

      2017-10-01 14:46:24,788 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0028: Stopped deployment WEBAPP_TEST1.war (runtime-name: WEBAPP_TEST1.war) in 1185ms

      2017-10-01 14:46:25,053 INFO  [org.jboss.as.repository] (DeploymentScanner-threads - 1) WFLYDR0002: Content removed from location C:\wildfly-9.0.2.Final\standalone\data\content\f6\8d58d245c41a37e637aba43c404f0ff57c62e6\content

      2017-10-01 14:46:25,057 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "WEBAPP_TEST1.war" (runtime-name: "WEBAPP_TEST1.war")

      2017-10-01 14:46:25,061 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report

      WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."WEBAPP_TEST1.war".POST_MODULE

        • 1. Re: Migration from JBoss 4.0 to Wildfly 9 [Failed]
          claudio4j

          How is your application packaged ? What is the output of a jar tf <app> ?

          Do not package libraries already provided by Wildfly as: servlets, jpa, jta, etc.

          As you are migrating a very old application, it is possible it uses old libraries that may not work with Wildfly due to its dependencies: hibernate 3, etc.

          • 2. Re: Migration from JBoss 4.0 to Wildfly 9 [Failed]
            tbh_8772

            Hi Claudio,

             

            Thanks for your feedback.

             

            The structure of the WAR file are as below:

             

            WAR file structure:

            WEB-INF

            jboss-deployment-structure.xml

            jboss-web.xml

            web.xml

             

            Libray Structure:

            JRE System Library [jdk1.8.0_51]

            Web App Libraries

            Wildfly 8x RunTime

             

            jboss-deployment-structure.xml

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

            <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

            <deployment>

            <exclusions>

            <module name="org.apache.log4j" />

            </exclusions>

            </deployment>

            </jboss-deployment-structure>

             

            jboss-web.xml

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

            <jboss-web>

               <context-root>/</context-root>

            </jboss-web>

             

            I was able to find out that there are some invalid servlet defined in web.xml. The error gone after I removed it.

             

            Now, the Wildfly console on eclipse has no error during server starting but it is still unable to start the application:

             

            Wildfly Console on Eclipse:

            17:23:03,973 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final

            17:23:04,231 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final

            17:23:04,297 INFO  [org.jboss.as] (MSC service thread 1-7) JBAS015899: WildFly 8.2.1.Final "Tweek" starting

            17:23:05,959 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found WEBAPP_TEST1.war in deployment directory. To trigger deployment create a file called WEBAPP_TEST1.war.dodeploy

            17:23:05,973 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)

            17:23:05,990 INFO  [org.xnio] (MSC service thread 1-5) XNIO version 3.3.0.Final

            17:23:05,999 INFO  [org.xnio.nio] (MSC service thread 1-5) XNIO NIO Implementation Version 3.3.0.Final

            17:23:06,050 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

            17:23:06,069 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.

            17:23:06,069 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

            17:23:06,074 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.

            17:23:06,074 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem

            17:23:06,085 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem

            17:23:06,101 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017502: Undertow 1.1.8.Final starting

            17:23:06,110 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]

            17:23:06,114 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.9.Final)

            17:23:06,120 INFO  [org.jboss.as.security] (MSC service thread 1-3) JBAS013170: Current PicketBox version=4.0.21.Final

            17:23:06,121 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.1.8.Final starting

            17:23:06,155 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 31) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors

            17:23:06,184 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) JBAS010417: Started Driver service with driver-name = h2

            17:23:06,349 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path C:\wildfly-8.2.1.Final/welcome-content

            17:23:06,399 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service

            17:23:06,400 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]

            17:23:06,637 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class com.microsoft.sqlserver.jdbc.SQLServerDriver (version 4.2)

            17:23:06,641 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) JBAS010417: Started Driver service with driver-name = sqlserver

            17:23:06,688 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017525: Started server default-server.

            17:23:06,693 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017531: Host default-host starting

            17:23:06,732 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 4.0.7.Final

            17:23:06,900 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory C:\wildfly-8.2.1.Final\standalone\deployments

            17:23:06,905 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "WEBAPP_TEST1.war" (runtime-name: "WEBAPP_TEST1.war")

            17:23:06,928 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017519: Undertow HTTP listener default listening on localhost/127.0.0.1:8080

            17:23:07,092 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:/MSSQLDS]

            17:23:07,092 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

            17:23:07,270 INFO  [org.jboss.ws.common.management] (MSC service thread 1-2) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.2.Final

            17:23:08,656 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010403: Deploying JDBC-compliant driver class com.microsoft.sqlserver.jdbc.SQLServerDriver (version 4.2)

            17:23:08,692 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010417: Started Driver service with driver-name = WEBAPP_TEST1.war_com.microsoft.sqlserver.jdbc.SQLServerDriver_4_2

            17:23:09,015 INFO  [stdout] (MSC service thread 1-2) Successfully perform sAppInit.

             

            17:23:09,200 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017534: Registered web context: /

            17:23:09,241 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "WEBAPP_TEST1.war" (runtime-name : "WEBAPP_TEST1.war")

            17:23:09,364 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

            17:23:09,365 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

            17:23:09,367 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.1.Final "Tweek" started in 5664ms - Started 463 of 518 services (92 services are lazy, passive or on-demand)

             

            Sorry as I am still new in JBoss or Wildfly deployment.

            • 3. Re: Migration from JBoss 4.0 to Wildfly 9 [Failed]
              tbh_8772

              Hi All,

               

              Add on with the Web App Libraries:

               

              • 4. Re: Migration from JBoss 4.0 to Wildfly 9 [Failed]
                claudio4j

                At first you said Wildfly 9.0.2 is used, but the last log says 8.2.1.

                 

                The last log says the application is deployed: Deployed "WEBAPP_TEST1.war" (runtime-name : "WEBAPP_TEST1.war")

                 

                Does the URL http://127.0.0.1:8080/ work ?

                • 5. Re: Migration from JBoss 4.0 to Wildfly 9 [Failed]
                  tbh_8772

                  Hi Claudio Miranda,

                   

                  Sorry as I have change to Wildfly 8.2.1 as I were trying other version. I will try the Wildfly 9.0.2 later also.

                   

                  Thanks for the guide, now only I notice that I can access it via http://127.0.0.1:8080/ instead of http://127.0.0.1:8080/WEBAPP_TEST1

                   

                  Really appreciate for the big help given here.

                  • 6. Re: Migration from JBoss 4.0 to Wildfly 9 [Failed]
                    claudio4j

                    jboss-web.xml contains  <context-root>/</context-root>, so the url is at root context.