Problem running standalone Glassfish v3 client as Eclipse plugin?

Further investigation of the Problem has shown, that Glassfishv3 relies on a public method findResources(java.lang. String) of the java.lang.Classloader.

Further investigation of the Problem has shown, that Glassfishv3 relies on a public method findResources(java.lang. String) of the java.lang.Classloader. Package com.sun.enterprise.module.

Single; ... public class ManifestProxy extends Manifest { ... public ManifestProxy(ClassLoader cl, List mappings) throws IOException { try { ... Method met = cl.getClass(). GetMethod("findResources", String. Class); Enumeration urls=null; try { met.

SetAccessible(true); urls = (Enumeration) met. Invoke(cl, JarFile. MANIFEST_NAME); But this method is protected in the Classloader class itself.

When running the client as standalone java application the derived classloader sun.misc. Launcher$AppClassLoader is used which overrides this method and declares it public. But when running as Eclipse plugin the classloader org.eclipse.osgi.internal.baseadaptor.

DefaultClassLoader does not override the findResource-Method which leaves it protected and inaccessible by the ManifestProxy class. What is the best way to solve this? How can I set a specific classloader for a eclipse plugin/osgi bundle?

Thanks!

1. Properties props=new Properties(); 2.Props. SetProperty("java.naming.factory.

Initial","com.sun.enterprise.naming. SerialInitContextFactory"); 3.Props. SetProperty("org.omg.CORBA.

ORBInitialHost", "localhost"); 4.Props. SetProperty("org.omg.CORBA. ORBInitialPort","3700").

Yes, the properties are set correctly. My client works perfectly when running it as standalone java application. Just in the eclipse plugin context the classloader problem occurs.

– dmt Jan 22 '10 at 14:39.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions