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:[EMAIL PROTECTED] Sent: venerdì 10 ottobre 2008 11.31 To: [email protected] 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"); Cédric -- 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.
