[jBPM] - JBPM 5 DOESN'T WORK
by Thong Huynh
Thong Huynh [https://community.jboss.org/people/thonghuynh] created the discussion
"JBPM 5 DOESN'T WORK"
To view the discussion, visit: https://community.jboss.org/message/776225#776225
--------------------------------------------------------------
Hi people,
Maybe the title is a little bit subjective but me and my team is getting very frustrated at jBPM 5.
Our problem: user task does not show up after the preceding user task is finished.
What we did:
- We downloaded the jbpm-5.3.0.Final installer from Jboss community download site ( http://sourceforge.net/projects/jbpm/files/jBPM%205/ http://sourceforge.net/projects/jbpm/files/jBPM%205/)
- We unzipped the file and followed the instruction from jbpm 5 user guide ( http://docs.jboss.org/jbpm/v5.3/userguide/ch.installer.html#d0e389 http://docs.jboss.org/jbpm/v5.3/userguide/ch.installer.html#d0e389) to install its components: jboss AS, Eclipse, Drools-Guvnor, JBPM Console, JBPM Eclipse Plugin, Drools Eclipse Plugin
- We used the component Drools-Guvnor to start modelling a basic process. The steps are as follows:
+ Went to Guvnor with url: http://localhost:8080/drools-guvnor http://localhost:8080/drools-guvnor
+ Created a new package in knowledge base
+ Created a new BPMN2 process in the package
+ Modelled a simple process with: Start Event -> User Task 1 -> User Task 2 -> End Event
+ Entered taskname for 2 user tasks and specified actorId as 'krisv' for both of them
+ Generated forms using autogenerated form feature built in (3 forms are generated: 1 processtask form, usertask1 form, usertask2 form)
+ Saved it and built it
- We went to JBPM Console ( http://localhost:8080/jbpm-console http://localhost:8080/jbpm-console) to start reviewing the process.
+ Started the process, the 1st form (processtask form) appears, click submit
+ Went to Tasks to view the 1st task assigned to krisv (as specified)
+ The task showed up, viewed usertask1 form and confirmed it is as expected
+ Refreshed the task list and expected to see the next one shows up
+ NOTHING SHOWS UP
We can also reproduce this problem with the Evaluation sample comes along with the installer. Has anyone encountered this problem and knows exactly what causes it? Any answer would be hightly appreciated.
Cheers
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/776225#776225]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[Beginner's Corner] - Jboss Ports
by J Kramer
J Kramer [https://community.jboss.org/people/kramer27182] created the discussion
"Jboss Ports"
To view the discussion, visit: https://community.jboss.org/message/776928#776928
--------------------------------------------------------------
Hey guys,
I just started Jboss AS 5.1.0 on Mac OS X and wanted to check out the admin console. So went to:
http://localhost:8080/admin-console http://localhost:8080/admin-console
in my browser and got no response. Okay... so I thought I would check out what's running. Sure enough, there is a jboss process:
502 6639 6627 0 5:39PM ttys003 1:25.20 /usr/bin/java -Dprogram.name=run.sh -server -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=10800000 -Dsun.rmi.dgc.server.gcInterval=10800000 -Xms4000m -Xmx8000m -XX:MaxPermSize=384m -XX:+UseCompressedOops -XX:+UseParallelOldGC -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:/home/backend/gc.log -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
-Djava.endorsed.dirs=/Users/jkramer/adserver/jboss-5.1.0.GA/lib/endorsed -classpath /Users/jkramer/adserver/jboss-5.1.0.GA/bin/run.jar org.jboss.Main -c test -g test -b localhost -Dadverter.clusterid=1 -Dhornetq.remoting.netty.host=localhost -Dfetcher.bind.address=localhost -Dcluster.name=test-jkramer
Okay, so there is a jboss process with pid 6639. Next I checked for open ports:
java 6639 jkramer 70u IPv6 0xffffff8020343240 0t0 TCP localhost:rmiregistry (LISTEN)
java 6639 jkramer 71u IPv6 0xffffff80206d4440 0t0 TCP localhost:http-alt (LISTEN)
java 6639 jkramer 77u IPv6 0xffffff80206d4800 0t0 TCP localhost:sunproxyadmin (LISTEN)
java 6639 jkramer 79u IPv6 0xffffff80206d3540 0t0 TCP localhost:8009 (LISTEN)
java 6639 jkramer 101u IPv6 0xffffff802374e340 0t0 TCP localhost:14713 (LISTEN)
java 6639 jkramer 102u IPv6 0xffffff80206d3900 0t0 TCP localhost:51696 (LISTEN)
java 6639 jkramer 108u IPv6 0xffffff802374e700 0t0 TCP localhost:n1-fwp (LISTEN)
java 6639 jkramer 156u IPv6 0xffffff80206d6600 0t0 TCP localhost:4712 (LISTEN)
java 6639 jkramer 201u IPv6 0xffffff80206d4bc0 0t0 TCP localhost:rmiactivation (LISTEN)
Okay, so I have a couple of questions. First, which of these is actually the main jboss AS service (where I can hit my web app or admin console with a web browser)? I thought http-alt meant 80080, but no response? Second, what are all of these used for? Oh, and third (not really a jboss question), is there a way that I can get lsof to give me actual numeric port numbers instead of the port name?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/776928#776928]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[JBoss Tools] - BrowserSim FAQ
by Yahor Radtsevich
Yahor Radtsevich [https://community.jboss.org/people/yradtsevich] modified the document:
"BrowserSim FAQ"
To view the document, visit: https://community.jboss.org/docs/DOC-18100
--------------------------------------------------------------
*Q: What is BrowserSim ?*
*A:* BrowserSim is a Browser Simulator which primarily is intended for having a quick, easy and multi-platform way of testing if your webapp will render and behave correctly on a mobile device.
*Q: How does BrowserSim works ?*
*A:* It wraps a WebKit browser and makes it respond and send work like a mobile browser by spoofing content and media request headers.
*
Q: What do I need to run BrowserSim?*
*A:* The requirements for different platforms are as listed below:
* Windows:* Only 32-bit Eclipse/JBDS is supported;
* JBoss Tools 4.0.0.Beta2/JBDS 6.0.0.Beta2 and below: Apple http://www.filehippo.com/download_quicktime_player/12346/ QuickTime 7.72.80.56 or http://www.filehippo.com/download_itunes_32/12531/ iTunes 10.6.3 must be installed (they contain Apple Application Support 2.1 which provides WebKit engine for BrowserSim). Also see https://issues.jboss.org/browse/JBIDE-13044 this jira.
* JBoss Tools 4.0.0.CR1/JBDS 6.0.0.CR1 and above: http://support.apple.com/kb/DL1531 Apple Safari must be installed (it provides WebKit engine for BrowserSim).
* Linux:* WebKitGTK 1.2.0 or newer must be installed and available in the library load path.
* This should be available on RHEL and Ubuntu by default, if not use your package manager to install libwebkitgtk
* Mac OS X* It just works.
*Q: How to add BrowserSim to the toolbar?*
*A:* Go to Window → Customize Perspective and select "BrowserSim" under "Command Groups Availability". Then it becomes available in the global toolbar via the "phone" icon:
https://community.jboss.org/servlet/JiveServlet/showImage/102-18100-13-18... https://community.jboss.org/servlet/JiveServlet/downloadImage/102-18100-1...
*Q: Can I use the browser as a replacement for testing on a real phone or emulator?*
*A:* Browsersim make it easy to test basic layout questions/issues on any platform without having to install a platform specifc emulator or manually try use a phone.
That said it is not 100% reliable since there are so many different brands/versions of phones there will be differences in behavior, thus no, BrowserSim does not replace real or emulated phone testing.
For full verfication/testing you should test on a real phone.
*Q: BrowserSim shows an error message saying that JRE 7 is not supported on Windows and does not run (with JBoss Tools 4.0.0.Alpha2 and above).*
*A:* There is an incompatibility between some versions of JRE 7 and BrowserSim on Windows. To workaround this, please do the following:
1. Install JRE/JDK 6 or JDK 7 (but not JRE 7).
2. Add the next lines at the beginning of your eclipse.ini or jbdevstudio.ini:
-vm
PATH_TO_JAVA_INSTALLATION_DIRECTORY\bin\javaw.exe
*Q: BrowserSim shows the *"No more handles [Failed to load the swt-webkit library]"* error message and does not run (with JBoss Tools *4.0.0.Alpha*1 and below).*
*A:* There is an incompatibility between some versions of JRE/JDK 7 and BrowserSim on Windows. To workaround this, please do the following:
1. Install JRE/JDK 6 (but not JRE/JDK 7).
2. Add the next lines at the beginning of your eclipse.ini or jbdevstudio.ini:
-vm
PATH_TO_JAVA_INSTALLATION_DIRECTORY\bin\javaw.exe
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-18100]
Create a new document in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
13 years, 5 months
[JBoss Web Services] - Re: missing <wsse:Security> tag in WS-Security
by NOE GUTIERREZ
NOE GUTIERREZ [https://community.jboss.org/people/noe_bartino1984] created the discussion
"Re: missing <wsse:Security> tag in WS-Security"
To view the discussion, visit: https://community.jboss.org/message/776941#776941
--------------------------------------------------------------
Hi Himaja, Could You Help me?
I have moved few jars from /jboss-5.1.0GA/common/lib to /jboss-5.1.0GA/lib/endorsed
I'm using this VM options -Djava.endorsed.dirs=/opt/jboss-5.1.0.GA/lib/endorsed
and added this jars to my classpath
jbossws-client.jar , jboss-common.jar , log4j.jar , javassist.jar , jboss-remoting.jar , jboss-xml-binding.jar , jbossws-spi.jar , wsdl4j.jar , mail.jar , concurrent.jar , policy.jar , jaxb-impl.jar and xmlsec.jar.
when I executed my client shows this:
***********************
Create Web Service Client...
Create Web Service...
Call Web Service Operation...
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
at $Proxy25.multiplica(Unknown Source)
at misservicios.insys.ws.clientsample.ClientSample.main(ClientSample.java:14)
Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.internal.bind.api.JAXBRIContext
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.<clinit>(Unknown Source)
please I'm going crazy jaja
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/776941#776941]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[EJB3] - Remote EJB 3.1 in JBoss 6.1 - ejb-jar.xml changes remote to local
by Piotr Nowicki
Piotr Nowicki [https://community.jboss.org/people/pedrokowalski] created the discussion
"Remote EJB 3.1 in JBoss 6.1 - ejb-jar.xml changes remote to local"
To view the discussion, visit: https://community.jboss.org/message/776916#776916
--------------------------------------------------------------
Howdy Guys.
Just bumped into some really nasty problem.
I have my EJB 3.1 beans defined using annotations like:
@Remote
@Stateless
public class MyBean implements MyBeanIf
{
}
This is a part of the ejb-jar (myEJB.jar) which is then packaged into EAR (myEAR.ear) and deployed into the server.
Because I would like to be able to lookup the MyBean using something different than myEJB in JNDI coordinates, I've added the ejb-jar.xml to the META-INF of ejb-jar.
It looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
version="3.1">
<module-name>my-service</module-name>
</ejb-jar>
So, no surprise here - it's rather simple.
Now if I deploy it on JBoss AS 7.1 - everything works fine, the JNDI coordinates are correct and I can access the component using configured JNDI name.
However, ifI deploy it on JBoss 6.1 it somehow magically *changes my remote interface to local*. In other words, if I don't specify the ejb-jar.xml in my ejb-jar it correctly registers the bean as:
scada.server.ea/ArchivingTemplateProvider/remote - EJB3.x Default Remote Business Interface
When I add the ejb-jar.xml (in the exact form as you can se above), I can see:
scada.server.ea/ArchivingTemplateProvider/local - EJB3.x Default Local Business Interface
And, as expected, I cannot lookup my EJB.
Is there some problem with mixing annotations and declarative EJB configuration? Why did my bean became local just by adding ejb-jar.xml with element not related with the configuration of enterprise beans?
I have a workaround to change the names of artifacts (ejb-jar's) directly in EAR using Maven plugin, but... uh... would rather know what am I doing wrong.
What kind of sorcery is this?
Regards.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/776916#776916]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[jBPM] - persistence JBPM5.3 on tomcat with mysql
by Kehua Gao
Kehua Gao [https://community.jboss.org/people/kehuagao] created the discussion
"persistence JBPM5.3 on tomcat with mysql"
To view the discussion, visit: https://community.jboss.org/message/775867#775867
--------------------------------------------------------------
Hi,
EntityManagerFactory emfTask = Persistence.createEntityManagerFactory("org.jbpm.task");
the above line code works fine,but the below line code do not work.
EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.jbpm.persistence.jpa" );
the error is:
Could not find datasource: jdbc/jbpm-ds
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
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.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:257)
at com.sample.processserver.JbpmAPIUtil.getSession(JbpmAPIUtil.java:238)
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:69)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
1 10/11 23:36:38,784[main] ERROR sample.processserver.TaskProcessServlet.init - [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
org.hibernate.HibernateException: Could not find datasource
My persistence.xml is :
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence 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/persistence_1_0.xsd" version="1.0">
<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/orm.xml</mapping-file>
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</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>
<class>org.jbpm.task.Task</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.I18NText</class>
<class>org.jbpm.task.SubTasksStrategy</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Escalation</class>
<class>org.jbpm.task.Reassignment</class>
<class>org.jbpm.task.Notification</class>
<class>org.jbpm.task.BooleanExpression</class>
<class>org.jbpm.task.User</class>
<class>org.jbpm.task.PeopleAssignments</class>
<properties>
<!-- H2 dialect -->
<!-- <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> -->
<!-- Oracle dialect -->
<!-- <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/> -->
<!-- mysql dialect -->
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.connection.autocommit" value="false"/>
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.BTMTransactionManagerLookup"/>
</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.OnAllSubTasksEndParentEndStrategy</class>
<class>org.jbpm.task.User</class>
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
<properties>
<!-- sample H2 configuration
<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:mem:droolsflow" />
<property name="hibernate.connection.username" value="sa"/>
<property name="hibernate.connection.password" value="sasa"/>
-->
<!-- Sample Oracle Configuration
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
<property name="hibernate.connection.driver_class" value="oracle.jdbc.OracleDriver"/>
<property name="hibernate.connection.url" value="jdbc:oracle:thin:oracleserver:1521:db" />
<property name="hibernate.connection.username" value="nagios"/>
<property name="hibernate.connection.password" value="nagios"/>
-->
<!-- Sample mysql Configuration -->
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/jbpm-demo" />
<property name="hibernate.connection.username" value="demo"/>
<property name="hibernate.connection.password" value="demo"/>
<property name="hibernate.connection.autocommit" value="true" />
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="create" />
<property name="hibernate.show_sql" value="false" />
</properties>
</persistence-unit>
</persistence>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/775867#775867]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[Datasource Configuration] - Migrate JBoss 4 datasource/jndi configuration in jboss.xml to JBoss 7
by Joern Ohmen
Joern Ohmen [https://community.jboss.org/people/joerno] created the discussion
"Migrate JBoss 4 datasource/jndi configuration in jboss.xml to JBoss 7"
To view the discussion, visit: https://community.jboss.org/message/776859#776859
--------------------------------------------------------------
Hello,
I try to migrate a JBoss 4 application to JBoss 7 and can not find a way to handle the <resource-managers> content.
My jboss.xml looks like this:
{code:java}
<jboss>
<resource-managers>
<resource-manager>
<res-name>XYDatabase</res-name>
<res-jndi-name>java:/XY_DS</res-jndi-name>
</resource-manager>
</resource-managers>
<enterprise-beans>
<session>
<ejb-name>Info</ejb-name>
<jndi-name>Info</jndi-name>
<resource-ref>
<res-ref-name>jdbc/DataSource</res-ref-name>
<resource-name>XYDatabase</resource-name>
</resource-ref>
</session>
</enterprise-beans>
</jboss>
{code}
Is there a way I can map this to JBoss 7? I don't have the possibility to change the code...
Now I get this error:
{code}
[jboss.naming.context.java.jboss.resources.jdbc.DataSource] missing ","jboss.deployment.subunit.\"100_xybean.ear\".\"system-ejb.jar\".component.Info.START
[JBAS014861: <one or more transitive dependencies>] missing ","jboss.naming.context.java.comp.100_xybean.system-ejb.Info.env.jdbc.DataSource
[jboss.naming.context.java.jboss.resources.jdbc.DataSource] missing","jboss.deployment.subunit.\"100_xybean.ear\".\"system-ejb.jar\".jndiDependencyService
{code}
I know that ejb-jar.xml and jboss.xml is really old and I can use jboss-ejb3.xml instead. But I have no idea how to handle <resource-managers>.
Thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/776859#776859]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months