Changeset 29715

Show
Ignore:
Timestamp:
01/28/08 14:40:32 (10 months ago)
Author:
onazarov
Message:

Latest XSL stylesheets with POM file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nuxeo-ep/trunk/jboss-patch/pom.xml

    r28300 r29715  
    4040              <transformationSets> 
    4141                <transformationSet> 
    42                   <dir>${jboss.conf}</dir> 
    43                   <includes> 
    44                     <include>log4j.xml</include> 
     42                  <dir>${jboss.server}</dir> 
     43                  <includes> 
     44                    <include>conf/log4j.xml</include> 
    4545                  </includes> 
    4646                  <stylesheet>src/main/xsl/log4j.xsl</stylesheet> 
     47                </transformationSet> 
     48                <transformationSet> 
     49                  <dir>${jboss.server}</dir> 
     50                  <includes> 
     51                    <include>conf/jboss-service.xml</include> 
     52                    <include>deploy/jmx-invoker-service.xml</include> 
     53                    <include>deploy/ear-deployer.xml</include> 
     54                    <include>deploy/http-invoker.sar/META-INF/jboss-service.xml</include> 
     55                    <include>deploy/management/console-mgr.sar/META-INF/jboss-service.xml</include> 
     56                    <include>deploy/ejb3-deployer/META-INF/jboss-service.xml</include> 
     57                    <include>deploy/jms/uil2-service.xml</include> 
     58                    <include>deploy/jms/jbossmq-httpil.sar/META-INF/jboss-service.xml</include> 
     59                  </includes> 
     60                  <stylesheet>src/main/xsl/jboss-service.xsl</stylesheet> 
     61                </transformationSet> 
     62                <transformationSet> 
     63                  <dir>${jboss.server}</dir> 
     64                  <includes> 
     65                    <include>conf/standardjboss.xml</include> 
     66                  </includes> 
     67                  <stylesheet>src/main/xsl/standardjboss.xsl</stylesheet> 
     68                </transformationSet> 
     69                <transformationSet> 
     70                  <dir>${jboss.server}</dir> 
     71                  <includes> 
     72                    <include>deploy/http-invoker.sar/invoker.war/WEB-INF/web.xml</include> 
     73                  </includes> 
     74                  <stylesheet>src/main/xsl/web-app.xsl</stylesheet> 
     75                </transformationSet> 
     76                <transformationSet> 
     77                  <dir>${jboss.server}</dir> 
     78                  <includes> 
     79                    <include>deploy/*-ds.xml</include> 
     80                  </includes> 
     81                  <stylesheet>src/main/xsl/ds.xsl</stylesheet> 
    4782                </transformationSet> 
    4883              </transformationSets> 
     
    74109            <configuration> 
    75110              <tasks> 
    76                 <echo message="Patching log4j config..." /> 
     111                <echo message="Patching XML configuration..." /> 
    77112                <copy 
    78                   file="${project.build.directory}/generated-resources/xml/xslt/log4j.xml" 
    79                   todir="${jboss.conf}" overwrite="true" /> 
     113                  todir="${jboss.server}" overwrite="true" > 
     114                  <fileset dir="${project.build.directory}/generated-resources/xml/xslt" /> 
     115                </copy>   
     116                 
    80117              </tasks> 
    81118            </configuration> 
     
    90127              <tasks> 
    91128                <echo message="Patching EAR deployer..." /> 
    92                 <copy file="${basedir}/src/main/xml/ear-deployer.xml" 
    93                   todir="${jboss.deploy}" overwrite="true" /
     129                <!--copy file="${basedir}/src/main/xml/ear-deployer.xml" 
     130                  todir="${jboss.deploy}" overwrite="true" /--
    94131              </tasks> 
    95132            </configuration> 
  • nuxeo-ep/trunk/jboss-patch/src/main/xsl/ds.xsl

    r29624 r29715  
    2222    </xsl:copy><xsl:text> 
    2323    </xsl:text><xsl:comment>Nuxeo patch: mandatory element jndi-name is appended with jmx-invoker-name</xsl:comment><xsl:text> 
    24     </xsl:text><jmx-invoker-name>jboss:service=invoker,type=https</jmx-invoker-name> 
     24    </xsl:text><jmx-invoker-name>jboss:service=invoker,type=http</jmx-invoker-name> 
    2525  </xsl:template> 
    2626 
     
    3636    </xsl:copy><xsl:text> 
    3737    </xsl:text><xsl:comment>Nuxeo patch: mandatory element jndi-name is appended with jmx-invoker-name</xsl:comment><xsl:text> 
    38     </xsl:text><jmx-invoker-name>jboss:service=invoker,type=https</jmx-invoker-name> 
     38    </xsl:text><jmx-invoker-name>jboss:service=invoker,type=http</jmx-invoker-name> 
    3939  </xsl:template> 
    4040 
  • nuxeo-ep/trunk/jboss-patch/src/main/xsl/jboss-service.xsl

    r29645 r29715  
    1919  <xsl:template match="mbean[@name='jboss:service=invoker,type=pooled']"> 
    2020        <xsl:comment>Nuxeo patch: mbean[jboss:service=invoker,type=pooled] removed</xsl:comment> 
     21  </xsl:template> 
     22 
     23  <!-- Removing UIL2 invoker --> 
     24  <xsl:template match="mbean[@name='jboss.mq:service=InvocationLayer,type=UIL2']"> 
     25        <xsl:comment>Nuxeo patch: mbean[jboss.mq:service=InvocationLayer,type=UIL2] removed</xsl:comment> 
     26  </xsl:template> 
     27  <!-- The RMI for NamingService should be bound to localhost for security reasons --> 
     28  <xsl:template match="mbean[@name='jboss.mq:service=InvocationLayer,type=HTTP']/attribute[@name='ConnectionFactoryJNDIRef']"> 
     29      <xsl:comment>Nuxeo patch: mbean[jboss.mq:service=InvocationLayer,type=HTTP] change connection factory</xsl:comment><xsl:text> 
     30         </xsl:text><attribute name='ConnectionFactoryJNDIRef'>ConnectionFactory</attribute> 
     31  </xsl:template> 
     32  <xsl:template match="mbean[@name='jboss.mq:service=InvocationLayer,type=HTTP']/attribute[@name='XAConnectionFactoryJNDIRef']"> 
     33      <xsl:comment>Nuxeo patch: mbean[jboss.mq:service=InvocationLayer,type=HTTP] change connection factory</xsl:comment><xsl:text> 
     34         </xsl:text><attribute name='XAConnectionFactoryJNDIRef'>XAConnectionFactory</attribute> 
    2135  </xsl:template> 
    2236 
     
    3953        <xsl:comment>Nuxeo patch: mbean[jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory] replaced</xsl:comment><xsl:text> 
    4054      </xsl:text><mbean code="org.jboss.invocation.http.server.HttpProxyFactory" name="jboss.jmx:type=adaptor,name=Invoker,protocol=http,service=proxyFactory"><xsl:text> 
    41          </xsl:text><attribute name="InvokerURL">https://${jboss.bind.address}/invoker/JMXInvokerServlet</attribute><xsl:text> 
     55         </xsl:text><attribute name="InvokerURL">http://${jboss.bind.address}/invoker/JMXInvokerServlet</attribute><xsl:text> 
    4256         </xsl:text><depends optional-attribute-name="InvokerName">jboss.jmx:type=adaptor,name=Invoker</depends><xsl:text> 
    43          </xsl:text><depends>jboss:service=invoker,type=https</depends><xsl:text> 
     57         </xsl:text><depends>jboss:service=invoker,type=http</depends><xsl:text> 
    4458         </xsl:text><attribute name="ExportedInterface">org.jboss.jmx.adaptor.rmi.RMIAdaptor</attribute><xsl:text> 
    4559         </xsl:text><attribute name="JndiName">jmx/invoker/HttpAdaptor</attribute><xsl:text> 
     
    5367         </xsl:text></attribute><xsl:text> 
    5468      </xsl:text></mbean><xsl:text> 
    55       </xsl:text><mbean code="org.jboss.jmx.connector.invoker.MBeanProxyRemote" name="jboss.jmx:type=adaptor,name=MBeanProxyRemote,protocol=https"><xsl:text> 
    56          </xsl:text><depends optional-attribute-name="MBeanServerConnection">jboss.jmx:type=adaptor,name=Invoker,protocol=https,service=proxyFactory</depends><xsl:text> 
     69      </xsl:text><mbean code="org.jboss.jmx.connector.invoker.MBeanProxyRemote" name="jboss.jmx:type=adaptor,name=MBeanProxyRemote,protocol=http"><xsl:text> 
     70         </xsl:text><depends optional-attribute-name="MBeanServerConnection">jboss.jmx:type=adaptor,name=Invoker,protocol=http,service=proxyFactory</depends><xsl:text> 
    5771      </xsl:text></mbean> 
    5872   </xsl:template> 
     
    6175  <xsl:template match="mbean[@name='jboss.admin:service=PluginManager']/depends[text()='jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory']"> 
    6276     <xsl:comment>Nuxeo patch: Replacing proxy dependency for mbean[jboss.admin:service=PluginManager]</xsl:comment><xsl:text> 
    63      </xsl:text><depends>jboss.jmx:type=adaptor,name=Invoker,protocol=https,service=proxyFactory</depends> 
     77     </xsl:text><depends>jboss.jmx:type=adaptor,name=Invoker,protocol=http,service=proxyFactory</depends> 
    6478  </xsl:template> 
    6579 
     
    94108      </xsl:text><depends><xsl:text> 
    95109         </xsl:text><mbean code="org.jboss.invocation.http.server.HttpProxyFactory" name="jboss:service=proxyFactory,target=ClientUserTransactionFactory"><xsl:text> 
    96        </xsl:text><attribute name="InvokerName">jboss:service=invoker,type=https</attribute><xsl:text> 
     110       </xsl:text><attribute name="InvokerName">jboss:service=invoker,type=http</attribute><xsl:text> 
    97111       </xsl:text><attribute name="JndiName">UserTransactionSessionFactory</attribute><xsl:text> 
    98112       </xsl:text><attribute name="ExportedInterface">org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory</attribute><xsl:text> 
     
    103117          </xsl:text></interceptors><xsl:text> 
    104118       </xsl:text></attribute><xsl:text> 
    105        </xsl:text><depends>jboss:service=invoker,type=https</depends><xsl:text> 
     119       </xsl:text><depends>jboss:service=invoker,type=http</depends><xsl:text> 
    106120         </xsl:text></mbean><xsl:text> 
    107121      </xsl:text></depends><xsl:text> 
    108122      </xsl:text><depends optional-attribute-name="TxProxyName"><xsl:text> 
    109123         </xsl:text><mbean code="org.jboss.invocation.http.server.HttpProxyFactory" name="jboss:service=proxyFactory,target=ClientUserTransaction"><xsl:text> 
    110        </xsl:text><attribute name="InvokerName">jboss:service=invoker,type=https</attribute><xsl:text> 
     124       </xsl:text><attribute name="InvokerName">jboss:service=invoker,type=http</attribute><xsl:text> 
    111125       </xsl:text><attribute name="JndiName"></attribute><xsl:text> 
    112126       </xsl:text><attribute name="ExportedInterface">org.jboss.tm.usertx.interfaces.UserTransactionSession</attribute><xsl:text> 
     
    117131          </xsl:text></interceptors><xsl:text> 
    118132       </xsl:text></attribute><xsl:text> 
    119        </xsl:text><depends>jboss:service=invoker,type=https</depends><xsl:text> 
     133       </xsl:text><depends>jboss:service=invoker,type=http</depends><xsl:text> 
    120134         </xsl:text></mbean><xsl:text> 
    121135      </xsl:text></depends><xsl:text> 
     
    147161  <xsl:template match="mbean/attribute[@name='InvokerURLSuffix']"> 
    148162                <xsl:comment>Nuxeo patch: replacing attribute[InvokerURLSuffix]</xsl:comment><xsl:text> 
    149          </xsl:text><attribute name="InvokerURL"><xsl:value-of select="concat('https://${jboss.bind.address}/invoker/',substring-after(text(),'/invoker/'))"/></attribute> 
     163         </xsl:text><attribute name="InvokerURL"><xsl:value-of select="concat('http://${jboss.bind.address}/invoker/',substring-after(text(),'/invoker/'))"/></attribute> 
    150164  </xsl:template> 
    151165 
     
    153167  <xsl:template match="mbean/attribute[@name='InvokerURL']"> 
    154168                <xsl:comment>Nuxeo patch: replacing attribute[InvokerURL]</xsl:comment><xsl:text> 
    155          </xsl:text><attribute name="InvokerURL"><xsl:value-of select="concat('https://${jboss.bind.address}/invoker/',substring-after(text(),'/invoker/'))"/></attribute> 
     169         </xsl:text><attribute name="InvokerURL"><xsl:value-of select="concat('http://${jboss.bind.address}/invoker/',substring-after(text(),'/invoker/'))"/></attribute> 
    156170  </xsl:template> 
    157171 
     
    162176    </xsl:copy><xsl:text> 
    163177    </xsl:text><xsl:comment>Nuxeo patch: mbean[jboss.j2ee:service=EARDeployer] now depends on HTTP invoker</xsl:comment><xsl:text> 
    164        </xsl:text><depends>jboss:service=invoker,type=https</depends> 
     178       </xsl:text><depends>jboss:service=invoker,type=http</depends><xsl:text> 
     179       </xsl:text><xsl:comment><xsl:text> 
     180        NXJBossExtensions: A flag indicating that the preprocessor 
     181           must always run before deploying the EAR. 
     182           On live systems you may want to avoid running the preprocessor 
     183           each time, and run it manually after modifying the EAR 
     184           either from the JMX console or by deleting the file 
     185           ".predeploy" and restarting JBoss. 
     186        </xsl:text></xsl:comment><xsl:text> 
     187       </xsl:text><attribute name="Debug">true</attribute> 
     188  </xsl:template> 
     189 
     190  <!-- Removing redundant EAR deployer depends on HTTPS invoker --> 
     191  <xsl:template match="mbean[@name='jboss.j2ee:service=EARDeployer']/attribute[@name='Debug']"> 
     192     <xsl:comment>Nuxeo patch: mbean[jboss.j2ee:service=EARDeployer]: removing redundant attribute</xsl:comment> 
     193  </xsl:template> 
     194  <xsl:template match="mbean[@name='jboss.j2ee:service=EARDeployer']/depends[text()='jboss:service=invoker,type=http']"> 
     195     <xsl:comment>Nuxeo patch: mbean[jboss.j2ee:service=EARDeployer]: removing redundant dependency</xsl:comment> 
    165196  </xsl:template> 
    166197 
     
    168199  <xsl:template match="mbean[@name='jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3']/attribute[@name='InvokerLocator']"> 
    169200      <xsl:comment>Nuxeo patch: mbean[jboss.j2ee:service=EARDeployer] now depends on HTTP invoker</xsl:comment><xsl:text> 
    170       </xsl:text><depends>jboss:service=invoker,type=https</depends><xsl:text> 
     201      </xsl:text><depends>jboss:service=invoker,type=http</depends><xsl:text> 
    171202      </xsl:text><attribute name="InvokerLocator">sslservlet://${jboss.bind.address}/invoker/Ejb3InvokerServlet</attribute> 
    172203  </xsl:template> 
  • nuxeo-ep/trunk/jboss-patch/src/main/xsl/standardjboss.xsl

    r29649 r29715  
    1313  <xsl:template match="invoker-proxy-binding/name[contains(text(),'-rmi-')]"> 
    1414      <xsl:comment>Nuxeo patch: invoker proxy binding renamed</xsl:comment><xsl:text> 
    15       </xsl:text><name><xsl:value-of select="concat(substring-before(text(),'-rmi-'), '-https-',substring-after(text(),'-rmi-'))"/></name> 
     15      </xsl:text><name><xsl:value-of select="concat(substring-before(text(),'-rmi-'), '-http-',substring-after(text(),'-rmi-'))"/></name> 
    1616  </xsl:template> 
    1717  <xsl:template match="invoker-proxy-binding/invoker-mbean[contains(text(),'jrmp')]"> 
    1818      <xsl:comment>Nuxeo patch: invoker proxy binding renamed</xsl:comment><xsl:text> 
    19       </xsl:text><invoker-mbean><xsl:value-of select="concat(substring-before(text(),'jrmp'), 'https',substring-after(text(),'jrmp'))"/></invoker-mbean> 
     19      </xsl:text><invoker-mbean><xsl:value-of select="concat(substring-before(text(),'jrmp'), 'http',substring-after(text(),'jrmp'))"/></invoker-mbean> 
    2020  </xsl:template> 
    2121 
    2222  <xsl:template match="invoker-proxy-binding-name[contains(text(),'-rmi-')]"> 
    2323      <xsl:comment>Nuxeo patch: invoker proxy binding renamed</xsl:comment><xsl:text> 
    24       </xsl:text><invoker-proxy-binding-name><xsl:value-of select="concat(substring-before(text(),'-rmi-'), '-https-',substring-after(text(),'-rmi-'))"/></invoker-proxy-binding-name> 
     24      </xsl:text><invoker-proxy-binding-name><xsl:value-of select="concat(substring-before(text(),'-rmi-'), '-http-',substring-after(text(),'-rmi-'))"/></invoker-proxy-binding-name> 
    2525  </xsl:template> 
    2626 
  • nuxeo-ep/trunk/jboss-patch/src/main/xsl/web-app.xsl

    r29647 r29715  
    3939         </xsl:text><init-param><xsl:text> 
    4040            </xsl:text><param-name>locatorUrl</param-name><xsl:text> 
    41             </xsl:text><param-value>sslservlet://${jboss.bind.address}/invoker/ServerInvokerServlet</param-value><xsl:text> 
     41            </xsl:text><param-value>servlet://${jboss.bind.address}/invoker/ServerInvokerServlet</param-value><xsl:text> 
    4242            </xsl:text><description>The servlet server invoker locator url</description><xsl:text> 
    4343         </xsl:text></init-param><xsl:text> 
     
    5353         </xsl:text><init-param><xsl:text> 
    5454            </xsl:text><param-name>locatorUrl</param-name><xsl:text> 
    55             </xsl:text><param-value>sslservlet://${jboss.bind.address}/invoker/Ejb3InvokerServlet</param-value><xsl:text> 
     55            </xsl:text><param-value>servlet://${jboss.bind.address}/invoker/Ejb3InvokerServlet</param-value><xsl:text> 
    5656            </xsl:text><description>The servlet server invoker locator url</description><xsl:text> 
    5757         </xsl:text></init-param><xsl:text>