You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Kettner (JIRA)" <ji...@codehaus.org> on 2007/06/26 09:09:57 UTC

[jira] Created: (MEAR-70) loader-repository node for jboss configuration

loader-repository node for jboss configuration
----------------------------------------------

                 Key: MEAR-70
                 URL: http://jira.codehaus.org/browse/MEAR-70
             Project: Maven 2.x Ear Plugin
          Issue Type: Bug
    Affects Versions: 2.3.1
            Reporter: Mark Kettner


I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
           <jboss>
             <version>4</version>
             <loader-repository>
               nl.ictu.spg.bsn:loader=afslagbsn
               <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
             </loader-repository>
           </jboss>
        </configuration>
      </plugin>
    </plugins>
  </build>

This is because in the file AbstractEarMojo the

                final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();

is null when a subtag is added to the loaderRepository tag.
This can be solved by changing the definition in the pom.xml file to the following:

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
           <jboss>
             <version>4</version>
             <loader-repository><![CDATA[
               nl.ictu.spg.bsn:loader=afslagbsn
               <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
             </loader-repository>
           </jboss>
        </configuration>
      </plugin>
    </plugins>
  </build>

and change the "write" method in the JbossAppXmlWriter class to the following:

        // classloader repository
        if ( jbossConfiguration.getLoaderRepository() != null )
        {
            writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
            writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
            writer.endElement();
        }



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MEAR-70) loader-repository node for jboss configuration

Posted by "Lukasz Szelag (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285028#comment-285028 ] 

Lukasz Szelag commented on MEAR-70:
-----------------------------------

The issue described here is still not resolved in 2.6. I also tried older versions (2.5, 2.3.2) and still cannot get the descriptor generated correctly, as long as I specify the <loader-repository> tag (without any attributes), i.e:

<jboss>
    <version>4.2</version>
    <loader-repository>
        com.test:archive=${project.groupId}-${project.version}.ear
        <loader-repository-config>
            java2ParentDelegation=false
        </loader-repository-config>
    </loader-repository>
</jboss>

Below configuration works:

<jboss>
    <version>4.2</version>
    <loader-repository-config>
        java2ParentDelegation=false
    </loader-repository-config>
</jboss>


> loader-repository node for jboss configuration
> ----------------------------------------------
>
>                 Key: MEAR-70
>                 URL: https://jira.codehaus.org/browse/MEAR-70
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Mark Kettner
>            Assignee: Stephane Nicoll
>             Fix For: 2.3.2
>
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository>
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> This is because in the file AbstractEarMojo the
>                 final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository><![CDATA[
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
>         // classloader repository
>         if ( jbossConfiguration.getLoaderRepository() != null )
>         {
>             writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
>             writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
>             writer.endElement();
>         }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MEAR-70) loader-repository node for jboss configuration

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_102112 ] 

Stephane Nicoll commented on MEAR-70:
-------------------------------------

I told it ten thousands times. The current implementation supports a simple, naive loader-repository config. See my comments in the related issue. Playing with CDATA is not convenient, no plugin is designed that way.

> loader-repository node for jboss configuration
> ----------------------------------------------
>
>                 Key: MEAR-70
>                 URL: http://jira.codehaus.org/browse/MEAR-70
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3.1
>            Reporter: Mark Kettner
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository>
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> This is because in the file AbstractEarMojo the
>                 final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository><![CDATA[
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
>         // classloader repository
>         if ( jbossConfiguration.getLoaderRepository() != null )
>         {
>             writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
>             writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
>             writer.endElement();
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MEAR-70) loader-repository node for jboss configuration

Posted by "Benjamin (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160736#action_160736 ] 

Benjamin commented on MEAR-70:
------------------------------

here is an ugly workaround:

manually create your jboss-app.xml file (with the loader-repository-config element) in a directory named src/main/application. if your ear has dependencies on jboss-specific types like sars/hars, then you will need to manually define these in the jboss-app.xml file as well.

in your ear's pom.xml configure the ear plugin as follows:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<jboss>
 <version>4</version>
</jboss>
</configuration>
</plugin>
</plugins>
</build>

when you go to build the ear, it will generate a jboss-app.xml file, then it will copy your jboss-app.xml file from the src/main/application directory and overwrite the one it created, then it will bundle all the stuff into the ear.

it is important to add the jboss configuration element because if you don't, then the ear module will attempt to add jboss-specific types (like sars/hars) to your application.xml file. If your ear module only has dependencies on the three normal types (ejb/rar/war), then you dont need the jboss config element in your pom at all.

its ugly since you need to hardcode your own jboss-app.xml file but it seemed to work for me. i dont understand why the ability to configure the loader-repository-config element wasn't added from the start considering it is so trivial.

> loader-repository node for jboss configuration
> ----------------------------------------------
>
>                 Key: MEAR-70
>                 URL: http://jira.codehaus.org/browse/MEAR-70
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Mark Kettner
>             Fix For: 2.4
>
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository>
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> This is because in the file AbstractEarMojo the
>                 final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository><![CDATA[
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
>         // classloader repository
>         if ( jbossConfiguration.getLoaderRepository() != null )
>         {
>             writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
>             writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
>             writer.endElement();
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MEAR-70) loader-repository node for jboss configuration

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll updated MEAR-70:
--------------------------------

    Patch Submitted:   (was: [Yes])

> loader-repository node for jboss configuration
> ----------------------------------------------
>
>                 Key: MEAR-70
>                 URL: http://jira.codehaus.org/browse/MEAR-70
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3.1
>            Reporter: Mark Kettner
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository>
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> This is because in the file AbstractEarMojo the
>                 final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository><![CDATA[
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
>         // classloader repository
>         if ( jbossConfiguration.getLoaderRepository() != null )
>         {
>             writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
>             writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
>             writer.endElement();
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MEAR-70) loader-repository node for jboss configuration

Posted by "Kyle S. Bober (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160733#action_160733 ] 

Kyle S. Bober commented on MEAR-70:
-----------------------------------

Just curious if any progress has been made on this issue. I am attempting to set the loader-repository-config for one of my jboss-app.xml file via Maven2 EAR plugin and it doesn't seem to support this element. Is there a current work around?

> loader-repository node for jboss configuration
> ----------------------------------------------
>
>                 Key: MEAR-70
>                 URL: http://jira.codehaus.org/browse/MEAR-70
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Mark Kettner
>             Fix For: 2.4
>
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository>
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> This is because in the file AbstractEarMojo the
>                 final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository><![CDATA[
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
>         // classloader repository
>         if ( jbossConfiguration.getLoaderRepository() != null )
>         {
>             writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
>             writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
>             writer.endElement();
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MEAR-70) loader-repository node for jboss configuration

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160748#action_160748 ] 

Stephane Nicoll commented on MEAR-70:
-------------------------------------

Can you describe how you find this trivial? What would be your solution?

> loader-repository node for jboss configuration
> ----------------------------------------------
>
>                 Key: MEAR-70
>                 URL: http://jira.codehaus.org/browse/MEAR-70
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Mark Kettner
>             Fix For: 2.4
>
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository>
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> This is because in the file AbstractEarMojo the
>                 final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository><![CDATA[
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
>         // classloader repository
>         if ( jbossConfiguration.getLoaderRepository() != null )
>         {
>             writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
>             writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
>             writer.endElement();
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MEAR-70) loader-repository node for jboss configuration

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160735#action_160735 ] 

Stephane Nicoll commented on MEAR-70:
-------------------------------------

Nope but given the number of votes, that's probably the next one we'll implement.

> loader-repository node for jboss configuration
> ----------------------------------------------
>
>                 Key: MEAR-70
>                 URL: http://jira.codehaus.org/browse/MEAR-70
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Mark Kettner
>             Fix For: 2.4
>
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository>
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> This is because in the file AbstractEarMojo the
>                 final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository><![CDATA[
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
>         // classloader repository
>         if ( jbossConfiguration.getLoaderRepository() != null )
>         {
>             writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
>             writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
>             writer.endElement();
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MEAR-70) loader-repository node for jboss configuration

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll updated MEAR-70:
--------------------------------

    Affects Version/s:     (was: 2.3.1)
                       2.3
        Fix Version/s: 2.4

> loader-repository node for jboss configuration
> ----------------------------------------------
>
>                 Key: MEAR-70
>                 URL: http://jira.codehaus.org/browse/MEAR-70
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Mark Kettner
>             Fix For: 2.4
>
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository>
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> This is because in the file AbstractEarMojo the
>                 final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository><![CDATA[
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
>         // classloader repository
>         if ( jbossConfiguration.getLoaderRepository() != null )
>         {
>             writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
>             writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
>             writer.endElement();
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MEAR-70) loader-repository node for jboss configuration

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll closed MEAR-70.
-------------------------------

         Assignee: Stephane Nicoll
       Resolution: Duplicate
    Fix Version/s:     (was: 2.4)
                   2.3.2

MEAR-120 implements this.

> loader-repository node for jboss configuration
> ----------------------------------------------
>
>                 Key: MEAR-70
>                 URL: http://jira.codehaus.org/browse/MEAR-70
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Mark Kettner
>            Assignee: Stephane Nicoll
>             Fix For: 2.3.2
>
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository>
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> This is because in the file AbstractEarMojo the
>                 final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.3.1</version>
>         <configuration>
>            <jboss>
>              <version>4</version>
>              <loader-repository><![CDATA[
>                nl.ictu.spg.bsn:loader=afslagbsn
>                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
>              </loader-repository>
>            </jboss>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
>         // classloader repository
>         if ( jbossConfiguration.getLoaderRepository() != null )
>         {
>             writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
>             writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
>             writer.endElement();
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira