<div class="gmail_extra">Thanks, that works. </div><div class="gmail_extra"><br></div><div class="gmail_extra">I think it would be far better to have this optional in OpenSAML itself though. Duplicating code is a major sin ;)</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Tom</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Apr 27, 2012 at 11:47 AM, Chad La Joie <span dir="ltr">&lt;<a href="mailto:lajoie@itumi.biz" target="_blank">lajoie@itumi.biz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OpenSAML uses velocity for things like generating the body for the<br>
SAML 1 and 2 POST bindings.  So, if all you&#39;re not using the binding<br>
layer you don&#39;t need it.<br>
<br>
To get rid of it, dump the dependency and create your own boostrap<br>
class.  It&#39;s quite likely there are other things you can leave out too<br>
(e.g., XACML support).<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Apr 27, 2012 at 04:05, Tom van den Berge<br>
&lt;<a href="mailto:tom.vandenberge@gmail.com">tom.vandenberge@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m using the OpenSAML library to use single-sign-on in my web application.<br>
&gt; I noticed that OpenSAML has a dependency on Apache Velocity, and is<br>
&gt; initializing it when calling DefaultBootstrap.bootstrap().<br>
&gt;<br>
&gt; The problem is that my web application also uses Velocity, and that Velocity<br>
&gt; is initialized in a static way; that is, it can be initialized only once per<br>
&gt; VM. The result is that OpenSAML &quot;hijacks&quot; Velocity, and the initialization<br>
&gt; performed by my web application is ignored, which effectively breaks my<br>
&gt; application! In other words, it looks like OpenSAML can&#39;t be used in<br>
&gt; applications that use Velocity.<br>
&gt;<br>
&gt; I way quite surprised to learn that OpenSAML is using Velocity; for the<br>
&gt; purpose I&#39;m using OpenSAML (generating AuthRequest and verifying<br>
&gt; Assertions), I can&#39;t really think of a reason to use Velocity. Maybe it is<br>
&gt; used by a specific part of the library that I don&#39;t use? Then, it would be<br>
&gt; highly recommended to make the dependency on Velocity optional. I don&#39;t<br>
&gt; think that is possible now?<br>
&gt;<br>
&gt; Is there a way to use or configure OpenSAML in such a way that it doesn&#39;t<br>
&gt; conflict with my own Velocity configuration?<br>
&gt;<br>
&gt;<br>
&gt; Many thanks,<br>
&gt;<br>
&gt; Tom<br>
&gt;<br>
</div></div><span class="HOEnZb"><font color="#888888">&gt; --<br>
&gt; To unsubscribe from this list send an email to<br>
&gt; <a href="mailto:dev-unsubscribe@shibboleth.net">dev-unsubscribe@shibboleth.net</a><br>
<br>
<br>
<br>
--<br>
Chad La Joie<br>
<a href="http://www.itumi.biz" target="_blank">www.itumi.biz</a><br>
trusted identities, delivered<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:dev-unsubscribe@shibboleth.net">dev-unsubscribe@shibboleth.net</a><br>
</font></span></blockquote></div><br></div>