I am facing a problem in trying to put a call from a Stateless bean to an entity bean to persist an object . The beans are packed in an ear file and have been deployed on JBOss Server 4.xx . When I make a call to persist the entity bean object then it throws up an error as this :
** Please can you tell where the problem is . I am calling this stateless bean from a servlet .
Hi Mukhtiar , Thanks a lot for the Reply . I had already all these datasource related entries in the datasource.xml file in the JbossServer/deploy directory and the server is giving a message that it is able to add this jndi name. But how can I give this persistence.xml information about that datasource.xml file information. I mean I have deployed this persistence.xml file in the ear and now I need to put this datasource.xml file along with the persistence.xml file in the ear or do I need to put this datasource.xml at two places : on in the deploy directory and other in the ear file . Please provide me with some pointers over this, I am really stuck. Regards
TO further add to the things I had already put the ds.xml file in the deploy directory but it when I go to access the entity it throws up this error :
Internal Exception: javax.naming.InvalidNameException: Not a compound name: my-ejb-test 16:05:48,312 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:220) 16:05:48,312 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.
Moreover in deploying this ear it throws this warning :
16:10:13,921 INFO [STDOUT] [TopLink Warning]: 2007.06.27 04:10:13.906--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class src.FirstSessionBean. The class is ignored. 16:10:13,921 INFO [STDOUT] [TopLink Warning]: 2007.06.27 04:10:13.921--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.hughes.testEjb.TestClient. The class is ignored. 16:10:13,921 INFO [STDOUT] [TopLink Warning]: 2007.06.27 04:10:13.921--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class src.Employee. The class is ignored. 16:10:13,921 INFO [STDOUT] [TopLink Warning]: 2007.06.27 04:10:13.921--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class src.FirstSession. The class is ignored.
<!-- ===================================================================== --> <!-- ATTENTION: DO NOT FORGET TO SET Pad=true IN transaction-service.xml --> <!-- ===================================================================== -->
Hi , As such there is no error thrown when the server is started but when I tried to look up for the datasource binding at the server console then there was an exception thrown up as this :
I tried to search for this exception and one of the web pages says that I am supposed to remove some hajndi entry from the jboss-service.xml file but this entry is absent in the server setup.
Now what do I do?
Post by:autobot
I'm gonna teach you a lesson! Start by looking at this tiny ad:
a bit of art, as a gift, that will fit in a stocking