[JBoss AOP] - What jboss aop version for jboss 3.2.8sp1?
by abdujaparov
Hi, I've installed jboss aop 1.5.6 on jboss3.2.8sp1 but when I start jboss there are errors and jboss doesn't start.
I've tryed with jboss aop 1.5.4sp1 but I receive the same errors.
I need jboss aop on jboss3.2.8sp1, what is the version that work on jboss3.2.8sp1?
Here it follows errors when I start jboss with jboss aop 1.5.4sp1:
| 17:55:34,674 INFO [Server] Starting JBoss (MX MicroKernel)...
| 17:55:34,674 INFO [Server] Release ID: JBoss [WonderLand] 3.2.8.SP1 (build: CVS
| Tag=JBoss_3_2_8_SP1 date=200603031235)
| 17:55:34,684 INFO [Server] Home Dir: C:\jboss-3.2.8.SP1
| 17:55:34,684 INFO [Server] Home URL: file:/C:/jboss-3.2.8.SP1/
| 17:55:34,684 INFO [Server] Patch URL: null
| 17:55:34,684 INFO [Server] Server Name: default
| 17:55:34,684 INFO [Server] Server Home Dir: C:\jboss-3.2.8.SP1\server\default
| 17:55:34,684 INFO [Server] Server Home URL: file:/C:/jboss-3.2.8.SP1/server/def
| ault/
| 17:55:34,684 INFO [Server] Server Temp Dir: C:\jboss-3.2.8.SP1\server\default\t
| mp
| 17:55:34,684 INFO [Server] Root Deployment Filename: jboss-service.xml
| 17:55:34,955 INFO [ServerInfo] Java version: 1.5.0_13,Sun Microsystems Inc.
| 17:55:34,965 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_13-b05
| ,Sun Microsystems Inc.
| 17:55:34,965 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
| 17:55:35,215 INFO [Server] Core system initialized
| 17:55:37,909 WARN [NestedThrowable] Duplicate throwable nesting of same base ty
| pe: class org.jboss.deployment.DeploymentException is assignable from: class org
| .jboss.deployment.DeploymentException
| 17:55:37,909 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.
| 2.8.SP1/server/default/conf/jboss-service.xml
| org.jboss.deployment.DeploymentException: create operation failed for package fi
| le:/C:/jboss-3.2.8.SP1/server/default/conf/jboss-service.xml; - nested throwable
| : (org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.refl
| ect.UndeclaredThrowableException))
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:239)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:795)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:652)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:600)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
| java:74)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:213)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:462)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:353)
| at org.jboss.Main.boot(Main.java:201)
| at org.jboss.Main$1.run(Main.java:459)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.deployment.DeploymentException: - nested throwable: (java.l
| ang.reflect.UndeclaredThrowableException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
| :151)
| at org.jboss.system.ServiceController.install(ServiceController.java:213
| )
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
| java:74)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:213)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:216)
| ... 21 more
| Caused by: java.lang.reflect.UndeclaredThrowableException
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:214)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
| tor.java:161)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
| :126)
| ... 35 more
| Caused by: java.lang.NoClassDefFoundError: org/jboss/mx/loading/RepositoryClassL
| oader
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
| at java.lang.Class.getConstructor0(Class.java:2671)
| at java.lang.Class.getConstructor(Class.java:1629)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
| 881)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
| 301)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
| 328)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:136)
| ... 37 more
| Failed to boot JBoss:
| org.jboss.deployment.DeploymentException: create operation failed for package fi
| le:/C:/jboss-3.2.8.SP1/server/default/conf/jboss-service.xml; - nested throwable
| : (org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.refl
| ect.UndeclaredThrowableException))
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:239)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:795)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:652)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:600)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
| java:74)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:213)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:462)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:353)
| at org.jboss.Main.boot(Main.java:201)
| at org.jboss.Main$1.run(Main.java:459)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.deployment.DeploymentException: - nested throwable: (java.l
| ang.reflect.UndeclaredThrowableException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
| :151)
| at org.jboss.system.ServiceController.install(ServiceController.java:213
| )
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
| java:74)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:213)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:216)
| ... 21 more
| Caused by: java.lang.reflect.UndeclaredThrowableException
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:214)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
| tor.java:161)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
| :126)
| ... 35 more
| Caused by: java.lang.NoClassDefFoundError: org/jboss/mx/loading/RepositoryClassL
| oader
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
| at java.lang.Class.getConstructor0(Class.java:2671)
| at java.lang.Class.getConstructor(Class.java:1629)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
| 881)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
| 301)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
| 328)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:136)
| ... 37 more
| 17:55:37,939 INFO [Server] Runtime shutdown hook called, forceHalt: true
| 17:55:37,939 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
| 17:55:37,959 INFO [Server] Shutdown complete
| Shutdown complete
| Halting VM
| Press a key to continue . . .
|
Thanks, bye bye.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104231#4104231
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104231
18 years, 8 months
[JBossWS] - ClassCastException in HandlerResolverImpl.addHandler
by jtestori
i have a simple webservice on jboss-4.2.0.GA with jbossws-2.0.1
my webservice:
| package my.ws;
|
| import javax.jws.HandlerChain;
| import javax.jws.WebMethod;
| import javax.jws.WebService;
|
| @WebService
| @HandlerChain(file = "WEB-INF/jaxws-handlers.xml")
| public class MyWS {
|
| @WebMethod
| public String hello(String input) {
| return input;
| }
|
| }
|
my handler:
| package my.ws;
|
| import javax.xml.namespace.QName;
| import javax.xml.rpc.handler.GenericHandler;
| import javax.xml.rpc.handler.MessageContext;
|
| public class MyWSHandler extends GenericHandler {
|
| public MyWSHandler() {
| super();
| }
|
| public QName[] getHeaders() {
| return new QName[] {};
| }
|
| public boolean handleRequest(MessageContext msgContext) {
| return true;
| }
|
| public boolean handleResponse(MessageContext msgContext) {
| return true;
| }
| }
|
jaxws-handlers.xml:
| <handler-chains
| xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
|
| <handler-chain>
| <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
| <handler>
| <handler-name>Application Server Handler</handler-name>
| <handler-class>my.ws.MyWSHandler</handler-class>
| </handler>
| </handler-chain>
|
| </handler-chains>
|
|
the exception:
| 17:39:43,296 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
| java.lang.ClassCastException: my.ws.MyWSHandler
| at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.addHandler(HandlerResolverImpl.java:148)
| at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.initHandlerChain(HandlerResolverImpl.java:134)
| at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:80)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
| at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| 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:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104227#4104227
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104227
18 years, 8 months
[JBoss Seam] - Re: jbpm timer transaction issues
by pbrewer_uk
Thanks for the speedy reply.
I have set that property - heres my config in full:
jbpm.cfg.xml
| <?xml version="1.0" encoding="utf-8"?>
|
| <jbpm-configuration>
|
| <jbpm-context>
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false/></field>
| </bean>
| </factory>
| </service>
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
| <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
| <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
|
| <bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor">
| <field name="jbpmConfiguration"><ref bean="jbpmConfiguration" /></field>
| <field name="name"><string value="JbpmJobExecutor" /></field>
| <field name="nbrOfThreads"><int value="1" /></field>
| <field name="idleInterval"><int value="5000" /></field>
| <field name="maxIdleInterval"><int value="3600000" /></field> <!-- 1 hour -->
| <field name="historyMaxSize"><int value="20" /></field>
| <field name="maxLockTime"><int value="20000" /></field> <!-- 20 sec -->
| <field name="lockMonitorInterval"><int value="10000" /></field> <!-- 10 sec -->
| <field name="lockBufferTime"><int value="5000" /></field> <!-- 5 seconds -->
| </bean>
|
| </jbpm-context>
|
| </jbpm-configuration>
|
hibernate.cfg.xml
| <?xml version="1.0" encoding="utf-8"?>
|
| <!DOCTYPE hibernate-configuration PUBLIC
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
| <hibernate-configuration>
| <session-factory>
|
| <property name="show_sql">false</property>
| <property name="connection.datasource">java:/myDatasource</property>
| <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
| <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
| <property name="hbm2ddl.auto">validate</property>
|
| <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
|
| <!-- hql queries and type defs -->
| <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
|
| <!-- graph.action mapping files -->
| <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml" />
|
| <!-- graph.def mapping files -->
| <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
| <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
|
| <!-- graph.node mapping files -->
| <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml" />
| <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
|
| <!-- context.def mapping files -->
| <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
| <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
|
| <!-- taskmgmt.def mapping files -->
| <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
|
| <!-- module.def mapping files -->
| <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
|
| <!-- bytes mapping files -->
| <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
|
| <!-- file.def mapping files -->
| <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
|
| <!-- scheduler.def mapping files -->
| <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
| <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
|
| <!-- graph.exe mapping files -->
| <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
| <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
| <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
| <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
|
| <!-- module.exe mapping files -->
| <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
|
| <!-- context.exe mapping files -->
| <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
|
| <!-- job mapping files -->
| <mapping resource="org/jbpm/job/Job.hbm.xml" />
| <mapping resource="org/jbpm/job/Timer.hbm.xml" />
| <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml" />
| <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml" />
|
| <!-- taskmgmt.exe mapping files -->
| <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
|
| <!-- logging mapping files -->
| <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
| <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
| <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
|
| </session-factory>
| </hibernate-configuration>
|
|
Then I start the job executor like so:
| @Name("jbpmScheduler")
| @Scope(ScopeType.APPLICATION)
| @Startup(depends={"org.jboss.seam.bpm.jbpm"})
| @Install(dependencies="org.jboss.seam.bpm.jbpm")
| public class JbpmScheduler {
|
| @Logger
| private Log log ;
|
| @Create
| public void startup() {
| log.info("Starting the jBPM scheduler");
| start() ;
| if (isRunning()) {
| log.info("jBPM scheduler has started.");
| } else {
| log.error("jBPM scheduler was not started.") ;
| }
| }
|
| public JobExecutor getJobExecutor() {
|
| Jbpm jbpm = (Jbpm) Component.getInstance("org.jboss.seam.bpm.jbpm") ;
| if (jbpm != null) {
| return jbpm.getJbpmConfiguration().getJobExecutor() ;
| } else {
| return null ;
| }
| }
|
| private void start() {
| JobExecutor jobExecutor = getJobExecutor() ;
| if (jobExecutor != null) {
| jobExecutor.start() ;
| }
| }
|
| private void stop() {
| JobExecutor jobExecutor = getJobExecutor() ;
| if (jobExecutor != null) {
| try {
| jobExecutor.stopAndJoin() ;
| } catch (InterruptedException e) {
| log.warn( "Could not wait for job executor.", e ) ;
| }
| }
| }
|
|
| private boolean isRunning() {
| return getJobExecutor() != null && getJobExecutor().isStarted() ;
| }
|
| @Destroy
| public void shutdown() {
|
| if (isRunning()) {
| log.info("Stopping the jBPM scheduler.");
| stop() ;
| } else {
| log.debug("jBPM Scheduler can't be stopped because it was not running.");
| }
| }
|
| }
|
Any further help or comments would be greatly appreciated.
Many thanks, Pete
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104225#4104225
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104225
18 years, 8 months
[JBoss Portal] - Getting NullPointerException when starting up JBoss Portal..
by z00k
Hi there!
Im currently using JBoss Portal 2.6.2 GA on Mac OS X (10.5 Leopard).
The following happens during the startup of JBoss Portal:
| Macintosh:bin z00k$ sh run.sh
| run.sh: line 89: ulimit: open files: cannot modify limit: Invalid argument
| run.sh: Could not set maximum file descriptor limit: unlimited
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /Users/z00k/basement/appz/jboss/jboss-portal-2.6.2.GA
|
| JAVA: /System/Library/Frameworks/JavaVM.framework/Home/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH: /Users/z00k/basement/appz/jboss/jboss-portal-2.6.2.GA/bin/run.jar
|
| =========================================================================
|
| Failed to boot JBoss:
| java.lang.NullPointerException
| at java.util.Properties$LineReader.readLine(Properties.java:365)
| at java.util.Properties.load(Properties.java:293)
| at org.jboss.Version.loadProperties(Version.java:291)
| at org.jboss.Version.<init>(Version.java:72)
| at org.jboss.Version.getInstance(Version.java:84)
| at org.jboss.system.server.ServerImpl.<init>(ServerImpl.java:89)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at java.lang.Class.newInstance0(Class.java:350)
| at java.lang.Class.newInstance(Class.java:303)
| at org.jboss.system.server.ServerLoader.createServer(ServerLoader.java:289)
| at org.jboss.system.server.ServerLoader.load(ServerLoader.java:268)
| at org.jboss.Main.boot(Main.java:194)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:613)
|
Does anybody know why I'm getting a NullPointerException ?
Thanks!
greetings
z00k
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104217#4104217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104217
18 years, 8 months