[jBPM] - Jbpm Engine and Human Task Libraries as Modules on Jboss 6 EAP
by Diego Almeida
Diego Almeida [https://community.jboss.org/people/dmalmeida] created the discussion
"Jbpm Engine and Human Task Libraries as Modules on Jboss 6 EAP"
To view the discussion, visit: https://community.jboss.org/message/792207#792207
--------------------------------------------------------------
Good Night Guys!
I´m trying to design an ejb module that is part on an enterprise application. This module has a process definition and uses the jbpm engine in order to instatiate the process. I put the jbpm dependencies and human taskd dependencies as modules on a Jboss 6 EAP. The entire app deploys correctly on the server but at runtime the app crashes and throws an exception that indicate that the following class is missing: *KnowledgeBuilderFactoryServiceImpl * on one of the defined modules.
My question is: if it is possible to build an application like the one that I´m trying to build-? and If so, what is the best approach to make the jbpm and human task libraries available to an ejb module?( The module approach gives me problems because of the modules dependencies and their order)
Thanks in advance!!!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/792207#792207]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[Performance Tuning] - What is the Maximum Connection Pool size if nothing is configured in the -ds.xml file?
by jduran
jduran [https://community.jboss.org/people/jduran] created the discussion
"What is the Maximum Connection Pool size if nothing is configured in the -ds.xml file?"
To view the discussion, visit: https://community.jboss.org/message/792414#792414
--------------------------------------------------------------
Does anyone know what the default value is of the max pool size within the -ds.xml file? As you can below we only have minimum set to 0 with no entry for maxium. I'm worried the vendor who configured this was thinking no maximum entry means unlimited. Im wondering if no entry takes the default value Jboss assigns. I'm not sure what that value is.
Reason i'm concerned is because I'm getting this error:
Njavax.transaction.TransactionRolledbackException: Error obtaining connection: org.jboss.util.NestedSQLException: No ManagedConnections available within configured blocking timeout ( 30000 [ms] ); - nested throwable: (javax.resource.ResourceException: No ManagedConnections available within configured blocking timeout ( 30000 [ms] ));
My -ds.xml file
datasources>
<local-tx-datasource>
<jndi-name>SabaSite</jndi-name>
<connection-url>saba:jdbc:JSQLConnect://********/database=######/asciiStringParameters=false</connection-url>
<driver-class>com.saba.mssql.SabaJNETMSSQLDatabaseDriver</driver-class>
<min-pool-size>0</min-pool-size>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
</local-tx-datasource>
</datasources>
Thanks,
Justin
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/792414#792414]
Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[jBPM] - Installed demo on chapter 3 on the tutorial...now what?
by miguel ykeuti
miguel ykeuti [https://community.jboss.org/people/espartano] created the discussion
"Installed demo on chapter 3 on the tutorial...now what?"
To view the discussion, visit: https://community.jboss.org/message/792419#792419
--------------------------------------------------------------
Hello everyone.
I'm learning about JBPM, and I'm reading the docs. I followed the installation procedures on the tutorial (chapter 3), but now I have not a clue to where to go. So I'll have to ask these (stupid) questions, please be patient.
I typed the last command on the terminal (ant.start.demo.db) after setting it to use MySQL, and now I have on my terminal:
start.human.task:
[javac] /opt/jbpm-installer/build.xml:844: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[java] Task service registered usergroup callback ...
[java] Task service started correctly!
[java] Task service running ...
How can I use Eclipse to use JBPM now? Can this "demo" be used on production? If not, where can I find a tutorial that shows how to setup a production jbpm? I googled and googled, but up to no avail.
(I'm using jBPM 5.3)
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/792419#792419]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[JBoss Tools] - Re: Hibernate tools for Hibernate 4.x
by Max Rydahl Andersen
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion
"Re: Hibernate tools for Hibernate 4.x"
To view the discussion, visit: https://community.jboss.org/message/753491#753491
--------------------------------------------------------------
> > yes, you should be able to use trunk on github - fixing the lack of proper tags in the master repo this week so stay tuned.
>
> I added my hand-woven 4.0.0 tools SNAPSHOT to the hibernate3-maven-plugin and experienced the described the Ant issues. I don't think this is a use case you actually test. Why should you..once tools 4.0.0 is out the Maven plugin maintainer(s) have to take care of that. IMO there's little hope, though. Never got any feedback to the post I sent to their mailing list.
yeah, I wasn't involved in hibernate3-maven-plugin; that was all externally done and I've rarely heard from them either. I wanted them to contribute it so the maven plugin could work more or less the same as the ant tasks and eclipse integration. Just never materialized ;(
But its sure that they can't run with hibernate4 jars in a hibernate3 plugin - that will never work without changes.
> About autoregistered usertypes, can you show me the code you actually want to have executed ?
>
> We use the http://usertype.sourceforge.net/ Usertype library to map Joda Time data types via Hibernate (it's also JSR-310 compliant). It provides several implementations of org.hibernate.integrator.spi.Integrator. The relevant abstract class is AbstractUserTypeHibernateIntegrator (http://usertype.svn.sourceforge.net/viewvc/usertype/tags/usertype.parent-...) (autoRegisterUsertypes()). The relevant sub class that provides implementations of getUserTypes() and getCompositeUserTypes() is UserTypeJodaTimeHibernateIntegrator (http://usertype.svn.sourceforge.net/viewvc/usertype/tags/usertype.parent-...).
I haven't done much work with auto registered types but my understanding was that these jars just needed to be on the classpath when "starting" hibernate. Do you have these usertypes on the classpath ?
if yes, then yes we definitely need to add in a hook for this to happen and I would appreciate if you could open a issue on https://jira.jboss.org/jira/browse/JBIDE https://jira.jboss.org/jira/browse/JBIDE with a small example that fails for you.
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/753491#753491]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[JNDI and Naming] - Binding Dynamic Remote Object in Jboss 7.1.1
by avi said
avi said [https://community.jboss.org/people/avis71] created the discussion
"Binding Dynamic Remote Object in Jboss 7.1.1"
To view the discussion, visit: https://community.jboss.org/message/784402#784402
--------------------------------------------------------------
Hi,
I have been trynig to bind object to Jboss 7.1.1 JNDI using the following code:
public static void main(String[] args) {
final Hashtable<String, Object> env = new Hashtable<String, Object>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
env.put(Context.PROVIDER_URL, "remote://localhost:4447");
env.put("jboss.naming.client.ejb.context", true);
Context remoteContext = null;
try {
remoteContext = new InitialContext(env);
remoteContext.bind("user:global/myName","user:Test");
} catch (NamingException e) {
e.printStackTrace();
}
}
Getting the following error in the client JVM:
javax.naming.NamingException: Failed to bind [Root exception is java.io.IOException: Internal server error.]
at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:36)
In the server console I see:
JBAS011807: Unexpected internal error: java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only
at org.jboss.as.naming.WritableServiceBasedNamingStore.requireOwner(WritableServiceBasedNamingStore.java:126)
at org.jboss.as.naming.WritableServiceBasedNamingStore.bind(WritableServiceBasedNamingStore.java:56)
at org.jboss.as.naming.NamingContext.bind(NamingContext.java:221)
I have found several discussion on *JBAS011859* but the suggested solution is to run the code inside Jboss (as EJB) or as MSC Service.
The ability to bind object in JNDI from remote JVM was supported in Jboss 4, was this ability removed in Jboss 7? if yes, why?
Is there a workaround?
Regards
Avi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/784402#784402]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[jBPM] - jBPM Runtime
by John Lewis
John Lewis [https://community.jboss.org/people/john0945] created the discussion
"jBPM Runtime"
To view the discussion, visit: https://community.jboss.org/message/792357#792357
--------------------------------------------------------------
Hi all
Just a tip I discovered.
When installing jBPM 5 using the installer, everything worked fine, until I tried opening Eclipse directly, using the .exe. I did this so I could write my own programs without having to launch from the command prompt using "ant start.demo" every time. Also, I didn't want to launch unnecessary content.
Launching Eclipse like this removed the jBPM runtime from settings, and so any import org.drools... line didn't work.
I fixed this by going to the menu Window, then Preferences, treeing jBPM, and adding a new runtime that pointed to the runtime folder within the jBPM folder the installer extracted to. This solved it.
Hope it helps.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/792357#792357]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months