Attribute names are case sensitive.
<attribute name="JNDIName">external/fs/mike</attribute>
must be:
<attribute name="JndiName">external/fs/mike</attribute>
----- Original Message -----
From: "Michael Azzi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 18, 2001 2:32 PM
Subject: [JBoss-user] External JNDI Configuration for a Filesystem
> Hi,
>
> I am trying to incorporate my filesystem directories into the JBoss server
> JNDI namespace, using the ExternalContext JNDI MBean. But I am not
> having any luck whatsoever, and I would really appreciate some help.
> I followed Scott Stark's tutorial for this, and as the tutorial suggested
> I first added the ExternalContext MBean to the jboss.cml file, like so:
>
> <!-- Bind the mike filesystem directory -->
> <mbean code="org.jboss.naming.ExternalContext"
> name="DefaultDomain:service=ExternalContext,jndiName=external/fs/mike">
> <attribute name="JNDIName">external/fs/mike</attribute>
> <attribute name="Properties">mike_fs.properties</attribute>
> <attribute name="InitialContext">javax.naming.InitialContext</attribute>
> <attribute name="LoggingEnabled">true</attribute>
> </mbean>
>
> Then, I created a mike_fs.properties file that has the following content,
>
> java.naming.factory.initial=com.sun.jndi.fscontext.FSContextFactory
> java.naming.provider.url=file:///mazzi
> #java.naming.factory.url.pkgs=org.jboss.naming
>
> and put in the jboss/conf/tomcat directory.
> I also downloaded the JNDI File System Service Provider package
> and put it in the jboss/lib/ext directory.
>
> The problem happens at start up time when I get the exception below.
> I am running JBoss2.2.1/Tomcat3.2.1, jdk1.3.1, on NT4.
>
> Thanks in advance,
> Mike.
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user