• Post Reply Bookmark Topic Watch Topic
  • New Topic

HF EJB deployment issue (w/ Sun's JSC)

 
Steven Deal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I just picked up HF EJB yesterday and sat down on my computer to write/deploy the first example (AdviceApp). Out of lazyiness or foolishness, I attempted to work through these exercises using Sun's Studio Creator software I installed a few weeks back (after all, it already put a deploytool on my drive). However, the deploytool seems to be organized a bit differently, no prompting for the JNDI name prior to deployment (although, under "Sun specific settings" there is a JNDI section). So, my question is really this. Have I done something silly in deploying this first example or are the differences I'm seeing due to J2EE versions? BTW, here is a trace once I try to invoke my "AdviceClient"...
javax.naming.NoInitialContextException: Need to specify class name in environment or system property
, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(AdviceClient.java:24)
at AdviceClient.main(AdviceClient.java:18)

*** Update *** for anyone losing sleep over my troubles.. I've successfully used the first HF EJB demo with Sun's Creator tutorial "Accessing and Using Session EJB Components".. obviously the preceeding was user error.
[ June 11, 2004: Message edited by: Steven Deal ]
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this error thrown after you do:

InitialContext ctx = new InitialContext();

Like maybe it's thrown when you try:

Object obj = ctx.lookup("java:comp/env/ejb/AdviceBean");

??

--Dale--
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!