Hi oleg,

sorry, but I didn't find the solution. Because I do only need the JNDI
to configure some variables, I've change this into the
Cocoon->Configurable way. It's only a workaround for my special problem.

But this doesn't work for your JNDI Resource. 

Do you have tried to access the XChangeDS over a 'global JNDI' name, and
not the recommended relative name, like java:/XChangeDS on JBoss e.g.?


MfG
    Steffen...
 

> -----Original Message-----
> From: Oleg Konovalov [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 08, 2005 4:10 PM
> To: [email protected]; Stundzig, Steffen
> Subject: Re: JNDI Problem
> 
> Steffen,
> 
> I have a pretty similar problem (when trying to send e-mail
> notification), getting:
> MessagingException: javax.naming.NameNotFoundException: 
> XChangeDS not bound
> 
> That happens only on one server, same code (and practically
> identical configuration) runs fine on 3 others.
> We also use Cocoon 2.0.4 and JBoss [3.0.7]
> 
> Were you able to find the cause and solution ?
> 
> Thank you in advance,
> Oleg.
> 
> 
> --- "Stundzig, Steffen" <[EMAIL PROTECTED]> wrote:
> 
> > Hi folks,
> > 
> > I've a problem with a jndi lookup in my Action class. I've
> > read the
> > guides and searched the mail archives, but I don't get it to
> > work.
> > 
> > The config:
> > - web.xml
> >   <env-entry>
> >     <env-entry-name>myvar</env-entry-name>
> >     <env-entry-value>something</env-entry-value>
> >     <env-entry-type>java.lang.String</env-entry-type>
> >   </env-entry>
> > 
> > - in my action impl  
> >   new InitialContext().lookup("java:comp/env/myvar");
> > 
> > but the lookup throws a NameNotFoundException: env not bound.
> > The
> > Debugger affirmed it. If I do exactly the same with another
> > servlet,
> > with the lookup code directly in the 'doGet'-method it works
> > as
> > expected.
> > 
> > What can I do? Did I missed something?
> > 
> > I've tested it with cocoon 2.0.4 on JBoss 4.0.2/tomcat 5.0.28.
> > 
> > 
> > MfG
> >     Steffen...
> >  
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to