[JBoss Tools] - Timeout problem with JBoss 7.0.1.Final
by Tobias Koltsch
Tobias Koltsch [http://community.jboss.org/people/tobias81] created the discussion
"Timeout problem with JBoss 7.0.1.Final"
To view the discussion, visit: http://community.jboss.org/message/622018#622018
--------------------------------------------------------------
Hi,
when I start my JBoss with JBossAS tools inside of my eclipse, the server start correctly and prints out the message “JBoss AS 7.0.1.Final "Zap" started in 2073ms - Started 98 of 153 services (55 services are passive or on-demand)“. The start timeout is configured with 10 seconds. It seems eclipse didn't notice the server is started, and after 10 seconds I got the error message: „Starting JBoss 7.0.1.Final has encountered a problem. Server JBoss 7.0.1.Final Server failed to start“.
With JBoss 7.0.0.Final the timeout work correctly and I got the error only when I use JBoss 7.0.1.Final.
Cheers,
Tobias
My system setup:
Ubuntu 11.04 (x86_64)
JDK 1.7.0 (64 Bit)
Eclipse 3.7 with WTP 3.3
JBossAS Tools 2.3.0.v20110624-0505-H8-M2
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622018#622018]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months
[jBPM] - How to Send Signal Out from a WorkItemHandler?
by Bruce Cui
Bruce Cui [http://community.jboss.org/people/brucecui] created the discussion
"How to Send Signal Out from a WorkItemHandler?"
To view the discussion, visit: http://community.jboss.org/message/612163#612163
--------------------------------------------------------------
I have been trying to implement multi-threading processes with jBPM, as well as time consuming batch tasks. I found the console was executing the processes in one same main thread, at least so appeared to me, so I tried to put the task logic in a Thread instance and started it in the WorkItemHandler. For single thread but time consuming tasks, which I need to wait for the return, I also passed the ProcessInstance as a parameter, so that when the thread finished its job, it could send out a signal togher with a return Object to notify the process to move forward. And while it was running, it would't occupy the main thread for long time.
Local testing seems fine, only the job wouldn't exit after all things done. Then I put all stuf on web, but this time I met several exceptions, saying like: "java.lang.IllegalArgumentException: IOException while storing workItem 1: org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl$1"
and "Could not commit session or rollback"
So I guess I should not pass the instance reference out, otherwise session may not be able to close or something. But is there a way to signal out from the WorkItemHandler or the Thread it starts, so that I can notify the process instance?
I see there are external signals, but it requires reference to ksession. But I didn't find a clue from either the docs or the API about acquire the ksession reference properly. Could you be so kind to help me out here? Or else I'll have to give up, since time consuming tasks running in the same main thread together will surely be a nightmare.
Thanks,
Bruce
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612163#612163]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months
[JBoss Tools] - Archetypes for JavaEE modules?
by Wolfgang Knauf
Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion
"Archetypes for JavaEE modules?"
To view the discussion, visit: http://community.jboss.org/message/623604#623604
--------------------------------------------------------------
Hi all,
I currently do my first Maven steps, and I want to use the features of Eclipse/WTP (or JBoss Tools), combined with some Maven features (mainly dependency management).
But I am a bit stuck with the archetypes: does anybody have a suggestion on which archetypes to use for creating a JavaEE6 ear with all child modules (ejb, app client, web module)?
E.g. JBossTools has an archetype "jboss-javaee6-webapp", but no archetypes for the other module types. I found some JavaEE archetypes with groupId "org.codehaus.mojo.archetypes" which covered all module types, but I did not manage to connect the modules to an Eclipse EAR project.
This question is probably not really JBossTools related, but I hope that they provide all necessary utilities, and I just did not find them all ;-).
Best regards
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623604#623604]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months