[jboss-user] [JBoss jBPM] - Re: EJB3 Stateless Session Bean and jbpm-enterprise.ear

2007-04-03 Thread crussell42
Martin, thank you so very much.
Ronald man I don't have any idea what you were trying to convey.

The ONLY difference from what I had already tried was the silly removal of the

  | property 
name=jta.UserTransactionjava:comp/UserTransaction/property
  | 
If it is there, the deleteJobsForProcessInstance throws the exception.
Silly me I figured that the flag isTransactionEnabled would override ever even 
reading this property?

So just to ease others pain and suffering here is the jbpm.cfg.xml and 
hibernate.cfg.xml that work for me for postgres.
Also this little snippet is important as well when creating a JbpmContext from 
your own config xml string. The combination of these 3 things finally does seem 
to work.

  |/**
  |  * Get jbpm context. Note that we must set the session from the 
DbPersistenceService
  |  * or hibernate will fail.
  |  */
  | private JbpmContext getJbpmContext() {
  | //JbpmContext jbpmContext = 
JbpmConfiguration.getInstance().createJbpmContext();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | DbPersistenceService 
persServ=(DbPersistenceService)jbpmContext.getServices().getPersistenceService();
  | 
jbpmContext.setSession(persServ.getSessionFactory().getCurrentSession());
  | return jbpmContext;
  | }
  | 
jbpm.cfg.xml (actually just an xml string in my program)

  |  jbpm-configuration+
  |jbpm-context+
  |  service name='persistence' +
  | factory+
  |   bean 
class='org.jbpm.persistence.db.DbPersistenceServiceFactory'
  | /+
  |   field name='isTransactionEnabled'false 
//field+
  | /factory+
  |  /service+
  |  service name='message' 
factory='org.jbpm.msg.jms.JmsMessageServiceFactoryImpl' /+
  |  service name='scheduler' 
factory='org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory' /+
  |  service name='tx' factory='org.jbpm.tx.TxServiceFactory' 
/+
  |  service name='logging' 
factory='org.jbpm.logging.db.DbLoggingServiceFactory' /+
  |  service name='authentication' 
factory='org.jbpm.security.authentication.DefaultAuthenticationServiceFactory' 
/+
  |/jbpm-context +
  |string name='resource.hibernate.cfg.xml'  +
  |value='+hibernateName+' / +
  |string name='resource.business.calendar'  +
  |
value='org/jbpm/calendar/jbpm.business.calendar.properties' / +
  |string name='resource.default.modules'  +
  |
value='org/jbpm/graph/def/jbpm.default.modules.properties' / +
  |string name='resource.converter'  +
  |
value='org/jbpm/db/hibernate/jbpm.converter.properties' / +
  |string name='resource.action.types'  +
  |value='org/jbpm/graph/action/action.types.xml' / +
  |string name='resource.node.types'  +
  |value='org/jbpm/graph/node/node.types.xml' / +
  |string name='resource.varmapping'  +
  |value='org/jbpm/context/exe/jbpm.varmapping.xml' 
/ +
  |string name='resource.mail.templates' 
value='jbpm.mail.templates.xml' /+
  |  //intname='jbpm.byte.block.size' value='1024' 
singleton='true' /+
  |  //string name='jbpm.mail.smtp.host' value='localhost' /+
  |  //bean   name='jbpm.task.instance.factory' 
class='org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl' singleton='true' 
/+
  |  //bean   name='jbpm.variable.resolver' 
class='org.jbpm.jpdl.el.impl.JbpmVariableResolver' singleton='true' /+
  |  //bean   name='jbpm.mail.address.resolver' 
class='org.jbpm.identity.mail.IdentityAddressResolver' singleton='true' /+
  |  //null name='jbpm.job.executor' /+
  |  /jbpm-configuration
  | 
  | 
hibernate.cfg.xml

  | ?xml version='1.0' encoding='utf-8'?
  | 
  | !DOCTYPE hibernate-configuration PUBLIC
  |   -//Hibernate/Hibernate Configuration DTD 3.0//EN
  |   
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
  | 
  | hibernate-configuration
  |   session-factory
  | 
  | !-- hibernate dialect --
  | property 
name=hibernate.dialectorg.hibernate.dialect.PostgreSQLDialect/property
  | 
  | !-- JDBC connection properties (begin) ===
  | property 
name=hibernate.connection.driver_classorg.postgresql.Driver/property
  | property 
name=hibernate.connection.urljdbc:postgresql://10.0.0.50:5432/jboss4.0.5/property
  | property name=hibernate.connection.usernamepostgres/property
  | property name=hibernate.connection.passwordpostgres/property
  |  JDBC connection properties (end) --
  | 
  | property 

[jboss-user] [JBoss jBPM] - EJB3 Stateless Session Bean and jbpm-enterprise.ear

2007-04-02 Thread crussell42
Can someone please explain the correct transaction configuration for creating a 
stateless session bean that accesses the jbpm-enterprise.ear
Ive asked this everyway I know how and searched every forum I can. There are 
only ever hints, rumors, and guesses. Please help before I shoot my computer 
and go to work for microsoft.

jbpm.3 built from source
Jboss 4.0.5GA with jboss-messaging and EJB3.
Postgres 8.2.3 database for all of the above.

I have all the databases, undocumented messaging queues added to jboss configs, 
login-config working properly, etc. Can deploy websale.jpdl and walk through it 
using the jbpm-console. Alls good there. But that is all within the confines of 
jbpm-enterprise.ear.

Now, next logical step, have an ejb start a simple work flow and signal it 
through to the end. I can post code but it is basically the HelloWorld example.
ejb3.method1 initiates the process.
ejb3.method2 signals process to some intermediate node
ejb3.method3 signals process to end node.
I am able to have my ejb3 initiate a process and signal to intermediate tokens 
but when I signal it to the end I get exceptions about JTA transaction not 
bound.
So with my config everything works fine up until the 
deleteJobsForProcessInstance call.

I know it is just a config issue but no one seems to have a real or complete 
explanation of how the jbpm-enterprise's jbpm.cfg.xml and hibernate.cfg.xml 
should be configured and how an ejb in a separate ear (that does not contain 
jbpm-jpdl.jar) should be configured.

YES I have read section X of the user guide on persistence and YES I have STFF 
so please do not belittle someone trying hard to use this product in a real 
world way! 

My jbpm.cfg.xml (Only way I could even get where I am now)
Was unable to get working the JtaDbPersistenceServiceFactory so I droped back 
toDbPersistenceServiceFactory. The user guide says to disable transactions but 
if I put in  isTransactionEnabled=true that does not work either. If I try to 
enable CMT in the jbpm-enterprises hibernate.cfg.xml I cant even run the 
websale example because it complains about the CMT. I've tried every 
combination imaginable so it would be very helpful to have a working example 
rather than my partially working example.

Why am I able to initiate a process and signal it but not signal it to the end. 
I assume it has something to do with the Schedular service some how. If the 
deleting of process instance is supposed to join the CMT transaction initiated 
in my ejb method then how do I get it to join my inprocess transaction? 
JoinableCMTTransactionFactory.??

EJB3's  jbpm.cfg.xml (matches jbpm-enterprise's as does the hibernate.cfg.xml)

  | jbpmConfiguration = JbpmConfiguration.parseXmlString(
  |  jbpm-configuration+
  |jbpm-context+
  |  service name='persistence' +
  | factory+
  |  // bean 
class='org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory' /+
  |   bean 
class='org.jbpm.persistence.db.DbPersistenceServiceFactory' /+
  |  // field name='isTransactionEnabled'false 
//field+
  |  // field name='isCurrentSessionEnabled'false 
//field+
  | /factory+
  |  /service+
  |  service name='message' 
factory='org.jbpm.msg.jms.JmsMessageServiceFactoryImpl' /+
  |  service name='scheduler' 
factory='org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory' /+
  |  service name='tx' factory='org.jbpm.tx.TxServiceFactory' 
/+
  |  service name='logging' 
factory='org.jbpm.logging.db.DbLoggingServiceFactory' /+
  |  service name='authentication' 
factory='org.jbpm.security.authentication.DefaultAuthenticationServiceFactory' 
/+
  |/jbpm-context +
  |string name='resource.hibernate.cfg.xml'  +
  |value='+hibernateName+' / +
  |string name='resource.business.calendar'  +
  |
value='org/jbpm/calendar/jbpm.business.calendar.properties' / +
  |string name='resource.default.modules'  +
  |
value='org/jbpm/graph/def/jbpm.default.modules.properties' / +
  |string name='resource.converter'  +
  |
value='org/jbpm/db/hibernate/jbpm.converter.properties' / +
  |string name='resource.action.types'  +
  |value='org/jbpm/graph/action/action.types.xml' / +
  |string name='resource.node.types'  +
  |value='org/jbpm/graph/node/node.types.xml' / +
  |string name='resource.varmapping'  +
  |value='org/jbpm/context/exe/jbpm.varmapping.xml' 
/ +
  |string name='resource.mail.templates' 
value='jbpm.mail.templates.xml' /+
  |  //int

[jboss-user] [JBoss jBPM] - Re: Deploying jbpm-enterprise.ear from jbpm-jpdl-suite-3.2.B

2007-03-24 Thread crussell42
Yea some success. I have some better distilled down notes I will try to add.
Still a rather frustrating solution. I wish at least we could see some more 
info on release timelines and more docs.
I basically had to drop back to compiling from source since I was making some 
changes to allow annotated classes to be persisted (my classes not using 
class-name.hbm.xml style persistence descriptors). There is a jira item on this 
and I think they will include the change to an AnnotatedConfiguration which 
will allow statements like:

  | mapping class=com.mycompany.entity.MyClass/
  | 
in hibernate.cfg.xml. 
Here is an ant build script you can use to expand and contract the 
jbpm-enterprise.ear so that you can edit the hibernate.cfg.xml
just ant expand
make your edits
ant build

  | project name=hpfm-jbpm
  | 
  |   property name=basedir value=./
  |   property name=built.dir value=${basedir}/built/
  |   property name=expand.dir value=${basedir}/expand/
  |   property name=jboss.deploy.dir 
value=/usr/local/jboss/server/messaging/deploy/
  | 
  | 
  |   target name=clean
  | delete dir=${built.dir} /
  |   /target
  | 
  |   target name=prepare
  | mkdir dir=${built.dir} /
  | mkdir dir=${expand.dir} /
  |   /target
  | 
  |   target name=expand description=expand ear into the expand dir 
depends=prepare
  | !-- UNZIP THE EAR FILE --
  | unzip src=${basedir}/jbpm-enterprise.ear dest=${expand.dir} /
  | 
  | mkdir dir=${expand.dir}/jbpm-console-war /
  | unzip src=${expand.dir}/jbpm-console.war 
dest=${expand.dir}/jbpm-console-war /
  | 
  | mkdir dir=${expand.dir}/jbpm-enterprise-jar /
  | unzip src=${expand.dir}/jbpm-enterprise.jar 
dest=${expand.dir}/jbpm-enterprise-jar /
  | 
  | mkdir dir=${expand.dir}/lib/jbpm-configs-jar /
  | unzip src=${expand.dir}/lib/jbpm-configs.jar 
dest=${expand.dir}/lib/jbpm-configs-jar /
  | 
  | mkdir dir=${expand.dir}/lib/jbpm-identity-jar /
  | unzip src=${expand.dir}/lib/jbpm-identity.jar 
dest=${expand.dir}/lib/jbpm-identity-jar /
  | 
  | mkdir dir=${expand.dir}/lib/jbpm-jpdl-jar /
  | unzip src=${expand.dir}/lib/jbpm-jpdl.jar 
dest=${expand.dir}/lib/jbpm-jpdl-jar /
  | 
  |   /target
  | 
  | 
  | 
  |   target name=contract description=remake all the parts to the parts 
directory depends=prepare
  | 
  | !-- ZIP CONTENTS OF THE EXPAND/LIB DIRECTORY--
  | 
  | zip destfile=${expand.dir}/lib/jbpm-jpdl.jar
  |   fileset dir=${expand.dir}/lib/jbpm-jpdl-jar /
  | /zip
  | 
  | zip destfile=${expand.dir}/lib/jbpm-identity.jar
  |   fileset dir=${expand.dir}/lib/jbpm-identity-jar /
  | /zip
  | 
  | zip destfile=${expand.dir}/lib/jbpm-configs.jar
  |   fileset dir=${expand.dir}/lib/jbpm-configs-jar /
  | /zip
  | 
  | !-- ZIP CONTENTS OF THE EXPAND DIRECTORY--
  | 
  | zip destfile=${expand.dir}/jbpm-enterprise.jar
  |   fileset dir=${expand.dir}/jbpm-enterprise-jar /
  | /zip
  | 
  | zip destfile=${expand.dir}/jbpm-console.war
  |   fileset dir=${expand.dir}/jbpm-console-war /
  | /zip
  | 
  |   /target
  | 
  |   
  | 
  | !--
  |   target name=build depends=prepare, make-parts
  | ear destfile=${built.dir}/jbpm-enterprise.ear 
appxml=${parts.dir}/META-INF/application.xml
  |   fileset dir=${parts.dir}
  | exclude name=META-INF/application.xml /
  |   /fileset
  | /ear
  |   /target
  |   --
  | 
  |   target name=build depends=prepare, contract
  | ear destfile=${built.dir}/jbpm-enterprise.ear 
appxml=${expand.dir}/META-INF/application.xml
  |   fileset dir=${expand.dir} includes=*.war,*.jar,lib/*.jar 
  | !--
  | exclude name=META-INF/application.xml /
  | exclude name=jbpm-enterprise-jar /
  | exclude name=jbpm-console-war /
  | exclude name=lib/jbpm-identity-jar /
  | exclude name=lib/jbpm-configs-jar /
  | exclude name=lib/jbpm-jpdl-jar /
  | --
  | 
  |   /fileset
  | /ear
  |   /target
  | 
  | 
  |   target name=deploy depends=build
  | copy file=${built.dir}/jbpm-enterprise.ear 
todir=${jboss.deploy.dir}/
  |   /target
  | 
  | 
  | /project
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4031322#4031322

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031322
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Error testing Hello World BPEL on JBoss 4.0.5

2007-02-08 Thread crussell42
I was getting something similar and needed to point my runtime classpath at 
jboss/client jars.
  
  |[java] javax.naming.CommunicationException [Root exception is 
java.io.InvalidClassException: org.jboss.remoting.InvokerLocator; local class 
incompatible: stream classdesc serialVersionUID = -2909329895029296248, local 
class serialVersionUID = -4977622166779282521]
  |  [java] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:723)
  |  [java] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
  |  [java] at 
javax.naming.InitialContext.lookup(InitialContext.java:351)
  |  [java] at client.EjbClient.main(EjbClient.java:37)
  |  [java] Caused by: java.io.InvalidClassException: 
org.jboss.remoting.InvokerLocator; local class incompatible: stream classdesc 
serialVersionUID = -2909329895029296248, local class serialVersionUID = 
-4977622166779282521
  |  [java] at 
java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
  |  [java] at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
  |  [java] at 
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
  | 

SO Here was the fix to make sure the jboss/client/*.jar is in classpath first.
This was a snippet of the ant task for running my client.

  | fileset dir=/usr/local/jboss/client
  | include name=*.jar/
  | /fileset
  | /path
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013062#4013062

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013062
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Unable to locate current JTA transaction

2007-02-08 Thread crussell42
Ok, doing pretty well now but when I try to signal a transition to an end state 
I get the following:
See JIRA ISSUE http://jira.jboss.com/jira/browse/JBPM-836


  | ===EXCEPTION SEEN===
  | 13:04:56,785 ERROR [ProcessInstanceBean$SignalTokenListener] Action threw 
an exception: ejb local timer lookup problem
  | 
  | ===CODE FIXES FOR EXCEPTION==
  | RCS file: 
/cvsroot/jbpm/jbpm.3/enterprise/src/main/java/org/jbpm/scheduler/ejbtimer/EjbSchedulerService.java,v
  | retrieving revision 1.1
  | diff -r1.1 EjbSchedulerService.java
  | 31c31,36
  |LocalTimerServiceHome localTimerServiceHome = 
(LocalTimerServiceHome) 
initial.lookup(java:comp/env/ejb/LocalTimerServiceBean);
  | ---
  |  
  |  
  |//RSC wrong name used
  |//LocalTimerServiceHome localTimerServiceHome = 
(LocalTimerServiceHome) 
initial.lookup(java:comp/env/ejb/LocalTimerServiceBean);
  |//See also change to jboss.xml to include TimerServiceBean or this 
fix wont work either.
  |LocalTimerServiceHome localTimerServiceHome = 
(LocalTimerServiceHome) initial.lookup(TimerServiceBean);
  | 
  | 
  | 
  | RCS file: 
/cvsroot/jbpm/jbpm.3/enterprise/src/main/resources/jar/META-INF/jboss.xml,v
  | retrieving revision 1.2
  | diff -r1.2 jboss.xml
  | 12a13,20
  |  !-- RSC ADDED THIS --
  |  session
  |ejb-nameTimerServiceBean/ejb-name
  |jndi-nameejb/TimerServiceBean/jndi-name
  |local-jndi-nameTimerServiceBean/local-jndi-name
  |  /session
  |  
  |  
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013115#4013115

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013115
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Unable to locate current JTA transaction

2007-02-08 Thread crussell42
Ok, at this point things are running pretty well.
I have deployed the cvs trunk build jbpm.3 (3.2.beta2)'s jbpm-enterprise.ear to
jboss4.0.5ga with ejb3 and messaging.
I am able to create start and transition through process;s.
Keep in mind the reason for this posting. 
We have isTransactionEnabled set to false and isCurrentSessionEnabled set to 
false.
So here I almost have it working with Transactions turned OFF.
When a process transitions to an end state however and the clean up of the 
process instance begins, I get the following exception:

  | 16:26:00,719 ERROR [STDERR] org.hibernate.TransactionException: Could not 
register synchronization
  | at 
org.hibernate.transaction.CMTTransaction.registerSynchronization(CMTTransaction.java:159)
  | at 
org.jbpm.db.JobSession.deleteJobsForProcessInstance(JobSession.java:214)
  | at 
org.jbpm.scheduler.ejbtimer.EjbSchedulerService.deleteTimersByProcessInstance(EjbSchedulerService.java:165)
  | at org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:276)
  | 
So back to the original question, HOW DO I PROPERLY CONFIGURE USE OF EITHER JTA 
OR CMT TRANSACTIONS?
I've managed to make it hobble along with the transactions turned off (I think) 
but what I really want is to properly configure transactions
PLEASE HELP!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013125#4013125

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013125
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JBoss Portal and JBPM Weirdness

2007-02-08 Thread crussell42
Your right that was not needed.

See posting 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013125#4013125
for how I got it running by setting isTransactionEnabled to false and 
isCurrentSession enabled to false on jboss 4.0.5ga.

However, this does not solve the original issue.
Whats up with JTA vs. CMT transaction configuration?
Is this resolved? Has anyone figured out how to properly configure transactions 
for 4.0.5ga?
Please can anyone respond to this one, it is all that stands in the way of 
getting cvs trunk to run on 4.0.5ga
More on subject
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013125#4013125


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013132#4013132

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013132
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: change database

2007-02-07 Thread crussell42
Yes, here is where it gets tricky. I also am having that problem and am trying 
to get a response on how to configure either CMT ot JTA for the ear.
I will add the reference posting here when If I ever get a response.
One thing you can do now to continue your journey however is

edit expand/lib/jbpm-configs-jar/jbpm.cfg.xml
Make sure the following two are set to false.

  |   field name=isCurrentSessionEnabledfalse //field
  |   field name=isTransactionEnabledfalse //field
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012405#4012405

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012405
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Unable to locate current JTA transaction

2007-02-07 Thread crussell42
In poking around and finally getting into building jbpm-enterprise.ear from the
cvs head, I got a little further in my testing. Because I cant figure out how 
to configure transactions properly, I just tried to turn them off by editing 
the 
jbpm.cfg.xml and setting

  | field name=isCurrentSessionEnabledfalse //field
  | field name=isTransactionEnabledfalse //field
  | 
Then I started getting some exceptions withing the JbpmPhaseListener and 
started lookuing at DbPersistenceService and found this bug.
http://jira.jboss.com/jira/browse/JBPM-833
I fixed my source version and this gets me to the next set of exceptions.
These seem to have to do with jini naming of the 
TimerServiceBean. For some reason when I deploy the ear, jboss is picking up 
and configuring the CommandServiceBean properly to ejb/CommandServiceBean but 
the TimerServiceBean is not being registered as expected

  | 14:55:45,045 INFO  [EARDeployer] Init J2EE application: 
file:/usr/local/jboss-4.0.5.GA/server/messaging/deploy/jbpm-enterprise.ear
  | 14:55:47,436 INFO  [EjbModule] Deploying CommandServiceBean
  | 14:55:47,504 INFO  [EjbModule] Deploying TimerServiceBean
  | 14:55:47,540 INFO  [EjbModule] Deploying CommandListenerBean
  | 14:55:47,565 INFO  [EjbModule] Deploying JobListenerBean
  | 14:55:47,678 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 
'CommandServiceBean' to jndi 'CommandServiceBean'
  | 14:55:47,694 INFO  [ProxyFactory] Bound EJB Home 'CommandServiceBean' to 
jndi 'ejb/CommandServiceBean'
  | 14:55:47,736 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 
'TimerServiceBean' to jndi 'local/[EMAIL PROTECTED]'
  | 
And so we get the exception and message ejb local timer lookup problem.
Could use help here if anyone has an idea???

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012480#4012480

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012480
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Unable to locate current JTA transaction

2007-02-07 Thread crussell42
Also needed to apply this fix for compiling the cvs head.
http://jira.jboss.com/jira/browse/JBPM-834

All I wanted was a Pepsi !!!

No really, I'm just trying not to lose any information on how to get the beast 
to run with Jboss 4.0.5GA, ejb3, jms messaging, and annotated class persistence 
in a ContextInstance. This forum will help me do that and maybe help others.
Other postings include but are not limited to 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4003457#4003457
http://www.jboss.com/index.html?module=bbop=viewtopict=99670
http://www.jboss.com/index.html?module=bbop=viewtopict=100452

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012512#4012512

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012512
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Adding JBPM to existing JBOSS 4.0.4 AS

2007-02-06 Thread crussell42
For jbpm.3.2beta1 I have had some success but still get some exceptions related 
to transaction management when I try to signal a process to its end state.
In a nutshell assuming you are deploying jbpm-enterprise.ear.
1. Configure jboss with jms messaging as per jboss instructions.
2. Config your data source e.g. cp jbpm-ds.xml $jboss/server/messaging/deploy
2.5 Create the jbpm database using the scripts from jpdl/dist/ddl
e.g. jbpm.jpdl.hsqldb.sql
2.75 create and populate identity tables
Cant remember where I got these??

  | 
  | create table JBPM_ID_GROUP (ID_ bigint generated by default as identity 
(start with 1), CLASS_ char(1) not null, NAME_ varchar(255), TYPE_ 
varchar(255), PARENT_ bigint, primary key (ID_));
  | create table JBPM_ID_MEMBERSHIP (ID_ bigint generated by default as 
identity (start with 1), CLASS_ char(1) not null, NAME_ varchar(255), ROLE_ 
varchar(255), USER_ bigint, GROUP_ bigint, primary key (ID_));
  | create table JBPM_ID_PERMISSIONS (ENTITY_ bigint not null, CLASS_ 
varchar(255), NAME_ varchar(255), ACTION_ varchar(255));
  | create table JBPM_ID_USER (ID_ bigint generated by default as identity 
(start with 1), CLASS_ char(1) not null, NAME_ varchar(255), EMAIL_ 
varchar(255), PASSWORD_ varchar(255), primary key (ID_));
  | 
  | alter table JBPM_ID_GROUP add constraint FK_ID_GRP_PARENT foreign key 
(PARENT_) references JBPM_ID_GROUP;
  | alter table JBPM_ID_MEMBERSHIP add constraint FK_ID_MEMSHIP_GRP foreign key 
(GROUP_) references JBPM_ID_GROUP;
  | alter table JBPM_ID_MEMBERSHIP add constraint FK_ID_MEMSHIP_USR foreign key 
(USER_) references JBPM_ID_USER;
  | 
  | 
  | 
  | INSERT INTO JBPM_ID_GROUP VALUES(1,'G','participant','security-role',NULL)
  | INSERT INTO JBPM_ID_GROUP VALUES(2,'G','administrator','security-role',NULL)
  | INSERT INTO JBPM_ID_GROUP VALUES(3,'G','hr','organisation',NULL)
  | INSERT INTO JBPM_ID_GROUP VALUES(4,'G','sales','organisation',NULL)
  | INSERT INTO JBPM_ID_GROUP VALUES(5,'G','manager','security-role',NULL)
  | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(1,'M',NULL,NULL,2,2)
  | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(2,'M',NULL,NULL,3,1)
  | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(3,'M',NULL,NULL,3,3)
  | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(4,'M',NULL,NULL,2,3)
  | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(5,'M',NULL,NULL,1,4)
  | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(6,'M',NULL,'boss',2,4)
  | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(7,'M',NULL,NULL,2,5)
  | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(8,'M',NULL,NULL,2,1)
  | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(9,'M',NULL,NULL,1,1)
  | INSERT INTO JBPM_ID_USER VALUES(1,'U','cookie monster','[EMAIL 
PROTECTED]','cookie monster')
  | INSERT INTO JBPM_ID_USER VALUES(2,'U','ernie','[EMAIL PROTECTED]','ernie')
  | INSERT INTO JBPM_ID_USER VALUES(3,'U','bert','[EMAIL PROTECTED]','bert')
  | INSERT INTO JBPM_ID_USER VALUES(4,'U','grover','[EMAIL PROTECTED]','grover')
  | 
  | insert into JBPM_ID_USER (ID_, CLASS_, NAME_, EMAIL_, PASSWORD_) 
  |values ('1', 'U', 'cookie monster', '[EMAIL PROTECTED]', 'cookie 
monster');
  | insert into JBPM_ID_USER (ID_,CLASS_, NAME_, EMAIL_, PASSWORD_) 
  |values ('2', 'U', 'ernie', '[EMAIL PROTECTED]', 'ernie');
  | insert into JBPM_ID_USER (ID_,CLASS_, NAME_, EMAIL_, PASSWORD_) 
  |values ('3', 'U', 'bert', '[EMAIL PROTECTED]', 'bert');
  | insert into JBPM_ID_USER (ID_,CLASS_, NAME_, EMAIL_, PASSWORD_) 
  |values ('4', 'U', 'grover', '[EMAIL PROTECTED]', 'grover');
  | 
  | 
3. Add 2 queues to 
$jboss/server/messaging/deploy/jboss-messaging.sar/destinations-service.xml

  |mbean code=org.jboss.jms.server.destination.Queue
  |   name=jboss.messaging.destination:service=Queue,name=JbpmCommandQueue
  |   xmbean-dd=xmdesc/Queue-xmbean.xml
  |   depends 
optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer/depends
  |   attribute name=SecurityConfig
  |  security
  | role name=guest read=true write=true/
  | role name=publisher read=true write=true create=false/
  | role name=noacc read=false write=false create=false/
  |  /security
  |   /attribute
  |/mbean
  | 
  |mbean code=org.jboss.jms.server.destination.Queue
  |   name=jboss.messaging.destination:service=Queue,name=JbpmJobQueue
  |   xmbean-dd=xmdesc/Queue-xmbean.xml
  |   depends 
optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer/depends
  |   attribute name=SecurityConfig
  |  security
  | role name=guest read=true write=true/
  | role name=publisher read=true write=true create=false/
  | role name=noacc read=false write=false create=false/
  |  /security
  |   /attribute
  |/mbean
  | 
Or figure out how to add a jbpm-services.xml with same queue definitions.
4. Configure jboss's other security realm. The jbpm-console is using the 
security domain other. Therefore we need for the security domain 

[jboss-user] [JBoss jBPM] - Re: change database

2007-02-06 Thread crussell42
Two issues here 
1. changing db for 3.2.beta1. Assuming you want to change the 
jbpm-enterprise.ear you can expand the ear and change hibernate.cfg.cml. Here 
is a ant build script I created to expand the ear, edit the config files then 
recreate the ear. 
So ant expand, edit expand/lib/jbpm-configs-jar/hibernate.cfg.xml, ant 
build,ant deploy

  | project name=hpfm-jbpm
  |   property name=basedir value=./
  |   property name=built.dir value=${basedir}/built/
  |   property name=expand.dir value=${basedir}/expand/
  |   property name=jboss.deploy.dir 
value=/usr/local/jboss/server/messaging/deploy/
  |   target name=clean
  | delete dir=${built.dir} /
  |   /target
  |   target name=prepare
  | mkdir dir=${built.dir} /
  | mkdir dir=${expand.dir} /
  |   /target
  | 
  |   target name=expand description=expand ear into the expand dir 
depends=prepare
  | !-- UNZIP THE EAR FILE --
  | unzip src=${basedir}/jbpm-enterprise.ear dest=${expand.dir} /
  | 
  | mkdir dir=${expand.dir}/jbpm-console-war /
  | unzip src=${expand.dir}/jbpm-console.war 
dest=${expand.dir}/jbpm-console-war /
  | 
  | mkdir dir=${expand.dir}/jbpm-enterprise-jar /
  | unzip src=${expand.dir}/jbpm-enterprise.jar 
dest=${expand.dir}/jbpm-enterprise-jar /
  | 
  | mkdir dir=${expand.dir}/lib/jbpm-configs-jar /
  | unzip src=${expand.dir}/lib/jbpm-configs.jar 
dest=${expand.dir}/lib/jbpm-configs-jar /
  | 
  | mkdir dir=${expand.dir}/lib/jbpm-identity-jar /
  | unzip src=${expand.dir}/lib/jbpm-identity.jar 
dest=${expand.dir}/lib/jbpm-identity-jar /
  | 
  | mkdir dir=${expand.dir}/lib/jbpm-jpdl-jar /
  | unzip src=${expand.dir}/lib/jbpm-jpdl.jar 
dest=${expand.dir}/lib/jbpm-jpdl-jar /
  | 
  |   /target
  | 
  | 
  | 
  |   target name=contract description=remake all the parts to the parts 
directory depends=prepare
  | 
  | !-- ZIP CONTENTS OF THE EXPAND/LIB DIRECTORY--
  | 
  | zip destfile=${expand.dir}/lib/jbpm-jpdl.jar
  |   fileset dir=${expand.dir}/lib/jbpm-jpdl-jar /
  | /zip
  | 
  | zip destfile=${expand.dir}/lib/jbpm-identity.jar
  |   fileset dir=${expand.dir}/lib/jbpm-identity-jar /
  | /zip
  | 
  | zip destfile=${expand.dir}/lib/jbpm-configs.jar
  |   fileset dir=${expand.dir}/lib/jbpm-configs-jar /
  | /zip
  | 
  | !-- ZIP CONTENTS OF THE EXPAND DIRECTORY--
  | 
  | zip destfile=${expand.dir}/jbpm-enterprise.jar
  |   fileset dir=${expand.dir}/jbpm-enterprise-jar /
  | /zip
  | 
  | zip destfile=${expand.dir}/jbpm-console.war
  |   fileset dir=${expand.dir}/jbpm-console-war /
  | /zip
  | 
  |   /target
  | 
  |   
  | 
  | !--
  |   target name=build depends=prepare, make-parts
  | ear destfile=${built.dir}/jbpm-enterprise.ear 
appxml=${parts.dir}/META-INF/application.xml
  |   fileset dir=${parts.dir}
  | exclude name=META-INF/application.xml /
  |   /fileset
  | /ear
  |   /target
  |   --
  | 
  |   target name=build depends=prepare, contract
  | ear destfile=${built.dir}/jbpm-enterprise.ear 
appxml=${expand.dir}/META-INF/application.xml
  |   fileset dir=${expand.dir} includes=*.war,*.jar,lib/*.jar 
  | !--
  | exclude name=META-INF/application.xml /
  | exclude name=jbpm-enterprise-jar /
  | exclude name=jbpm-console-war /
  | exclude name=lib/jbpm-identity-jar /
  | exclude name=lib/jbpm-configs-jar /
  | exclude name=lib/jbpm-jpdl-jar /
  | --
  | 
  |   /fileset
  | /ear
  |   /target
  | 
  | 
  |   target name=deploy depends=build
  | copy file=${built.dir}/jbpm-enterprise.ear 
todir=${jboss.deploy.dir}/
  |   /target
  | 
  | 
  | /project
  | 
  | 

2. Create and populate the identity tables

  | create table JBPM_ID_GROUP (ID_ bigint generated by default as identity 
(start with 1), CLASS_ char(
  | 1) not null, NAME_ varchar(255), TYPE_ varchar(255), PARENT_ bigint, 
primary key (ID_));
  | create table JBPM_ID_MEMBERSHIP (ID_ bigint generated by default as 
identity (start with 1), CLASS_ 
  | char(1) not null, NAME_ varchar(255), ROLE_ varchar(255), USER_ bigint, 
GROUP_ bigint, primary key (
  | ID_));
  | create table JBPM_ID_PERMISSIONS (ENTITY_ bigint not null, CLASS_ 
varchar(255), NAME_ varchar(255), 
  | ACTION_ varchar(255));
  | create table JBPM_ID_USER (ID_ bigint generated by default as identity 
(start with 1), CLASS_ char(1
  | ) not null, NAME_ varchar(255), EMAIL_ varchar(255), PASSWORD_ 
varchar(255), primary key (ID_));
  | 
  | alter table JBPM_ID_GROUP add constraint FK_ID_GRP_PARENT foreign key 
(PARENT_) references JBPM_ID_G
  | ROUP;
  | alter table JBPM_ID_MEMBERSHIP add constraint FK_ID_MEMSHIP_GRP foreign key 
(GROUP_) references JBPM
  | _ID_GROUP;
  | alter table JBPM_ID_MEMBERSHIP add constraint FK_ID_MEMSHIP_USR foreign key 
(USER_) references JBPM_
  | ID_USER;
  | 
  | 
  | 
  | INSERT INTO JBPM_ID_GROUP 

[jboss-user] [JBoss jBPM] - Re: hibernate AnnotationConfiguration rather than Configurat

2007-02-04 Thread crussell42
Submitted as feature request to jira

http://jira.jboss.com/jira/browse/JBPM-832

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4010873#4010873

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4010873
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: hibernate AnnotationConfiguration rather than Configurat

2007-02-03 Thread crussell42
IT WORKS!
After much head banging and incorrect assumptions I think I have it.
Please developers of jbpm can you look at this seriously as a means of 
persisting annotated pojos.
In HibernateHelper I added the following code

  | import org.hibernate.cfg.AnnotationConfiguration;
  | import org.hibernate.cfg.DefaultComponentSafeNamingStrategy;
  | .
  | .
  | public static Configuration createConfiguration(String cfgXmlResource, 
String propertiesResource) {
  |   AnnotationConfiguration configuration = new AnnotationConfiguration();
  |   //NOT SURE WHY BUT configuration not picking up
  |   //hibernate.cfg.xml 
  |  //property name=hibernate.ejb.naming_strategy
  |  //org.hibernate.cfg.DefaultComponentSafeNamingStrategy/property
  |   log.debug(NAMING START STRATEGY 
[+configuration.getNamingStrategy().getClass().getName()+]);
  |   log.debug(configuration.setNamingStrategy(new 
DefaultComponentSafeNamingStrategy()));
  |   log.debug(NAMING AFTER STRATEGY 
[+configuration.getNamingStrategy().getClass().getName()+]);
  | 
With these changes you can now add mappings to the hibernate.cfg.xml
such as 

  | mapping package=foo/
  | mapping class=foo.MyAnnotatedFooClass/
  | 
To pick up annotated classes
Now I also had to put my classes in jbpm-jpdl.jar but I will figure out the 
class loader issues later.
Net effect: my annotated classes persist where I expect them to.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4010471#4010471

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4010471
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: hibernate AnnotationConfiguration rather than Configurat

2007-02-01 Thread crussell42
-or- have a configuration class property in jbpm.cfg.xml which allows us to 
specify what configuration class to use?
jbpm.session.factory.configuration.class=org.hibernate.cfg.AnnotationConfiguration

That way if it is a hibernate version issue, the default could be just 
Configuration.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4009481#4009481

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009481
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: A sample with HibernateLongInstance or HibernateStringI

2007-02-01 Thread crussell42
See also http://www.jboss.com/index.html?module=bbop=viewtopict=100452
I am trying to do the same thing with an entity that does not have a resource 
mapping file but uses annotations only to define schema.
Problem there is there is no way to tell jbpm about the annotated class 
because of the HibernateHelper use of Configuration object rather than 
AnnotationConfiguration.
Need a way to add config in hibernate.cfg.xml that sees the annotated class:
e.g. 
  | mapping class=foo.MyAnnotatedFooClass/
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4009488#4009488

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009488
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Unable to locate current JTA transaction

2007-01-30 Thread crussell42
ALthough the jbpm-console seems to work like this, lots of exceptions are 
spewed mostly

  | org.hibernate.TransactionException: Could not register synchronization for 
container transaction Could not register synchronization for container 
transaction.
  | 
So is there a nice easy way to turn on JTA or CMT ?
See the post mentioned above as it philosiphises but never determines 
how to make 3.2.beta1 use either CMT or JTA it only describes how
to disable isCurrentSessionEnabled.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4008315#4008315

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4008315
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Question about retrieving User Object from ExecutionCont

2007-01-30 Thread crussell42
I tried the following trick (total guess, Not sure it will work but it got me a 
little further). Seems like this scheme should work to force jbpm to consider 
the user object as a hibernatable object...which mine is only not because of 
hibernate.cfg.xml
jbpm.varmapping.xml

  | jbpm-type
  |   matcher
  | bean class=org.jbpm.context.exe.matcher.ClassNameMatcher
  |   field name=classNamestring value=foo.MyFooClass //field
  | /bean
  |   /matcher
  |   variable-instance 
class=org.jbpm.context.exe.variableinstance.HibernateLongInstance /
  | /jbpm-type
  | 

This now causes me to get a 

  | org.hibernate.MappingException: Unknown entity: foo.MyFooClass
  | 
So I guess I somehow need to get MyFooClass into the classloader path of the 
jbpm-enterprise.ear I am deployingAny thoughts appreciated.
This tends to make me believe that at least jbpm is trying to treat my Entity 
as a hibernatable object. However, I just use the javax.persistence and 
annotations so I dont have a hibernate.cfg.xml in my ejb3 / pojo foo.jar.
I guess I dont know what the HibernateLongIdMatcher really does. Seems it would 
use introspection and look for an org.hibernate.annotations.Id? -or- Entity. Or 
does it just look for a match of the class name in some hibernate.cfg.xml that 
it finds?
 



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4008525#4008525

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4008525
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Unable to locate current JTA transaction

2007-01-29 Thread crussell42
When I deploy the jbpm-enterprise.ear to jboss 4.0.5ga and try to log into the 
jbpm-console web app I am getting the following error.
Unable to locate current JTA transaction

  | 16:56:02,784 ERROR [STDERR] Jan 29, 2007 4:56:02 PM 
com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/main/user/usertasklist.xhtml]
  | javax.el.ELException: /search/form/formtemplate.xhtml @14,73 
session=#{jbpmBean.jbpmContext.session}: org.hibernate.HibernateException: 
Unable to locate current JTA transaction
  | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
  | at org.jbpm.webapp.tag.jbpm.ui.Search.getSession(Search.java:47)
  | at org.jbpm.webapp.tag.jbpm.ui.UICriteria.initialize(UICriteria.java:72)
  | at 
org.jbpm.webapp.tag.jbpm.ui.UICriteria.initialize(UICriteria.java:134)
  | at 
org.jbpm.webapp.tag.jbpm.ui.UICriteria.getSearchBean(UICriteria.java:229)
  | at org.jbpm.webapp.tag.jbpm.ui.Search.initialize(Search.java:191)
  | at org.jbpm.webapp.tag.jbpm.ui.Search.encodeBegin(Search.java:92)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:882)
  | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
  | 

Here is the pertinent hibernate.cfg.xml part

  | !-- JBoss transaction manager lookup (begin) --
  | property 
name=hibernate.transaction.manager_lookup_classorg.hibernate.transaction.JBossTransactionManagerLookup/property
  | !-- JBoss transaction manager lookup (end) --
  | 
  | !-- DataSource properties (begin) --
  | property 
name=hibernate.connection.datasourcejava:/DefaultDS/property
  | !-- DataSource properties (end) --
  | 
  | !-- JTA transaction properties (begin) ===
  | property 
name=hibernate.transaction.factory_classorg.hibernate.transaction.JTATransactionFactory/property
  | property 
name=jta.UserTransactionjava:comp/UserTransaction/property
  |  JTA transaction properties (end) --
  | 
  | !-- CMT transaction properties (begin) --
  | property 
name=hibernate.transaction.factory_classorg.hibernate.transaction.CMTTransactionFactory/property
  | property 
name=hibernate.transaction.manager_lookup_classorg.hibernate.transaction.JBossTransactionManagerLookup/property
  | !-- CMT transaction properties (end) --
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4008053#4008053

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4008053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Unable to locate current JTA transaction

2007-01-29 Thread crussell42
http://www.jboss.com/index.html?module=bbop=viewtopict=99366postdays=0postorder=ascstart=0
Found the solution in this posting.
Had to change config option in jbpm.cfg.cml to false.
Not sure why this is but it seems to fix things

  |   field name=isCurrentSessionEnabledfalse //field
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4008089#4008089

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4008089
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JBoss Portal and JBPM Weirdness

2007-01-28 Thread crussell42
I went the other way and removed jsf-impl-14.jar and jsf-api-14.jar 
from jbpm-console.war and put in the myfaces-impl.jar and myfaces-api.jar from 
the jbossweb-tomcat location listed above.
This seemed to fix the bizzare 

  | 09:43:05,881 INFO  [TomcatDeployer] deploy, ctxPath=/jbpm-console, 
warUrl=.../tmp/deploy/tmp53884jbpm-enterprise.ear-contents/jbpm-console-exp.war/
  | 09:43:06,794 ERROR [STDERR] Jan 28, 2007 9:43:06 AM 
com.sun.faces.config.ConfigureListener contextInitialized
  | INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b09-FCS) 
for context 'null'
  | 09:43:08,220 ERROR [STDERR] Jan 28, 2007 9:43:08 AM 
com.sun.faces.spi.InjectionProviderFactory createInstance
  | WARNING: JSF1033: Resource injection is DISABLED.
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4007457#4007457

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4007457
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Deploying jbpm-enterprise.ear from jbpm-jpdl-suite-3.2.Beta1

2007-01-18 Thread crussell42
Rather than using the out of the box jboss as delivered with jbpm 3.2.Beta1, 
I would like to deploy the ear delivered in the deploy directory to my jboss as 
with ejb3 and messaging enabled.
Has anyone had any experience with this?
I have had limited success and ultimately the jbpm-console seems to work but 
never actually logs me in just tells me the login failed.
Documentation on this subject seems very limited and fragmented.

The only hint I get when deploying the ear is that there may be some 
compatibility issue with JSF packaged with the jbpm-console and the default 
jboss as's.
Log Hint
13:00:14,334 ERROR [STDERR] Jan 17, 2007 1:00:14 PM 
com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b09-FCS) for 
context 'null'
13:00:14,650 ERROR [STDERR] Jan 17, 2007 1:00:14 PM 
com.sun.faces.spi.InjectionProviderFactory createInstance
WARNING: JSF1033: Resource injection is DISABLED.

Otherwise everything seems to load fine.
Below are my notes on how to do this so far but am at an impasse and could 
really use some help. If I get all the steps put together correctly I would 
gladly contribute them unless it turns out that I have been a total boob.

DEPLOYING JBPM TO AN EXISTING JBOSS SERVER
==
Philosophy. I know that the starter kit includes a preconfigured jboss but that 
is not good enough.
We have to be able to deploy jbpm, drools, and jboss messaging for production 
servers (hell for development too).
The download site for jbpm has a suite 3.2.beta1 that it seems to be touting 
as the next great thing so 
I have used a combination of the starter kit and the suite to come to all the 
following conclusions.

Downloaded jbpm-jpdl-suite-3.2.Beta1.zip
unzip it. (call this unzipped dir $suite)
Under there there is a deploy directory that contains the jbpm ear we want to 
deploy.
$suite/deploy/jbpm-enterprise.ear
In there there is a jbpm-enterprise.ear which contains (in theory) a complete 
deployable ear
that includes jbpm, jbpm-identity, jbpm-console.

On deploying this beast however I ran into many issues.
There does not seem to be any good documentation on how to actually deploy this 
but here is what I learned from
watching the jboss logs.
I think I am close to getting this to work but the console app just wont let me 
log in.

JBPM REQUIRED MESSAGE QUEUE (JBOSS CONFIG CHANGE)
=
1. When deployed logs showed need for a message queue. So I just added one 
identical to the one added for
the appentity.

/usr/local/jboss/server/messaging/deploy/jboss-messaging.sar/destinations-service.xml
!--I ADDED THIS--
   mbean code=org.jboss.jms.server.destination.Queue
  name=jboss.messaging.destination:service=Queue,name=JbpmCommandQueue
  xmbean-dd=xmdesc/Queue-xmbean.xml
  depends 
optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer
  
 



 
  
   
This cleared up that error.
Note that I had to create a queue named JbpmCommandQueue first.
Then I was able to go to http://localhost:8080/jbpm-console/
and the web service seemed to start ok. took me to a login screen.

I'm sure that within the ear we could put a jbpm-service.xml file with this 
queue definition 
but I knew it would work editing the default jboss one so I did that.


JBPM SECURITY DOMAIN (JBOSS CONFIG CHANGE)
==
Now when I deploy I start seeing in the jboss log.
ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files

After a lot of googleing I found a few hints here:
Describes the error with users.properties
http://www.magnolia.info/wiki/Wiki.jsp?page=MagnoliaJBossAndJAAS

ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files

WHAT THIS TOLD ME was that the security domain that jbpm-console and 
jbpm-identity module uses
was not correct.

If you look at expand/jbpm-console-war/WEB-INF/jboss-web.xml it looks like this:
-
?xml version=1.0 encoding=UTF-8?



jboss-web

  security-domainjava:/jaas/other/security-domain

/jboss-web

-
So the jbpm-console is using the security domain other.
Therefore we need for the security domain other config to look like that sent 
in the 
preconfigured jbpm starter kit server so I copied the following from the
starter kit/server/jbpm/conf/login-config.xml

Forced me to edit /usr/local/jboss/server/messaging/conf/login-config.xml
Changed the definition of the application-policy other to match that found
int the jbpm configured server.

application-policy name = other
   !-- A simple server login module, which can be used when the number 
   of users is relatively small. It uses two properties files:
   users.properties, which holds users (key) and their password (value).
   roles.properties, which 

[jboss-user] [JBoss jBPM] - Re: JBoss Portal and JBPM Weirdness

2007-01-18 Thread crussell42
Could you please post or reply with you experiences with 4.0.5GA and 3.2.Beta1.
I am trying to do same as per topic
http://www.jboss.com/index.html?module=bbop=viewtopict=99450
but am stumped.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4003500#4003500

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4003500
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user