1 Reply Latest reply: Oct 16, 2012 8:40 AM by Stephen Coy RSS

How to  Deploy the my.properties files   into  .war application into  Jboss 7  AS server

Tarlok Chand Newbie

I  have got below deployment error  when  i  try  to  deploy  our .war application into  jboss 7.1 As .  I have already defined the cil.properties file into modules path e.g  $JBOSS_HOME/modules/com/cil/main/module.xml file, contents of module.xml are

 

 

 

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

<module xmlns="urn:jboss:module:1.1" name="com.cil">

    <resources>

    <!--    <resource-root path="." /> -->

<resource-root path="cil.error.properties" />

 

<resource-root path="cil.properties" />

<resource-root path="SiperianConnection-exam.properties" />

<resource-root path="CustomerCareServices.wsdl" />

<resource-root path="EXAMWebConfirmEmail.wsdl" />

<resource-root path="SiebelContactUpsert.wsdl" />

<resource-root path="SiebelCreateOrder.wsdl" />

<resource-root path="SiebelGetPricing.wsdl" />

<resource-root path="SRUpdateService.wsdl" />

 

</resources>

 

<dependencies>

<module name="com.cil" />

    </dependencies>

</module>

 

 

----- END -----

 

 

 

0 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.module.service."deployment.cil-ws.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.cil-ws.war".main: JBAS018759: Failed to load module: deployment.cil-ws.war:main

        at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:92) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_21]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_21]

        at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_21]

Caused by: org.jboss.modules.ModuleLoadException: Error loading module from /apps/jboss/jboss-eap6/eap/jboss-eap-6.0/modules/com/cil/main/module.xml

        at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:293)

        at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:243)

        at org.jboss.modules.LocalModuleLoader.parseModuleInfoFile(LocalModuleLoader.java:138)

        at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:122)

        at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)

        at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)

        at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)

        at org.jboss.modules.ModuleLoader.preloadExportedModule(ModuleLoader.java:233)

        at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:246)

        at org.jboss.as.server.moduleservice.ServiceModuleLoader.preloadModule(ServiceModuleLoader.java:160) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

        at org.jboss.modules.Module.addPaths(Module.java:851)

        at org.jboss.modules.Module.link(Module.java:1206)

        at org.jboss.modules.Module.relinkIfNecessary(Module.java:1235)

        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208)

        at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:71) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

        ... 5 more

 

Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[6,40]

Message: Failed to add resource root 'cil.properties' at path 'cil.properties'

        at org.jboss.modules.ModuleXmlParser.parseResourceRoot(ModuleXmlParser.java:899)

        at org.jboss.modules.ModuleXmlParser.parseResources(ModuleXmlParser.java:855)

        at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:677)

        at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:549)

        at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:288)

        ... 19 more

 

Please review the attached cil.properties file with  this discussion. Please guid me "How to  migrate external  classes into War application  for JBOSS EAP5.1 to  JBOSS EAP6/Jboss7.1

Thanks