[jBPM] - Error Deploying jpdl process
by Jim Hill
Jim Hill [http://community.jboss.org/people/jdh] created the discussion
"Error Deploying jpdl process"
To view the discussion, visit: http://community.jboss.org/message/590440#590440
--------------------------------------------------------------
I am trying to add timers to a "group" of nodes in my process, but the timeout1 transition is always firing. Basically what I am trying to do is verify that a TH message was received within the timeout period. If we get one, we move on to the LaunchEDForm and leave the group. If we hit the timeout then I need to close the process and have some nodes that accomplish that. This process works fine until I add the timer. Any idea why it's failing, or is there a better way to do this? I'm open to any input at this point.
Jim
<group name="SendTHGroup">
<start>
<transition name="to WaitForTH"
to="WaitForTH"/>
</start>
<custom name="WaitForTH"
class="<packageName>.WaitForMessageActivity">
<transition name="to DidUserSendTH"
to="DidUserSendTH"/>
</custom>
<decision name="DidUserSendTH">
<!-- if we received a TH message then move on to the next set of process steps -->
<transition name="TH Sent"
to="SendTHDone">
<condition expr="#{className=="THObject"}"/>
</transition>
<!-- If we did not receive the TH object, keep waiting -->
<transition name="Keep waiting"
to="WaitForTH"/>
</decision>
<end name="SendTHDone" />
<transition name="toLaunchEDForm"
to="LaunchEDForm"/>
<transition name="timeout1" to="NotifyUserOfTimeout">
<timer duedate="1 hour" />
</transition>
</group>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/590440#590440]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
[Beginner's Corner] - org.jboss.util.NestedSQLException
by Joseph Hwang
Joseph Hwang [http://community.jboss.org/people/aupres] created the discussion
"org.jboss.util.NestedSQLException"
To view the discussion, visit: http://community.jboss.org/message/590408#590408
--------------------------------------------------------------
When Jboss 5 and Oracle 11g jdbc driver integrated, org.jboss.util.NestedSQLException occurs!
OS : CentOS Linux 5.5
JDK : JDK 1.5
JBoss : JBoss 5.0.0.GA
DB : 예) Oracle 11g
I put ojdbc5.jar file into jboss-5.0.0.GA/common/lib folder and set oracle-ds.xml file like below
<datasources>
<local-tx-datasource>
<jndi-name>OracleDS</jndi-name>
<connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>scott</user-name>
<password>tiger</password>
<min-pool-size>2</min-pool-size>
<max-pool-size>5</max-pool-size>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>Oracle11g</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
In JSP file, code is
ctx=new initialContext();
ds=(DataSource)ctx.lookup("java:/OracleDS");
con=ds.getConnection();
However, code does net generate connection objects.In Eclipse Console, messages are
10:26:07,923 ERROR [STDERR] org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: IO Exception: The Network Adapter could not establish the connection); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: IO Exception: The Network Adapter could not establish the connection))
10:26:07,923 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
10:26:07,923 ERROR [STDERR] at org.apache.jsp.oracletest_jsp._jspService(oracletest_jsp.java:92)
10:26:07,923 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)...
Sqlplus of oracle db works well.
I need your advise. Best Regards..
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/590408#590408]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months