Announcement Announcement Module
No announcement yet.
Spring ltw glassfish V3 web app TomcatInstrumentableClassLoader NOT FOUND EXCEPTION Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring ltw glassfish V3 web app TomcatInstrumentableClassLoader NOT FOUND EXCEPTION

    Hi I use Spring LTW for my web app.I use it for tomcat before and it work!.i write my context.xml like this:
    	<Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"
    Yes,it work! but only for tomcat.I trun it out to glassfish,followed the article
    Note that GlassFish instrumentation-capable ClassLoader is available only in its EAR environment. For GlassFish web applications, follow the Tomcat setup instructions as outlined above.
    YES,it let me just do the same as tomcat,so i just copy it.but the important step is put the spring-instrument-tomcat.jar on the right place.In tomcat,i put it into tomcat/lib and it worked.

    BUT in glassfish,i try to put in glassfish_install/lib,domain_dir/lib,domain_dir/lib/ext,domain_dir/lib/applibs,but it not work,and the exception is that:
    java.lang.ClassNotFoundException: org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader not found by org.glassfish.main.web.core [228]
    	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(
    	at org.apache.felix.framework.BundleWiringImpl.access$400(
    	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(
    	at java.lang.ClassLoader.loadClass(
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(
    	at org.apache.catalina.loader.WebappLoader.createClassLoader(
    	at org.apache.catalina.loader.WebappLoader.start(
    	at org.apache.catalina.core.StandardContext.start(
    	at com.sun.enterprise.web.WebModule.start(
    	at org.apache.catalina.core.ContainerBase.addChildInternal(
    	at org.apache.catalina.core.ContainerBase.addChild(
    	at org.apache.catalina.core.StandardHost.addChild(
    	at com.sun.enterprise.web.WebContainer.loadWebModule(
    	at com.sun.enterprise.web.WebContainer.loadWebModule(
    	at com.sun.enterprise.web.WebApplication.start(
    It can not found my jar,I want to know is that the right place i should put it in or any other step i should do?

    any suggestion thanks.

    My environment is
    Spring 3.1.2.RELEASE
    Glassfish V3.1.2