[JBoss-user] [EJB 3.0] - JBOSS EJB3 Context Problem

2006-04-19 Thread tamri
I have EJB3 project, deployed with jboss-4.0.4.CR2  , his projects .jar file is 
in jboss_home/server/default/deploy catalog.  and I have a client java file 
where I call ejb's remote inteface
   Hashtable properties = new Hashtable();
properties.put("java.naming.factory.initial",
   "org.jnp.interfaces.NamingContextFactory");
properties.put("java.naming.factory.url.pkgs",
   "=org.jboss.naming:org.jnp.interfaces");
properties.put("java.naming.provider.url", "localhost:1099");
Context context = new InitialContext(properties);

 SessionEJBRemote 
obj=(SessionEJBRemote)context.lookup(SessionEJBRemote.class.getSimpleName() + 
"/remote");
   obj.calculate(1,2,3d,5d);

this code throws exception :

javax.naming.CommunicationException [Root exception is 
java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security 
manager: RMI class loader disabled)]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)

how can I correct this, what can I do?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938085#3938085

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938085


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - JBOSS EJB3 Context

2006-04-19 Thread tamri
I have EJB3 project, deployed with jboss-4.0.4.CR2  , his projects .jar file is 
in jboss_home/server/default/deploy catalog.  and I have a client java file 
where I call ejb's remote inteface
   Hashtable properties = new Hashtable();
properties.put("java.naming.factory.initial",
   "org.jnp.interfaces.NamingContextFactory");
properties.put("java.naming.factory.url.pkgs",
   "=org.jboss.naming:org.jnp.interfaces");
properties.put("java.naming.provider.url", "localhost:1099");
Context context = new InitialContext(properties);

 SessionEJBRemote 
obj=(SessionEJBRemote)context.lookup(SessionEJBRemote.class.getSimpleName() + 
"/remote");
   obj.calculate(1,2,3d,5d);

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938083#3938083

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938083


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user