Server integration problem (jboss) [message #159343] |
Tue, 07 February 2006 07:22 |
Eclipse User |
|
|
|
Hello dear newsgroup-members,
I am using a JBoss 4.0.3SP1 with Hibernate, EJB 3.0 and Eclipse 3.1.1.
After deploying a .ear-file on my jboss-server I want to access it with my
own RCP-client. My lookup looks like the following code-excerpt:
Properties env = new Properties();
env.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
env.setProperty(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
In the RCP-client the code looks like this:
project = (IProject) JBossConfiguration.getInstance().lookup(
"my.package.stateless.IProject");
Collection coll = project.getAllProjects();
After running the RCP-client I got this error:
javax.naming.CommunicationException [Root exception is
java.lang.ClassNotFoundException: my.package.stateless.IProject (no security
manager: RMI class loader disabled)]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:7 13)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:5 72)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
[...]
If I run this code outside an RCP-client it works without problems.
Is there anybody who has a solution to this problem.
Thanks in advance,
Christian
|
|
|
Powered by
FUDForum. Page generated in 0.03566 seconds