0 Replies Latest reply on Apr 25, 2018 8:29 AM by Abhi Kt

    How to access system-property in the sub ejb project in Wildfly 8.2.1

    Abhi Kt Newbie

      Hi,

       

      I have the following system properties configured in the standalone-full.xml.

       

      <system-properties>

              <property name="org.apache.activemq.SERIALIZABLE_PACKAGES" value="*"/>

              <property name="SamMDB.mdb-user" value="reportserver"/>

              <property name="SamMDB.mdb-passwd" value="${VAULT::vb::samdb_password::1}"/>

          </system-properties>

       

      and my project structure is:

       

      abc.ear

                  def_ejb.jar

                              META-INF

                                         jboss-ejb3.xml (In this file i would like to use the SamMDB.mdb-user value.

      I have tried using the SamMDB.mdb.user value as ${SamMDB.mdb-user} but i'm getting the following exception.

       

       

      2018-04-25 17:36:45,225 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.subunit."IdentityMinder.ear"."sammdb.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."IdentityMinder.ear"."sammdb.jar".PARSE: JBAS018733: Failed to process phase PARSE of subdeployment "sammdb.jar" of deployment "IdentityMinder.ear"

                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_101]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_101]

                  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_101]

      Caused by: java.lang.IllegalStateException: Failed to resolve expression: ${SamMDB.mdb-user}

                  at org.jboss.metadata.property.DefaultPropertyReplacer.replaceProperties(DefaultPropertyReplacer.java:126)

                  at org.jboss.metadata.parser.util.MetaDataElementParser.getElementText(MetaDataElementParser.java:200)

                  at org.jboss.metadata.ejb.parser.spec.ActivationConfigPropertyMetaDataParser.processElement(ActivationConfigPropertyMetaDataParser.java:57)