[JBoss-user] CMP: Local vs. Remote Interface

2003-09-29 Thread Frank Morton
I have a bunch of entity beans only running with local interfaces.

I use a session bean facade for accessing these entity beans along
with value objects.
Been running in a single JVM for some time without problems.

Now want to move to running the servlet container on a separate
system. When I move things over, I get the following exception
below. Am I going to have to use remote interfaces with the entity
beans (which I thought I was avoiding with the session facade)?
Using 3.2.0RC2 in this case.

Thanks.

javax.naming.CommunicationException.  Root exception is  
java.lang.ClassNotFoundException:  
org.jboss.ejb.plugins.local.LocalHomeProxy (no security manager: RMI  
class loader disabled)
at  
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
at  
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
at  
java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at  
java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at  
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:2 
00)
at  
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at  
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at  
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626 
)
at  
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at  
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at  
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at  
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646 
)
at  
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at  
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at  
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
at  
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at  
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at  
com.base2inc.bean.util.Factory.getProfileHome(Factory.java:136)
at  
com.base2inc.bean.value.object.ProfileValueObject.update(ProfileValueObj 
ect.java:904)
at  
com.base2inc.bean.util.CompositeContainer.update(CompositeContainer.java 
:141)
at  
com.base2inc.bean.util.ProtectedContainer.update(ProtectedContainer.java 
:168)
at  
com.base2inc.evaluate.profile.EditProfileStore.run(EditProfileStore.java 
:133)
at  
com.base2inc.app.framework.JspFramework.doService(JspFramework.java:311)
at  
com.base2inc.app.util.HttpServletExtended.doPost(HttpServletExtended.jav 
a:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at  
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356)
at  
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH 
andler.java:294)
at  
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1723)
at  
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon 
text.java:514)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1673)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at  
org.mortbay.http.HttpConnection.service(HttpConnection.java:783)
at  
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:945)
at  
org.mortbay.http.HttpConnection.handle(HttpConnection.java:800)
at  
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201 
)
at  
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at  
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:454)



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMP: Local vs. Remote Interface

2003-09-29 Thread Frank Morton
I'm learning this has something to do with the security manager, but
haven't yet found anything helpful. Any pointers anyone?
On Monday, September 29, 2003, at 12:18  PM, Frank Morton wrote:

I have a bunch of entity beans only running with local interfaces.

I use a session bean facade for accessing these entity beans along
with value objects.
Been running in a single JVM for some time without problems.

Now want to move to running the servlet container on a separate
system. When I move things over, I get the following exception
below. Am I going to have to use remote interfaces with the entity
beans (which I thought I was avoiding with the session facade)?
Using 3.2.0RC2 in this case.

Thanks.

javax.naming.CommunicationException.  Root exception is  
java.lang.ClassNotFoundException:  
org.jboss.ejb.plugins.local.LocalHomeProxy (no security manager: RMI  
class loader disabled)
at  
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
at  
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
at  
java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at  
java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at  
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java: 
200)
at  
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at  
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at  
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:162 
6)
at  
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at  
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845 
)
at  
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at  
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:164 
6)
at  
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at  
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at  
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
at  
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at  
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at  
com.base2inc.bean.util.Factory.getProfileHome(Factory.java:136)
at  
com.base2inc.bean.value.object.ProfileValueObject.update(ProfileValueOb 
ject.java:904)
at  
com.base2inc.bean.util.CompositeContainer.update(CompositeContainer.jav 
a:141)
at  
com.base2inc.bean.util.ProtectedContainer.update(ProtectedContainer.jav 
a:168)
at  
com.base2inc.evaluate.profile.EditProfileStore.run(EditProfileStore.jav 
a:133)
at  
com.base2inc.app.framework.JspFramework.doService(JspFramework.java:311 
)
at  
com.base2inc.app.util.HttpServletExtended.doPost(HttpServletExtended.ja 
va:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at  
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356)
at  
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplication 
Handler.java:294)
at  
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567 
)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1723)
at  
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCo 
ntext.java:514)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1673)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at  
org.mortbay.http.HttpConnection.service(HttpConnection.java:783)
at  
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:945)
at  
org.mortbay.http.HttpConnection.handle(HttpConnection.java:800)
at  
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:20 
1)
at  
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at  
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:454)



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMP: Local vs. Remote Interface

2003-09-29 Thread Adrian Brock
No,

You are trying to access a local interface from a remote machine.
Probably because you passing back a collection from a CMR get()?

Regards,
Adrian

On Mon, 2003-09-29 at 22:38, Frank Morton wrote:
 I'm learning this has something to do with the security manager, but
 haven't yet found anything helpful. Any pointers anyone?
 
 On Monday, September 29, 2003, at 12:18  PM, Frank Morton wrote:
 
  I have a bunch of entity beans only running with local interfaces.
 
  I use a session bean facade for accessing these entity beans along
  with value objects.
 
  Been running in a single JVM for some time without problems.
 
  Now want to move to running the servlet container on a separate
  system. When I move things over, I get the following exception
  below. Am I going to have to use remote interfaces with the entity
  beans (which I thought I was avoiding with the session facade)?
 
  Using 3.2.0RC2 in this case.
 
  Thanks.
 
  javax.naming.CommunicationException.  Root exception is  
  java.lang.ClassNotFoundException:  
  org.jboss.ejb.plugins.local.LocalHomeProxy (no security manager: RMI  
  class loader disabled)
  at  
  sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
  at  
  sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
  at  
  java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
  at  
  java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
  at  
  sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java: 
  200)
  at  
  java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
  at  
  java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
  at  
  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:162 
  6)
  at  
  java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at  
  java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845 
  )
  at  
  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
  at  
  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:164 
  6)
  at  
  java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at  
  java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
  at  
  org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
  at  
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
  at  
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
  at javax.naming.InitialContext.lookup(InitialContext.java:347)
  at  
  com.base2inc.bean.util.Factory.getProfileHome(Factory.java:136)
  at  
  com.base2inc.bean.value.object.ProfileValueObject.update(ProfileValueOb 
  ject.java:904)
  at  
  com.base2inc.bean.util.CompositeContainer.update(CompositeContainer.jav 
  a:141)
  at  
  com.base2inc.bean.util.ProtectedContainer.update(ProtectedContainer.jav 
  a:168)
  at  
  com.base2inc.evaluate.profile.EditProfileStore.run(EditProfileStore.jav 
  a:133)
  at  
  com.base2inc.app.framework.JspFramework.doService(JspFramework.java:311 
  )
  at  
  com.base2inc.app.util.HttpServletExtended.doPost(HttpServletExtended.ja 
  va:64)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at  
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356)
  at  
  org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplication 
  Handler.java:294)
  at  
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567 
  )
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1723)
  at  
  org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCo 
  ntext.java:514)
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1673)
  at org.mortbay.http.HttpServer.service(HttpServer.java:879)
  at  
  org.mortbay.http.HttpConnection.service(HttpConnection.java:783)
  at  
  org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:945)
  at  
  org.mortbay.http.HttpConnection.handle(HttpConnection.java:800)
  at  
  org.mortbay.http.SocketListener.handleConnection(SocketListener.java:20 
  1)
  at  
  org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
  at  
  org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:454)
 
 
 
 
  ---
  This sf.net email is sponsored by:ThinkGeek
  Welcome to geek heaven.
  http://thinkgeek.com/sf
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  

Re: [JBoss-user] CMP: Local vs. Remote Interface

2003-09-29 Thread Frank Morton
No CMRs or Collections. Just finder methods by a primary key.

Accessing a stateless session bean from a remote machine
(actually a different jvm on the same machine planning to move
to a remote machine). The stateless session bean has a remote
interface. The stateless session beans in turn call entity beans
using local interfaces.
Frank

On Monday, September 29, 2003, at 04:44  PM, Adrian Brock wrote:

No,

You are trying to access a local interface from a remote machine.
Probably because you passing back a collection from a CMR get()?
Regards,
Adrian
On Mon, 2003-09-29 at 22:38, Frank Morton wrote:
I'm learning this has something to do with the security manager, but
haven't yet found anything helpful. Any pointers anyone?
On Monday, September 29, 2003, at 12:18  PM, Frank Morton wrote:

I have a bunch of entity beans only running with local interfaces.

I use a session bean facade for accessing these entity beans along
with value objects.
Been running in a single JVM for some time without problems.

Now want to move to running the servlet container on a separate
system. When I move things over, I get the following exception
below. Am I going to have to use remote interfaces with the entity
beans (which I thought I was avoiding with the session facade)?
Using 3.2.0RC2 in this case.

Thanks.

javax.naming.CommunicationException.  Root exception is
java.lang.ClassNotFoundException:
org.jboss.ejb.plugins.local.LocalHomeProxy (no security manager: RMI
class loader disabled)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
at
java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at
java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.jav 
a:
200)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151 
3)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1 
62
6)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18 
45
)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1 
64
6)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:3 
0)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at  
javax.naming.InitialContext.lookup(InitialContext.java:347)
at
com.base2inc.bean.util.Factory.getProfileHome(Factory.java:136)
at
com.base2inc.bean.value.object.ProfileValueObject.update(ProfileValue 
Ob
ject.java:904)
at
com.base2inc.bean.util.CompositeContainer.update(CompositeContainer.j 
av
a:141)
at
com.base2inc.bean.util.ProtectedContainer.update(ProtectedContainer.j 
av
a:168)
at
com.base2inc.evaluate.profile.EditProfileStore.run(EditProfileStore.j 
av
a:133)
at
com.base2inc.app.framework.JspFramework.doService(JspFramework.java:3 
11
)
at
com.base2inc.app.util.HttpServletExtended.doPost(HttpServletExtended. 
ja
va:64)
at  
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at  
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356 
)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati 
on
Handler.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5 
67
)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1723)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication 
Co
ntext.java:514)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1673)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at
org.mortbay.http.HttpConnection.service(HttpConnection.java:783)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:945)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:800)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 
20
1)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:454)



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Re: [JBoss-user] CMP: Local vs. Remote Interface

2003-09-29 Thread Adrian Brock
What does getProfileHome() lookup?

Regards,
Adrian

On Tue, 2003-09-30 at 01:04, Frank Morton wrote:
 No CMRs or Collections. Just finder methods by a primary key.
 
 Accessing a stateless session bean from a remote machine
 (actually a different jvm on the same machine planning to move
 to a remote machine). The stateless session bean has a remote
 interface. The stateless session beans in turn call entity beans
 using local interfaces.
 
 Frank
 
 On Monday, September 29, 2003, at 04:44  PM, Adrian Brock wrote:
 
  No,
 
  You are trying to access a local interface from a remote machine.
  Probably because you passing back a collection from a CMR get()?
 
  Regards,
  Adrian
 
  On Mon, 2003-09-29 at 22:38, Frank Morton wrote:
  I'm learning this has something to do with the security manager, but
  haven't yet found anything helpful. Any pointers anyone?
 
  On Monday, September 29, 2003, at 12:18  PM, Frank Morton wrote:
 
  I have a bunch of entity beans only running with local interfaces.
 
  I use a session bean facade for accessing these entity beans along
  with value objects.
 
  Been running in a single JVM for some time without problems.
 
  Now want to move to running the servlet container on a separate
  system. When I move things over, I get the following exception
  below. Am I going to have to use remote interfaces with the entity
  beans (which I thought I was avoiding with the session facade)?
 
  Using 3.2.0RC2 in this case.
 
  Thanks.
 
  javax.naming.CommunicationException.  Root exception is
  java.lang.ClassNotFoundException:
  org.jboss.ejb.plugins.local.LocalHomeProxy (no security manager: RMI
  class loader disabled)
  at
  sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
  at
  sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
  at
  java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
  at
  java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
  at
  sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.jav 
  a:
  200)
  at
  java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151 
  3)
  at
  java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
  at
  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1 
  62
  6)
  at
  java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at
  java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18 
  45
  )
  at
  java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
  at
  java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1 
  64
  6)
  at
  java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at
  java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
  at
  org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:3 
  0)
  at
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
  at
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
  at  
  javax.naming.InitialContext.lookup(InitialContext.java:347)
  at
  com.base2inc.bean.util.Factory.getProfileHome(Factory.java:136)
  at
  com.base2inc.bean.value.object.ProfileValueObject.update(ProfileValue 
  Ob
  ject.java:904)
  at
  com.base2inc.bean.util.CompositeContainer.update(CompositeContainer.j 
  av
  a:141)
  at
  com.base2inc.bean.util.ProtectedContainer.update(ProtectedContainer.j 
  av
  a:168)
  at
  com.base2inc.evaluate.profile.EditProfileStore.run(EditProfileStore.j 
  av
  a:133)
  at
  com.base2inc.app.framework.JspFramework.doService(JspFramework.java:3 
  11
  )
  at
  com.base2inc.app.util.HttpServletExtended.doPost(HttpServletExtended. 
  ja
  va:64)
  at  
  javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at  
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356 
  )
  at
  org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati 
  on
  Handler.java:294)
  at
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5 
  67
  )
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1723)
  at
  org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication 
  Co
  ntext.java:514)
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1673)
  at org.mortbay.http.HttpServer.service(HttpServer.java:879)
  at
  org.mortbay.http.HttpConnection.service(HttpConnection.java:783)
  at
  org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:945)
  at
  org.mortbay.http.HttpConnection.handle(HttpConnection.java:800)
  at
  

Re: [JBoss-user] CMP: Local vs. Remote Interface

2003-09-29 Thread Frank Morton
The getProfileHome() looks up an cmp entity bean that only has
a local interface. The code looks like:
static public ProfileHome getProfileHome() throws NamingException {
 InitialContext jndiContext = getContext();
 ProfileHome profileHome  =  
(ProfileHome)(jndiContext.lookup(Lookup.profile));
 setContext(jndiContext); //caches the context
 return(profileHome);
}

So, the ProfileValueObject (I now realize) is accessing the entity bean  
directly.

So, if I change the ProfileValueObject to update through a call to a  
stateless
session bean that has a remote interface that in turn updates through an
entity bean with a local interface (ie, the session bean is a facade to  
the
entity bean), things should work. Is that right?

Thanks for your help.

Frank

On Monday, September 29, 2003, at 09:09  PM, Adrian Brock wrote:

What does getProfileHome() lookup?

Regards,
Adrian
On Tue, 2003-09-30 at 01:04, Frank Morton wrote:
No CMRs or Collections. Just finder methods by a primary key.

Accessing a stateless session bean from a remote machine
(actually a different jvm on the same machine planning to move
to a remote machine). The stateless session bean has a remote
interface. The stateless session beans in turn call entity beans
using local interfaces.
Frank

On Monday, September 29, 2003, at 04:44  PM, Adrian Brock wrote:

No,

You are trying to access a local interface from a remote machine.
Probably because you passing back a collection from a CMR get()?
Regards,
Adrian
On Mon, 2003-09-29 at 22:38, Frank Morton wrote:
I'm learning this has something to do with the security manager, but
haven't yet found anything helpful. Any pointers anyone?
On Monday, September 29, 2003, at 12:18  PM, Frank Morton wrote:

I have a bunch of entity beans only running with local interfaces.

I use a session bean facade for accessing these entity beans along
with value objects.
Been running in a single JVM for some time without problems.

Now want to move to running the servlet container on a separate
system. When I move things over, I get the following exception
below. Am I going to have to use remote interfaces with the entity
beans (which I thought I was avoiding with the session facade)?
Using 3.2.0RC2 in this case.

Thanks.

javax.naming.CommunicationException.  Root exception is
java.lang.ClassNotFoundException:
org.jboss.ejb.plugins.local.LocalHomeProxy (no security manager:  
RMI
class loader disabled)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
at
java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at
java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.j 
av
a:
200)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1 
51
3)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435 
)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java 
:1
62
6)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java: 
18
45
)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:176 
9)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java 
:1
64
6)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java 
:3
0)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at
javax.naming.InitialContext.lookup(InitialContext.java:347)
at
com.base2inc.bean.util.Factory.getProfileHome(Factory.java:136)
at
com.base2inc.bean.value.object.ProfileValueObject.update(ProfileVal 
ue
Ob
ject.java:904)
at
com.base2inc.bean.util.CompositeContainer.update(CompositeContainer 
.j
av
a:141)
at
com.base2inc.bean.util.ProtectedContainer.update(ProtectedContainer 
.j
av
a:168)
at
com.base2inc.evaluate.profile.EditProfileStore.run(EditProfileStore 
.j
av
a:133)
at
com.base2inc.app.framework.JspFramework.doService(JspFramework.java 
:3
11
)
at
com.base2inc.app.util.HttpServletExtended.doPost(HttpServletExtende 
d.
ja
va:64)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:3 
56
)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplica 
ti
on
Handler.java:294)
at