I'm assuming your using the jbossrc1-tomcat4 bundle, and further 
guessing your hitting a bug I and others have found but I have yet to 
report at sourceforge (will today, I promise!).

If my guess is correct, you have your home and remote interface classes 
included in your war file.  Take them out (I know that's against spec) 
and things should work properly.  Our guess is that it's something with 
the servlet 2.3 classloader in tomcat4 and/or in conjunction with 
jboss3's unified classloader.

As a side note, if in fact you are using 3.0, why aren't you using local 
interfaces?

David

--

Pavel Kolesnikov wrote:
> Hello,
> 
> I'm trying to make my application working using jboss.xml
> and jboss-web.xml configuration files, unfortunatelly I'm
> getting just user-unfriendly exception:
> 
>  java.lang.NullPointerException 
>      at 
>org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:598)
>      at 
>org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:167)
>      at 
>org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:57)
>      at 
>org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
>      at 
>org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
>      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
>      at 
>org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:104)
>      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
>      at 
>org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300)
>      at org.jboss.ejb.Container.invoke(Container.java:727)
>      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
>      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
>      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
>      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
>      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
>      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
>      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
>      at $Proxy155.create(Unknown Source)
>      ...
> 
> My ejb-jar.xml contains:
> <session>
>   <ejb-name>UserManager</ejb-name>
>   <home>net.templation.juristic.as.ejb.sessions.UserManagerHome</home>
>   <remote>net.templation.juristic.as.ejb.sessions.UserManager</remote>
>  <ejb-class>net.templation.juristic.as.ejb.sessions.UserManagerEJB</ejb-class>
>   <session-type>Stateless</session-type>
>   <transaction-type>Container</transaction-type>
> </session>
> 
> jboss.xml:
> <jboss>
>    <enterprise-beans>
>         <session>
>             <ejb-name>UserManager</ejb-name>
>             <jndi-name>juristic/UserManager</jndi-name>
>         </session>
>    </enterprise-beans>
> </jboss>
> 
> web.xml:
> <web-app>
> <!-- ... -->
>   <ejb-ref>
>     <ejb-ref-name>juristic/UserManager</ejb-ref-name>
>     <ejb-ref-type>Session</ejb-ref-type>
>     <home>net.templation.juristic.as.ejb.sessions.UserManagerHome</home>
>     <remote>net.templation.juristic.as.ejb.sessions.UserManager</remote>
>   </ejb-ref>
> </web-app>
> 
> jboss-web.xml:
> <jboss-web>
>    <ejb-ref>
>      <ejb-ref-name>juristic/UserManager</ejb-ref-name>
>      <jndi-name>juristic/UserManager</jndi-name>
>    </ejb-ref>
> </jboss-web>
> 
> and finally in my servlet I'm looking for "juristic/UserManager".
> 
> Does anybody have an idea what could be wrong?
> 
> Thanks a lot
> 
> Pavel
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-- 

---------------------
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to