The problem was spaces in the path to the ejb jar.
"Joshua M. White" wrote:
> In jBoss, from within a bean, can you just call InitialContext ctx = new
> InitalContext(); and do your JNDI lookup on another bean? Is there some
> special configuration needed to do this? I keep getting
>
> [Session1Bean] javax.naming.CommunicationException [Root exception is
> java.net.MalformedURLException: no
> protocol:Files/jboss/bin/../tmp/deploy/TwoBeans.jar/ejb1008.jar]
>
> when I try to do the lookup.
>
> From an external client, it works fine, after I set
>
> System.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> System.setProperty("java.naming.provider.url",
> "localhost:1099");
>
> But, this doesn't work on the server.
>
> Any ideas?
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]