Changeset 29715
- Timestamp:
- 01/28/08 14:40:32 (10 months ago)
- Files:
-
- nuxeo-ep/trunk/jboss-patch/pom.xml (modified) (3 diffs)
- nuxeo-ep/trunk/jboss-patch/src/main/xsl/ds.xsl (modified) (2 diffs)
- nuxeo-ep/trunk/jboss-patch/src/main/xsl/jboss-service.xsl (modified) (11 diffs)
- nuxeo-ep/trunk/jboss-patch/src/main/xsl/standardjboss.xsl (modified) (1 diff)
- nuxeo-ep/trunk/jboss-patch/src/main/xsl/web-app.xsl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nuxeo-ep/trunk/jboss-patch/pom.xml
r28300 r29715 40 40 <transformationSets> 41 41 <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> 45 45 </includes> 46 46 <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> 47 82 </transformationSet> 48 83 </transformationSets> … … 74 109 <configuration> 75 110 <tasks> 76 <echo message="Patching log4j config..." />111 <echo message="Patching XML configuration..." /> 77 112 <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 80 117 </tasks> 81 118 </configuration> … … 90 127 <tasks> 91 128 <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" /--> 94 131 </tasks> 95 132 </configuration> nuxeo-ep/trunk/jboss-patch/src/main/xsl/ds.xsl
r29624 r29715 22 22 </xsl:copy><xsl:text> 23 23 </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=http s</jmx-invoker-name>24 </xsl:text><jmx-invoker-name>jboss:service=invoker,type=http</jmx-invoker-name> 25 25 </xsl:template> 26 26 … … 36 36 </xsl:copy><xsl:text> 37 37 </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=http s</jmx-invoker-name>38 </xsl:text><jmx-invoker-name>jboss:service=invoker,type=http</jmx-invoker-name> 39 39 </xsl:template> 40 40 nuxeo-ep/trunk/jboss-patch/src/main/xsl/jboss-service.xsl
r29645 r29715 19 19 <xsl:template match="mbean[@name='jboss:service=invoker,type=pooled']"> 20 20 <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> 21 35 </xsl:template> 22 36 … … 39 53 <xsl:comment>Nuxeo patch: mbean[jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory] replaced</xsl:comment><xsl:text> 40 54 </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">http s://${jboss.bind.address}/invoker/JMXInvokerServlet</attribute><xsl:text>55 </xsl:text><attribute name="InvokerURL">http://${jboss.bind.address}/invoker/JMXInvokerServlet</attribute><xsl:text> 42 56 </xsl:text><depends optional-attribute-name="InvokerName">jboss.jmx:type=adaptor,name=Invoker</depends><xsl:text> 43 </xsl:text><depends>jboss:service=invoker,type=http s</depends><xsl:text>57 </xsl:text><depends>jboss:service=invoker,type=http</depends><xsl:text> 44 58 </xsl:text><attribute name="ExportedInterface">org.jboss.jmx.adaptor.rmi.RMIAdaptor</attribute><xsl:text> 45 59 </xsl:text><attribute name="JndiName">jmx/invoker/HttpAdaptor</attribute><xsl:text> … … 53 67 </xsl:text></attribute><xsl:text> 54 68 </xsl:text></mbean><xsl:text> 55 </xsl:text><mbean code="org.jboss.jmx.connector.invoker.MBeanProxyRemote" name="jboss.jmx:type=adaptor,name=MBeanProxyRemote,protocol=http s"><xsl:text>56 </xsl:text><depends optional-attribute-name="MBeanServerConnection">jboss.jmx:type=adaptor,name=Invoker,protocol=http s,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> 57 71 </xsl:text></mbean> 58 72 </xsl:template> … … 61 75 <xsl:template match="mbean[@name='jboss.admin:service=PluginManager']/depends[text()='jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory']"> 62 76 <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=http s,service=proxyFactory</depends>77 </xsl:text><depends>jboss.jmx:type=adaptor,name=Invoker,protocol=http,service=proxyFactory</depends> 64 78 </xsl:template> 65 79 … … 94 108 </xsl:text><depends><xsl:text> 95 109 </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=http s</attribute><xsl:text>110 </xsl:text><attribute name="InvokerName">jboss:service=invoker,type=http</attribute><xsl:text> 97 111 </xsl:text><attribute name="JndiName">UserTransactionSessionFactory</attribute><xsl:text> 98 112 </xsl:text><attribute name="ExportedInterface">org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory</attribute><xsl:text> … … 103 117 </xsl:text></interceptors><xsl:text> 104 118 </xsl:text></attribute><xsl:text> 105 </xsl:text><depends>jboss:service=invoker,type=http s</depends><xsl:text>119 </xsl:text><depends>jboss:service=invoker,type=http</depends><xsl:text> 106 120 </xsl:text></mbean><xsl:text> 107 121 </xsl:text></depends><xsl:text> 108 122 </xsl:text><depends optional-attribute-name="TxProxyName"><xsl:text> 109 123 </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=http s</attribute><xsl:text>124 </xsl:text><attribute name="InvokerName">jboss:service=invoker,type=http</attribute><xsl:text> 111 125 </xsl:text><attribute name="JndiName"></attribute><xsl:text> 112 126 </xsl:text><attribute name="ExportedInterface">org.jboss.tm.usertx.interfaces.UserTransactionSession</attribute><xsl:text> … … 117 131 </xsl:text></interceptors><xsl:text> 118 132 </xsl:text></attribute><xsl:text> 119 </xsl:text><depends>jboss:service=invoker,type=http s</depends><xsl:text>133 </xsl:text><depends>jboss:service=invoker,type=http</depends><xsl:text> 120 134 </xsl:text></mbean><xsl:text> 121 135 </xsl:text></depends><xsl:text> … … 147 161 <xsl:template match="mbean/attribute[@name='InvokerURLSuffix']"> 148 162 <xsl:comment>Nuxeo patch: replacing attribute[InvokerURLSuffix]</xsl:comment><xsl:text> 149 </xsl:text><attribute name="InvokerURL"><xsl:value-of select="concat('http s://${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> 150 164 </xsl:template> 151 165 … … 153 167 <xsl:template match="mbean/attribute[@name='InvokerURL']"> 154 168 <xsl:comment>Nuxeo patch: replacing attribute[InvokerURL]</xsl:comment><xsl:text> 155 </xsl:text><attribute name="InvokerURL"><xsl:value-of select="concat('http s://${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> 156 170 </xsl:template> 157 171 … … 162 176 </xsl:copy><xsl:text> 163 177 </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> 165 196 </xsl:template> 166 197 … … 168 199 <xsl:template match="mbean[@name='jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3']/attribute[@name='InvokerLocator']"> 169 200 <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=http s</depends><xsl:text>201 </xsl:text><depends>jboss:service=invoker,type=http</depends><xsl:text> 171 202 </xsl:text><attribute name="InvokerLocator">sslservlet://${jboss.bind.address}/invoker/Ejb3InvokerServlet</attribute> 172 203 </xsl:template> nuxeo-ep/trunk/jboss-patch/src/main/xsl/standardjboss.xsl
r29649 r29715 13 13 <xsl:template match="invoker-proxy-binding/name[contains(text(),'-rmi-')]"> 14 14 <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-'), '-http s-',substring-after(text(),'-rmi-'))"/></name>15 </xsl:text><name><xsl:value-of select="concat(substring-before(text(),'-rmi-'), '-http-',substring-after(text(),'-rmi-'))"/></name> 16 16 </xsl:template> 17 17 <xsl:template match="invoker-proxy-binding/invoker-mbean[contains(text(),'jrmp')]"> 18 18 <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'), 'http s',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> 20 20 </xsl:template> 21 21 22 22 <xsl:template match="invoker-proxy-binding-name[contains(text(),'-rmi-')]"> 23 23 <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-'), '-http s-',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> 25 25 </xsl:template> 26 26 nuxeo-ep/trunk/jboss-patch/src/main/xsl/web-app.xsl
r29647 r29715 39 39 </xsl:text><init-param><xsl:text> 40 40 </xsl:text><param-name>locatorUrl</param-name><xsl:text> 41 </xsl:text><param-value>s slservlet://${jboss.bind.address}/invoker/ServerInvokerServlet</param-value><xsl:text>41 </xsl:text><param-value>servlet://${jboss.bind.address}/invoker/ServerInvokerServlet</param-value><xsl:text> 42 42 </xsl:text><description>The servlet server invoker locator url</description><xsl:text> 43 43 </xsl:text></init-param><xsl:text> … … 53 53 </xsl:text><init-param><xsl:text> 54 54 </xsl:text><param-name>locatorUrl</param-name><xsl:text> 55 </xsl:text><param-value>s slservlet://${jboss.bind.address}/invoker/Ejb3InvokerServlet</param-value><xsl:text>55 </xsl:text><param-value>servlet://${jboss.bind.address}/invoker/Ejb3InvokerServlet</param-value><xsl:text> 56 56 </xsl:text><description>The servlet server invoker locator url</description><xsl:text> 57 57 </xsl:text></init-param><xsl:text>
