<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"><<a href="mailto:lajoie@itumi.biz" target="_blank">lajoie@itumi.biz</a>></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're not using the binding<br>
layer you don't need it.<br>
<br>
To get rid of it, dump the dependency and create your own boostrap<br>
class. It'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>
<<a href="mailto:tom.vandenberge@gmail.com">tom.vandenberge@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm using the OpenSAML library to use single-sign-on in my web application.<br>
> I noticed that OpenSAML has a dependency on Apache Velocity, and is<br>
> initializing it when calling DefaultBootstrap.bootstrap().<br>
><br>
> The problem is that my web application also uses Velocity, and that Velocity<br>
> is initialized in a static way; that is, it can be initialized only once per<br>
> VM. The result is that OpenSAML "hijacks" Velocity, and the initialization<br>
> performed by my web application is ignored, which effectively breaks my<br>
> application! In other words, it looks like OpenSAML can't be used in<br>
> applications that use Velocity.<br>
><br>
> I way quite surprised to learn that OpenSAML is using Velocity; for the<br>
> purpose I'm using OpenSAML (generating AuthRequest and verifying<br>
> Assertions), I can't really think of a reason to use Velocity. Maybe it is<br>
> used by a specific part of the library that I don't use? Then, it would be<br>
> highly recommended to make the dependency on Velocity optional. I don't<br>
> think that is possible now?<br>
><br>
> Is there a way to use or configure OpenSAML in such a way that it doesn't<br>
> conflict with my own Velocity configuration?<br>
><br>
><br>
> Many thanks,<br>
><br>
> Tom<br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> To unsubscribe from this list send an email to<br>
> <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>