[Beginner's Corner] - JBoss AS 7 with OSGi and JMS
by marquies
marquies [https://community.jboss.org/people/marquies] created the discussion
"JBoss AS 7 with OSGi and JMS"
To view the discussion, visit: https://community.jboss.org/message/747886#747886
--------------------------------------------------------------
Hi all!
What I want to do: I would like to build an OSGi bundle whichs connects to a JMS queue, all in JBoss AS.
What I have done: I tried and compiled the quickstarts helloworld-osgi and helloworld-jms, both successfull. Then I mixed them, I copied the JMS code to the OSGi bundle changed the pom. It compiles, the bundle is build, but the installation in jboss failed: missing requirement [Module[jboss-as-helloworld-osgi:7.1.1.Final]] package; (package=javax.jms)
I guessed that JBoss AS provides javax.jms, doesn't it?
01:57:08,777 INFO [org.jboss.as.server] (management-handler-thread - 14) JBAS018562: Redeployed "jboss-as-helloworld-osgi-7.1.1.Final.jar"
01:57:08,778 INFO [org.jboss.as.server] (management-handler-thread - 14) JBAS018565: Replaced deployment "jboss-as-helloworld-osgi-7.1.1.Final.jar" with deployment "jboss-as-helloworld-osgi-7.1.1.Final.jar"
01:57:08,777 ERROR [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011900: Cannot start bundle: jboss-as-helloworld-osgi:7.1.1.Final: org.osgi.framework.BundleException: Cannot resolve bundle: jboss-as-helloworld-osgi:7.1.1.Final
at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:212) [jbosgi-framework-core-1.1.8.Final.jar:1.1.8.Final]
at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494) [jbosgi-framework-core-1.1.8.Final.jar:1.1.8.Final]
at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144) [jboss-as-osgi-service-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119) [jboss-as-osgi-service-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_33]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]
01:57:08,779 ERROR [jboss-as-helloworld-osgi] (Thread-79) FrameworkEvent ERROR: org.apache.felix.log.LogException: org.osgi.framework.BundleException: Cannot resolve bundle resModule: [jboss-as-helloworld-osgi:7.1.1.Final]
at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:157)
at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551)
at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:211)
at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494)
at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144)
at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119)
at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416)
at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49)
at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_33]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]
Caused by: org.apache.felix.log.LogException: org.jboss.osgi.resolver.XResolverException: Unable to resolve Module[jboss-as-helloworld-osgi:7.1.1.Final]: missing requirement [Module[jboss-as-helloworld-osgi:7.1.1.Final]] package; (package=javax.jms)
at org.jboss.osgi.resolver.felix.FelixResolver.resolveInternal(FelixResolver.java:117)
at org.jboss.osgi.resolver.spi.AbstractResolver.resolve(AbstractResolver.java:149)
at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:155)
... 11 more
Generated MANIFEST.MF
Manifest-Version: 1.0
Built-By: breucking
Build-Jdk: 1.6.0_33
Bundle-Version: 7.1.1.Final
Tool: Bnd-1.15.0
Bundle-Name: jboss-as-helloworld-osgi
Bnd-LastModified: 1342140094712
Bundle-Activator: org.jboss.as.quickstarts.helloworld.osgi.Activator
Created-By: Apache Maven Bundle Plugin
Bundle-ManifestVersion: 2
Bundle-SymbolicName: jboss-as-helloworld-osgi
Import-Package: javax.jms,javax.naming,org.osgi.framework;version="[1.
5,2)"
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/747886#747886]
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] - Installing jbpm 5.3 with guvnor 5.4 issue under jboss 5.1
by Miloud Haimoune
Miloud Haimoune [https://community.jboss.org/people/milhaim] created the discussion
"Installing jbpm 5.3 with guvnor 5.4 issue under jboss 5.1"
To view the discussion, visit: https://community.jboss.org/message/739346#739346
--------------------------------------------------------------
Hi all,
I 'm migrating to jbpm 5.3 witch uses guvnor 5.4
I tried to use jbpm installer and I got the following error :
Caused by: java.lang.ClassNotFoundException: javax.validation.MessageInterpolator$Context
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
I downloaded the jar and added validation-api-1.0.0.GA.jar I got this exception :
javax.inject.DefinitionException: Can't determine type of element <modifies> in bean 'GuvnorBootstrapConfiguration'
at org.jboss.webbeans.xml.checker.beanchildren.ext.AbstractBeanChildrenChecker.checkBeanChild(AbstractBeanChildrenChecker.java:134)
at org.jboss.webbeans.xml.checker.beanchildren.ext.AbstractBeanChildrenChecker.checkChildren(AbstractBeanChildrenChecker.java:89)
......
java.lang.RuntimeException: mapped-name is required for BeanManager of deployment guvnor-5.4.0.Final-jboss-eap-5.1.war
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHandler.java:287)
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:325)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:550)
at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)
did anyone had this issue or if you have a solution ?
(I don't want to use tomcat server since my application is running under Jboss 5.1)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/739346#739346]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[jBPM] - JBPM Task
by RSTVMA LDHYAGF
RSTVMA LDHYAGF [https://community.jboss.org/people/mab1990.amu] created the discussion
"JBPM Task"
To view the discussion, visit: https://community.jboss.org/message/748992#748992
--------------------------------------------------------------
Hello Team,
Thanx for the help that you have been giving unto me now got some understanding of JBPM.
Can someone please explain a little bit about adding a task like in this way:
BlockingAddTaskResponseHandler addTaskResponseHandler= *new* BlockingAddTaskResponseHandler();
*Task task=……;*
** client.addTask(task, *null*, addTaskResponseHandler);
*long* taskId= addTaskResponseHandler.getTaskId();
What am i suppose to code there by the Task task=.....; because in most of the examples that i got from the user guide the codding its like that i have tried coding it like this:
Task task= new Task();
But when i run it says it cannot retrieve the task ID.
Can someone please explain to me?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/748992#748992]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[jBPM] - Unable to save process from process-designer after moving it from Eclipse (NPE)
by mcfeber
mcfeber [https://community.jboss.org/people/mcfeber] created the discussion
"Unable to save process from process-designer after moving it from Eclipse (NPE)"
To view the discussion, visit: https://community.jboss.org/message/750296#750296
--------------------------------------------------------------
I am using guvnor 5.4.0 Final and process-designer.2.2.1.Final in tomcat 7.
I import (Add... via webdav) a simple bpmn2 process (start,script,stop) from Eclipse, open it in the designer, make a small change (move the icons) and select save.
The designer reports:
400 Sorry, a technical error occurred. Please contact a system administrator.
The catalina.out has the following (partial) stack trace:
ERROR 25-07 11:54:33,597 (LoggingHelper.java:error:74) Service method 'public abstract java.lang.String org.drools.guvnor.client.rpc.AssetService.checkinVersion(org.drools.guvnor.client.rpc.Asset) throws com.google.gwt.user.client.rpc.SerializationException' threw an unexpected exception: java. ang.NullPointerException
java.lang.NullPointerException
at org.drools.repository.AssetItem.updateContent(AssetItem.java:390)
at org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler.storeAssetContent(BPMN2ProcessHandler.java:155)
at org.drools.guvnor.server.RepositoryAssetOperations.checkinVersion(RepositoryAssetOperations.java:180)
at org.drools.guvnor.server.RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.checkinVersion(RepositoryAssetOperations$Proxy$_$$_WeldClien Proxy.java)
at org.drools.guvnor.server.RepositoryAssetService.checkinVersion(RepositoryAssetService.java:155)
at org.drools.guvnor.server.RepositoryAssetService$Proxy$_$$_WeldClientProxy.checkinVersion(RepositoryAssetService$Proxy$_$$_WeldClientProxy java)
at org.drools.guvnor.server.RepositoryServiceServlet.checkinVersion(RepositoryServiceServlet.java:596)
After that, any attempt to save the process results in the following message:
Error: Unable to save this asset, as it has been recently updated by [admin]
I've tried this with validation (after creating the PNG) where the designer reports it as valid and without validation, and the result is the same. Is there a way around this? I need to be able to round-trip processes between Eclipse and guvnor.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750296#750296]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months