Re: Unmarshalled Exception : ClassnotfoundException

Vinod Johnson - Sun Microsystems <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
> 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

--------------------------------------------------------------------------
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.