Re: Unmarshalled Exception : ClassnotfoundException
Vinod Johnson - Sun Microsystems <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
gmail wrote: > Hi Thomas, > > Yea sorry pasted the wrong file : here is the right one > > java -classpath C:/project/jini/ > -Djava.security.policy=C:/project/jini/config/policy.all -jar > C:/jini2_1/lib/start.jar > C:/project/jini/config/starter/start-service.config > > ' correct annotation (as previously suspected). ' - what do you mean > annotation - what class/term etc should I be reviewing ? > > I meant the codebase annotation which is used in RMI classloading (see the javadocs for java.rmi.server.RMIClassLoader, net.jini.loader.pref.PreferredClassLoaderProvider for more details). At this point I don't see anything obviously wrong in the command line you are using (other than the fact that your -classpath should be getting ignored since you are using -jar and assuming your start-service.config is that same one you sent at the outset) - how are you exporting/registering your proxy? > Thanks > G > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Saturday, 19 May 2007 4:18 AM > To: [email protected] > Cc: [email protected] > Subject: Re: Unmarshalled Exception : ClassnotfoundException > > > >> Hope this makes sense - - So frustrating!!! >> >> >> Log Output: >> >> ultLoader=null >> 19/05/2007 01:01:24 net.jini.loader.pref.PreferredClassProvider loadClass >> FINEST: (thread context class loader: >> >> > com.sun.jini.start.ActivateWrapper$ExportClassLoader[importURLs=[file:/C:/ji > >> ni2_1/lib/browser. >> jar],exportURLs=[http://pegasus:8081/browser-dl.jar, >> >> > http://pegasus:8081/jsk-dl.jar],parent=sun.misc.Launcher$AppClassLoader@1330 > >> 56f >> ,id=b46330ea-274d-4142-8652-643ff3bfa120]) >> 19/05/2007 01:01:24 net.jini.loader.pref.PreferredClassProvider loadClass >> FINEST: class "net.jini.lookup.entry.ServiceInfo" found via codebase >> > loader, > >> defined by com.sun.jini.start.ActivateWrapper$ExportCla >> >> > ssLoader[importURLs=[file:/C:/jini2_1/lib/browser.jar],exportURLs=[http://pe > >> gasus:8081/browser-dl.jar, http://pegasus:8081/jsk-dl.ja >> >> > r],parent=sun.misc.Launcher$AppClassLoader@133056f,id=b46330ea-274d-4142-865 > >> 2-643ff3bfa120] >> 19/05/2007 01:01:24 net.jini.loader.pref.PreferredClassProvider >> loadProxyClass >> FINE: interfaces=[com.common.jini.service.concrete.RemoteIface, >> net.jini.core.constraint.RemoteMethodControl, net.jini.security.prox >> ytrust.TrustEquivalence], codebase=null, defaultLoader=null >> 19/05/2007 01:01:24 net.jini.loader.pref.PreferredClassProvider >> loadProxyClass >> >> > The above 'codebase=null' would indicate that your service proxy does > not have the correct annotation (as previously suspected). When you > don't implement RemoteIface, this is not a problem your proxy would get > resolved because the other two interfaces are available in the browser's > classloader hierarchy. I just happened to notice that you said you were > starting your service with the command line: > java -jar start.jar ServiceStarter config/starter/start-service.config > > I don't know how that would work (I would've expected it to fail without > a proper security policy. Moreover it would think that the configuration > file was ServiceStarter). Please see the com.sun.jini.start package > documentation for examples. Also make sure that your service > implementation is *not* part of the service starter's classpath. > > > > > -- > - vinod > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.0/801 - Release Date: 12/05/2007 > 6:40 PM > > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.0/801 - Release Date: 12/05/2007 > 6:40 PM > > -------------------------------------------------------------------------- > Getting Started: http://www.jini.org/wiki/Category:Getting_Started > Community Web Site: http://jini.org > jini-users Archive: http://archives.java.sun.com/archives/jini-users.html > Unsubscribing: email "signoff JINI-USERS" to [email protected] > -- - vinod -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]