Did you get this issue resolved? Can you post the resolution please?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4220995#4220995
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4220995
Did you get this issue resolved? Can you post the resolution please?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4220722#4220722
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4220722
My Session EJB is successfully deployed in JBoss 4.2.2 and here's the entry in
the Global JNDI Namespace from the JMX console.
+- MXIntegrationEAR (class: org.jnp.interfaces.NamingContext)
| | +- BurdenRateFacade (class: org.jnp.interfaces.NamingContext)
| | | +- local (proxy:
Thanks Peter!
I no longer get the NoInitialContext exception.
Now when I do a look up with the code
BurdenRateFacade bean = (BurdenRateFacade)context.lookup(BurdenRateFacade);
I get a Classcast exception.
java.lang.ClassCastException: org.jnp.interfaces.NamingContext
I did a
Thanks Peter! it worked
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4203415#4203415
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4203415
___
jboss-user mailing list
Thanks Everyone.
Thanks jaikiran! it worked when i moved the persistence.xml to the META-INF
within the EJB jar.
I also found with my existing file structure with the persistence.xml at the
top level META-INF in the ear file. It works if I add the unitName to the
@PersistenceContext
Thanks Everyone, the JIRA ticket can be closed.
Thanks jaikiran! that worked when I moved the persistence.xml to the META-INF
within the EJB jar.
I also found that with my current structure of having persistence.xml at the
top level META-INF within the ear, it works when I have the unitName for
I reverse engineered and generated hibernate pojos and Session EJB dao code.
They are packaged in my ear. My persistence.xml is in the MET-INF folder in
the ear file.
Here's my persistence.xml
persistence xmlns=http://java.sun.com/xml/ns/persistence;
|
JBoss version - 4.2.2, Yes I meant META-INF
Here's my application.xml
?xml version=1.0 encoding=ASCII?
| application xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:application=http://java.sun.com/xml/ns/javaee/application_5.xsd;
JIRA ticket: EJBTHREE-1687
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4202275#4202275
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4202275
___
jboss-user mailing list
I get the following exception when my JBoss server starts up.
java.lang.RuntimeException: Illegal @PersistenceUnit on private
javax.persistence.EntityManager gov.usbr.data.cdw.BurdenRateHome.entityManager
:There is no default persistence unit in this deployment.
at
Here's my persistence.xml
persistence xmlns=http://java.sun.com/xml/ns/persistence;
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;
version=1.0
persistence-unit
I also have the below two properties set but they dont seem to display in this
forum when I copy paste the persistence.xml
hibernate.dialect value=org.hibernate.dialect.HSQLDialect/
hibernate.hbm2ddl.auto value=create-drop/
View the original post :
13 matches
Mail list logo