[Beginner's Corner] New message: "Starting Jboss from Eclipse"
by Mark Wareham
User development,
A new message was posted in the thread "Starting Jboss from Eclipse":
http://community.jboss.org/message/532889#532889
Author : Mark Wareham
Profile : http://community.jboss.org/people/markaw1
Message:
--------------------------------------------------------------
Hi All.
Im having a problem starting jboss from eclipse - I can start it fine with run.sh
the console in eclipse states :
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /usr/jboss/jboss-5.1.0.GA/server/default/log/boot.log (Permission denied)
at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.10)
at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.10)
at gnu.java.nio.channels.FileChannelImpl.create(libgcj.so.10)
at java.io.FileOutputStream.<init>(libgcj.so.10)
at java.io.FileOutputStream.<init>(libgcj.so.10)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
at java.lang.Class.initializeClass(libgcj.so.10)
at org.jboss.logging.log4j.Log4jLoggerPlugin.init(Log4jLoggerPlugin.java:70)
at org.jboss.logging.Logger.getDelegatePlugin(Logger.java:603)
at org.jboss.logging.Logger.<init>(Logger.java:119)
at org.jboss.logging.Logger.getLogger(Logger.java:567)
at org.jboss.bootstrap.AbstractServerImpl.doInit(AbstractServerImpl.java:204)
at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:173)
at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:143)
at org.jboss.Main.boot(Main.java:218)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(libgcj.so.10)
18:00:26,157 INFO [ServerImpl] Starting JBoss (Microcontainer)...
18:00:26,158 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
18:00:26,158 INFO [ServerImpl] Bootstrap URL: null
18:00:26,158 INFO [ServerImpl] Home Dir: /usr/jboss/jboss-5.1.0.GA
18:00:26,158 INFO [ServerImpl] Home URL: file:/usr/jboss/jboss-5.1.0.GA/
18:00:26,159 INFO [ServerImpl] Library URL: file:/usr/jboss/jboss-5.1.0.GA/lib/
18:00:26,159 INFO [ServerImpl] Patch URL: null
18:00:26,159 INFO [ServerImpl] Common Base URL: file:/usr/jboss/jboss-5.1.0.GA/common/
18:00:26,159 INFO [ServerImpl] Common Library URL: file:/usr/jboss/jboss-5.1.0.GA/common/lib/
18:00:26,159 INFO [ServerImpl] Server Name: default
18:00:26,159 INFO [ServerImpl] Server Base Dir: /usr/jboss/jboss-5.1.0.GA/server
18:00:26,159 INFO [ServerImpl] Server Base URL: file:/usr/jboss/jboss-5.1.0.GA/server/
18:00:26,159 INFO [ServerImpl] Server Config URL: file:/usr/jboss/jboss-5.1.0.GA/server/default/conf/
18:00:26,159 INFO [ServerImpl] Server Home Dir: /usr/jboss/jboss-5.1.0.GA/server/default
18:00:26,160 INFO [ServerImpl] Server Home URL: file:/usr/jboss/jboss-5.1.0.GA/server/default/
18:00:26,160 INFO [ServerImpl] Server Data Dir: /usr/jboss/jboss-5.1.0.GA/server/default/data
18:00:26,160 INFO [ServerImpl] Server Library URL: file:/usr/jboss/jboss-5.1.0.GA/server/default/lib/
18:00:26,160 INFO [ServerImpl] Server Log Dir: /usr/jboss/jboss-5.1.0.GA/server/default/log
18:00:26,160 INFO [ServerImpl] Server Native Dir: /usr/jboss/jboss-5.1.0.GA/server/default/tmp/native
18:00:26,160 INFO [ServerImpl] Server Temp Dir: /usr/jboss/jboss-5.1.0.GA/server/default/tmp
18:00:26,160 INFO [ServerImpl] Server Temp Deploy Dir: /usr/jboss/jboss-5.1.0.GA/server/default/tmp/deploy
Failed to boot JBoss:
java.lang.RuntimeException: Unable to create a KernelInitializer based on the specified KernelConfig
at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:156)
at org.jboss.kernel.KernelFactory.assembleNewKernel(KernelFactory.java:99)
at org.jboss.kernel.KernelFactory.newInstance(KernelFactory.java:67)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.bootstrap(AbstractBootstrap.java:114)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:105)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(libgcj.so.10)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.jboss.reflect.plugins.MethodInfoImpl.<init>(MethodInfoImpl.java:103)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.<init>(ReflectMethodInfoImpl.java:78)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:211)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:200)
at java.security.AccessController.doPrivileged(libgcj.so.10)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:198)
at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredMethods(ClassInfoImpl.java:394)
at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getMethods(AbstractBeanInfoFactory.java:231)
at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:152)
at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:124)
at org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractConfiguration.java:69)
at org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(AbstractKernelConfig.java:65)
at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.getImplementation(PropertyKernelConfig.java:175)
at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.createKernelInitializer(PropertyKernelConfig.java:120)
at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:150)
...9 more
18:00:26,333 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
18:00:26,340 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
Any ideas?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532889#532889
16 years, 3 months
[JBoss Web Services Development] New message: "Operation in WSDL not backed up by a service implementation"
by Sameer Pokarna
User development,
A new message was posted in the thread "Operation in WSDL not backed up by a service implementation":
http://community.jboss.org/message/532885#532885
Author : Sameer Pokarna
Profile : http://community.jboss.org/people/sameerpokarna2
Message:
--------------------------------------------------------------
Hi All,
I am trying an approach where I have some operations in the WSDL, but there is no backing implementation. My requirement is that the implementation will be built based on some parameters during runtime. I can have an interface for the WSDL operation, but not the implementation.
Any ideas how this can be accomplished? This can work, because the invocation can be handled by the handler in the handler chain, for example, as one mechanism. There can be other hooks where the actual implementation can be implemented. But, I am unable to deploy a service where the implementation is missing.
Thanks in advance for any ideas.
Regards,
Sameer
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532885#532885
16 years, 3 months
[JBoss Microcontainer Development] New message: "Re: jboss-classpool-jbosscl.jar on AS bootstrap classpath"
by Ales Justin
User development,
A new message was posted in the thread "jboss-classpool-jbosscl.jar on AS bootstrap classpath":
http://community.jboss.org/message/532880#532880
Author : Ales Justin
Profile : http://community.jboss.org/people/alesj
Message:
--------------------------------------------------------------
> Can that jar be removed from the classpath, or is there a particular reason to keep it that way?
It looks like we need to split this part out.
With moving Reflect on Javasist impl, we will need Classpool at bootstrap phase.
Which means we'll need jboss-classpool-jbosscl there as well.
But at that time the Module that kicks in won't be depoyers based Module -- AbstractDeploymentClassLoaderPolicyModule.
Since VFSClassLoaderDomainRegistry only kicks in after -- in aop.xml,
the split to jboss-classpool-deployers (currently this is the only class that would get in) would do it --> adding this jar to aop-classloader.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532880#532880
16 years, 3 months
[JBoss Messaging] New message: "Re: connect to Jboss Messaging queue remotely"
by nie feng
User development,
A new message was posted in the thread "connect to Jboss Messaging queue remotely":
http://community.jboss.org/message/532871#532871
Author : nie feng
Profile : http://community.jboss.org/people/niefeng
Message:
--------------------------------------------------------------
Hi Yong Hao,
Thanks for your reply. I follow the guide in +section 4.4 Accessing JBoss Messaging from a remote client - JBoss 4.2 and EAP 4.3+ from the Jboss Message User guide (+http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/*userguide-1.4.3.GA*/html/installation.html#inst.remoteclient, *Jboss5.1 is using Jboss Messaging 1.4.3 GA*+) to find out more detail on the list of jar you mentioned. .
I listed down on the jar file i have copied to the directory of the jms client. It is under "jboss-4.2.2.GA\server\default\lib".
trove.jar (version 1.0.2)
javassist.jar (version 3.9.0 GA)
jboss-aop.jar (version 2.0.1 GA)
However i saw some deployment warning/error when i was starting up the Jboss4.2.2 GA.
|| *WARN* ||
| [19:03:10-01:17:18,019] [ WARN:org.jboss.system.ServiceController] [main] Problem creating service jboss.aop:service=AspectManager
java.lang.NoSuchFieldError: scopedCLHelper
at org.jboss.aop.deployment.AspectManagerService.createService(AspectManagerService.java:143)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.create(Unknown Source) |
|| *Error* ||
| [19:03:10-01:21:59,642] [ERROR:org.jboss.deployment.MainDeployer] [main] Could not create deployment: file:/D:/jboss-4.2.2.GA/server/default/deploy/ejb3-interceptors-aop.xml
java.lang.NoClassDefFoundError: org/jboss/annotation/factory/ast/ParseException
at org.jboss.aop.AspectXmlLoader.loadAnnotationIntroduction(AspectXmlLoader.java:816)
at org.jboss.aop.AspectXmlLoader.deployAnnotationOverride(AspectXmlLoader.java:785)
at org.jboss.aop.AspectXmlLoader.deployTopElements(AspectXmlLoader.java:1165)
at org.jboss.aop.AspectXmlLoader.deployDomain(AspectXmlLoader.java:1055)
at org.jboss.aop.AspectXmlLoader.deployTopElements(AspectXmlLoader.java:1173)
at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:990)
at org.jboss.aop.AspectXmlLoader.deploy(AspectXmlLoader.java:1333)
at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:1378)
at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:1363)
at org.jboss.aop.deployment.AspectDeployer.create(AspectDeployer.java:177)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) |
Could I know did i missing any configuration i need to do to avoid the above deploy error?
You mentioned about the jboss remoting and also the jgroup, could i know which specify version should I use in my scenario (jboss4.2.2 GA)?
Thanks for your help!
Niefeng
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532871#532871
16 years, 3 months
[Javassist Development] New message: "Re: Problems with proxy classes and a proposed resolution"
by Andrew Dinn
User development,
A new message was posted in the thread "Problems with proxy classes and a proposed resolution":
http://community.jboss.org/message/532866#532866
Author : Andrew Dinn
Profile : http://community.jboss.org/people/adinn
Message:
--------------------------------------------------------------
Here are the diffs for my modified version of the proxy factory code against the current trunk.
The cache works without leaks and supports serialization. By default classes are created to use the old writeReplace implementation which now reuses proxy classes but still fails to serialize inherited fields.
However, if you disable generation of the writeReplace method then you can serialize and deserialize the +full+ object state so long as you do it using a ProxyObjectOutputStream and ProxyObjectInputStream. The static field ProxyFactory.useWriteReplace represents the default setting for new factories. It is initialized to true to retain backwards compatiility. you can reset this default or else you can configure the behaviour of each new factory by calling factory.setuseWriteReplace(boolean).
Also, I have modified static field ProxyFactory.useCache along the same lines. It defines the default behaviour for new factories. So, iIf you reset this field to false and create a factory then it will not install its classes in the cache. You can also oevrride the setting per factory by calling factory.setUseCache(boolean).
See the javadoc in ProxyFactory, ProxyObjectOutputStream and ProxyObjectInputStream for full details.
n.b. I managed to avoid having to change the naming scheme for generated classes. I did have to introduce a method filter signature to the iidentity criteria for a class. This is, a byte[] which enncodes the behaviour of a method filter instance.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532866#532866
16 years, 3 months
[jBPM] New message: "Re: JBPM 4.3 Spring 2.5.6 Hibernate 3.3.2 Problem"
by null null
User development,
A new message was posted in the thread "JBPM 4.3 Spring 2.5.6 Hibernate 3.3.2 Problem":
http://community.jboss.org/message/532861#532861
Author : null null
Profile : http://community.jboss.org/people/ustone
Message:
--------------------------------------------------------------
Sorry missed text:
Since i upgrade JBPM from 4.0 to 4.3 in our project i got following excpetion.
I only changed applicationContext to new Spring configuration style for JBPM.
I tried to find out why jbpm thinks that a jbpm.hibernate.cfg.xml
is needed even if in applicationcontext a hibernate session is defined w/o u
sing such a file, but i failed. Can somebody explain this?
Thanx in adavance....
---------------------------------------------------------------------
exception
Caused by: org.hibernate.HibernateException: jbpm.hibernate.cfg.xml not found
at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1453)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1475)
at org.jbpm.pvm.internal.wire.descriptor.HibernateConfigurationDescriptor$AddCfgResource.apply(HibernateConfigurationDescriptor.java:151)
at org.jbpm.pvm.internal.wire.descriptor.HibernateConfigurationDescriptor.apply(HibernateConfigurationDescriptor.java:90)
at org.jbpm.pvm.internal.wire.descriptor.HibernateConfigurationDescriptor.initialize(HibernateConfigurationDescriptor.java:76)
at org.jbpm.pvm.internal.wire.WireContext.performInitialization(WireContext.java:533)
at org.jbpm.pvm.internal.wire.WireContext.initialize(WireContext.java:495)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:449)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:437)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:417)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:327)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:688)
at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor.construct(HibernateSessionFactoryDescriptor.java:57)
at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:469)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:448)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:437)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:417)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:327)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:688)
at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:139)
at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:130)
at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.construct(HibernateSessionDescriptor.java:63)
at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:469)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:448)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:437)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:417)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:327)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:688)
at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:139)
at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:130)
at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:201)
at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:190)
at org.jbpm.pvm.internal.cmd.CheckDbCmd.execute(CheckDbCmd.java:44)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:152)
at org.jbpm.pvm.internal.processengine.SpringProcessEngine.create(SpringProcessEngine.java:70)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(ConfigurationImpl.java:92)
at org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine(SpringHelper.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
----------------------
applicationcontext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:util="http://www.springframework.org/schema/util" xmlns:jndi="http://www.springframework.org/schema/jndi"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
http://www.springframework.org/schema/jndi http://www.springframework.org/schema/jndi/spring-jndi-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSourceCustom" />
...
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.hbm2ddl.auto">validate</prop>
<prop key="hibernate.cache.provider_class">net.sf.ehcache.hibernate.SingletonEhCacheProvider
</prop>
<prop key="hibernate.cache.provider_configuration">/ehcache.xml</prop>
<prop key="hibernate.cache.use_second_level_cache"> true</prop>
<prop key="hibernate.generate_statistics">true</prop>
<prop key="hibernate.cache.use_structured_entries">true</prop>
...
</props>
</property>
<property name="mappingLocations">
<list>
<value>classpath:jbpm.execution.hbm.xml</value>
<value>classpath:jbpm.repository.hbm.xml</value>
<value>classpath:jbpm.task.hbm.xml</value>
<value>classpath:jbpm.history.hbm.xml</value>
</list>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<tx:annotation-driven transaction-manager="transactionManager" />
<!-- Hibernate Template -->
<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<!--
========================= Configuring JBPM4.3
=============================
-->
<bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper" >
<property name="jbpmCfg" value="jbpm.cfg.xml"/>
</bean>
<bean id="processEngine" factory-bean="springHelper"
factory-method="createProcessEngine" />
</beans>
jbpm.cfg.xml
--------------
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration spring="enabled">
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<identity-service />
<task-service />
<command-service>
<spring-transaction-interceptor />
<retry-interceptor />
<environment-interceptor />
</command-service>
<hibernate-session-factory />
<script-manager default-expression-language="juel"
default-script-language="juel">
<script-language name="juel"
factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
</script-manager>
<id-generator />
<types resource="jbpm.variable.types.xml" />
<address-resolver />
<mail-template name='task-notification'>
<to users="${task.assignee}" />
<subject>${task.name}</subject>
<text><![CDATA[Hi ${task.assignee},
Task "${task.name}" has been assigned to you.
${task.description}
Sent by JBoss jBPM
]]></text>
</mail-template>
<mail-template name='task-reminder'>
<to users="${task.assignee}" />
<subject>${task.name}</subject>
<text><![CDATA[Hey ${task.assignee},
Do not forget about task "${task.name}".
${task.description}
Sent by JBoss jBPM
]]></text>
</mail-template>
</process-engine-context>
<transaction-context>
<repository-session />
<db-session />
<hibernate-session current="true"/>
<message-session />
<timer-session />
<history-session />
<mail-session>
<mail-server>
<session-properties resource="jbpm.mail.properties" />
</mail-server>
</mail-session>
</transaction-context>
<import resource="jbpm.tx.hibernate.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<import resource="jbpm.businesscalendar.cfg.xml" />
<import resource="jbpm.jobexecutor.cfg.xml" />
</jbpm-configuration>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532861#532861
16 years, 3 months