Thanks, <br>   A patch (attached to <a href="https://jira.jboss.org/jira/browse/GTNPORTAL-25" target="_blank">https://jira.jboss.org/jira/browse/GTNPORTAL-25</a>) using maven resource filtering is being tested by mwringe.<br>

Dimitri BAELI - eXo Platform SAS<br>
<br><br><div class="gmail_quote">On Tue, Oct 6, 2009 at 7:33 PM, Matt Wringe <span dir="ltr">&lt;<a href="mailto:mwringe@redhat.com" target="_blank">mwringe@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div>On Tue, 2009-10-06 at 19:20 +0200, Dimitri BAELI wrote:<br>
&gt; ../../deploy/exoplatform.ear/pc-portlet-2.1.0-Beta01.jar has three<br>
&gt; main issues:<br>
&gt; * ../../deploy : hard coded path<br>
&gt; * exoplatform.ear : hard coded ear name<br>
&gt; * pc-portlet-2.1.0-Beta01.jar : hardcoded version<br>
&gt;<br>
&gt; We can at least use the resource filtering of maven to generate the<br>
&gt; server-patch jar<br>
&gt; * Ideally with ${<a href="http://ear.name" target="_blank">ear.name</a>} and ${org.gatein.pc.version} from<br>
&gt; gatein-parent pom.<br>
&gt;<br>
&gt; Please fill an issue on that in GTNPORTAL<br>
<br>
</div><a href="https://jira.jboss.org/jira/browse/GTNPORTAL-25" target="_blank">https://jira.jboss.org/jira/browse/GTNPORTAL-25</a><br>
<div><div></div><div><br>
&gt; , I&#39;ll have a look, but using the maven tooling is better imho (as<br>
&gt; exobuild is slowly migrating to maven).<br>
&gt;<br>
&gt; Dimitri BAELI - eXo Platform SAS<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Oct 6, 2009 at 5:35 PM, Matt Wringe &lt;<a href="mailto:mwringe@redhat.com" target="_blank">mwringe@redhat.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         On Tue, 2009-10-06 at 17:08 +0200, Julien Viet wrote:<br>
&gt;         &gt; On Oct 6, 2009, at 4:59 PM, Matt Wringe wrote:<br>
&gt;         &gt;<br>
&gt;         &gt; &gt; Portlet TLDs on the JBoss AS version of GateIn was not<br>
&gt;         working, so I<br>
&gt;         &gt; &gt; had<br>
&gt;         &gt; &gt; to renable the patch to specify the portlet war which<br>
&gt;         contains the<br>
&gt;         &gt; &gt; portlet TLDs. [I don&#39;t know why the patch was missing, if<br>
&gt;         there was a<br>
&gt;         &gt; &gt; reason for its absence please let me know]<br>
&gt;         &gt; &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; It works differently in tomcat (to not say more<br>
&gt;         conveniently), as<br>
&gt;         &gt; tomcat takes any TLD that it finds in the lib directory.<br>
&gt;<br>
&gt;<br>
&gt;         yeah, I like how with tomcat it will find and use all tlds on<br>
&gt;         the<br>
&gt;         classpath.<br>
&gt;<br>
&gt;         &gt; &gt; This means we have a patch to the<br>
&gt;         deployers/jbossweb.deployers/web.xml<br>
&gt;         &gt; &gt; to specify the jar containing the tlds (see<br>
&gt;         &gt; &gt; <a href="http://www.jboss.org/community/wiki/GlobalTLDs" target="_blank">http://www.jboss.org/community/wiki/GlobalTLDs</a>)<br>
&gt;         &gt;<br>
&gt;         &gt; it would be nice in JBoss AS to have a better way to add<br>
&gt;         global TLD<br>
&gt;         &gt; that do not require a patch of a file because we also have<br>
&gt;         to keep the<br>
&gt;         &gt; web.xml file in our JBoss patch directory. Would it be<br>
&gt;         possible to<br>
&gt;         &gt; have something that goes in that direction, like a<br>
&gt;         deployment<br>
&gt;         &gt; descriptor that would be found by JBoss deployers and we<br>
&gt;         would only<br>
&gt;         &gt; have to have the correct declaration in the JBoss patch<br>
&gt;         directory.<br>
&gt;<br>
&gt;<br>
&gt;         We can create a custom jboss deployer that could do this for<br>
&gt;         us (and we<br>
&gt;         could just use the portlet.xml file as the triggering<br>
&gt;         deployment<br>
&gt;         descriptor).<br>
&gt;         I already have one that was designed for now abandoned JBoss<br>
&gt;         AS5 version<br>
&gt;         of JBoss Portal. What this deployer does is modify the web.xml<br>
&gt;         of the<br>
&gt;         portlet to do the exact same thing as the patch. JBoss<br>
&gt;         deployers are<br>
&gt;         really limited at this point when it comes to modify things<br>
&gt;         other than<br>
&gt;         deployment descriptors.<br>
&gt;         There are a lot of things we can do with a JBoss deployer, we<br>
&gt;         wouldn&#39;t<br>
&gt;         even need to use the container specific wci implementation<br>
&gt;         since the<br>
&gt;         deployer can easily add the servlets to the web.xml.<br>
&gt;<br>
&gt;         I am not sure if we want to go this route (and we would need<br>
&gt;         to update<br>
&gt;         exobuild to allow deployment to the deployers directory<br>
&gt;         instead of the<br>
&gt;         deploy directory).<br>
&gt;<br>
&gt;         Thoughts on this?<br>
&gt;<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt;&gt; &lt;init-param&gt;<br>
&gt;         &gt; &gt;&gt;  &lt;description&gt;Portlet standard tlds&lt;/description&gt;<br>
&gt;         &gt; &gt;&gt;  &lt;param-name&gt;tagLibJar2&lt;/param-name&gt;<br>
&gt;         &gt; &gt;&gt;<br>
&gt;          &lt;param-value&gt;../../deploy/exoplatform.ear/pc-portlet-2.1.0-<br>
&gt;         &gt; &gt;&gt; Beta1.jar&lt;/param-value&gt;<br>
&gt;         &gt; &gt;&gt; &lt;/init-param&gt;<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt; Can we change the jar name to be unversioned so that when<br>
&gt;         the version<br>
&gt;         &gt; &gt; changes it doesn&#39;t break this?<br>
&gt;         &gt;<br>
&gt;         &gt; you mean as a deploy time facility ?<br>
&gt;         &gt;<br>
&gt;         &gt; as this jar contains code, maybe it would be best to copy<br>
&gt;         the TLD in<br>
&gt;         &gt; another jar file at deploy time that would have a constant<br>
&gt;         name.<br>
&gt;<br>
&gt;<br>
&gt;         hmm, I guess we could do that and just have it as an exploded<br>
&gt;         war in the<br>
&gt;         patch. If we want to be able to deploy an actual war from the<br>
&gt;         maven<br>
&gt;         repo, we would still need to figure out how remove the<br>
&gt;         versioning from<br>
&gt;         its name (I don&#39;t know if exopackaging can do that or not).<br>
&gt;<br>
&gt;<br>
&gt;         &gt; &gt; Or can we specify a token instead of<br>
&gt;         &gt; &gt; hardcoding the jar name?<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt; Or does anyone know a better way to add the tlds to the<br>
&gt;         portlets on<br>
&gt;         &gt; &gt; JBoss AS?<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt; _______________________________________________<br>
&gt;         &gt; &gt; gatein-dev mailing list<br>
&gt;         &gt; &gt; <a href="mailto:gatein-dev@lists.jboss.org" target="_blank">gatein-dev@lists.jboss.org</a><br>
&gt;         &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/gatein-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/gatein-dev</a><br>
&gt;         &gt;<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         gatein-dev mailing list<br>
&gt;         <a href="mailto:gatein-dev@lists.jboss.org" target="_blank">gatein-dev@lists.jboss.org</a><br>
&gt;         <a href="https://lists.jboss.org/mailman/listinfo/gatein-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/gatein-dev</a><br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br>