[JBoss jBPM] - problems creating process and seeing it in GWT
by erinemiller
Hi All,
I'm having problems doing deployments using the API. Here's the code:
ProcessEngine processEngine = new Configuration()
.buildProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
File f = new File(filePath);
Deployment deployment = repositoryService.createDeployment();
((NewDeployment) deployment).addResourceFromFile(f);
String deploymentId = ((NewDeployment) deployment).deploy();
When I run this from eclipse, it seems to work, but the process def doesn't show up in the GWT console. I changed my hibernate config to point to localhost:7001 instead of what appeared to be a local memory copy and now I'm getting this:
08:04:12,575 INF | [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
08:04:12,575 INF | [DriverManagerConnectionProvider] Hibernate connection pool size: 20
08:04:12,575 INF | [DriverManagerConnectionProvider] autocommit mode: false
08:04:12,577 INF | [DriverManagerConnectionProvider] using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost:1701
08:04:12,577 INF | [DriverManagerConnectionProvider] connection properties: {user=sa, password=****}
08:04:12,676 INF | [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
08:04:12,680 INF | [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
08:04:12,686 INF | [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
08:04:12,689 INF | [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
08:04:12,728 INF | [SessionFactoryImpl] building session factory
08:04:13,308 INF | [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
08:04:13,321 INF | [SchemaExport] Running hbm2ddl schema export
08:04:13,322 INF | [SchemaExport] exporting generated schema to database
08:04:13,338 SEV | [SchemaExport] Unsuccessful: create table JBPM4_EXECUTION (DBID_ bigint generated by default as identity (start with 1), CLASS_ varchar(255) not null, DBVERSION_ integer not null, ACTIVITYNAME_ varchar(255), PROCDEFID_ varchar(255), HASVARS_ bit, NAME_ varchar(255), KEY_ varchar(255), ID_ varchar(255), STATE_ varchar(255), SUSPHISTSTATE_ varchar(255), PRIORITY_ integer, HISACTINST_ bigint, PARENT_ bigint, INSTANCE_ bigint, SUPEREXEC_ bigint, SUBPROCINST_ bigint, PARENT_IDX_ integer, primary key (DBID_), unique (ID_))
08:04:13,338 SEV | [SchemaExport] Table already exists: JBPM4_EXECUTION in statement [create table JBPM4_EXECUTION]
08:04:13,345 SEV | [SchemaExport] Unsuccessful: create table JBPM4_TASK (DBID_ bigint generated by default as identity (start with 1), CLASS_ char(1) not null, DBVERSION_ integer not null, NAME_ varchar(255), DESCR_ longvarchar, STATE_ varchar(255), SUSPHISTSTATE_ varchar(255), ASSIGNEE_ varchar(255), FORM_ varchar(255), PRIORITY_ integer, CREATE_ timestamp, DUEDATE_ timestamp, PROGRESS_ integer, SIGNALLING_ bit, EXECUTION_ID_ varchar(255), ACTIVITY_NAME_ varchar(255), HASVARS_ bit, SUPERTASK_ bigint, EXECUTION_ bigint, PROCINST_ bigint, SWIMLANE_ bigint, TASKDEFNAME_ varchar(255), primary key (DBID_))
08:04:13,345 SEV | [SchemaExport] Table already exists: JBPM4_TASK in statement [create table JBPM4_TASK]
08:04:13,347 SEV | [SchemaExport] Unsuccessful: create index IDX_EXEC_SUPEREXEC on JBPM4_EXECUTION (SUPEREXEC_)
08:04:13,347 SEV | [SchemaExport] Index already exists: IDX_EXEC_SUPEREXEC in statement [create index IDX_EXEC_SUPEREXEC on JBPM4_EXECUTION]
08:04:13,348 SEV | [SchemaExport] Unsuccessful: create index IDX_EXEC_INSTANCE on JBPM4_EXECUTION (INSTANCE_)
08:04:13,348 SEV | [SchemaExport] Index already exists: IDX_EXEC_INSTANCE in statement [create index IDX_EXEC_INSTANCE on JBPM4_EXECUTION]
08:04:13,348 SEV | [SchemaExport] Unsuccessful: create index IDX_EXEC_SUBPI on JBPM4_EXECUTION (SUBPROCINST_)
08:04:13,348 SEV | [SchemaExport] Index already exists: IDX_EXEC_SUBPI in statement [create index IDX_EXEC_SUBPI on JBPM4_EXECUTION]
08:04:13,349 SEV | [SchemaExport] Unsuccessful: create index IDX_EXEC_PARENT on JBPM4_EXECUTION (PARENT_)
08:04:13,349 SEV | [SchemaExport] Index already exists: IDX_EXEC_PARENT in statement [create index IDX_EXEC_PARENT on JBPM4_EXECUTION]
08:04:13,363 SEV | [SchemaExport] Unsuccessful: create index IDX_TASK_SUPERTASK on JBPM4_TASK (SUPERTASK_)
08:04:13,363 SEV | [SchemaExport] Index already exists: IDX_TASK_SUPERTASK in statement [create index IDX_TASK_SUPERTASK on JBPM4_TASK]
Any idea about what I'm doing wrong??
Thanks,
Erin
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244301#4244301
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244301
17 years
[JBoss Messaging] - Re:
by nbhatia
Well, my test is very slim - it does not do any database transactions or message processing. I even disabled the logging of the messages to make sure I am getting raw message times. The only thing that is potentially slowing down the performance is the use of XA, through the use of JCA and JmsXA connection factory, I assume. I am completely flexible on dealing with this provided the JBM and JBoss AS teams jointly recommend the right way to do it.
As mentioned in my previous message, I have seen people abandon XA and 2PC in favor of performance. Usually they will commit the database transaction first, if that succeeds they will acknowledge the JMS message (this assumes that the DB commit will fail more often than a JMS ack). May be you can confirm or deny this as a best practice and recommend a solution using this approach. In any case, as an application developer, I need a holistic solution that plays well with JBoss AS and JBM. Hope you can help with this.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244292#4244292
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244292
17 years
[JBoss jBPM] - classes/java/lang/bsh.class' error
by lpiccoli
JBPM3.2.6SP1
JBoss5.00GA
hi all
i am getting the following error when using a in an event.
|
| 20:04:02,418 ERROR [GraphElement] action threw exception: couldn't get value for file 'classes/java/lang/bsh.class'
| org.jbpm.JbpmException: couldn't get value for file 'classes/java/lang/bsh.class'
| at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:196)
| at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:116)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
|
| <process-state name='Sub Process'>
| <event type='node-enter'>
| <script name='node-enter'>
| System.out.println("---------------node-enter");
| </script>
| </event>
|
|
i read the docs and the bsh.jar file is in the classpath including the jboss common/lib.
any help is most appreciated
-lp
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244287#4244287
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244287
17 years