jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blanco Emanuele <e.bla...@reply.it>
Subject RE: accessing JCR over JNDI
Date Fri, 10 Oct 2008 09:33:31 GMT
With almost the same code in a WAR deployed in the same jboss makes me repo null.

I really have no glue about that.

-----Original Message-----
From: Cédric Chantepie [mailto:cchantepie@corsaire.fr]
Sent: venerdì 10 ottobre 2008 11.31
To: users@jackrabbit.apache.org
Subject: Re: accessing JCR over JNDI

Blanco Emanuele a écrit :
> I'm deploying the web application on the same JBoss... this is the reason why I wonder
it still won't work. It should work like you tell me... can you post your web.xml, jboss-web.xml
and code where you make the lookup?
I've nothing related to JNDI in my web.xml or jboss-web.xml, and my
lookup is as following :

InitialContext ctx = new InitialContext();
Repository repo = (Repository) ctx.lookup("java:jcr/MyRepo");


The information transmitted is intended for the person or entity to which it is addressed
and may contain confidential and/or privileged material. Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received this in error, please
contact the sender and delete the material from any computer.

View raw message