[jBPM] - Unable to start jBPM using a Web service
by Laura delli Paoli
Laura delli Paoli [https://community.jboss.org/people/lauradp] created the discussion
"Unable to start jBPM using a Web service"
To view the discussion, visit: https://community.jboss.org/message/779888#779888
--------------------------------------------------------------
Hello Everybody,
I'm trying to start a jbpm process as a method of a web service.
JBPMHelper.setupDataSource();
// load up the knowledge base
KnowledgeBase kbase = readKnowledgeBase(wkfName);
StatefulKnowledgeSession ksession = JBPMHelper.newStatefulKnowledgeSession(kbase);
ksession.getWorkItemManager().registerWorkItemHandler("Semaphore", new WSHumanTaskHandler());
//params
Map<String, Object> params = new HashMap<String, Object>();
params.put("Command", command);
params.put("Parameters", Parameters);
// start a new process instance
ksession.startProcess(wkfId, params);
System.out.println("Process started ...");
on the setupDataSource() method I get the following warning:
15:35:13,580 WARN [bitronix.tm.utils.ManagementRegistrar] (http-localhost-127.0.0.1-8080-1) cannot register object with name bitronix.tm:type=JDBC,UniqueName=jdbc/jbpm-ds: bitronix.tm.internal.BitronixRuntimeException: cannot call method 'registerMBean'
at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:123) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.utils.ManagementRegistrar.register(ManagementRegistrar.java:86) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.jdbc.PoolingDataSource.init(PoolingDataSource.java:78) [btm-2.1.2.jar:2.1.2]
at org.jbpm.test.JBPMHelper.setupDataSource(JBPMHelper.java:84) [jbpm-test-5.4.0.Final.jar:5.4.0.Final]
at eu.discoveryreply.serviceLayer.jbpm.JBpmWkfLauncher.startUp(JBpmWkfLauncher.java:87) [classes:]
at eu.discoveryreply.serviceLayer.jbpm.JBpmWkfLauncher.startWorkflow(JBpmWkfLauncher.java:37) [classes:]
at eu.discoveryreply.serviceLayer.webServer.StartWkfWS.startWorkflow(StartWkfWS.java:33) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_32]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_32]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.6.0_32]
at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)
at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)
at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [cxf-rt-core-2.4.4.jar:2.4.4]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [rt.jar:1.6.0_32]
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.6.0_32]
at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.6.0_32]
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-rt-core-2.4.4.jar:2.4.4]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [cxf-rt-core-2.4.4.jar:2.4.4]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) [cxf-api-2.4.4.jar:2.4.4]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-rt-core-2.4.4.jar:2.4.4]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207) [cxf-rt-transports-http-2.4.4.jar:2.4.4]
at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)
at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)
at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185) [cxf-rt-transports-http-2.4.4.jar:2.4.4]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108) [cxf-rt-transports-http-2.4.4.jar:2.4.4]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.3.GA.jar:2.0.3.GA]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_32]
Caused by: java.lang.IllegalAccessException: Class bitronix.tm.utils.ManagementRegistrar can not access a member of class org.jboss.as.jmx.PluggableMBeanServerImpl with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.6.0_32]
at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:121) [btm-2.1.2.jar:2.1.2]
... 44 more
On starting the process I get:
15:35:48,182 ERROR [org.jboss.ws.common.invocation.InvocationHandlerJAXWS] (http-localhost-127.0.0.1-8080-1) Method invocation failed with exception: null: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_32]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_32]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.6.0_32]
at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)
at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)
at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [cxf-rt-core-2.4.4.jar:2.4.4]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [rt.jar:1.6.0_32]
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.6.0_32]
at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.6.0_32]
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-rt-core-2.4.4.jar:2.4.4]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [cxf-rt-core-2.4.4.jar:2.4.4]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) [cxf-api-2.4.4.jar:2.4.4]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-rt-core-2.4.4.jar:2.4.4]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207) [cxf-rt-transports-http-2.4.4.jar:2.4.4]
at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)
at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)
at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185) [cxf-rt-transports-http-2.4.4.jar:2.4.4]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108) [cxf-rt-transports-http-2.4.4.jar:2.4.4]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.3.GA.jar:2.0.3.GA]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_32]
Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "$Proxy189.getXAResource()Ljavax/transaction/xa/XAResource;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, $Proxy189, and the class loader (instance of <bootloader>) for interface javax/sql/XAConnection have different Class objects for the type javax/transaction/xa/XAResource used in the signature
at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.6.0_32]
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.Class.getConstructor0(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.Class.getConstructor(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source) [rt.jar:1.6.0_32]
at bitronix.tm.resource.jdbc.lrc.LrcXADataSource.getXAConnection(LrcXADataSource.java:104) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.jdbc.PoolingDataSource.createPooledConnection(PoolingDataSource.java:331) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.createPooledObject(XAPool.java:291) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.grow(XAPool.java:408) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.getInPool(XAPool.java:387) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.getConnectionHandle(XAPool.java:129) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.getConnectionHandle(XAPool.java:97) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.jdbc.PoolingDataSource.getConnection(PoolingDataSource.java:248) [btm-2.1.2.jar:2.1.2]
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) [hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA]
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) [hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at org.jbpm.test.JBPMHelper.loadStatefulKnowledgeSession(JBPMHelper.java:147) [jbpm-test-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.test.JBPMHelper.newStatefulKnowledgeSession(JBPMHelper.java:136) [jbpm-test-5.4.0.Final.jar:5.4.0.Final]
at eu.discoveryreply.serviceLayer.jbpm.JBpmWkfLauncher.startWorkflow(JBpmWkfLauncher.java:40) [classes:]
at eu.discoveryreply.serviceLayer.webServer.StartWkfWS.startWorkflow(StartWkfWS.java:33) [classes:]
... 38 more
15:35:48,264 AVVERTENZA [org.apache.cxf.phase.PhaseInterceptorChain] (http-localhost-127.0.0.1-8080-1) Application { http://webServer.serviceLayer.discoveryreply.eu/ http://webServer.serviceLayer.discoveryreply.eu/}StartWkfWS#{ http://webServer.serviceLayer.discoveryreply.eu/ http://webServer.serviceLayer.discoveryreply.eu/}startWorkflow has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: loader constraint violation in interface itable initialization: when resolving method "$Proxy189.getXAResource()Ljavax/transaction/xa/XAResource;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, $Proxy189, and the class loader (instance of <bootloader>) for interface javax/sql/XAConnection have different Class objects for the type javax/transaction/xa/XAResource used in the signature
at org.jboss.wsf.stack.cxf.JBossWSInvoker.createFault(JBossWSInvoker.java:246)
at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:201)
at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [cxf-rt-core-2.4.4.jar:2.4.4]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [rt.jar:1.6.0_32]
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.6.0_32]
at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.6.0_32]
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-rt-core-2.4.4.jar:2.4.4]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [cxf-rt-core-2.4.4.jar:2.4.4]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) [cxf-api-2.4.4.jar:2.4.4]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-rt-core-2.4.4.jar:2.4.4]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207) [cxf-rt-transports-http-2.4.4.jar:2.4.4]
at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)
at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)
at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185) [cxf-rt-transports-http-2.4.4.jar:2.4.4]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108) [cxf-rt-transports-http-2.4.4.jar:2.4.4]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.3.GA.jar:2.0.3.GA]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_32]
Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "$Proxy189.getXAResource()Ljavax/transaction/xa/XAResource;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, $Proxy189, and the class loader (instance of <bootloader>) for interface javax/sql/XAConnection have different Class objects for the type javax/transaction/xa/XAResource used in the signature
at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.6.0_32]
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.Class.getConstructor0(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.Class.getConstructor(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source) [rt.jar:1.6.0_32]
at bitronix.tm.resource.jdbc.lrc.LrcXADataSource.getXAConnection(LrcXADataSource.java:104) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.jdbc.PoolingDataSource.createPooledConnection(PoolingDataSource.java:331) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.createPooledObject(XAPool.java:291) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.grow(XAPool.java:408) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.getInPool(XAPool.java:387) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.getConnectionHandle(XAPool.java:129) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.common.XAPool.getConnectionHandle(XAPool.java:97) [btm-2.1.2.jar:2.1.2]
at bitronix.tm.resource.jdbc.PoolingDataSource.getConnection(PoolingDataSource.java:248) [btm-2.1.2.jar:2.1.2]
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) [hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA]
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) [hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at org.jbpm.test.JBPMHelper.loadStatefulKnowledgeSession(JBPMHelper.java:147) [jbpm-test-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.test.JBPMHelper.newStatefulKnowledgeSession(JBPMHelper.java:136) [jbpm-test-5.4.0.Final.jar:5.4.0.Final]
at eu.discoveryreply.serviceLayer.jbpm.JBpmWkfLauncher.startWorkflow(JBpmWkfLauncher.java:40) [classes:]
at eu.discoveryreply.serviceLayer.webServer.StartWkfWS.startWorkflow(StartWkfWS.java:33) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_32]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_32]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.6.0_32]
at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)
at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)
... 32 more
Can anyone help me?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779888#779888]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[jBPM] - Exception being thrown after login to jbpm-console
by Gareth Edwards
Gareth Edwards [https://community.jboss.org/people/garethed] created the discussion
"Exception being thrown after login to jbpm-console"
To view the discussion, visit: https://community.jboss.org/message/782586#782586
--------------------------------------------------------------
Hello,
Just after logging into the jbpm-console I am getting the following errors:
11:57:14,207 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--0.0.0.0-8080-2) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: org/jboss/netty/channel/socket/ClientSocketChannelFactory
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.2.Final.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]
Caused by: java.lang.NoClassDefFoundError: org/jboss/netty/channel/socket/ClientSocketChannelFactory
at org.hornetq.core.remoting.impl.netty.NettyConnectorFactory.createConnector(NettyConnectorFactory.java:40) [hornetq-core-2.2.10.Final.jar:]
at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1118) [hornetq-core-2.2.10.Final.jar:]
at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:993) [hornetq-core-2.2.10.Final.jar:]
at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:224) [hornetq-core-2.2.10.Final.jar:]
at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:663) [hornetq-core-2.2.10.Final.jar:]
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector.connect(HornetQTaskClientConnector.java:96) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector.connect(HornetQTaskClientConnector.java:76) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.task.service.TaskClient.connect(TaskClient.java:845) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.integration.console.TaskClientFactory.newAsyncInstance(TaskClientFactory.java:101) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.integration.console.TaskClientFactory.newAsyncInstance(TaskClientFactory.java:111) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.integration.console.TaskClientFactory.newInstance(TaskClientFactory.java:65) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.integration.console.TaskManagement.connect(TaskManagement.java:61) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.integration.console.TaskManagement.getAssignedTasks(TaskManagement.java:124) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]
at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525) [resteasy-jaxrs-2.3.2.Final.jar:]
... 24 more
Caused by: java.lang.ClassNotFoundException: org.jboss.netty.channel.socket.ClientSocketChannelFactory from [Module "deployment.jbpm-gwt-console-server.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 47 more
Anybody have any ideas?
Cheers,
Gareth.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/782586#782586]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[JBoss Tools] - How to use reportsevice.xml in place of reportds.xml
by venu gopal
venu gopal [https://community.jboss.org/people/venu7239] created the discussion
"How to use reportsevice.xml in place of reportds.xml"
To view the discussion, visit: https://community.jboss.org/message/782540#782540
--------------------------------------------------------------
Hi i am using Jboss as 4.3 server ,up to now i am using ds.xml to connect my DB where i mention database connection details,it is working fine
but i want to use service.xml to connect with DB ,but i am not able to connect DB ,i am getting the following exceptions.i have no idea where to change JBoss server to look my service.xml for DB connections
This is my reportds.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE datasources
PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
" http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
<datasources>
<local-tx-datasource>
<jndi-name>mobeereportDatasource</jndi-name>
<connection-url>jdbc:oracle:thin:@localhost:1521:mobee</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>reportuser</user-name>
<password>reportpasswd</password>
</local-tx-datasource>
</datasources>
This is the reportservice.xml which now i want use
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<server>
<mbean code="com.mchange.v2.c3p0.jboss.C3P0PooledDataSource" name="jboss:service=C3P0PooledDataSource">
<attribute name="JndiName">java:mobeereportDatasource</attribute>
<attribute name="JdbcUrl">jdbc:oracle:thin:@localhost:1521:mobee</attribute>
<attribute name="DriverClass">oracle.jdbc.driver.OracleDriver</attribute>
<attribute name="User">reportuser</attribute>
<attribute name="Password">reportpasswd</attribute>
<attribute name="MinPoolSize">0</attribute>
<attribute name="MaxPoolSize">10</attribute>
<attribute name="AcquireIncrement">3</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
This is the stacktrace:
Caused by: org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'springNonTxDataSource.ReportScheduler': java.sql.SQLException: Connections could not be acquired from the underlying database! [See nested exception: java.sql.SQLException: Connections could not be acquired from the underlying database!]
at org.quartz.impl.jdbcjobstore.JobStoreCMT.getNonManagedTXConnection(JobStoreCMT.java:167)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3652)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3624)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.cleanVolatileTriggerAndJobs(JobStoreSupport.java:693)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.initialize(JobStoreSupport.java:555)
... 181 more
Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:104)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:236)
at com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedDataSource.java:94)
at com.mchange.v2.c3p0.ComboPooledDataSource.getConnection(ComboPooledDataSource.java:521)
at org.springframework.scheduling.quartz.LocalDataSourceJobStore$2.getConnection(LocalDataSourceJobStore.java:125)
at org.quartz.utils.DBConnectionManager.getConnection(DBConnectionManager.java:112)
at org.quartz.impl.jdbcjobstore.JobStoreCMT.getNonManagedTXConnection(JobStoreCMT.java:164)
... 185 more
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResourcePool.java:970)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:208)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:232)
... 190 more
Can anyone please help me where and which file i have to change in Jboss server.
thanks in advance
venu
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/782540#782540]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[JBoss Tools] - JBoss Tools 4 and Developer Studio 6 is ready!
by Max Rydahl Andersen
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] modified the blog post:
"JBoss Tools 4 and Developer Studio 6 is ready!"
To view the blog post, visit: https://community.jboss.org/community/tools/blog/2012/12/10/jboss-tools-4...
--------------------------------------------------------------
>From all of us to all of you the Final and GA release! https://community.jboss.org/servlet/JiveServlet/showImage/38-4854-18193/j... https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4854-181...
Developer Studio: [ https://marketplace.eclipse.org/node/503834 Marketplace] [ http://devstudio.jboss.com/earlyaccess Download] | Tools: [ https://marketplace.eclipse.org/node/420896 Marketplace] [ http://www.jboss.org/tools/download Download] [ http://download.jboss.org/jbosstools/updates/stable/juno/ Update Site] | [ http://docs.jboss.org/tools/whatsnew What's New] [ http://www.jboss.com/index.html?module=bb&op=viewforum&f=201 Forums] [ http://jira.jboss.com/jira/browse/JBIDE JIRA] [ http://twitter.com/jbosstools Twitter]
JBoss Tools is a set of plugins for Eclipse that complements, enhances and goes beyond the support that exists for JBoss and related technologies in the default Eclipse distribution.
JBoss Developer Studio is a fully bundled Eclipse distribution which not only includes the majority of JBoss Tools but also all its needed dependencies and 3rd party plugins allowing for an easy one-click and no-fuss installation.
If you are into doing your own bleeding edge eclipse plugin assembly, JBoss Tools is for you; if you are more into having something that "Just Works" then JBoss Developer Studio is the way to go.
h2. Installation
JBoss Developer Studio is available with a http://devstudio.jboss.com/earlyaccess one-download-installer with everything bundled and configured out of the box.
You can also now install JBoss Developer Studio or JBoss Tools from Eclipse Marketplace via "Help > Eclipse Marketplace..."
When installing from Eclipse Marketplace we recommend using the http://www.eclipse.org/downloads/packages/release/juno/sr1 Eclipse 4.2 JEE Bundle since then you get most of the dependencies preinstalled.
Note: SOA tooling for BPEL, Drools, Guvnor, jBPM, ESB, Modeshape, pi4soa, Savara, SwitchYard & Teiid are no yet available for this release. They will become available separately later. If you wish to use these today
we recommend you continue using JBoss Tools 3.3 or Developer Studio 5.
h1. Improvements
The biggest change in this release is the target for Eclipse 4 / Juno, the BYOE feature and that now all of the JBoss Tools codebase is at http://github.com/jbosstools github, and in there also over https://issues.jboss.org/issues/?jql=%28project%20in%20%28JBDS%29%20AND%2... 1000 issues were processed which primarily were performance and bug fixes made since the summer release.
Burr Sutter made two videos showing off JBoss Developer Studio 6 with JavaEE and OpenShift:
Following is some more highlights:
h3. Bring Your Own Eclipse
We introduced JBoss Developer Studio BYOE (Bring Your Own Eclipse) in Beta1 which allow you to install the plugins provided and supported in JBoss Developer Studio to your own existing Eclipse installation from https://marketplace.eclipse.org/node/503834 Eclipse Marketplace.
You might ask what is the difference between using the JBoss Tools and the Developer Studio Marketplace entry ? In short JBoss Tools has a few extra, but unsupported plugins you can pick and choose from and JBoss Developer Studio BYOE is exactly the supported plugins.
h3. Eclipse 4 / Juno
The main feature of this release is to have Eclipse 4 (Juno) support and get to bundle the latest fixes and features from Eclipse JDT/Core and Web Tools Platform.
Some users have https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272 reported slow speeds within Juno for those affected by this bug we suggest to install the feature patch available from Eclipse at:
http://download.eclipse.org/eclipse/updates/junoSR1Patch-tmp
If you experience issues with your Juno installation and the above patch does not help do let us know!
h2. JBoss Central
The Maven based project wizards available from JBoss Central have received updates giving you the latest greatest from Aerogear, Errai, Spring , HTML5, Richfaces and JBoss Developer Quickstarts.
h2. "Blank" projects & Stacks
For project examples based on Maven archetypes, we now rely on the http://docs.jboss.org/tools/whatsnew/examples/JBIDE-12472 JBoss Developer Framework Stacks descriptor to provide the most appropriate version of an archetype, depending on the target runtime you select.
This also allows us to provide "blank" versions of archetypes, if you prefer to start creating project with no demo code. You can see what archetype version is used when checking "Create a blank project".
http://docs.jboss.org/tools/whatsnew/examples/images/archetypes_blank.png http://docs.jboss.org/tools/whatsnew/examples/images/archetypes_blank.png
If the recommended runtime is not configured in your workspace, you now have the possibility of choosing the version you want to download
http://docs.jboss.org/tools/whatsnew/examples/images/archetypes_select_ru... (http://docs.jboss.org/tools/whatsnew/examples/images/archetypes_select_ru...)
h2. OpenShift Enterprise and Smooth SSH Keys
Recently the OpenShift team https://openshift.redhat.com/community/blogs/announcing-openshift-enterpr... introduced OpenShift Enterprise which allows to have your own on-premise hosted PaaS. The OpenShift tooling in previous version does work with this with manual configuration but would only allow you to work with one OpenShift setup at the time. With this new release there is now support for setting up any number of OpenShift hosts and accounts - onpremise, hosted or even OpenShift Origin.
http://docs.jboss.org/tools/whatsnew/openshift/images/connection-dialog.png http://docs.jboss.org/tools/whatsnew/openshift/images/connection-dialog.png
Beyond supporting multiple hosts there are now also direct support for editing and configuring SSH keys for proper OpenShift autorization.
http://docs.jboss.org/tools/whatsnew/openshift/images/manage-ssh-keys.png http://docs.jboss.org/tools/whatsnew/openshift/images/manage-ssh-keys.png
Further improvements in OpenShift are:
* The OpenShift server adapter support custom git remotes
* Import of already existing OpenShift applications created via CLI commands
* When Adding/Removing cartridges suggestions were made for dependencies/conflicts - these can now also be ignored
* Tail files can be customized before running - allowing to log any set of remote files
h2. Browser Simulator
The Browser Simulator got some new sexy skins and dimensions, iPhone 5 and Galaxy Note II.
http://docs.jboss.org/tools/whatsnew/vpe/images/4.0.0.Beta1/iPhone5-scree... http://docs.jboss.org/tools/whatsnew/vpe/images/4.0.0.Beta1/iPhone5-scree... http://docs.jboss.org/tools/whatsnew/vpe/images/4.0.0.CR1/GalaxyNoteII-sc... http://docs.jboss.org/tools/whatsnew/vpe/images/4.0.0.CR1/GalaxyNoteII-sc...
h2. "As-you-type" Validation
The validation of CDI constructs are now done as-you-type instead of during Save giving you faster feedback about possible errors.
You can see how this work in the following video:
h2. Forge Debugging
You can now launch Forge in Debug mode allowing you to debug your custom plugins.
http://docs.jboss.org/tools/whatsnew/forge/images/4.0.0.Alpha2/debug-pref... http://docs.jboss.org/tools/whatsnew/forge/images/4.0.0.Alpha2/debug-pref...
There is also now controls to pass custom flags to the JavaVM forge is launched to setup additional debug and memory settings.
h2. Maven
With JBoss Central most of our projects are already mavenized, but in case you have an old project or want to convert an existing "pure" eclipse project you can now use the "Conversion to Maven Dependencies" which will help you identify your local jars and provide the Group, Artifact & Version coordinates needed for your pom.xml file.
http://docs.jboss.org/tools/whatsnew/images/jar_conversion_updates.png http://docs.jboss.org/tools/whatsnew/images/jar_conversion_updates.png
h2. And more...
http://docs.jboss.org/tools/whatsnew/ What's New and Noteworthy have more and do leave a comment if you got questions/comments.
Happy Holidays and Do Have fun!
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/community/tools/blog/2012/12/10/jboss-tools-4...]
11 years, 6 months
[JBoss Tools] - CDI fails when adding a new folder
by Jesper Skov
Jesper Skov [https://community.jboss.org/people/jskovjyskebankdk] created the discussion
"CDI fails when adding a new folder"
To view the discussion, visit: https://community.jboss.org/message/780126#780126
--------------------------------------------------------------
We have a project where the CDI builder tanks when creating a new empty folder.
I haven't looked in earnest at the project to see if it is setup in some weird and wonderful way that actively encourages that NPE. But if so, it could probably be presented nicer :)
!MESSAGE Errors running builder 'CDI (Context and Dependency Injection) Builder' on project 'jb.it.jquery.ext.web'.
!STACK 0
java.lang.NullPointerException
at org.jboss.tools.common.java.impl.AnnotationDeclaration.validateNamedValue(AnnotationDeclaration.java:136)
at org.jboss.tools.common.java.impl.AnnotationDeclaration.validateNamedValue(AnnotationDeclaration.java:129)
at org.jboss.tools.common.java.impl.AnnotationDeclaration.resolveMemberValue(AnnotationDeclaration.java:119)
at org.jboss.tools.common.java.impl.AnnotationDeclaration.setDeclaration(AnnotationDeclaration.java:50)
at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.addAnnotation(AbstractMemberDefinition.java:112)
at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.init(AbstractMemberDefinition.java:104)
at org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition.init(MethodDefinition.java:61)
at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.setAnnotatable(AbstractMemberDefinition.java:64)
at org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition.setMethod(MethodDefinition.java:48)
at org.jboss.tools.cdi.internal.core.impl.definition.TypeDefinition.init(TypeDefinition.java:70)
at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.setAnnotatable(AbstractMemberDefinition.java:64)
at org.jboss.tools.cdi.internal.core.impl.definition.AbstractTypeDefinition.setType(AbstractTypeDefinition.java:69)
at org.jboss.tools.cdi.internal.core.scanner.CDIBuilderDelegate.build(CDIBuilderDelegate.java:79)
at org.jboss.tools.cdi.internal.core.scanner.CDIBuilderDelegate.build(CDIBuilderDelegate.java:48)
at org.jboss.tools.cdi.core.CDICoreBuilder.invokeBuilderDelegates(CDICoreBuilder.java:326)
at org.jboss.tools.cdi.core.CDICoreBuilder.fullBuild(CDICoreBuilder.java:261)
at org.jboss.tools.cdi.core.CDICoreBuilder.build(CDICoreBuilder.java:221)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780126#780126]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[Javassist] - insertAfter yields "No such field" error
by markasllen
markasllen [https://community.jboss.org/people/markasllen] created the discussion
"insertAfter yields "No such field" error"
To view the discussion, visit: https://community.jboss.org/message/782421#782421
--------------------------------------------------------------
I have to edit Labels that are being defined inside the constructor of a class.
Because those labels use getters and setters for the text, I decided to redefine them at the end of the constructor.
public class StaticPraxMMod {
private static final String PRAXFRAME = "com.praxemu.client.graphics.widgets.PraxFrame";
public static void main(String[] args) throws Exception {
ClassPool classPool = ClassPool.getDefault();
addEVLink(classPool);
}
private static void addEVLink(ClassPool classPool) throws NotFoundException, CannotCompileException, IOException {
CtClass praxFrameClass = classPool.get(PRAXFRAME);
CtConstructor praxFrameConstructor = praxFrameClass.getConstructors()[0]/*(new CtClass[] {})*/;
//praxFrameClass.addConstructor(praxFrameConstructor);
praxFrameConstructor.insertAfter("localLabel25 = new de.matthiasmann.twl.Label(new StringBuilder().append(paramsuper.õo0000().o00000(null.Ô00000)).append(\"\").toString() + \"peanuts\");\n"
"localLabel26 = new de.matthiasmann.twl.Label(new StringBuilder().append(paramsuper.õo0000().o00000(null.class)).append(\"\").toString() + \"peanuts\");\n" +
"localLabel27 = new de.matthiasmann.twl.Label(new StringBuilder().append(paramsuper.õo0000().o00000(null.õ00000)).append(\"\").toString() + \"peanuts\");\n" +
"localLabel28 = new de.matthiasmann.twl.Label(new StringBuilder().append(paramsuper.õo0000().o00000(null.ÓO0000)).append(\"\").toString() + \"peanuts\");\n" +
"localLabel29 = new de.matthiasmann.twl.Label(new StringBuilder().append(paramsuper.õo0000().o00000(null.interface)).append(\"\").toString() + \"peanuts\");\n" +
"localLabel25.setTheme(\"label-value\");\n" +
"localLabel26.setTheme(\"label-value\");\n" +
"localLabel27.setTheme(\"label-value\");\n" +
"localLabel28.setTheme(\"label-value\");\n" +
"localLabel29.setTheme(\"label-value\");");
//praxFrameClass.toBytecode();
praxFrameClass.writeFile(".");
}
}
When running it, I get this :
Exception in thread "main" javassist.CannotCompileException: [source error] no such field: localLabel25
at javassist.CtBehavior.insertAfter(CtBehavior.java:873)
at javassist.CtBehavior.insertAfter(CtBehavior.java:788)
at StaticPraxMMod.addEVLink(StaticPraxMMod.java:27)
at StaticPraxMMod.main(StaticPraxMMod.java:18)
Caused by: compile error: no such field: localLabel25
at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:819)
at javassist.compiler.TypeChecker.atFieldAssign(TypeChecker.java:271)
at javassist.compiler.JvstTypeChecker.atFieldAssign(JvstTypeChecker.java:84)
at javassist.compiler.TypeChecker.atAssignExpr(TypeChecker.java:230)
at javassist.compiler.ast.AssignExpr.accept(AssignExpr.java:39)
at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:242)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:330)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
at javassist.compiler.Javac.compileStmnt(Javac.java:569)
at javassist.CtBehavior.insertAfterAdvice(CtBehavior.java:888)
at javassist.CtBehavior.insertAfter(CtBehavior.java:847)
I tried adding the full package path to labels but it doesn't change a thing.
I had the same issue with Label when I did "de.matthiasmann.twl.Label localLabel25 = new de.matthiasmann.twl.Label[...]" with and without the full package path.
I would also like to know if injecting something like
localLabel25.setText(localLabel25.getText().append(\" peanuts\"));
would work.
Thanks for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/782421#782421]
Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[Beginner's Corner] - Twiddle queries
by vicky sedfre
vicky sedfre [https://community.jboss.org/people/viveknangal] created the discussion
"Twiddle queries"
To view the discussion, visit: https://community.jboss.org/message/782180#782180
--------------------------------------------------------------
Hello Everyone.
I am new to JBOSS & in my company JBOSS 4.2.0 is in use currently(old fashined) ;) .
Question 1:
I am trying to run twiddle commands to fetch the Server details but while executing it is throwing the below exception:Please suggest how to fix this
++++++++++++++++++++++++++++++++
Exception in thread main java.lang.NoClassDefFoundError:/org/jboss/console/twiddle/Twiddle
Caused by java.lang.ClassNotFoundException: org.jboss.console.twiddle.Twiddle
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
++++++++++++++++++++++++++++++++
Question 2: Does Twiddle command can connect on JBOSS JNP port only or we can use other ports as well
Question 3: How to connect to differen JBOSS server instances running on same JNP port & on same machine using TWIDDLE command
Please help in understand the the above mentioned my naive queries
Thanks a lot for your help in advance
Vicky
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/782180#782180]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months