[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

ashusri000 do-not-reply at jboss.com
Wed Jun 27 06:46:07 EDT 2007


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.



My ds.xml is :

<?xml version="1.0" encoding="UTF-8"?>

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  JBoss Server Configuration                                           -->
<!--                                                                       -->
<!-- ===================================================================== -->

<!-- $Id: oracle-xa-ds.xml,v 1.13 2004/09/15 14:37:40 loubyansky Exp $ -->

<!-- ===================================================================== -->
<!-- ATTENTION:  DO NOT FORGET TO SET Pad=true IN transaction-service.xml  -->
<!-- ===================================================================== -->


  <local-tx-datasource>
    <jndi-name>my-ejb-test</jndi-name>
    <connection-url>jdbc:oracle:thin:@127.0.0.1:1521:XE</connection-url>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <user-name>system</user-name>
    ashu
    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
    </exception-sorter-class-name>
    
   <type-mapping>Oracle9i</type-mapping>
    
  </local-tx-datasource>


My persistent.xml is :

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="testApp" transaction-type="JTA">
 oracle.toplink.essentials.PersistenceProvider
<jta-data-source>java:/my-ejb-test</jta-data-source>
 
 
</persistence-unit>






View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058071#4058071

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058071



More information about the jboss-user mailing list