[Installation, Configuration & Deployment] - XMBEAN Error
by ultragc
Hi folks,
Newbie needs help here. Anyone know what the "Fail to create xmbean" error mean?
05:04:03,204 DEBUG [Server] Failed to create xmbean for: org.jboss.system.server.ServerInfo
05:04:03,224 INFO [ServerInfo] Java version: 1.5.0_07,Sun Microsystems Inc.
05:04:03,224 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_07-b03,Sun Microsystems Inc.
05:04:03,224 INFO [ServerInfo] OS-System: Linux 2.6.9-34.0.1.ELsmp,i386
05:04:03,225 DEBUG [ServerInfo] Full System Properties Dump
05:04:03,225 DEBUG [ServerInfo] java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition
05:04:03,225 DEBUG [ServerInfo] jboss.server.base.dir: /usr/local/portal/liferay/server
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965038#3965038
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965038
19 years, 10 months
[EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl
by k34216
Right, but in my tests, if you had different unit names then the entity beans couldn't have any relationships between them.
The only solution I have found is like raja05 said, is to put the persistence.xml in a jar file in the ear file. And then reference from that persistence.xml file all the other jars.
"grdzeli_kaci" wrote : hi all, i had already problem like this and my mistake was that i hadn't unitname in the persistance.xml file
| i think if u must add this in u your persistance.xml
|
|
| | <persistence-unit name="Blah1" transaction-type="JTA">
| | <jta-data-source>java:/XAOracleDS</jta-data-source>
| | <class>com.magti.businesslayer.ejb3entity.oracle.Test</class>
| | <properties>
| | [props]
| | </properties>
| | </persistence-unit>
| |
| |
| in second persistanc.xml
|
| | <persistence-unit name="Blah2" transaction-type="JTA">
| | <jta-data-source>java:/XAOracleDS</jta-data-source>
| | <class>com.magti.businesslayer.ejb3entity.oracle.Test</class>
| | <properties>
| | [props]
| | </properties>
| | </persistence-unit>
| |
| |
|
| u also could put more then one persistance unit in one persistance.xml file
|
| | <persistence-unit name="Blah1" transaction-type="JTA">
| | <jta-data-source>java:/XAOracleDS</jta-data-source>
| | <class>com.magti.businesslayer.ejb3entity.oracle.Test</class>
| | <properties>
| | [props]
| | </properties>
| | </persistence-unit>
| | <persistence-unit name="Blah2" transaction-type="JTA">
| | <jta-data-source>java:/XAOracleDS</jta-data-source>
| | <class>com.magti.businesslayer.ejb3entity.oracle.Test</class>
| | <properties>
| | [props]
| | </properties>
| | </persistence-unit>
| |
| |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965037#3965037
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965037
19 years, 10 months