[jboss-user] [JBoss jBPM] - Re: JBPM4.0 Oracle Parent Key Not Found Error

2009-08-19 Thread hwa
"jbarrez" wrote : anonymous wrote : I'm using jBPM 4.0 CR1 with Oracle10g, 
running on JBoss  5.1.0GA.
  | 
  | Have you tried with 4.0GA already? Been out for a month now.
  | 

Okay, I don't see this problem anymore with 4.0GA. Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250506#4250506

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250506
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problems with indexes in jbpm.history.hbm.xml

2009-08-19 Thread hwa
"hwa" wrote : "kukeltje" wrote : uhmm. you use the class that is 
your 'test app' also as the actionhandler and you do a lot of work in the 
constructor. Now that is an obvious explanation why you see the loop. since 
each time your actionhandler is called it is constructed and starts a new 
process etc... so it is not a loop, but a recursive thing.
  |   | 
  |   | Separate your java actionhandler from the test class or make the 
actionhandler an inner class.
  | 
  | Oh shoot. That's a good point. I think I was so busy trying out all the 
jBPM stuff that I forgot that I had the action handler my test class 
constructor--I should've seen that already--of course it's looping b/c the 
constructor was restarting the schema over and over again...dangit...okay, that 
seemed to solve my problem. Thanks so much!

On a side note, I didn't realize that the action handler would be called until 
I reached that point in the process. Why would it get called over and over 
again before the process even starts?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250505#4250505

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250505
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problems with indexes in jbpm.history.hbm.xml

2009-08-19 Thread hwa
"kukeltje" wrote : uhmm. you use the class that is your 'test app' 
also as the actionhandler and you do a lot of work in the constructor. Now 
that is an obvious explanation why you see the loop. since each time your 
actionhandler is called it is constructed and starts a new process etc... so it 
is not a loop, but a recursive thing.
  | 
  | Separate your java actionhandler from the test class or make the 
actionhandler an inner class.

Oh shoot. That's a good point. I think I was so busy trying out all the jBPM 
stuff that I forgot that I had the action handler my test class constructor--I 
should've seen that already--of course it's looping b/c the constructor was 
restarting the schema over and over again...dangit...okay, that seemed to solve 
my problem. Thanks so much!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250504#4250504

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250504
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problems with indexes in jbpm.history.hbm.xml

2009-08-19 Thread hwa
Oh, and I forgot to include my jbpm.hibernate.cfg.xml:

  | 
  | 
  | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>
  | 
  | 
  |   
  |   
  |  org.hibernate.dialect.Oracle10gDialect
  |  oracle.jdbc.OracleDriver
  |  jdbc:oracle:oci:@orcl
  |  jbpm
  |  jbpm
  |  create-drop
  |  true 
  | 
  |  
  |  
  |  
  |  
  |  
  |  
  |   
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250463#4250463

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250463
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problems with indexes in jbpm.history.hbm.xml

2009-08-19 Thread hwa
Test cases that demonstrates the two situations with the same db error 
messages: one without the Java node (which prints out errors but continues the 
workflow process without any blocking issues), another with the Java node 
(which prints out errors and gets stuck in infinite loop while exporting schema 
to db over and over again).

For both cases, I use the same Java code; relevant snippet from my App.java is 
shown here.

App.java:

  | private ProcessEngine processEngine;
  | private RepositoryService repositoryService;
  | private ExecutionService executionService;
  | private TaskService taskService;
  | 
  | private Map caseinfo = new HashMap();
  | private int tenth = 0;
  | 
  | public App() {
  | processEngine = new Configuration().buildProcessEngine();
  | repositoryService = processEngine.getRepositoryService();
  | executionService = processEngine.getExecutionService();
  | taskService = processEngine.getTaskService();
  | 
  | 
repositoryService.createDeployment().addResourceFromClasspath("workflow.jpdl.xml").deploy();
  | }
  | 
  | public String whatCond() {
  | tenth++;
  | if (tenth == 10) {
  | tenth = 0;
  | log.info("Checking isTenth: YES");
  | return "yes";
  | } else {
  | log.info("Checking isTenth: NO");
  | return "no";
  | }
  | }
  | 
  | public String runPOC(String arg) {
  | ProcessInstance processInstance = 
executionService.startProcessInstanceByKey("test");
  | String pid = processInstance.getId();
  | String cond = "yes";
  | 
  | List taskList = taskService.findPersonalTasks("cathy");
  | Task task = taskList.get(0);
  | String taskDbid = task.getId();
  | Map variables = new HashMap();
  | variables.put("arg", arg);
  | variables.put("cond", cond);
  | taskService.setVariables(taskDbid, variables);
  | taskService.completeTask(taskDbid);
  | 
  | processInstance = executionService.findProcessInstanceById(pid);
  | String result = 
processInstance.findActiveActivityNames().toArray()[0].toString();
  | log.info("Result: " + result);
  | 
  | return result;
  | }
  | 

Here's the test case with no Java nodes where it prints out the error message 
but continues without any blocking issues.

workflow.jpdl.xml:

  | 
  | 
  | http://jbpm.org/4.0/jpdl";>
  |
  |   
  |   
  |
  |
  |   
  |
  |
  |   
  |
  |
  |   
  |
  |
  |   
  |
  |
  |
  |   
  |
  |
  |   
  |   
  |
  |
  |   
  |
  | 
  | 

Errors appears but workflow continues. In the example here, I pass runPOC with 
arg "no" first, then I tried it with arg "yes":

  | 11:49:07,678 INFO  [SchemaExport] exporting generated schema to database
  | 11:49:10,256 SEVERE [SchemaExport] Unsuccessful: create index 
IDX_HDETAIL_HVAR on JBPM4_HIST_DETAIL (HVAR_)
  | 11:49:10,256 SEVERE [SchemaExport] ORA-01408: such column list already 
indexed
  | 
  | 11:49:10,256 SEVERE [SchemaExport] Unsuccessful: create index 
IDX_HDETAIL_HTASK on JBPM4_HIST_DETAIL (HTASK_)
  | 11:49:10,272 SEVERE [SchemaExport] ORA-01408: such column list already 
indexed
  | 
  | 11:49:10,272 SEVERE [SchemaExport] Unsuccessful: create index 
IDX_HDETAIL_HACTI on JBPM4_HIST_DETAIL (HACTI_)
  | 11:49:10,272 SEVERE [SchemaExport] ORA-01408: such column list already 
indexed
  | 
  | 11:49:10,272 SEVERE [SchemaExport] Unsuccessful: create index 
IDX_HDETAIL_HPROCI on JBPM4_HIST_DETAIL (HPROCI_)
  | 11:49:10,272 SEVERE [SchemaExport] ORA-01408: such column list already 
indexed
  | 
  | 11:49:10,912 INFO  [SchemaExport] schema export complete
  | 11:50:47,148 INFO  [App] Result: nojava
  | 11:50:50,711 INFO  [App] Result: java
  | 

--

Here is the test case where it prints out the error message but does NOT work 
and cannot start the workflow process.

workflow.jpdl.xml:

  | 
  | 
  | http://jbpm.org/4.0/jpdl";>
  |
  |   
  |   
  |
  |
  |   
  |   
  |
  |
  |   
  |
  |
  |   
  |
  |
  |   
  |
  |
  |   
  |
  |
  |   
  |
  |
  |
  |   
  |
  | 
  | 

Then the following will repeat over and over again in some infinite loop 
without ever starting the workflow process.

  | 11:31:36,580 INFO  [Configuration] configuring from resource: 
jbpm.hibernate.cfg.xml
  | 11:31:36,580 INFO  [Configuration] Configuration resource: 
jbpm.hibernate.cfg.xml
  | 11:31:36,580 INFO  [Configuration] Reading mappings from resource : 
jbpm.repository.hbm.xml
  | 11:31:36,595 INFO  [HbmBinder] Mapping class: 
org.j

[jboss-user] [JBoss jBPM] - Re: jBPM 4.0 and

2009-08-19 Thread hwa
"Does not work" is everything I wrote in the first post of this thread. I have 
task nodes with users specified in the assignee field and that is creating the 
problems I see where it give me the SEVERE error: Table 'jbpm4_deployment' 
already exists

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250451#4250451

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250451
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: jBPM 4.0 and

2009-08-18 Thread hwa
Hm, I did some more testing. MySQL works for simple workflows but it doesn't 
when I have task nodes with users specified in the assignee field.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250285#4250285

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250285
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problems with indexes in jbpm.history.hbm.xml

2009-08-18 Thread hwa
Okay, there are two situations where this error occurs for me.

One is when I just have a simple jBPM workflow and I see the error messages but 
like the JIRA says, everything is able to continue and it's not a blocking 
issue.

Another is when I have a jBPM workflow with a Java node in particular (which is 
the problem I saw from day 1). Then jBoss will loop infinitely and keep 
exporting the schema to db over and over again and the only error message I see 
is the Oracle "such column list already indexed". I'm using jBPM 4.0 GA now and 
this instance of the problem is blocking me because it loops indefinitely and 
does not even start the workflow process. But if I remove the Java task node, 
then everything works again. My code is the same as the one I posted here: 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158889

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250284#4250284

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250284
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JBPM4.0 Oracle Parent Key Not Found Error

2009-08-11 Thread hwa
Yes, completely clean db. I even uninstalled everything and reinstalled a 
spanking new db...


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249055#4249055

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249055
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JBPM4.0 Oracle Parent Key Not Found Error

2009-08-05 Thread hwa
Did you ever find a solution to this problem?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248270#4248270

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248270
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 5, Java 6, and DocumentBuilderFactory ClassCastExc

2009-07-29 Thread hwa
Thanks for your post. Super helpful, solved my problems too.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246771#4246771

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246771
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: JBoss 5 NoClassDefFoundError & Other Exceptions

2009-07-29 Thread hwa
Nm, this post solved all my problems:
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4196674#4196674

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246770#4246770

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246770
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: JBoss 5 NoClassDefFoundError & Other Exceptions

2009-07-28 Thread hwa
Btw, if I use DocumentBuilderFactory, this is the exception that I get:

  | 18:38:44,545 ERROR [[/pocgwt]] Exception while dispatching incoming RPC call
  | com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public 
abstract java.lang.String[] com.test.poc.client.Poc.getAllCases()' th
  | rew an unexpected exception: java.lang.ClassCastException: 
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to 
javax.xml.parsers.Docum
  | entBuilderFactory
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246575#4246575

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246575
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - JBoss 5 NoClassDefFoundError & Other Exceptions

2009-07-28 Thread hwa
I'm new at JBoss 5 and I've been stuck on this problem for a week and could 
really use (and appreciate) any help I can get.

I'm using JBoss 5.1.0 GA and I've tried JBoss 5 jdk5 version with JDK 5 and 
JBoss 5 jdk version with JDK 6 and have gotten the same results. I'm also using 
EJB3 with GWT and jBPM.

My ear application deploys perfectly on JBoss 4.2.3GA but not on JBoss 5. It 
keeps on complaining that usual Java classes, like org.w3c.dom.Document cannot 
be found. There's also a warning about the ClassLoader and I'm not sure if 
that's related. 

First of all, are these warning normal? Or is something already wrong when I 
start the JBoss 5 server. And how do I fix these warnings?

  | 18:16:20,791 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL 
SECURITY RISK. It has been detected that the MessageSucker component which sucks
  | messages from one node to another has not had its password changed from the 
installation default. Please see the JBoss Messaging user guide for 
instructions on how to do this.
  | 18:16:20,791 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: 
org.jboss.managed.api.annotation.ManagementComponent
  | 18:16:20,947 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: 
org.jboss.managed.api.annotation.ManagementComponent
  | 

Then when I deploy the EAR that works on JBoss 4, it gives me these different 
exceptions (depending on the scenario) in JBoss 5...

This exception occurs if I hit CTRL-C because nothing is happening:

  | 16:34:46,498 ERROR [[/pocgwt]] Exception while dispatching incoming RPC call
  | com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public 
abstract java.lang.String[] com.bioimagene.poc.client.Poc.getAllCases()' th
  | rew an unexpected exception: java.lang.NoClassDefFoundError: 
org/w3c/dom/Document
  | at 
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
  | at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
  | at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
  | at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
  | at 
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
  | at 
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/Document
  | at com.bioimagene.poc.server.CaseUser.(CaseUser.java:34)
  | at com.bioimagene.poc.server.App.getAllCases(App.java:59)
  | at com.bioimagene.poc.server.PocImpl.getAllCases(PocImpl.java:34)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at ja

[jboss-user] [EJB/JBoss] - Re: Overrding the existing ejb and deploy

2009-07-27 Thread hwa
Did you ever find a solution to this problem? I'm getting some similar error 
messages in my JBoss 5. Thanks!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246314#4246314

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246314
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user