Results 1 to 2 of 2

Thread: Dynamic Classloading

Hybrid View

  1. #1

    Default Dynamic Classloading

    I have a rather odd scenario I'm working with, and have run into a problem with classloading.

    I am using RMI classpath annotation and java.rmi.MarshalledObject to deliver some objects to a client program. The client does NOT have the spring libraries on their classpath, so the annotated classpath includes a network location with the .jars. The Spring jars are getting downloaded just fine, and I am able to create the BeanFactory at the client.

    The problem starts when I attempt to use Spring Remoting. When I attempt to get the RmiProxyFactoryBean in the client, I get a ClassNotFoundException on org.springframework.remoting.rmi.RmiProxyFactoryBe an.

    I know that spring-context.jar has been loaded (I can see it downloading from the webserver) My guess is that the BeanFactory starts its own Classloader and doesn't have visibility to classes on the classpath that the RMI Annotated classpath provided? Can anyone shed some light on this?

    Thanks,
    -mug

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    Spring does absolutely no classloader manipulation of its own at this time. It will just use the classloader in which it is running...
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Replies: 3
    Last Post: Mar 9th, 2011, 10:43 AM
  2. Replies: 2
    Last Post: Jul 14th, 2007, 09:05 AM
  3. Replies: 1
    Last Post: Jul 21st, 2005, 05:17 AM
  4. Replies: 3
    Last Post: Nov 6th, 2004, 10:10 AM
  5. Dynamic WizardPage Sequence
    By afida in forum Swing
    Replies: 2
    Last Post: Sep 17th, 2004, 08:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •