Hi All , 
        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 :

 javax.persistence.PersistenceException: Exception [TOPLINK-7060] (Oracle 
TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: Cannot acquire data source [java:/system].
Internal Exception: javax.naming.InvalidNameException: Not a compound name: 
system
12:57:44,968 ERROR [STDERR]     at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:220)
12:57:44,968 ERROR [STDERR]     at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
12:57:44,968 ERROR [STDERR]     at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:111)
12:57:44,968 ERROR [STDERR]     at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:105)
12:57:44,968 ERROR [STDERR]     at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
12:57:44,968 ERROR [STDERR]     at 
src.FirstSessionBean.sayHello(FirstSessionBean.java:23)
12:57:44,968 ERROR [STDERR]     at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:57:44,968 ERROR [STDERR]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:57:44,968 ERROR [STDERR]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:57:44,968 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Unknown 
Source)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
12:57:44,968 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:59)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
12:57:44,984 ERROR [STDERR]     at $Proxy67.sayHello(Unknown Source)
12:57:44,984 ERROR [STDERR]     at TestServlet.doPost(TestServlet.java:79)
12:57:44,984 ERROR [STDERR]     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
12:57:44,984 ERROR [STDERR]     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
12:57:44,984 ERROR [STDERR]     at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
12:57:44,984 ERROR [STDERR]     at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
12:57:44,984 ERROR [STDERR]     at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
12:57:44,984 ERROR [STDERR]     at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
12:57:44,984 ERROR [STDERR]     at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
12:57:44,984 ERROR [STDERR]     at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
12:57:44,984 ERROR [STDERR]     at java.lang.Thread.run(Unknown Source)
12:57:44,984 ERROR [STDERR] Caused by: Exception [TOPLINK-7060] (Oracle TopLink 
Essentials - 2.0 (Build b41-beta2 (03/30/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: Cannot acquire data source [java:/system].
Internal Exception: javax.naming.InvalidNameException: Not a compound name: 
system
12:57:44,984 ERROR [STDERR]     at 
oracle.toplink.essentials.exceptions.ValidationException.cannotAcquireDataSource(ValidationException.java:358)
12:57:44,984 ERROR [STDERR]     at 
oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:120)
12:57:44,984 ERROR [STDERR]     at 
oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:170)
12:57:44,984 ERROR [STDERR]     at 
oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:537)
12:57:44,984 ERROR [STDERR]     at 
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206)
12:57:44,984 ERROR [STDERR]     at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:212)
12:57:44,984 ERROR [STDERR]     ... 56 more
12:57:44,984 ERROR [STDERR] Caused by: javax.naming.InvalidNameException: Not a 
compound name: system
12:57:44,984 ERROR [STDERR]     at javax.naming.CompoundName.addAll(Unknown 
Source)
12:57:44,984 ERROR [STDERR]     at 
org.jnp.interfaces.NamingContext.composeName(NamingContext.java:905)
12:57:44,984 ERROR [STDERR]     at 
org.jnp.interfaces.NamingContext.getAbsoluteName(NamingContext.java:1464)
12:57:44,984 ERROR [STDERR]     at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:618)
12:57:44,984 ERROR [STDERR]     at javax.naming.InitialContext.lookup(Unknown 
Source)
12:57:44,984 ERROR [STDERR]     at 
oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:114)
12:57:44,984 ERROR [STDERR]     ... 60 more
12:57:45,000 INFO  [STDOUT] Finished Transaction
---------------------------------------------------------------------------------




** Please can u tell where the problem is . I am calling this stateless bean 
from a servlet .

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057989
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to