You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Oleg Konovalov <ol...@yahoo.com> on 2005/09/08 16:09:36 UTC
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" <St...@gdmcom.de> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org