Hi jboss developer, 

I had already post this question to the forum, but didnt get any feedback, may be 
since it was the 
wrong forum. I will try to ask here again.

I'm in the process of integration jboss in eclipse to use eclipse as j2ee gui. 
(sf.net/projects/jstaff) The 
trick is that the jboss inside of eclipse is part of an jboss cluster and so all 
services of jboss like 
transaction security and so on can be used in the client since both running in the 
same jvm. 

Anyway i have some serious problems with class-loading i try to fix since a long time.

Actually i have a own JbossMain class and just assign the eclipse classloader to 
jboss. 



Classloader parentCL = getEclipsePluginClassloader();
 Server server = loader.load(parentCL);
        


Thats working fine with one important exception: The JBossRMIClassLoader. I had read 
that the RMI try 
to find RMIClassLoaderSpi in the systemClassloader. Of course since i use the eclipse 
classloader as 
root for my jboss start up it could not be found. 



15:58:08,684 WARN  [ServiceController] Problem starting service jboss:service=Naming
java.lang.NoClassDefFoundError: org.jboss.system.JBossRMIClassLoader
        at java.rmi.server.RMIClassLoader.initializeProvider(RMIClassLoader.java:679)
        at java.rmi.server.RMIClassLoader.access$000(RMIClassLoader.java:93)
        at java.rmi.server.RMIClassLoader$1.run(RMIClassLoader.java:103)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.rmi.server.RMIClassLoader.<clinit>(RMIClassLoader.java:100)
        at 
sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.java:78)        

OK, my next idea was to do not use the JBossRMIClassLoader so i comment the section 
out from my 
jboss-service.xml. 
This solve the classnotfound problem but of course provide more trouble on other 
pleases. 
I cant start up the jnp server. 




16:13:23,055 INFO  [NamingService] Starting jnp server
16:13:23,059 INFO  [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, 
bindAddress=/0.0.0.0, Client SocketFactory=null, Server 
[EMAIL PROTECTED]
16:13:23,093 ERROR [NamingService] Could not start on port 1099
java.net.BindException: Address already in use
        


The really stranger thing is that i had made serveral port scans and I'm sure the port 
is free! 

I run apple jdk 1.4.2 on mac os x 10.3.3. with a jboss 3.2.3 jetty inside of eclipse 3 
m 8. 

Please has some one any idea where i can search the problem? I was searching in the 
forum, google, 
commercial documentation and so on, but did not found any useful information. 

Thanks for any hints. 
Stefan 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to