[JBoss Microcontainer] - Classloading for a Tomcat war under Jboss 5.1
by spulci
spulci [http://community.jboss.org/people/spulci] created the discussion
"Classloading for a Tomcat war under Jboss 5.1"
To view the discussion, visit: http://community.jboss.org/message/597780#597780
--------------------------------------------------------------
Hallo,
i've got my web application war originally developed under Tomcat and I'm experiencing issues with JBoss deploying. My scenario gives me no access to modify JBoss common/lib presence so the only chance I've got is to add the right descriptor jboss-classloading.xml to my WEB-INF to instruct the classloader to give precedence to my web-inf/lib.
My web app uses Hibernate 3.5 jars as well as Struts 1.3.10 and other framework. I defined this classloader tag:
[code]
<classloading xmlns="urn:jboss:classloading:1.0"
domain="WebReportFFDeploy.war"
export-all="NON_EMPTY"
import-all="true"
parent-first="false" >
</classloading>
[/code]
where domain is my war name but this not fix my issue. Jboss still uses the hibernate jar in common lib to solve classes ignoring my hibernate jars in my web-inf/lib (I used a new method present only in the last version of Hibernate. Hibernate version present in JBoss can do the same using a deprecated method and I really don't want to touch the code). My goal is to give higher precedence to my web-inf/lib to avoid conflicts in version and dependencies. I'm newbie at JBoss but this issue is becoming too time consuming for me. I hope that JBoss community documentation will add soon tutorial and examples to explain this descriptors in a clear way.
Thanks a lot
Simon
P.S. Please note that at the moment I get a sessionfactory binding an Hibernate Util class to my web application listener. I hope this doesn't cause other issues thought I will soon bind to a JNDI resource.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597780#597780]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
[jBPM] - Question: Running JBPM on JBOSS AS 6
by baecks
baecks [http://community.jboss.org/people/baecks] created the discussion
"Question: Running JBPM on JBOSS AS 6"
To view the discussion, visit: http://community.jboss.org/message/598406#598406
--------------------------------------------------------------
Hello,
I want to run an JEE(6) application on my JBOSS AS 6 server using JBPM 3 (incl. persistence to MySQL DB). I want this app to be scalable, support clustering, workflow resume after restart etc. From what I read on various JBOSS documents and other sites, the best way to do so is use the jbpm-enterprise.ear. So I tried getting that to work, but have several issues. So I hope some experts on this formum could provide answers to the questions below:
1/ Is there a (newbie) tutorial on how to get the ear deployed on JBOSS AS 6 and use I. The ear as-is can't be deployed on AS6 due to a syntax error in a TLD file or so (JBOSS AS log).
2/ Is using the command bean in the ear the right way to do this?
3/ Is there a tutorial available on ear file usage and Hibernate persistence, CMP, transactions etc ?
4/ Are there any design patterns for development of a JEE(6) app using JBPM 3 in eclipse?
5/ What about JBPM5 and eclipse. Would JBPM5 be the better choice to start with? I read that the tools for eclipse still don't support version 5 and that the version hasn't reached the maturity of version 3 yet.
All help is really appreciated.
Regards,
Sven.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/598406#598406]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
[jBPM] - JBPM5 configuration for Oracle in production
by LESCARRET Vincent
LESCARRET Vincent [http://community.jboss.org/people/lescarret] created the discussion
"JBPM5 configuration for Oracle in production"
To view the discussion, visit: http://community.jboss.org/message/598394#598394
--------------------------------------------------------------
Hello,
I want to deploy JBPM in production using persistence of processes and human tasks in an Oracle database. I have changed in the persistence.xml and hiberante.cfg.xml file the H2 database connection configuration by Oracle configuration.
We encounter the following exceptions while listing Processes in the jbpm-console :
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.drools.persistence.jpa] Unable to build EntityManagerFactory
...
Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager
What is the jar involved ?
The JBPM 5 involved a lot of components. For production use, we want a minimal deployment at first time.
We want to cut dependency with a drools-guvnor repository, and obtain the processes definition from file system.
How can we achieve that ?
Can we change only the ChangeSet.xml in jbpm-gwt-core-5.0.0.jar ?
Thanks in advance,
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/598394#598394]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
[Beginner's Corner] - java.lang.OutOfMemoryError: unable to create new native thread
by prabhu k
prabhu k [http://community.jboss.org/people/prabhucbe] created the discussion
"java.lang.OutOfMemoryError: unable to create new native thread"
To view the discussion, visit: http://community.jboss.org/message/597699#597699
--------------------------------------------------------------
Hello All,
We have written client/server application. we have deployed the server jars into JBoss Application server. The Jboss service running successfully in many client/server machine. But Jboss service has been hanged after *5-6 days recursively*. *then we need to restart the service to come out of this problem again and again*. The following error message that we got from the server log.
+*Note : We are using wrapper.exe to start and Stop the services of JBoss AS*+.
2011-02-24 00:56:17,095 ERROR [STDERR] Exception in thread "RequestController-5"
2011-02-24 00:56:17,096 ERROR [STDERR] java.lang.OutOfMemoryError: unable to create new native thread
2011-02-24 00:56:17,096 ERROR [STDERR] at java.lang.Thread.start0(Native Method)
2011-02-24 00:56:17,096 ERROR [STDERR] at java.lang.Thread.start(Unknown Source)
2011-02-24 00:56:17,096 ERROR [STDERR] at org.jacorb.poa.RPPoolManager.addProcessor(Unknown Source)
2011-02-24 00:56:17,096 ERROR [STDERR] at org.jacorb.poa.RPPoolManager.getProcessor(Unknown Source)
2011-02-24 00:56:17,096 ERROR [STDERR] at org.jacorb.poa.RequestController.processRequest(Unknown Source)
2011-02-24 00:56:17,096 ERROR [STDERR] at org.jacorb.poa.RequestController.run(Unknown Source)
2011-02-24 09:46:48,863 ERROR [STDERR] Exception in thread "Listener:40584"
2011-02-24 09:46:48,863 ERROR [STDERR] java.lang.OutOfMemoryError: unable to create new native thread
2011-02-24 09:46:48,863 ERROR [STDERR] at java.lang.Thread.start0(Native Method)
2011-02-24 09:46:48,864 ERROR [STDERR] at java.lang.Thread.start(Unknown Source)
2011-02-24 09:46:48,864 ERROR [STDERR] at com.arjuna.ats.internal.arjuna.recovery.Listener.run(Listener.java:135)
We have also mentioned the run.conf file details
rem JVM memory allocation pool parameters. Modify as appropriate.
*set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m*
rem With Sun JVMs reduce the RMI GCs to once per hour
*set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000*
rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.
*rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597699#597699]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months