hello

now i am getting a new Error

  | javax.naming.CommunicationException [Root exception is 
java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security 
manager: RMI class loader disabled)]
  | 

this is how i called the remote server

        UserLoginRemote obj = 
(UserLoginRemote)Remote.getRemoteObject("UserLoginBean/remote"); //<--- this 
line is line 160 of User.java
  | 

where Remote.getRemoteObject() is

  |     public static synchronized Object getRemoteObject(String 
remoteObjectName)throws Exception
  |     {
  |         Properties prop = new Properties();
  |         
  |         
prop.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  |         prop.setProperty(Context.PROVIDER_URL,"jnp://192.168.0.21:1099");
  |         
prop.setProperty(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
  |         
  |         javax.naming.Context context = new 
javax.naming.InitialContext(prop);
  |         NamingEnumeration ne = context.list("");
  |         while(ne.hasMore())
  |         {
  |             log.info("Bind Objects :"+ne.next());
  |         }
  |         log.info("the name of the remote object to look up is 
:"+remoteObjectName);
  |         Object remoteObj = context.lookup(remoteObjectName);//<--- this 
line is 58 of Remote.java
  |         
  |         return remoteObj;
  |     }
  | 

and here is the full stack trace of the error

javax.naming.CommunicationException [Root exception is 
java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security 
manager: RMI class loader disabled)]
  |     org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
  |     org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  |     javax.naming.InitialContext.lookup(InitialContext.java:351)
  |     com.amlaki.cbmega.web.settings.Remote.getRemoteObject(Remote.java:58)
  |     com.amlaki.cbmega.web.user.User.validate(User.java:160)
  |     com.amlaki.cbmega.web.user.LoginAction.execute(LoginAction.java:60)
  |     
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
  |     
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
  |     org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
  |     org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  |     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  |     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  |     
com.amlaki.cbmega.web.filter.compressionFilters.CompressionFilter.doFilter(CompressionFilter.java:223)
  |     
com.amlaki.cbmega.web.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:116)
  | 
  | 

and this is the log in 
Remote.java

  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :XAConnectionFactory: 
org.jboss.mq.SpyXAConnectionFactory
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:TopicConnectionFactory: org.jboss.naming.LinkRefPair
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:UIL2ConnectionFactory: javax.naming.LinkRef
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:UserTransactionSessionFactory: $Proxy27
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:UIL2XAConnectionFactory: javax.naming.LinkRef
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:QueueConnectionFactory: org.jboss.naming.LinkRefPair
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :topic: 
org.jnp.interfaces.NamingContext
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UserLoginBean: 
org.jnp.interfaces.NamingContext
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :queue: 
org.jnp.interfaces.NamingContext
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :ConnectionFactory: 
org.jboss.mq.SpyConnectionFactory
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UserTransaction: 
org.jboss.tm.usertx.client.ClientUserTransaction
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :jmx: 
org.jnp.interfaces.NamingContext
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:UILXAConnectionFactory: javax.naming.LinkRef
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:UILConnectionFactory: javax.naming.LinkRef
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:57) - the name of the remote object to 
look up is :UserLoginBean/remote
  | 

what is the problem ???

sony :(






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

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


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to