1 2 Previous Next 17 Replies Latest reply on Feb 18, 2009 8:45 AM by jaikiran Go to original post
      • 15. Re: unifiedClassLoader jboss5

        i changed TCL at runtime while debugging n it worked. thanks for the help.
        now i hav to make changes in code to make it permanent. thr is no other way thru jboss configuration to handle it?

        • 16. Re: unifiedClassLoader jboss5
          alesj

           

          "abhinav.ind" wrote:
          thr is no other way thru jboss configuration to handle it?

          Not that I would know of.
          You need a sort of interceptor before your listener,
          to change the TCL to your CL, and then change it back to previous.

          • 17. Re: unifiedClassLoader jboss5
            jaikiran

            Looking at the stacktrace and going by your explanation:

            as there is a listner mbean which is invoked while server is starting. now that mbean requires spring context file to use some service API. the classLoader here is NoAnnotationURLClassLoader which fails to find the context file.


            I don't think, placing those configuration files in an application in the deploy folder is the correct thing to do. Remember, this is a notification listener which will be triggered even before your application (and its resources and classes) are loaded. I guess you should be placing that jar (containing the resource and the classes) in %JBOSS_HOME%/server/< serverName>/lib instead.





            1 2 Previous Next