[progress Communities] [progress Openedge Abl] Forum Post: Re: How To Use The Generic Jms...

Status
Not open for further replies.
P

Paulo Lima

Guest
Thanks for giving this a try in your environment Anand! Just mins ago, I downloaded your AdminObjectFinder.jar and FTP'd it on to my Linux server. Replaced my AdminObjectFinder.jar file with the one you provided and then I got the following error: Main >(Apr 26, 2016 15:25:59:272) : Reading jmsProvider.properties from location : /u/u01/dlc11.5_64/properties/jmsProvider.properties Main > javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) at javax.naming.InitialContext.init(InitialContext.java:242) at javax.naming.InitialContext. (InitialContext.java:216) at jmsfromABL.AdminObjectFinder. (AdminObjectFinder.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at com.progress.messaging.jms.jms.getObjectFinders(jms.java:358) at com.progress.messaging.jms.jms._startup(jms.java:65) at com.progress.javafrom4gl.implementation.ServiceImpl. (ServiceImpl.java:78) at com.progress.ubroker.broker.JavaServices.createServices(JavaServices.java:83) at com.progress.ubroker.broker.ubroker.main(ubroker.java:154) Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:270) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:63) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) ... 14 more Main >: A jmsfromABL.AdminObjectFinder object could not be created L-3620>(Apr 26, 2016 15:33:03:474) Log Closed ====================================================================== So, after that, I issued the following command in order to update the "jmsfromABL/AdminObjectFinder.class" file within the AdminObjectFinder.jar archive: jar uf AdminObjectFinder.jar jmsfromABL/AdminObjectFinder.class I wanted to replace your class file with mine since mine uses a diffrent INITIAL_CONTEXT_FACTORY class => "org.jboss.naming.remote.client.InitialContextFactory" And it has the proper PROVIDER_URL value pointing to correct JNDI hostname . It has apparently updated the archive just fine. However, when I restart the AdminServer, I am back to my original error: Main >: A jmsfromABL.AdminObjectFinder object could not be created L-3620>(Apr 26, 2016 15:33:03:474) Log Closed Main >====================================================================== Main >(Apr 26, 2016 15:35:20:240) /u/u01/wrk_11.5_64/sonicMQ1.server.log opened. Main >(Apr 26, 2016 15:35:20:240) : Starts Adapter server logging. Main >(Apr 26, 2016 15:35:20:240) : LoggingLevel set to = 5 Main >(Apr 26, 2016 15:35:20:241) : The system property: sonicMQExtensions is set to false Main >(Apr 26, 2016 15:35:20:241) : The classpath is set to /u/u01/dlc11.5_64/java/progress.jar:/u/u01/dlc11.5_64/hornetq/lib/hornetq-commons.jar:/u/u01/dlc11.5_64/hornetq/lib/hornetq-core-client.jar:/u/u01/dlc11.5_64/hornetq/lib/hornetq-jms-client.jar:/u/u01/dlc11.5_64/hornetq/lib/jboss-jms-api_1.1_spec.jar:/u/u01/dlc11.5_64/hornetq/lib/netty.jar:/u/u01/dlc11.5_64/hornetq/lib/AdminObjectFinder.jar Main >(Apr 26, 2016 15:35:20:254) : Reading jmsProvider.properties from location : /u/u01/dlc11.5_64/properties/jmsProvider.properties Main >: A public jmsfromABL.AdminObjectFinder class was not found. L-3620>(Apr 26, 2016 15:48:44:604) Log Closed Main >====================================================================== Not sure what is going on here...

Continue reading...
 
Status
Not open for further replies.
Top