Topic
No replies
SystemAdmin
SystemAdmin
1660 Posts
ACCEPTED ANSWER

Pinned topic Root exception is org.omg.CosNaming.NamingContextPackage.NotFound

‏2012-05-31T09:28:35Z |
i'm using websphere 7.0 and Compute grid 6.0 ejb3
i developpe an application batch under compute grid
i want to extruct data from a table, i use derby embeded database, but when i submet the jobXjcl file i have this error
*****************
CWLRB5590I: 05/31/12 10:05:03:447 WET L'environnement d'exécution de la grille WIN-83OQEFICNTPNode01Cell/WIN-83OQEFICNTPNode01/server1 a intercepté : java.security.PrivilegedActionException: com.ibm.websphere.batch.BatchContainerDataStreamException: javax.naming.NameNotFoundException: Context: WIN-83OQEFICNTPNode01Cell/nodes/WIN-83OQEFICNTPNode01/servers/server1, name: jdbc/Account: First component in name Account not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
java.security.PrivilegedActionException: com.ibm.websphere.batch.BatchContainerDataStreamException: javax.naming.NameNotFoundException: Context: WIN-83OQEFICNTPNode01Cell/nodes/WIN-83OQEFICNTPNode01/servers/server1, name: jdbc/Account: First component in name Account not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.ws.batch.BatchUserPrivilegedAction.executeAction(BatchUserPrivilegedAction.java:94)
at com.ibm.ws.batch.AbstractUserPrivilegedAction.runWithoutSecurity(AbstractUserPrivilegedAction.java:59)
at com.ibm.ws.batch.StepSetup.runUnderUserCredential(StepSetup.java:2348)
at com.ibm.ws.batch.StepSetup.openBatchDataStreams(StepSetup.java:485)
at com.ibm.ws.batch.StepSetup.setupStep(StepSetup.java:1045)
at com.ibm.ws.batch.JobSetup.callStep(JobSetup.java:1055)
at com.ibm.ws.batch.JobSetup.sequentialStepScheduling(JobSetup.java:769)
at com.ibm.ws.batch.JobSetup.setupJobSteps(JobSetup.java:575)
at com.ibm.websphere.batch.BatchEnhancedContainer.DispatchJob(BatchEnhancedContainer.java:45)
at com.ibm.ws.batch.BatchJobControllerWork.run(BatchJobControllerWork.java:158)
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:1150)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:199)
at com.ibm.ws.asynchbeans.CJWorkItemImpl.run(CJWorkItemImpl.java:188)
at java.lang.Thread.run(Thread.java:736)
Caused by: com.ibm.websphere.batch.BatchContainerDataStreamException: javax.naming.NameNotFoundException: Context: WIN-83OQEFICNTPNode01Cell/nodes/WIN-83OQEFICNTPNode01/servers/server1, name: jdbc/Account: First component in name Account not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.websphere.batch.devframework.datastreams.patternadapter.JDBCConnection.open(JDBCConnection.java:113)
at com.ibm.websphere.batch.devframework.datastreams.patternadapter.BDSJDBCReader.open(BDSJDBCReader.java:280)
at com.ibm.ws.batch.BatchUserPrivilegedAction.executeAction(BatchUserPrivilegedAction.java:85)
... 13 more
Caused by: javax.naming.NameNotFoundException: Context: WIN-83OQEFICNTPNode01Cell/nodes/WIN-83OQEFICNTPNode01/servers/server1, name: jdbc/Account: First component in name Account not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.ws.naming.jndicos.CNContextImpl.mapNotFoundException(CNContextImpl.java:4365)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1794)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1749)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1500)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:637)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:165)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:436)
at com.ibm.websphere.batch.devframework.datastreams.patternadapter.JDBCConnection.open(JDBCConnection.java:96)
... 15 more
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:546)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2163)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(_NamingContextStub.java:538)
at com.ibm.ws.naming.jndicos.CNContextImpl$2.run(CNContextImpl.java:2797)
at com.ibm.ws.naming.jndicos.CNContextImpl$2.run(CNContextImpl.java:2793)
at com.ibm.ws.naming.util.CommonHelpers.retry(CommonHelpers.java:763)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:2791)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1790)
... 22 more
CWLRB2220E: 05/31/12 10:05:03:453 WET Travail TestPostAgence:00029 Etape Step : com.ibm.websphere.batch.BatchContainerApplicationException: CWLRB2240E: ID de travail TestPostAgence:00029 : java.security.PrivilegedActionException: com.ibm.websphere.batch.BatchContainerDataStreamException: javax.naming.NameNotFoundException: Context: WIN-83OQEFICNTPNode01Cell/nodes/WIN-83OQEFICNTPNode01/servers/server1, name: jdbc/Account: First component in name Account not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
CWLRB5604I: 05/31/12 10:05:03:458 WET Libération du flux de données par lot Step : AccountiStream
CWLRB2560I: 05/31/12 10:05:03:453 WET L'étape Step du travail TestPostAgence:00029 s'est terminée de manière anormale
CWLRB2220E: Thu May 31 10:05:03 WET 2012 Travail TestPostAgence:00029 Etape Step : com.ibm.websphere.batch.BatchContainerApplicationException: CWLRB2240E: [E
chec de l'ouverture du flux de données par lot par l'environnement d'exécution de la grille lors de la configuration des étapes] ID de travail TestPostAgence:00029 : java.security.PrivilegedActionException: com.ibm.websphere.batch.BatchContainerDat
aStreamException: javax.naming.NameNotFoundException: Context: WIN-83OQEFICNTPNode01Cell/nodes/WIN-83OQEFICNTPNode01/servers/server1, name: jdbc/Account: First component in name Account not found. [Root exception is org.omg.CosNaming.NamingContextPac
kage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
***************************

i wonder if i write do somthing else in my ejb.xml file ?

email:s.daouiji@gmail.com