-
1. Re: Access ModeShape repository via JNDI with JBoss
bcarothers May 21, 2010 6:00 PM (in response to jbrelet)I may be way off-base here, but the error message looks like you either have the wrong config setting in the right file, or the right config setting in the wrong file. Could you please attach your config file? Also, what's the path to the file from JBOSS_HOME?
Thanks!
-
2. Re: Access ModeShape repository via JNDI with JBoss
van.halbert Jun 27, 2010 11:52 AM (in response to bcarothers)The reference above, http://www.ncvvo.hr/docs/jndi-resources-howto.html talks about putting the context.xml into the META-INF directory. However, this; http://community.jboss.org/wiki/UsingContextDotXML says to place it into the WEB-INF directory. When I placed the context.xml in the META-INF directory, with the web-xml and jboss-web.xml changes, there we no parsing errors, but the jndi name was never bound. I couldn't see it in the logs or using JNDIView. However, when I placed it in the WEB-INF directory, I got the same parsing error. I'm still searching for the answer for this type of deployment.
-
3. Re: Access ModeShape repository via JNDI with JBoss
van.halbert Jul 6, 2010 12:02 PM (in response to van.halbert)Here's snippit from the jboss-beans.xml that performs jndi binding:
<deployment xmlns="urn:jboss:bean-deployer:2.0">
<interceptor xmlns="urn:jboss:aop-beans:1.0" name="JndiAspect" class="org.jboss.aop.microcontainer.aspects.jndi.JndiIntroduction">
<property name="env">
<map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
<entry><key>java.naming.factory.initial</key><value>org.jnp.interfaces.NamingContextFactory</value></entry>
</map>
</property>
</interceptor>
<introduction xmlns="urn:jboss:aop-beans:1.0" class="@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding">
<interfaces>org.jboss.kernel.spi.dependency.KernelControllerContextAware</interfaces>
</introduction>
<bind xmlns="urn:jboss:aop-beans:1.0" pointcut="execution(* $instanceof{org.jboss.kernel.spi.dependency.KernelControllerContextAware}->$implements{org.jboss.kernel.spi.dependency.KernelControllerContextAware}(..))">
<interceptor-ref name="JndiAspect"/>
</bind>
<bean name="<yourname>" class="<yourclass>" >
<annotation>@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="<jndiname>")</annotation>
</bean>