Support Article
Pega717 deployment fails on JBOSS 4.2.3
SA-9655
Summary
Pega 7.1.7 application war file deployment fails on JBOSS 4.2.3.
Error Messages
2015-04-28 13:32:45,561 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/data1/jboss423GAJDK6/jboss-4.2.3.GA/server/devprpc7/deploy/prweb.war/
org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: resource-ref jdbc/PegaRULES found in jboss-web.xml but not in web.xml)
at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:768)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
Steps to Reproduce
Deploy prweb.war on JBOSS 4.2.3
Root Cause
Deployment was causing issues because web.xml did not have the resource-ref to jdbc/PegaRULES.
Resolution
Redeploy application after adding following configurations to web.xml file in Pega 7.1.7 application archive -
<resource-ref id="ResourceRef_1">
<description>PegaRULES datasource</description>
<res-ref-name>jdbc/PegaRULES</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope> <!-- Shareable is default -->
</resource-ref>
<resource-ref id="ResourceRef_2">
<description>PegaRULES Admin datasource</description>
<res-ref-name>jdbc/AdminPegaRULES</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope> <!-- Shareable is default -->
</resource-ref>
<resource-ref id="ResourceRef_3">
<description>Database-based File Access</description>
<res-ref-name>jdbc/PRFileStore</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope> <!-- Shareable is default -->
</resource-ref>
Published June 12, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.