You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ju...@t-systems.com on 2003/08/06 14:54:57 UTC
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
>
>