[JBoss Tools] - jboss-packaging-maven-plugin jboss-esb + m2e
by chmanosh
chmanosh [https://community.jboss.org/people/chmanosh] created the discussion
"jboss-packaging-maven-plugin jboss-esb + m2e"
To view the discussion, visit: https://community.jboss.org/message/794351#794351
--------------------------------------------------------------
Hi,
Does jboss-packaging-maven-plugin m2e connector work for jboss-esb? When I import a maven jboss-esb project into eclipse (m2e installed), it does not covert it into an Eclipse JBoss ESB (facet is not enabled and dependecies are not set) project. I tried almost all versions of eclipse, m2e, jboss tools and jboss soa tools, to make it work, but no use. This is my work around for now
1. Turn on facet nature and enable JBOSS ESB nature.
2. Then it get recognized as a deployable artifact on JBoss server.
3. Manually add all dependencies in "Deployment and Assembly section".
What I was expecting was all steps should have been done by m2e jboss esb (jboss-packaging-maven-plugin) connector. I could not find a relevant post or article related to it. Does this feature ever supported?
Thank you in advance.
Manosh
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794351#794351]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[jBPM] - Migration jbpm 3 to jbpm5
by y lab
y lab [https://community.jboss.org/people/yjboss] created the discussion
"Migration jbpm 3 to jbpm5"
To view the discussion, visit: https://community.jboss.org/message/794721#794721
--------------------------------------------------------------
Hi,
I must migrate a code integration . in JBPM3 i have :
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
GraphSession graphSession = jbpmContext.getGraphSession();
ProcessDefinition definition = graphSession.findLatestProcessDefinition(processDefinitionName);
ProcessInstance instance = new ProcessInstance(definition);
...
instance.getContextInstance().setTransientVariable(IntegrationInfo.INTEGRATION_INFO,var);
instance.signal();
...
jbpmContext.save(instance);
jbpmContext.close();
i am new in jbpm5 and i demand what is the effecient equivalent migration of this code in jbpm5.
Thanks for your helps.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794721#794721]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[jBPM] - JBPM5 and hibernate3 on Jboss as7
by y lab
y lab [https://community.jboss.org/people/yjboss] created the discussion
"JBPM5 and hibernate3 on Jboss as7"
To view the discussion, visit: https://community.jboss.org/message/793572#793572
--------------------------------------------------------------
I want to use hibernate 3 as JPA provider in jboss as7 ;
- Create a folder in AS7_HOME\modules\org\hibernate\3 for slot 3 to hold hibernate 3 jars.
- I Create the AS7_HOME/modules/org/hibernate/3/module.xml file with contents :
<module xmlns="urn:jboss:module:1.1" name="org.hibernate" slot="3">
<properties>
<property name="jboss.api" value="private"/>
</properties>
<resources>
<resource-root path="hibernate-commons-annotations-3.1.0.GA.jar"/>
<resource-root path="hibernate-entitymanager-3.4.0.GA.jar"/>
<resource-root path="hibernate-core-3.3.2.GA.jar"/>
<resource-root path="antlr-3.3.jar"/>
<resource-root path="asm-3.3.jar"/>
<resource-root path="btm-2.1.2.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="org.jboss.as.jpa.hibernate" slot="3"></module>
<module name="javax.api"></module>
<module name="javax.persistence.api"></module>
<module name="javax.transaction.api"></module>
<module name="javax.validation.api"></module>
<module name="org.antlr"></module>
<module name="org.apache.ant"></module>
<module name="org.apache.commons.collections"></module>
<module name="org.dom4j"></module>
<module name="org.infinispan"></module>
<module name="org.javassist"></module>
<module name="org.jboss.logging"></module>
<module name="org.slf4j"></module>
</dependencies>
</module>
in my persistence.xml i use :
<property name="jboss.as.jpa.providerModule" value="org.hibernate:3"></property>
Whene i start my server i take the following error :
Failed to define class org.jboss.as.jpa.hibernate3.infinispan.InfinispanRegionFactory in Module "org.jboss.as.jpa.hibernate:3" from local module loader @1dec1dd (roots: C:\PIXID\jboss-as-7.1.1.Final\modules): java.lang.LinkageError: Failed to link org/jboss/as/jpa/hibernate3/infinispan/InfinispanRegionFactory (Module "org.jboss.as.jpa.hibernate:3" from local module loader @1dec1dd (roots: C:\PIXID\jboss-as-7.1.1.Final\modules))
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
Any help?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/793572#793572]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[Beginner's Corner] - Arquilian issue at bean-validation quickstart
by James Freitas
James Freitas [https://community.jboss.org/people/jamesfrj] created the discussion
"Arquilian issue at bean-validation quickstart"
To view the discussion, visit: https://community.jboss.org/message/794702#794702
--------------------------------------------------------------
Hello!!
My configuration:
Windows XP
JBoss 7.0.13 Final
Maven 3.0.4
I was trying to run the Arquilian tests, at the bean-validation quickstart, but I've got this error:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.jboss.as.quickstarts.bean_validation.test.MemberValidationTest
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
28/01/2013 15:58:58 org.jboss.arquillian.container.impl.MapObject populate
AVISO: Configuration contain properties not supported by the backing object org.jboss.as.arquillian.container.remote.RemoteContainerConfiguration
Unused property entries: {jbossHome=C:\jboss-as-7.1.1.Final}
Supported property names: [managementPort, username, managementAddress, password]
28/01/2013 15:59:05 org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1 call
AVISO: Exception encountered during export of archive
org.jboss.shrinkwrap.api.exporter.ArchiveExportException: Failed to write asset
to output: /WEB-INF/lib/arquillian-testenricher-ejb.jar
at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$3.
handle(StreamExporterDelegateBase.java:272)
at org.jboss.shrinkwrap.impl.base.io.IOUtil.closeOnComplete(IOUtil.java:219)
at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase.processNode(StreamExporterDelegateBase.java:233)
at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.processNode(AbstractExporterDelegate.java:105)
at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.processNode(AbstractExporterDelegate.java:109)
at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.processNode(AbstractExporterDelegate.java:109)
at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.doExport(AbstractExporterDelegate.java:95)
at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase.access$001(StreamExporterDelegateBase.java:50)
at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$1.call(StreamExporterDelegateBase.java:121)
at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$1.call(StreamExporterDelegateBase.java:116)
at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:124)
at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:118)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Pipe closed
at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:244)
at java.io.PipedInputStream.receive(PipedInputStream.java:210)
at java.io.PipedOutputStream.write(PipedOutputStream.java:132)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:155)
at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:196)
at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate.closeEntry(JdkZipExporterDelegate.java:84)
at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate.closeEntry(JdkZipExporterDelegate.java:40)
at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$2.execute(StreamExporterDelegateBase.java:265)
at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$2.execute(StreamExporterDelegateBase.java:233)
at org.jboss.shrinkwrap.impl.base.io.IOUtil.closeOnComplete(IOUtil.java:217)
... 15 more
28/01/2013 15:59:05 org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1 call
AVISO: [SHRINKWRAP-120] Possible deadlock scenario: Got exception on closing the ZIP out stream: Pipe closed
java.io.IOException: Pipe closed
at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:244)
at java.io.PipedInputStream.receive(PipedInputStream.java:210)
at java.io.PipedOutputStream.write(PipedOutputStream.java:132)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:155)
at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:196)
at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:301)
at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:140)
at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321)
at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:148)
at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:118)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.937 sec <<< FAILURE!
Results :
Tests in error:
org.jboss.as.quickstarts.bean_validation.test.MemberValidationTest: Could not deploy to container: JBAS012144: Could not connect to remote://127.0.0.1:9999. T
he connection timed out
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.500s
[INFO] Finished at: Mon Jan 28 15:59:09 BRST 2013
[INFO] Final Memory: 19M/45M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
10:test (default-test) on project bean-validation: There are test failures.
[ERROR]
[ERROR] Please refer to D:\Documents and Settings\xxxx\Desktop\Stuff\@appz\Java\
JBossJBDevProjects\bean-validation\target\surefire-reports for the individual te
st results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
D:\Documents and Settings\xxxx\Desktop\Stuff\@appz\Java\JBossJBDevProjects\bean-validation>
Can you help on this issue?
This is the content of my arquilian.xml file:
<arquillian xmlns=" http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<!-- Uncomment to have test archives exported to the file system for inspection -->
<!-- <engine> -->
<!-- <property name="deploymentExportPath">target/</property> -->
<!-- </engine> -->
<!-- Force the use of the Servlet 3.0 protocol with all containers, as it is the most mature -->
<defaultProtocol type="Servlet 3.0" />
<!-- Example configuration for a managed/remote JBoss AS 7 instance -->
<container qualifier="jboss" default="true">
<!-- If you want to use the JBOSS_HOME environment variable, just delete the jbossHome property -->
<configuration>
*<property name="jbossHome">C:\jboss-as-7.1.1.Final</property>*
</configuration>
</container>
</arquillian>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794702#794702]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[Beginner's Corner] - About the Quickstarts
by James Freitas
James Freitas [https://community.jboss.org/people/jamesfrj] created the discussion
"About the Quickstarts"
To view the discussion, visit: https://community.jboss.org/message/794459#794459
--------------------------------------------------------------
Hello, everybody!!
I am a totally newbie at JBoss Development. I have tested all the Quickstarts (HelloWorld, Login, NumberGuess, etc) and they have worked fine, but I would like to take the next step!
I mean, I would like initially to create these applications from the scratch, but I am not sure how to do it.
For instance I was trying to create a HelloWorld application by my own hands, but what Project should I create ? When I use Java EE Web Project, it comes with a lot of components that I don't use for such a simple task.
Is there a how to for QuickStarts creation? Can you help me out?
Just the initial step, I mean, the kind of project that I should create for these Quickstarts, would be already a great help...
Thank you
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794459#794459]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[jBPM] - Restore JBPM session
by new bee
new bee [https://community.jboss.org/people/newbird] created the discussion
"Restore JBPM session"
To view the discussion, visit: https://community.jboss.org/message/750414#750414
--------------------------------------------------------------
Hi,
I am new to JBPM and struggling to understand the flow.............
I red that we can store jbpm session,process instance,task instance and variables...etc...............
After some point, assume application crashes and want to restore all running sessions how would i do?
Do i need to get each process id/session id from the session and again start it?
If i do in the above way, from which point it will start the session like it already proesses two nodes....How it will know to start from node3? Do i need to configure that also. If how would i?
Also red in discussions that after restoring the session, we need to again register action handlers? Is it true?
What is the use task server ,task service and task client? How they are different from workitem handler?
Please reply............................................. :-/
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750414#750414]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[jBPM] - User defined class type process variables
by Rahul Agrawal
Rahul Agrawal [https://community.jboss.org/people/rahulamt] created the discussion
"User defined class type process variables"
To view the discussion, visit: https://community.jboss.org/message/794624#794624
--------------------------------------------------------------
Hi,
How to define the process variables that are the of some user defined java class.
For example, I have a java class Foo. I want to have a process variable that is Foo class type.
Does anyone has any idea how the process definition(.bpmn2 file) will look like?
<itemDefinition id="_numberItem" structureRef="Foo" />
<process processType="Private" isExecutable="true" name="BPMN_Process" id="BPMN_Process">
<!-- process variables -->
<property id="number" itemSubjectRef="_numberItem"/>
Unable to generate action invoker. : org.drools.lang.descr.ProcessDescr@497062
org/drools/bpmn2/Process_org_drools_bpmn2_BPMN_ProcessReturnValueEvaluator1Invoker.java (12:385) : Foo cannot be resolved to a type
Do I need to import something extra? If so, how to do that. Please help.
When I try to load this process definition using
kbuilder.add(ResourceFactory.+newFileResource+(process),
ResourceType.
++BPMN2++);
**return** kbuilder.newKnowledgeBase();
I get the following exception.#####
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794624#794624]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month