Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Accessing my jndiContext.lookup from Dos

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to execute a dos command which calls a class which then uses some EJB's in it's processing.
I keep getting errors at the line jndiContext.lookup("java:comp/env/ejb/" + ejbName); in my class
I have added the fscontext.jar and providerutil.jar files to my lib folder, and added them to my classpath's in my dos command, but this still has not resolved my problem.
My EJB jar files are stored under the deploy folder under my JRun server.
Do you know what I do if I am to replace the line ("java:comp/env/ejb/" + ejbName); in my class. Do I use somew other line of code to reference my EJB's or do I need to add somethign to make them accessible using the line above.
Any help on this would be greatly appreciated.
Note: My EJB's worked fine when i used them from servlets and JSP. It just seems to be a problem i am getting through Dos.
[ January 27, 2003: Message edited by: Fergus Red ]
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Fergus Red,
fscontext.jar and providerutils.jar are used to access files in the file system using JNDI.
You are trying to access the reference of the EJB's home in the LDAP directory using JNDI. You have to provide the supporting classes for accessing the LDAP/JNDI implementation available with you application server.
Please provide me the details of the app server which you are using so that I can provide some more information.
--------------------
vijay
 
Fergus Red
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is a Jrun 3.1 server
 
Fergus Red
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note also: I have placed the jndi.jar file in H:\Allaire\JRun\servers\ormoe1x1\default-app\WEB-INF\classes folder and reference this is in my classpaths in dos
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic