[jboss-user] [Messaging, JMS & JBossMQ] - Re: [JAVA-JMS]+Jboss confiurazione

erasmo78 do-not-reply at jboss.com
Fri Jan 18 03:30:26 EST 2008


I have try
but now i have this error

xception in thread "main" javax.naming.NameNotFoundException: order not bound
	at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
	at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
	at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
	at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
	at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
	at sun.rmi.transport.Transport$1.run(Transport.java:153)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
	at java.lang.Thread.run(Thread.java:595)
	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
	at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
	at javax.naming.InitialContext.lookup(InitialContext.java:351)
	at erasmo.jms.Sender.main(Sender.java:55)


I have add code in my class java

   System.setProperty("java.security.policy", "c:/client.policy");  
      if (System.getSecurityManager() == null) 
    	  
      {
    	  System.setSecurityManager(new RMISecurityManager()); 
      } 
  
      
      Properties properties = new Properties();
      properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
      properties.put(Context.PROVIDER_URL, "10.173.172.176");
    //  properties.put(Context.SECURITY_AUTHENTICATION, "no");
     //properties.put(Context., "no");
     
      ctx = new InitialContext(properties);


   



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

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



More information about the jboss-user mailing list