Re: [JBoss-user] problem accessing EJBs from Web Container in 3.0RC1

2002-04-25 Thread David Ward

Pavel,

If, on production, you will be running web container on another box, 
you're right that you can't use local interfaces, and you will need 
those remote interfaces in your war.

Until this 3.0 bug is resolved
http://sourceforge.net/tracker/index.php?func=detail&aid=548668&group_id=22866&atid=376685

you will have to either:
1) develop withOUT the remote interfaces in your war, OR
2) develop with war deployed in one jvm instance and ejb's in another 
(kind of a pain but models your production environment more closely)

David

--

Pavel Kolesnikov wrote:
> On Thu, 25 Apr 2002, David Ward wrote:
> 
> 
>>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 
> 
> 
> Your guess is excellent, thanks a lot.
> 
> 
>>As a side note, if in fact you are using 3.0, why aren't you using local 
>>interfaces?
> 
> 
> Two reasons:
> 
> 1, I've started to write my beans under 2.4, I'm just switching
>to 3.0 and I haven't done all changes I want to 
> 2, web container is supposed to run on another machine than JBoss
>in production environment
> 
> I hope it makes sense.
> 
> Pavel
> 



-- 

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


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



Re: [JBoss-user] problem accessing EJBs from Web Container in 3.0RC1

2002-04-25 Thread Pavel Kolesnikov

On Thu, 25 Apr 2002, David Ward wrote:

> 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 

Your guess is excellent, thanks a lot.

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

Two reasons:

1, I've started to write my beans under 2.4, I'm just switching
   to 3.0 and I haven't done all changes I want to 
2, web container is supposed to run on another machine than JBoss
   in production environment

I hope it makes sense.

Pavel


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



RE: [JBoss-user] problem accessing EJBs from Web Container in 3.0RC1

2002-04-25 Thread Alex Loubyansky

  Do you have ejb interfaces in your war file? If you do, remove them from
the war.

alex

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Pavel Kolesnikov
> Sent: Thursday, April 25, 2002 5:14 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] problem accessing EJBs from Web
> Container in 3.0RC1
>
>
> 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.i
nvokeHome(StatelessSessionContainer.java:598)
>  at
> org.jboss.resource.connectionmanager.CachedConnectionIntercept
> or.invokeHome(CachedConnectionInterceptor.java:167)
>  at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invo
> keHome(StatelessSessionInstanceInterceptor.java:57)
>  at
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstrac
tTxInterceptor.java:98)
>  at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
nterceptorCMT.java:167)
>  at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxIntercepto
rCMT.java:52)
>  at
> org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityI
nterceptor.java:104)
>  at
> org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor
.java:109)
>  at
> org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSe
ssionContainer.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(InvokerIntercep
tor.java:102)
>  at
> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInter
ceptor.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:
> 
>   UserManager
>   net.templation.juristic.as.ejb.sessions.UserManagerHome
>   net.templation.juristic.as.ejb.sessions.UserManager
>
> net.templation.juristic.as.ejb.sessions.UserManager
EJB
>   Stateless
>   Container
> 
>
> jboss.xml:
> 
>
> 
> UserManager
> juristic/UserManager
> 
>
> 
>
> web.xml:
> 
> 
>   
> juristic/UserManager
> Session
>
> net.templation.juristic.as.ejb.sessions.UserManagerHome
>
> net.templation.juristic.as.ejb.sessions.UserManager
>   
> 
>
> jboss-web.xml:
> 
>
>  juristic/UserManager
>  juristic/UserManager
>
> 
>
> 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


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



Re: [JBoss-user] problem accessing EJBs from Web Container in 3.0RC1

2002-04-25 Thread David Ward

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:
> 
>   UserManager
>   net.templation.juristic.as.ejb.sessions.UserManagerHome
>   net.templation.juristic.as.ejb.sessions.UserManager
>  net.templation.juristic.as.ejb.sessions.UserManagerEJB
>   Stateless
>   Container
> 
> 
> jboss.xml:
> 
>
> 
> UserManager
> juristic/UserManager
> 
>
> 
> 
> web.xml:
> 
> 
>   
> juristic/UserManager
> Session
> net.templation.juristic.as.ejb.sessions.UserManagerHome
> net.templation.juristic.as.ejb.sessions.UserManager
>   
> 
> 
> jboss-web.xml:
> 
>
>  juristic/UserManager
>  juristic/UserManager
>
> 
> 
> 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



[JBoss-user] problem accessing EJBs from Web Container in 3.0RC1

2002-04-25 Thread Pavel Kolesnikov

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:

  UserManager
  net.templation.juristic.as.ejb.sessions.UserManagerHome
  net.templation.juristic.as.ejb.sessions.UserManager
 net.templation.juristic.as.ejb.sessions.UserManagerEJB
  Stateless
  Container


jboss.xml:

   

UserManager
juristic/UserManager

   


web.xml:


  
juristic/UserManager
Session
net.templation.juristic.as.ejb.sessions.UserManagerHome
net.templation.juristic.as.ejb.sessions.UserManager
  


jboss-web.xml:

   
 juristic/UserManager
 juristic/UserManager
   


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