Skip to Content
avatar image
Former Member

Problem while deploy the ejb entity to web as

Hi All,

I tried to build a java project and deloy to netweaver j2ee Web AS (I am using the trial version).While I deploy the EJB entity , I recevice the following error message:

2006-6-28 15:46:55 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:

[005]Deployment finished with warning

Settings

SDM host : wsample

SDM port : 50018

URL to deploy : file:/C:/DOCUME1/ADMINI1/LOCALS~1/Temp/temp22418SAMPLE_EAR_2.ear

Result

=> deployed with warning : file:/C:/DOCUME1/ADMINI1/LOCALS~1/Temp/temp22418SAMPLE_EAR_2.ear

Finished with warnings: development component 'SAMPLE_EAR_2'/'sap.com'/'localhost'/'2006.06.28.15.42.01':

Caught exception during application startup from SAP J2EE Engine's deploy service:

java.rmi.RemoteException: Error occurred while starting application sap.com/SAMPLE_EAR_2 and wait. Reason: Clusterwide exception: server ID 5146350:com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: The DataSource for PersistenceManager SAMPLEDB_ALIAS is not created.

at com.sap.engine.services.ejb.entity.pm.PersistenceManager.initDataSource(PersistenceManager.java:217)

at com.sap.engine.services.ejb.EJBAdmin.commitLoad(EJBAdmin.java:1091)

at com.sap.engine.services.ejb.EJBAdmin.prepareStart(EJBAdmin.java:2402)

at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:370)

at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:318)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:299)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:301)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:110)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:212)

at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4605)

at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4512)

at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4485)

at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

Caused by: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name ejbContainer/cmp/tx/sap.com/SAMPLE_EAR_2/SAMPLEDB_ALIAS, cannot resolve object reference. [Root exception is com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "WWERA_DS_NAME" does not exist. Possible reasons: the connector in which ConnectionFactory "WWERA_DS_NAME" is defined is not deployed or not started.]

at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:504)

at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:614)

at javax.naming.InitialContext.lookup(InitialContext.java:347)

at javax.naming.InitialContext.lookup(InitialContext.java:347)

at com.sap.engine.services.ejb.entity.pm.PersistenceManager.initDataSource(PersistenceManager.java:185)

... 21 more

Caused by: com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "WWERA_DS_NAME" does not exist. Possible reasons: the connector in which ConnectionFactory "WWERA_DS_NAME" is defined is not deployed or not started.

at com.sap.engine.services.connector.ResourceObjectFactory.getObjectInstance(ResourceObjectFactory.java:207)

at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:280)

at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:414)

... 25 more

(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)

Deployment exception : Got problems during deployment

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 28, 2006 at 02:16 PM

    That is the interesting part:

    The DataSource for PersistenceManager SAMPLEDB_ALIAS is not created.

    Read here:

    http://help.sap.com/saphelp_nw2004s/helpdata/en/61/fdbc3d16f39e33e10000000a11405a/frameset.htm

    about Persistency and here:

    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/4f7770b21b9f459cb13424296726b1/frameset.htm

    about Aliases. From there you can find a link that shows how to configure that stuff.

    regards,

    Benny

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 29, 2006 at 06:41 AM

    Thanks,Benny. I had slove the problem. The root reason is the data-source I create in the Web administrator console isn't acitve. It does work after I change to use the Visual Admistrator.

    Add comment
    10|10000 characters needed characters exceeded