5 Replies Latest reply on Oct 19, 2018 2:55 PM by Arin Mukheree

    Help!!! - Jboss AS 7.1.3.FINAL migration to WILDFLY 10.1.0.FINAL issue while deploying

    Arin Mukheree Newbie

      Hi,

       

      I am intending to migrate the existing application in JBoss AS 7.1.3.final to Wildfly 10.1.0.FINAL and getting below issue during deployment (attached is the full server.log and standalone.xml). Please advise:

       

      ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 1) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "phoenix.war")]) - failure description: {

          "WFLYCTL0412: Required services that are not installed:" => [

              "jboss.clustering.registry.web.routing",

              "jboss.infinispan.web.default.config",

              "jboss.infinispan.web.affinity",

              "jboss.clustering.nodes.web.routing",

              "jboss.clustering.dispatcher.web",

              "jboss.infinispan.web"

          ],

          "WFLYCTL0180: Services with missing/unavailable dependencies" => [

              "jboss.infinispan.web.\"phoenix.war\".config is missing [jboss.infinispan.web.default.config, jboss.infinispan.web]",

              "jboss.clustering.web.\"phoenix.war\" is missing [jboss.clustering.dispatcher.web, jboss.infinispan.web.affinity]",

              "jboss.infinispan.web.\"phoenix.war\" is missing [jboss.infinispan.web]",

              "jboss.clustering.web.locator.\"phoenix.war\".registry is missing [jboss.clustering.registry.web.routing]",

              "jboss.clustering.web.locator.\"phoenix.war\".nodes is missing [jboss.clustering.nodes.web.routing]"

          ]

      }

      14:21:45,988 ERROR [org.jboss.as.server] (External Management Request Threads -- 1) WFLYSRV0021: Deploy of deployment "phoenix.war" was rolled back with the following failure message:

      {

          "WFLYCTL0412: Required services that are not installed:" => [

              "jboss.clustering.registry.web.routing",

              "jboss.infinispan.web.default.config",

              "jboss.infinispan.web.affinity",

              "jboss.clustering.nodes.web.routing",

              "jboss.clustering.dispatcher.web",

              "jboss.infinispan.web"

          ],

          "WFLYCTL0180: Services with missing/unavailable dependencies" => [

              "jboss.infinispan.web.\"phoenix.war\".config is missing [jboss.infinispan.web.default.config, jboss.infinispan.web]",

              "jboss.clustering.web.\"phoenix.war\" is missing [jboss.clustering.dispatcher.web, jboss.infinispan.web.affinity]",

              "jboss.infinispan.web.\"phoenix.war\" is missing [jboss.infinispan.web]",

              "jboss.clustering.web.locator.\"phoenix.war\".registry is missing [jboss.clustering.registry.web.routing]",

              "jboss.clustering.web.locator.\"phoenix.war\".nodes is missing [jboss.clustering.nodes.web.routing]"

          ]

      }

        • 1. Re: Help!!! - Jboss AS 7.1.3.FINAL migration to WILDFLY 10.1.0.FINAL issue while deploying
          Claudio Miranda Expert

          Use the standalone-full-ha.xml instead of standalone.xml

           

          To launch a custom configuration: ./standalone.sh -c standalone-full-ha.xml

          • 2. Re: Help!!! - Jboss AS 7.1.3.FINAL migration to WILDFLY 10.1.0.FINAL issue while deploying
            Arin Mukheree Newbie

            Thanks for the quick response.

            I did as you mentioned to use the standalone-full-ha.xml but now the server wouldn't even boot up. Here is the error i get :

             

            14:01:06,503 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration

            at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)

            at org.jboss.as.server.ServerService.boot(ServerService.java:357)

            at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)

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

            Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[308,13]

            Message: "WFLYCTL0248: Invalid value on for security; legal values are [identity, client, none]"

            at org.jboss.as.controller.AttributeParser.parse(AttributeParser.java:91)

            at org.jboss.as.controller.AttributeParser.parseAndSetParameter(AttributeParser.java:68)

            at org.jboss.as.controller.PersistentResourceXMLDescription.parseAttributes(PersistentResourceXMLDescription.java:196)

            at org.jboss.as.controller.PersistentResourceXMLDescription.parseGroup(PersistentResourceXMLDescription.java:172)

            at org.jboss.as.controller.PersistentResourceXMLDescription.parseAttributeGroups(PersistentResourceXMLDescription.java:156)

            at org.jboss.as.controller.PersistentResourceXMLDescription.parse(PersistentResourceXMLDescription.java:117)

            at org.wildfly.iiop.openjdk.IIOPSubsystemParser.readElement(IIOPSubsystemParser.java:76)

            at org.wildfly.iiop.openjdk.IIOPSubsystemParser.readElement(IIOPSubsystemParser.java:50)

            at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

            at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)

            at org.jboss.as.server.parsing.StandaloneXml_4.parseServerProfile(StandaloneXml_4.java:546)

            at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:242)

            at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)

            at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)

            at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)

            at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

            at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

            at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)

            ... 3 more

             

             

            14:01:06,505 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

            14:01:06,514 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0050: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 5ms

            Disconnected from server

            • 3. Re: Help!!! - Jboss AS 7.1.3.FINAL migration to WILDFLY 10.1.0.FINAL issue while deploying
              Claudio Miranda Expert

              The error message says there is a parser error at line 308. Can you put here an excerpt of thar part ?

               

              Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[308,13]

              Message: "WFLYCTL0248: Invalid value on for security; legal values are [identity, client, none]"

              • 4. Re: Help!!! - Jboss AS 7.1.3.FINAL migration to WILDFLY 10.1.0.FINAL issue while deploying
                Arin Mukheree Newbie

                Found the issue - the security was defined as "on" and should have been "identity".

                 

                <subsystem xmlns="urn:jboss:domain:iiop-openjdk:1.0">

                            <orb socket-binding="iiop" ssl-socket-binding="iiop-ssl"/>

                            <initializers security="on" transactions="spec"/>

                </subsystem>

                That resolved the start up issues using standalone-fill-ha.xml.

                 

                Now i see an error that pops up-

                java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocator

                 

                In my applicationContext.xml i have a bean definition and looks like that is causing this error-

                 

                <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">
                  <property name="validationMessageSource">
                  <ref bean="messageSource"/>
                  </property>
                </bean>

                 

                Please advise.

                • 5. Re: Help!!! - Jboss AS 7.1.3.FINAL migration to WILDFLY 10.1.0.FINAL issue while deploying
                  Arin Mukheree Newbie

                  Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validator' defined in class path resource [META-INF/spring/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:

                  PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocator

                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1453)

                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)

                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)

                  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)

                  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)

                  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)

                  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

                  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633)

                  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)

                  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)

                  at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)

                  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)

                  at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)

                  at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)

                  at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:200)

                  at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171)

                  at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)

                  at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

                  at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

                  at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

                  at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

                  at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

                  at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

                  at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

                  at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234)

                  ... 8 more

                  Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:

                  PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocator

                  at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:101)

                  at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57)

                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1450)

                  ... 33 more

                  11:54:45,604 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 4) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "phoenix")]) - failure description: {

                      "WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./phoenix" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./phoenix: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validator' defined in class path resource [META-INF/spring/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:

                  PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocator

                      Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validator' defined in class path resource [META-INF/spring/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:

                  PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocator

                      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validator' defined in class path resource [META-INF/spring/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:

                  PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocator

                      Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:

                  PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocator"},

                      "WFLYCTL0412: Required services that are not installed:" => ["jboss.undertow.deployment.default-server.default-host./phoenix"],

                      "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined

                  }