Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Server integration problem (jboss)
Server integration problem (jboss) [message #159343] Tue, 07 February 2006 12:22
Christian Gesswagner is currently offline Christian GesswagnerFriend
Messages: 34
Registered: July 2009
Member
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
Previous Topic:Still seeing problem with clean WTP installation
Next Topic:wtp 1.0 and .deployables directory
Goto Forum:
  


Current Time: Fri Apr 26 19:12:59 GMT 2024

Powered by FUDForum. Page generated in 0.03006 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top