[JBoss Remoting] - JBOSS (JMX)
by Anton Yanchev
Anton Yanchev [https://community.jboss.org/people/micros] created the discussion
"JBOSS (JMX)"
To view the discussion, visit: https://community.jboss.org/message/754113#754113
--------------------------------------------------------------
Hi folks,
I'm a beginer in Jboss.
Windows server 2003
Java 1.6.0_33
Jboss 6.1.0 Final.
I want to make remote connection to jmx. I have followed this document http://thwack.solarwinds.com/docs/DOC-166968 http://thwack.solarwinds.com/docs/DOC-166968 when i excuting run.bat file received these errors
Aug 16, 2012 10:37:01 PM org.jboss.resource.connectionmanager.ConnectionFactoryB
indingService bindConnectionFactory
INFO: Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=J
msXA' to JNDI name 'java:JmsXA'
Aug 16, 2012 10:37:01 PM org.jboss.xnio.Xnio <clinit>
INFO: XNIO Version 2.1.0.CR2
Aug 16, 2012 10:37:01 PM org.jboss.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 2.1.0.CR2
Aug 16, 2012 10:37:02 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.1.0.Beta2
Aug 16, 2012 10:37:02 PM org.jboss.web.tomcat.service.deployers.TomcatDeployment
performDeployInternal
INFO: deploy, ctxPath=/
Aug 16, 2012 10:37:02 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.ExpiryQueue
Aug 16, 2012 10:37:02 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.DLQ
Aug 16, 2012 10:37:02 PM org.jboss.dependency.plugins.AbstractController increme
ntState
ERROR: Error installing to Instantiated: name=JBossLogService state=Described mo
de=On Demand requiredState=Installed
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(R
eflectionUtils.java:154)
at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.ne
wInstance(ReflectConstructorInfoImpl.java:102)
at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicC
onstructorJoinPoint.java:81)
at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.disp
atch(AOPConstructorJoinpoint.java:109)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$Joi
npointDispatchWrapper.execute(KernelControllerContextAction.java:257)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(Executio
nWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis
patchExecutionWrapper(KernelControllerContextAction.java:125)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis
patchJoinPoint(KernelControllerContextAction.java:72)
at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionIn
ternal(InstantiateAction.java:67)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim
pleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins
tall(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install
(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:379)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:2044)
at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
ctController.java:1083)
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
teDirectly(AbstractController.java:1322)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1246)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1139)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:894)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:641)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(B
eanMetaDataDeployer.java:182)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(B
eanMetaDataDeployer.java:58)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.i
nternalDeploy(AbstractSimpleRealDeployer.java:63)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
AbstractRealDeployer.java:55)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
Wrapper.java:179)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer
sImpl.java:1832)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
rst(DeployersImpl.java:1550)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
rst(DeployersImpl.java:1571)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
Impl.java:1491)
at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:379)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:2044)
at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
ctController.java:1083)
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
teDirectly(AbstractController.java:1322)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1246)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1139)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:939)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:654)
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersI
mpl.java:1983)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
Impl.java:1076)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
rImpl.java:679)
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.p
rocess(MainDeployerPlugin.java:106)
at org.jboss.profileservice.dependency.ProfileControllerContext$Delegate
Deployer.process(ProfileControllerContext.java:143)
at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(Profil
eDeployAction.java:151)
at org.jboss.profileservice.dependency.ProfileDeployAction.installAction
Internal(ProfileDeployAction.java:94)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim
pleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins
tall(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install
(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:379)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:2044)
at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
ctController.java:1083)
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
teDirectly(AbstractController.java:1322)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1246)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1139)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:939)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:654)
at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicPro
fileActivation.start(ProfileActivationWrapper.java:190)
at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(Pr
ofileActivationWrapper.java:87)
at org.jboss.profileservice.dependency.ProfileActivationService.activate
Profile(ProfileActivationService.java:215)
at org.jboss.profileservice.dependency.ProfileActivationService.activate
(ProfileActivationService.java:159)
at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.ac
tivate(AbstractProfileServiceBootstrap.java:112)
at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolve
rFacade.deploy(BasicResolverFactory.java:87)
at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.st
art(AbstractProfileServiceBootstrap.java:91)
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
ootstrap.start(BasicProfileServiceBootstrap.java:132)
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
ootstrap.start(BasicProfileServiceBootstrap.java:56)
at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(A
bstractServer.java:827)
at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.r
un(AbstractServer.java:417)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: The LogManager was not properly inst
alled (you must set the "java.util.logging.manager" system property to "org.jbos
s.logmanager.LogManager")
at org.jboss.logmanager.Logger.getLogger(Logger.java:60)
at org.jboss.logmanager.LogService.<clinit>(LogService.java:32)
... 75 more
Aug 16, 2012 10:37:02 PM org.jboss.system.server.profileservice.bootstrap.BasicP
rofileServiceBootstrap start
ERROR: Failed to load profile:
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incompl
ete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "Logging:CONTEXT:system" is missing the following dependencies:
Dependency "JBossLogService" (should be in state "Create", but is actually i
n state "**ERROR**")
Deployment "Logging:HANDLER:system:CONSOLE" is missing the following dependenc
ies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:HANDLER_INSTALLER:system::2" is missing the following depe
ndencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Dependency "Logging:LOGGER:system:<root>" (should be in state "Installed", b
ut is actually in state "Described")
Dependency "Logging:HANDLER:system:CONSOLE" (should be in state "Installed",
but is actually in state "Instantiated")
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:<root>" is missing the following dependencie
s:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:com.arjuna.ats" is missing the following dep
endencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:com.sun" is missing the following dependenci
es:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:facelets.compiler" is missing the following
dependencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:jacorb" is missing the following dependencie
s:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:javax.enterprise.resource.webcontainer.jsf"
is missing the following dependencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:javax.xml.bind" is missing the following dep
endencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:org.apache" is missing the following depende
ncies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:org.jboss.management" is missing the followi
ng dependencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:org.jboss.serial" is missing the following d
ependencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:org.jgroups" is missing the following depend
encies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:org.mc4j" is missing the following dependenc
ies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:org.quartz" is missing the following depende
ncies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:org.rhq.plugins.jbossas5.ApplicationServerCo
mponent" is missing the following dependencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:org.springframework" is missing the followin
g dependencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
Deployment "Logging:LOGGER:system:sun" is missing the following dependencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is
actually in state "Configured")
DEPLOYMENTS IN ERROR:
Deployment "JBossLog4jRepostiorySelector" is in error due to the following rea
son(s): java.lang.IllegalStateException: The LogManager was not properly install
ed (you must set the "java.util.logging.manager" system property to "org.jboss.l
ogmanager.LogManager")
Deployment "JBossLogService" is in error due to the following reason(s): java.
lang.IllegalStateException: The LogManager was not properly installed (you must
set the "java.util.logging.manager" system property to "org.jboss.logmanager.Log
Manager"), **ERROR**
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
loyersImpl.java:1228)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD
eployerImpl.java:905)
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c
heckComplete(MainDeployerPlugin.java:87)
at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.che
ckAllComplete(ProfileDeployerPluginRegistry.java:107)
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
ootstrap.start(BasicProfileServiceBootstrap.java:135)
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
ootstrap.start(BasicProfileServiceBootstrap.java:56)
at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(A
bstractServer.java:827)
at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.r
un(AbstractServer.java:417)
at java.lang.Thread.run(Thread.java:662)
Aug 16, 2012 10:37:02 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
Aug 16, 2012 10:37:02 PM org.apache.coyote.ajp.AjpProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
Aug 16, 2012 10:37:02 PM org.jboss.bootstrap.impl.base.server.AbstractServer$Sta
rtServerTask run
INFO: JBossAS [6.1.0.Final "Neo"] Started in 33s:970ms
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754113#754113]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[JBoss Remoting] - PermGen Space: OutOfMemory caused by loading the same class multiple times
by Fabian Epp
Fabian Epp [https://community.jboss.org/people/fabian.epp] created the discussion
"PermGen Space: OutOfMemory caused by loading the same class multiple times"
To view the discussion, visit: https://community.jboss.org/message/749853#749853
--------------------------------------------------------------
Hello Community,
in our situation we have some server side classes which the osgi-client doesn´t have in it´s classpath. The client knows only its interfaces. The implementations will be loaded from server via Remote Class Loading.
Now the problem is, when we call a server method which returns a certain implementation, the following scenario happens::
1.) On each server call, a new ClassLoader will be created which loads all classes which is needed to create a single instance of the requested type.
2.) At the next server call, the previous loaded classes are not reused. Instead a new ClassLoader is created which loads and stores the same classes again
3.) If the loaded instances are remembered in a Collection the Garbage Collector has no chance to unload the classes because there is always exactly one existing reference.
--> So, the Perm Gen Space increases and increases till we get an PermGenSpace Out Of Memory Exception
So, my question is:
Is it possible that the same classloader load all classes so that one class is only one time?
How can it be configured?
I´m happy about every solution.
Thank you for your help:
Fabian
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/749853#749853]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[Beginner's Corner] - Re: Nessus scan makes JBoss 5.1.0.GA stop processing web requests
by izan
izan [https://community.jboss.org/people/izan] created the discussion
"Re: Nessus scan makes JBoss 5.1.0.GA stop processing web requests"
To view the discussion, visit: https://community.jboss.org/message/719131#719131
--------------------------------------------------------------
Hi all!
I'm seeing this error also, and don't know how to get over it. I am using JBoss AS 5.1.0.GA with jboss-remoting 2.5.1, and also checked with jboss-remoting.jar 2.5.4.SP3 in client and common/lib folders (not sure if I should replace more JARs)
These are the tests that I have done so far:
1. Nessus scan on port 3873
2012-02-23 14:23:39,936 ERROR [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#4[xx.x.x.x:53826]) WorkerThread#4[x.x.x.x:53826] exception occurred during first invocation
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedConstructorAccessor199.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.remoting.transport.socket.ServerThread.createServerSocketWrapper(ServerThread.java:909)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:491)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:100)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:54)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:75)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:58)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:179)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:162)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:66)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:46)
... 6 more
2. telnet localhost 3873 throws the following exception
2012-02-23 14:23:55,246 ERROR [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#4[x.x.x.x:54029]) WorkerThread#4[x.x.x.x:54029] exception occurred during first invocation
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedConstructorAccessor199.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.remoting.transport.socket.ServerThread.createServerSocketWrapper(ServerThread.java:909)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:491)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2265)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2278)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:100)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:54)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:75)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:58)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:179)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:162)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:66)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:46)
Don't know if this was solved by the original poster somehow, but if someone has a clue where to keep looking, I'd be much obliged!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/719131#719131]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[jBPM] - Persistence Issues
by Yogesh Garg
Yogesh Garg [https://community.jboss.org/people/nsit_yogesh] created the discussion
"Persistence Issues"
To view the discussion, visit: https://community.jboss.org/message/772538#772538
--------------------------------------------------------------
Hi all,
I am receiving some issues and they seem to be revovling around persistence. I am using jBPM5.3 and jBOSS AS 7.0.2. I have done a vanilla installation. Please let me know if I am supposed to some customization as well. PFB the persistence.xml which I am using for my project and *let me know what is missing or needs to change in it*. Also I have included errors I am receiving. I am just plainly running my project. The project needs a human task so there is one org.jbpm.task. There is one doubt as well, we are not mentioning datasource for task's persistence as well, then how can hibernate know where it should store the objects. Secondly my most of the issues are revolving around org.peristence.jpa. Kindly help me!!!!
Persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd">
<persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc/jbpm-ds</jta-data-source>
<mapping-file>META-INF/JBPMorm.xml</mapping-file>
<mapping-file>META-INF/ProcessInstanceInfo.hbm.xml</mapping-file>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
<class>org.jbpm.process.audit.ProcessInstanceLog</class>
<class>org.jbpm.process.audit.NodeInstanceLog</class>
<class>org.jbpm.process.audit.VariableInstanceLog</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
<property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
<property name="hibernate.connection.url" value="jdbc:h2:tcp://localhost/~/jbpm-db" />
<property name="hibernate.max_fetch_depth" value="3"/>
<!-- hbm2ddl.auto MUST BE update! The console will otherwise overwrite the schema with each new thread -->
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.connection.username" value="sa"/>
<property name="hibernate.connection.password" value=""/>
<property name="hibernate.connection.autocommit" value="false" />
<property name="hibernate.show_sql" value="true" />
<property name="javax.persistence.validation.mode" value = "none"/>
<!-- for AS7 -->
<property name="hibernate.transaction.manager_lookup_class" value="org.jbpm.integration.console.JBPMTransactionManager" />
<!-- for AS5 -->
<!-- <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> -->
</properties>
</persistence-unit>
<persistence-unit name="org.jbpm.task">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<mapping-file>META-INF/Taskorm.xml</mapping-file>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.Content</class>
<class>org.jbpm.task.BooleanExpression</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Delegation</class>
<class>org.jbpm.task.Escalation</class>
<class>org.jbpm.task.Group</class>
<class>org.jbpm.task.I18NText</class>
<class>org.jbpm.task.Notification</class>
<class>org.jbpm.task.EmailNotification</class>
<class>org.jbpm.task.EmailNotificationHeader</class>
<class>org.jbpm.task.PeopleAssignments</class>
<class>org.jbpm.task.Reassignment</class>
<class>org.jbpm.task.Status</class>
<class>org.jbpm.task.Task</class>
<class>org.jbpm.task.TaskData</class>
<class>org.jbpm.task.SubTasksStrategy</class>
<class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>
<class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>
<class>org.jbpm.task.User</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
<property name="hibernate.connection.driver_class" value="org.h2.jdbcx.JdbcDataSource"/>
<property name="hibernate.connection.url" value="jdbc:h2:tcp://localhost/runtime/task" />
<property name="hibernate.connection.username" value="sa"/>
<property name="hibernate.connection.password" value=""/>
<property name="hibernate.connection.autocommit" value="false" />
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="create" />
<property name="hibernate.show_sql" value="true" />
</properties>
</persistence-unit>
</persistence>
Error on Console
...0
26/10 16:01:46,245[main] ERROR hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup - Could not instantiate TransactionManagerLookup
java.lang.ClassNotFoundException: org.jbpm.integration.console.JBPMTransactionManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)
at org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(TransactionManagerLookupFactory.java:86)
at org.hibernate.cfg.SettingsFactory.createTransactionManagerLookup(SettingsFactory.java:433)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:158)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at com.sample.ProcessMain.createKnowledgeSession(ProcessMain.java:154)
at com.sample.ProcessMain.main(ProcessMain.java:51)
Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at com.sample.ProcessMain.createKnowledgeSession(ProcessMain.java:154)
at com.sample.ProcessMain.main(ProcessMain.java:51)
Caused by: org.hibernate.HibernateException: Could not instantiate TransactionManagerLookup 'org.jbpm.integration.console.JBPMTransactionManager'
at org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(TransactionManagerLookupFactory.java:93)
at org.hibernate.cfg.SettingsFactory.createTransactionManagerLookup(SettingsFactory.java:433)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:158)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
... 5 more
Regards,
Yogesh Garg
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772538#772538]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month