Пишу клиента, который по JMS обменивается сообщениями с сервером JBoss, при инициализации контекста | Код | properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces"); properties.put(Context.PROVIDER_URL, "localhost"); //Инициализация контекста InitialContext initContext = new InitialContext(properties); //Поиск администрируемых объектов QueueConnectionFactory factory = QueueConnectionFactory) initContext.lookup("ConnectionFactory");
|
Сервер выбрасывает следующий эксепшен | Код | Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled)] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627) at javax.naming.InitialContext.lookup(InitialContext.java:392) at QueueExecutor1.init(QueueExecutor1.java:34) at QueueExecutor1.main(QueueExecutor1.java:69) Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:178) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667) ... 4 more Caused by: java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)
|
В чем может быть проблема ? Фабрика ресурсов дефолтная, насколько я понял и включена в JBoss как тестовая
|