<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
org.jbpm.api.JbpmException: couldn't get resource urls for jbpm.user.wire.bindings.xml
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/chaitanya_d6%40yahoo.com">Chaitanya Desai</a> in <i>jBPM Development</i> - <a href="http://community.jboss.org/message/561436#561436">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I have a sample Hello project with following structure </p><p>C:\jbpmTrial\Hello is my workspace :  Hello is the project within jbpmTrial workspace</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>*Hello</p><p>   ------src</p><p>         ------org.example.sample.greeting</p><p>               -----Hello.java</p><p>               -----hello.jpdl.xml</p><p>               ------hello.png</p><p>               ------review.ftl</p><p>         ------- jbpm.cfg.xml</p><p>         ------- jbpm.hibernate.cfg.xml   </p><p>    jBPM Libraries</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>jbpm installation: C:\jbpm-4.4</p><p>Jboss: C:\jboss-5.1.0.GA</p><p>jdk:C:\jdk1.6.0_21</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I modified the ant build file provided with sample examples to deploy Hello project. I am able to see deployment on jbpm console and even the task forms and view the sample println outputs produced from another function in Hello.java file using cmd.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>However when i try to access the processEngine and program/code certain logic in the main method I get an error</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><p>Exception in thread "main" java.lang.ExceptionInInitializerError</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.cfg.ConfigurationParser.<init>(ConfigurationParser.java:46)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.cfg.ConfigurationParser.<clinit>(ConfigurationParser.java:49)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:50)</p><p><span style="white-space: pre;"> </span>at org.jbpm.api.Configuration.setResource(Configuration.java:79)</p><p><span style="white-space: pre;"> </span>at org.example.sample.greeting.Hello.main(Hello.java:26)</p><p>Caused by: org.jbpm.api.JbpmException: couldn't get resource urls for jbpm.user.wire.bindings.xml</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.wire.xml.WireParser.<clinit>(WireParser.java:284)</p><p><span style="white-space: pre;"> </span>... 7 more</p><p>Caused by: java.lang.NullPointerException</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.wire.xml.WireParser.<clinit>(WireParser.java:281)</p><p><span style="white-space: pre;"> </span>... 7 more</p></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The error  is observed @ line:</p><p>ProcessEngine processEngine = new Configuration().setResource("C:/jbpmTrial/Hello/src/jbpm.cfg.xml").buildProcessEngine();</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The main method that i am trying to run is :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><p>public static void main(String args[]) </p><p><span style="white-space: pre;"> </span>{</p><p><span style="white-space: pre;"> </span>String location="C:/jbpmTrial/Hello/src/jbpm.cfg.xml";</p><p><span style="white-space: pre;"> </span>URL u = ClassLoader.getSystemResource(location);</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="white-space: pre;"> </span> </p><p><span style="white-space: pre;"> </span>ProcessEngine processEngine = new Configuration().setResource("C:/jbpmTrial/Hello/src/jbpm.cfg.xml").buildProcessEngine();</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="white-space: pre;"> </span> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="white-space: pre;"> </span> </p><p><span style="white-space: pre;"> </span>System.out.println("Hello world, Starting the flow");</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="white-space: pre;"> </span> </p><p><span style="white-space: pre;"> </span>System.out.println("Ending the flow");</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="white-space: pre;"> </span>}</p><div> </div></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>jbpm.cfg.xml file is:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><?xml version="1.0" encoding="UTF-8"?></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><jbpm-configuration></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <import resource="jbpm.default.cfg.xml" /></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <import resource="jbpm.businesscalendar.cfg.xml" /></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <import resource="jbpm.tx.hibernate.cfg.xml" /></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <import resource="jbpm.jpdl.cfg.xml" /></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <import resource="jbpm.bpmn.cfg.xml" /></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <import resource="jbpm.identity.cfg.xml" /></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <!-- Job executor is excluded for running the example test cases. --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <!-- To enable timers and messages in production use, this should be included. --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <!--</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <import resource="jbpm.jobexecutor.cfg.xml" /></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <string name="jbpm.mail.smtp.host" value="smtp.gmail.com" /></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  <string name="resource.mail.properties" value="jbpm.mail.properties" /></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">  </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"></jbpm-configuration></div><div> </div><p><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><jbpm-configuration></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <import resource="jbpm.default.cfg.xml" /></p><p>  <import resource="jbpm.businesscalendar.cfg.xml" /></p><p>  <import resource="jbpm.tx.hibernate.cfg.xml" /></p><p>  <import resource="jbpm.jpdl.cfg.xml" /></p><p>  <import resource="jbpm.bpmn.cfg.xml" /></p><p>  <import resource="jbpm.identity.cfg.xml" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <!-- Job executor is excluded for running the example test cases. --></p><p>  <!-- To enable timers and messages in production use, this should be included. --></p><p>  <!--</p><p>  <import resource="jbpm.jobexecutor.cfg.xml" /></p><p>  --></p><p>  <string name="jbpm.mail.smtp.host" value="smtp.gmail.com" /></p><p>  <string name="resource.mail.properties" value="jbpm.mail.properties" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></jbpm-configuration></p><div> </div></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Can anyone please explain me What is the root cause and give me pointers in appropriate direction to solve this. I am starting with Jbpm.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/561436#561436">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>