Announcement Announcement Module
Collapse
No announcement yet.
Spring startup questions (class loading) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring startup questions (class loading)

    My app has a remote class loader.

    Spring is looking for some stuff during startup and causing some minor delays. (See below)

    How can I configure it so that it won't do the default fallback behavior? I suppose there is some config I can do to the System properties or something... possibly in my ApplicationContext.xml.

    INFO | jvm 1 | 2006/05/17 13:34:13 | 13:34:13,172 INFO [STDOUT] HTTP Response: File not found for /commons-logging.properties
    INFO | jvm 1 | 2006/05/17 13:34:13 | 13:34:13,172 INFO [STDOUT] HTTP Response: File not found for /META-INF/services/org.apache.commons.logging.LogFactory
    INFO | jvm 1 | 2006/05/17 13:34:13 | 13:34:13,766 INFO [STDOUT] HTTP Response: File not found for /META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguratio n
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,281 INFO [STDOUT] HTTP Response: File not found for /org/apache/commons/collections/map/LinkedMap.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,375 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/httpinvoker/HttpInvokerProxyFactoryBeanBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,375 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/httpinvoker/HttpInvokerProxyFactoryBeanBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,391 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/httpinvoker/HttpInvokerClientInterceptorBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,391 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/httpinvoker/HttpInvokerClientInterceptorBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,391 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/support/RemoteInvocationBasedAccessorBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,406 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/support/RemoteInvocationBasedAccessorBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,406 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/support/UrlBasedRemoteAccessorBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,406 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/support/UrlBasedRemoteAccessorBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,422 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/support/RemoteAccessorBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,422 INFO [STDOUT] HTTP Response: File not found for /org/springframework/remoting/support/RemoteAccessorBeanInfo.class
    INFO | jvm 1 | 2006/05/17 13:34:15 | 13:34:15,781 INFO [STDOUT] HTTP Response: File not found for /net/sf/cglib/proxy/Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72. class
    INFO | jvm 1 | 2006/05/17 13:34:18 | 13:34:17,984 INFO [STDOUT] HTTP Response: File not found for /org/jnp/interfaces/jndiprovider.properties

  • #2
    I'm not sure what is your configuration but some of the classes here are actually loaded not by Spring but the frameworks with which Spring works. For example commons-logging has some default locations from which it tries to load the logging configuration (like commons-logging or META-INF/...LogFactory). The LinkedMap is looked in by Spring to see if commons-collections are available on the classpath.
    Basically it is perfectly legimate for an application to load resources or classes (or at least ask for them) and there is no way that I know of in which you can turn on this off. Since you have control over the classloader delegate this to your parent classloader (which you have to do anyway) or use some sort of local classloader.

    Comment


    • #3
      Thanks costin.

      I figured out the clogger. I put a commons-logging.properties in the classpath:
      Code:
      org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
      log4j.configuration=file:///c:/fullpathto/log4j.xml
      Xerces is anther apache deal, set system property:
      Code:
      -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XML11Configuration
      I would have never guessed the LinkedMap.class - thanks.

      The xxxBeanInfo just dawned on me... doy; you are using Java Beans stuff and it will always look for a custom BeanDescriptor with the BeanInfo appended.

      Comment

      Working...
      X