[jBPM] - jbpm in seam results in Transaction is not active
by Kim Kuylen
Kim Kuylen [http://community.jboss.org/people/linuxtuxie] created the discussion
"jbpm in seam results in Transaction is not active"
To view the discussion, visit: http://community.jboss.org/message/577954#577954
--------------------------------------------------------------
Hi,
I am currently developing a project which is making use of seam 2.2.0.GA and JBPM 3.2.7. The goal of the project is to collect data from our cisco network switches, process the data and storing it ofcourse.
The seam project is currently making use of 2 seperate database backends, one for the application and one for the jbpm stuff. These databases are defined in seam via xa-datasources. To be precise it are PostgreSQL 8.4.4 databases.
In my seam application I have a page which displays a table with all the networkswitches (see networkswitches.xhtml).
In this page I can launch a network scan which will process each network switch one by one by calling the scanAction.scanAll() routine (see ScanAction.java)
The scanAll routine will launch a new ProcessInstance for each networkswitch...so far so good :)
jbpm now follows the nodes as described in the process definition (see scanswitch.jpdl.xml)
However, when an error is thrown in one of the nodes I receive the following stack trace (see full stacktrace in stacktrace.txt):
2:32:41,544 ERROR [CiscoInterfaces] Exception occurred in CiscoInterfaces: String index out of range: 39
22:32:41,560 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
22:32:41,560 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: af8450e:260d:4d1ba891:6e status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: af8450e:260d:4d1ba891:6e status: ActionStatus.ABORT_ONLY >)
22:32:41,560 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
22:32:41,560 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: af8450e:260d:4d1ba891:6e status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: af8450e:260d:4d1ba891:6e status: ActionStatus.ABORT_ONLY >)
22:32:41,560 ERROR [GraphElement] action threw exception: Cannot open connection
Note that the exception "String index out of range: 39" in the above stack trace is one we expected...but this seems to cause the "Transaction is not active" one.
Where did I go wrong?
Any help is much apreciated...I am strugling with this for quite some time now....please bear in mind that I am just a beginner in seam/jbpm
If I need to provide other files/info let me know.
Thanks for having a look into my problem!
Kim
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/577954#577954]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 2 months
[IronJacamar] - IronJacamar RHQ plugin development
by Yang Yong
Yang Yong [http://community.jboss.org/people/yyang%40redhat.com] created the discussion
"IronJacamar RHQ plugin development"
To view the discussion, visit: http://community.jboss.org/message/581482#581482
--------------------------------------------------------------
Hi Jesper,
After failed to deploy amdin-console.war to Jetty, we had a new plan to start developing the plugin.
OK, at first I have to say, the goal of the new plan is just making us start to write code right now in current situation.
The current situation is:
1) AS7 is not ready and changing fast
2) Admin Console for AS7 is not ready, it means no rhq-jbossas-7-plugin currently, which will provide the apis to interact with AS7 and is the parent plugin of IronJacamar one
The new plan may include 3 steps to approach the final goal.
1) We'd like to wrap a EmbeddedJCA just like the test cases in IronJacamar, and the EnbeddedJCA will run in the rhq agent environment, and will be started with the plugin. In the plugin, we access the management model directly.
2) We'll wrap an interface for locating IronJacamar's management model, if time is ready to intergrate in AS7, we just need to provide another implementation to support AS7, by ServerManager or other.
3) If we really need RHQ based console in standaonle IronJacamar, we need to wait until next generation admin console of AS7 is ready, since rhq plugin container and the IronJacamar are in one process, so the management model can be accessed directly like 1), so we almost don't need to do any change to the plugin to support this feature.
OK, although 1) looks ugly, but it should work and can drive we start now :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/581482#581482]
Start a new discussion in IronJacamar at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 2 months
[Datasource Configuration] - DEPLOYMENTS MISSING DEPENDENCIES
by Roxana Quiroga Sollinger
Roxana Quiroga Sollinger [http://community.jboss.org/people/kopela] created the discussion
"DEPLOYMENTS MISSING DEPENDENCIES"
To view the discussion, visit: http://community.jboss.org/message/581669#581669
--------------------------------------------------------------
Hello,
Can anyone help me out with the following issue? I'm working with:
- JBoss AS 6 Final
When I run the application I'm getting the following error:
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss-switchboard:appName=wsrgiva,module=wsrgiva" is missing the following dependencies:
Dependency "jboss.jca:name=internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva,service=DataSourceBinding" (should be in state "Installed", but is actually
in state "** NOT FOUND Depends on 'jboss.jca:name=internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva,service=DataSourceBinding',whenRequired=MapControllerSt
ateModel$ControllerStateWrapper@1ab5957{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@1ab5957{Installed} **")
Deployment "jboss.web.deployment:war=/wsrgiva" is missing the following dependencies:
Dependency "jboss-switchboard:appName=wsrgiva,module=wsrgiva" (should be in state "Installed", but is actually in state "Deploy")
DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva,service=DataSourceBinding" is in error due to the following reason(s): ** NOT
FOUND Depends on 'jboss.jca:name=internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva,service=DataSourceBinding',whenRequired=MapControllerStateModel$Controll
erStateWrapper@1ab5957{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@1ab5957{Installed} **
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at java.lang.Thread.run(Thread.java:732) [:1.7.0-ea]
The error is correct because I didn't define the datasource as "internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva", but I do not understand why I'm getting this datasource when it should be another.
The configuration regarding the datasource is the following:
Inside the web.xml I added:
<resource-ref>
<description>datasource</description>
<res-ref-name>oracleDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
</resource-ref>
Inside the jboss-web.xml I added:
<resource-ref>
<res-ref-name>oracleDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:jdbc/oracle</jndi-name>
</resource-ref>
In $JBOSS_HOME/server/default/deploy I add the oracle-ds.xml with the following configuration:
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/oracle</jndi-name>
<connection-url>jdbc:oracle:thin:@99.99.99.95:1521:TEST</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>XXXX</user-name>
<password>XXXX</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
The error says that the dependency "jboss.jca:name=internal/oracle/oracle/env/jdbc/oracle,service=DataSourceBinding" is not found which is correct because when the AS starts I get the following lines:
16:14:46,218 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/oracle' to JNDI name 'java:jdbc/oracle'
If anyone can help me out, I kindly appreciate it.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/581669#581669]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 2 months
[JBoss Web Services] - http still works when transportGuarantee is CONFIDENTIAL
by Emil Nilimaa
Emil Nilimaa [http://community.jboss.org/people/Eminil] created the discussion
"http still works when transportGuarantee is CONFIDENTIAL"
To view the discussion, visit: http://community.jboss.org/message/581509#581509
--------------------------------------------------------------
We have an EJB3 deployed as following:
@Stateless
@WebService(endpointInterface = "mystuff.ejb.system.SystemEJBRemote")
@Remote(SystemEJBRemote.class)
@WebContext
(
contextRoot="/jboss-app-server",
transportGuarantee="CONFIDENTIAL",
secureWSDLAccess=false
)
@RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="SystemEJB")
In our deploy/jbossweb.sar/server.xml we have:
<!-- Add this option to the connector to avoid problems with
.NET clients that don't implement HTTP/1.1 correctly
restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$"
-->
Now if we do not use the connector for port 80 above only https will work. But if we turn on the port 80 connector to allow other webpages to use http, the deployed EJB also seems to work with http over jbossws... Why is this? Is it not meant to REQUIRE confidential (ssl) to connect to it when we have specified the transportGuarantee as CONFIDENTIAL?
How can we fix this? We want the EJB to only be available with https (ssl) but let other pages
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/581509#581509]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 2 months