3 Replies Latest reply on Jul 7, 2010 3:22 AM by jaikiran pai

    jboss 5.1

    Syed Mahdi Apprentice

      I am trying to do class loading in jboss to isolate my jars from the ones that are already shipped with jboss: As per http://community.jboss.org/wiki/ClassLoadingConfiguration  My jboss-web.xml should be like this :

       

       

      <jboss-web>
         <loader-repository>
            com.example:archive=loss-sharing.war
         </loader-repository>
      </jboss-web>
      When I run my app it says:
      Deployment "vfszip:/E:/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/default/deploy/loss-sharing.war/" is in error due to the following reason(s): org.jboss.xb.binding.JBossXBRuntimeException: loader-repository not found as a child of jboss-web in unordered_sequence: security-role* max-active-sessions? webservice-description* class-loading? jacc-star-role-allow? message-destination* servlet* replication-config? passivation-config? context-root? security-domain? virtual-host* use-session-cookies? depends* {unordered_sequence jndiEnvironmentRefsGroup}?

       

      Which means that the tag should be placed in class-loading tag:

       

      When I do it this way :

       

      <jboss-web>

      <context-root>loss-sharing</context-root>

      <class-loading java2ClassLoadingCompliance="false">

      <loader-repository>

      com.example:loader=los-sharing.war

      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>

      </loader-repository>

      </class-loading>

      </jboss-web>

       

       

      It works fine and i dont have any errors. I am not sure if it is working even but the deployment error goes away. I dont understand, is the doumentation wrong, or ami doing something wrong.

       

      a bit confused here!!!

       

      thanks, will appreciate a reply

      Syed

        • 1. Re: jboss 5.1
          jaikiran pai Master

          Looking at the xsd/dtd, I don't see the loader-repository being allowed  as an immidiate child element of the jboss-web. So, I guess, that note in the documentation is incorrect. I have seen some other users mentioning the same in the forums. However, I haven't had the chance to spend some time to clean up that wiki. It's a publicly editable wiki, so feel free to edit the incorrect part from it.

          • 2. Re: jboss 5.1
            Syed Mahdi Apprentice

            With your permission: i will edit it: but do take a look at it and you can refine it (i will put a comment after editing to the post and put a link to this discussion)

             

            Thanks

            • 3. Re: jboss 5.1
              jaikiran pai Master

              Syed Mahdi wrote:

               

              but do take a look at it and you can refine it (i will put a comment after editing to the post and put a link to this discussion)

               

               

              Sure, will do. And thanks for updating it