Tarun Bindal

Greenhorn
+ Follow
since Oct 07, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tarun Bindal

Hi,
I am running WSAD 5.1.1. I created a entity bean with a local home interface and i try to call it from my web module.I defined the EJB local reference in the Web Deployment Descriptor
<ejb-local-ref id="EJBLocalRef_1098372394984">
<ejb-ref-name>ejb/XMLMsgs</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.msgejbs.XMLMsgsLocalHome</local-home>
<local>com.msgejbs.XMLMsgsLocal</local>
<ejb-link>XMLMsgs</ejb-link>
</ejb-local-ref>

and i am trying to access this bean from the web module.When i use this code
Context initial = new InitialContext();
Object objref = initial.lookup("ejb/XMLMsgs");
XMLMsgsLocalHome home = (XMLMsgsLocalHome)objref;

It gives me this error
============================
avax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: ejb/XMLMsgs: First component in name ejb/XMLMsgs not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOptimizedNamingImpl.java:1983)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNamingContext(WsnOptimizedNamingImpl.java:1320)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.getTargetContext(WsnOptimizedNamingImplBase.java:2424)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$LeafOperationData.<init>(WsnOptimizedNamingImplBase.java:2877)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1390)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com
===========================================
and i also tried using this

Context initial = new InitialContext();
Object objref = initial.lookup("local:ejb/XMLMsgs");
XMLMsgsLocalHome home = (XMLMsgsLocalHome)objref;

( I read somewhere that with WSAD you have to prefix it with local: )
but then i start getting the following error..
=======================================================
javax.naming.NameNotFoundException: Name "ejb/EmailMsgs" not found in context "local:".
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1021)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:932)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1261)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1253)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1307)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:360)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.scholastic.sys.email.DBEmailSenderTask.ProcessDBEmails(DBEmailSenderTask.java:71)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at co
======================================================

Can't figure out what i am missing/doing wrong?I am tried going thru literally all the docs out there but can't seem to figure out..

Please help!!

Thanks in Advance,
I am sorry.The local EJB Reference defined is
<ejb-local-ref id="EJBLocalRef_1098372394984">
<ejb-ref-name>ejb/XMLMsgs</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.msgejbs.XMLMsgsLocalHome</local-home>
<local>com.msgejbs.XMLMsgsLocal</local>
<ejb-link>XMLMsgs</ejb-link>
</ejb-local-ref>

Sorry..
16 years ago
Hi,
I am running WSAD 5.1.1. I created a entity bean with a local home interface and i try to call it from my web module.I defined the EJB local reference in the Web Deployment Descriptor
<ejb-local-ref id="EJBLocalRef_1098309268316">
<ejb-ref-name>ejb/MsgSender</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.msgejbs.MsgSenderLocalHome</local-home>
<local>com.msgejbs.MsgSenderLocal</local>
<ejb-link>MsgSender</ejb-link>
</ejb-local-ref>

and i am trying to access this bean from the web module.When i use this code
Context initial = new InitialContext();
Object objref = initial.lookup("ejb/XMLMsgs");
XMLMsgsLocalHome home = (XMLMsgsLocalHome)objref;

It gives me this error
============================
avax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: ejb/XMLMsgs: First component in name ejb/XMLMsgs not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOptimizedNamingImpl.java:1983)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNamingContext(WsnOptimizedNamingImpl.java:1320)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.getTargetContext(WsnOptimizedNamingImplBase.java:2424)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$LeafOperationData.<init>(WsnOptimizedNamingImplBase.java:2877)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1390)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
[10/21/04 12:25:34:359 EDT] aa274ca SystemErr R at com
===========================================
and i also tried using this

Context initial = new InitialContext();
Object objref = initial.lookup("local:ejb/XMLMsgs");
XMLMsgsLocalHome home = (XMLMsgsLocalHome)objref;

( I read somewhere that with WSAD you have to prefix it with local: )
but then i start getting the following error..
=======================================================
javax.naming.NameNotFoundException: Name "ejb/EmailMsgs" not found in context "local:".
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1021)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:932)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1261)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1253)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1307)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:360)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at com.scholastic.sys.email.DBEmailSenderTask.ProcessDBEmails(DBEmailSenderTask.java:71)
[10/21/04 12:25:09:047 EDT] aa174ca SystemErr R at co
======================================================

Can't figure out what i am missing/doing wrong?I am tried going thru literally all the docs out there but can't seem to figure out..

Please help!!

Thanks in Advance,
16 years ago
Hi samou,

Thanks for the prompt reply.I read that document and configured a generic JMS provider but now i get the following error --

[10/8/04 17:30:01:557 EDT] 3cc9c6cd ServletInstan E SRVE0100E: Did not realize init() exception thrown by servlet SigMessagingInitServlet: javax.servlet.ServletException: Can't find library mqjbnd05 (mqjbnd05.dll) in sun.boot.library.path or java.library.path
sun.boot.library.path=C:\IBM\WebSphere Studio\runtimes\base_v51\java\jre\bin
java.library.path=C:\IBM\WebSphere Studio\runtimes\base_v51/bin;C:\IBM\WebSphere Studio\runtimes\base_v51/java/bin;C:\IBM\WebSphere Studio\runtimes\base_v51/java/jre/bin;C:\IBM\WebSphere Studio\eclipse\jre\bin;.;C:\IBM\WebSphere Studio\eclipse\jre\bin;C:\Program Files\Perl\bin\;\\PVCS\PVCSAPPS\VM\win32\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\SQLLIB\BIN;C:\Program Files\IBM\MQSeries\bin;C:\Program Files\IBM\MQSeries\tools\c\samples\bin;C:\IBM\MQSeries\Java\bin;C:\Program Files\Symantec\pcAnywhere;C:\IBM\WebSphere Studio\runtimes\base_v51\java\bin;C:\apache-ant-1.6.2\bin;C:\Program Files\GNU\WinCvs 1.3\CVSNT;c:\CommerceStudioEnhancements\bin
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
================

I have mqjbnd02.dll in the MA88 lib directory but not the 05 file.I searched for it but didn't find it anywhere.Do i need to install a patch on top of MA88 or something?

Thanks in advance,
Tarun
17 years ago
Hi,
I was using WSAD4.0 with MQ5.2 as the JMS provider.Recently we upgraded to WSAD5.1 but we have not upgraded the MQ version. We are still planning to use J2EE 1.2 and MQ 5.2 and NO MDBs but i am having difficulty configuring. Is there a document somewhere which tells how to configure between WSAD5.1.1 and MQ 5.2? I went through a lot of documents but all of them have MDBs and J2EE 1.3. I installed the embedded messaging client only. When i point my MQJMS_LIB to the MA88 package it gives me that field runninginWebsphere not found.
This is kind of urgent.We have to decide in a day or two if we can configure with this environment or we need to move back to WAS4.0?

Thanks in advance,
Tarun
17 years ago