> I have tried this in Resin and it is working. It seems to be a configuration-problem 
> with tomcat. Has anyone an idea?
> 
> Juraj
> 
>  -----Ursprüngliche Nachricht-----
> Von:  Lenharcik, Juraj  
> Gesendet:     Mittwoch, 6. August 2003 14:55
> An:   '[EMAIL PROTECTED]'
> Betreff:      InvocationTargetException calling EJB
> 
> 
> Hi,
> 
> I use a AXIS-webservice (deployed on TC outside Jboss) to call an EJB (Jboss). I get 
> on this line an InvocationTargetException :
> 
>             connProps.put(InitialContext.INITIAL_CONTEXT_FACTORY,factory);
>             connProps.put(InitialContext.PROVIDER_URL, location);
>             connProps.put(InitialContext.URL_PKG_PREFIXES, pkgs);
> ==>      InitialContext initialContext = new InitialContext(connProps);
> 
> junit.framework.AssertionFailedError: java.lang.reflect.InvocationTargetException
> When I call it without the Properties, everything runs. Also when I run it from a 
> standalone client it works. Only from the Webapplication it doesn`t run.
> 
> DEBUG [Thread-4] (EJBBackend.java:38) - starting banfbackend
> DEBUG [Thread-4] (EJBBackend.java:43) - properties: {java.naming.provider.url=jn
> p://localhost:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContext
> Factory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
> DEBUG [Thread-4] (EJBBackend.java:49) - org.jnp.interfaces.NamingContextFactory
> DEBUG [Thread-4] (EJBBackend.java:50) - jnp://localhost:1099
> DEBUG [Thread-4] (EJBBackend.java:51) - org.jboss.naming:org.jnp.interfaces
> 
> The jars jbossall-client, jboss-client, jnp-client are in WEB-INF/lib.
> 
> Have I missed something?
> 
> Juraj
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to