From: Bob S. <bob...@mc...> - 2003-12-01 01:06:48
|
Karsten Did you ever get this working? I'm having the exact same issue. At 12:51 AM +0100 10/30/03, Karsten D. Wolf wrote: >Dear list, > >to test things I just created a plain project, followed all >instructions, installed OpenJMS and ERChangeNotificationFramework. > >When I start the app I get: > >- Initializing ERChangeNotification Framework >7091 [main] INFO er.changenotification.ERCNNotificationCoordinator >- Initializing ERChangeNotification Framework >- An exception occured: javax.naming.NamingException - error >unmarshalling return; nested exception is: > java.lang.ClassNotFoundException: >org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl_Stub >(no security manager: RMI class loader disabled) >8530 [main] ERROR er.changenotification.ERCNNotificationCoordinator >- An exception occured: javax.naming.NamingException - error >unmarshalling return; nested exception is: > java.lang.ClassNotFoundException: >org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl_Stub >(no security manager: RMI class loader disabled) >javax.naming.NamingException: error unmarshalling return; nested exception is: > java.lang.ClassNotFoundException: >org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl_Stub >(no security manager: RMI class loader disabled). Root exception is >java.rmi.UnmarshalException: error unmarshalling return; nested >exception is: > java.lang.ClassNotFoundException: >org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl_Stub >(no security manager: RMI class loader disabled) > at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) > at java.rmi.Naming.lookup(Naming.java:84) > at >org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory.getInitialContext(Unknown >Source) > at >javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) > at >javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) > at javax.naming.InitialContext.init(InitialContext.java:219) > at javax.naming.InitialContext.<init>(InitialContext.java:195) > at >er.changenotification.ERCNNotificationCoordinator.initialize(ERCNNotificationCoordinator.java:194) > 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:324) > at >com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:120) > at >com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:598) > at >com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:542) > at >com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:556) >etc... > >Now, probably this line > >java.lang.ClassNotFoundException: >org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl_Stub >(no security manager: RMI class loader disabled) > >shows some more details of the problem. It seems that I may have to >set some property such as "java.rmi.server.StubClassBase " to load >the stub? > >If I include the Apache-Avalon-Excalibur-Naming framework in my >project, I get this far: > > ERChangeNotification Framework >- An exception occured: javax.naming.NamingException - null >11156 [main] ERROR er.changenotification.ERCNNotificationCoordinator >- An exception occured: javax.naming.NamingException - null >javax.naming.NamingException. Root exception is java.lang.ClassCastException > at >org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory.getInitialContext(Unknown >Source) > at >javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) > at >javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) > at javax.naming.InitialContext.init(InitialContext.java:219) > at javax.naming.InitialContext.<init>(InitialContext.java:195) > at >er.changenotification.ERCNNotificationCoordinator.initialize(ERCNNotificationCoordinator.java:194) > 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:324) > at >com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:120) > at >com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:598) > at >com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:542) > at >etc ... > >this means, it dies at the last line of this code snippet from >ERChangeNotificationCoordinator.java > > String port = "1099"; > String jndiName = "JndiServer"; > String protocol = "rmi"; > String protocolType = RmiJndiInitialContextFactory.class.getName(); > > Properties props = new Properties(); > props.put(Context.PROVIDER_URL, protocol + "://" + host + >":" + port + "/" + jndiName); > props.put(Context.INITIAL_CONTEXT_FACTORY, protocolType); > > log.debug("props: " + props); > > try { > // Open the connection to the JMS server. > _context = new InitialContext(props); > >all right folks: Who is running a project with ERChangeNotification >and can supply me with some infos about setup - classpaths, openjms >tweaking, ... - i feel downright cluesless in the moment, and deeply >frustrated, too :( > >thanks in advance, any help is greatly appreciated!!! > >-karsten -- Bob Stuart |