<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:10pt; font-weight:400; font-style:normal;">On Sunday 10 May 2009, Christian Steinert wrote:<br>
> Yves Glodt ha scritto:<br>
> > Hello,<br>
> ><br>
> > I have a case where I would like to deploy a selfmade jar-archive in<br>
> > OpenCms, and I am aware that I can put it in the lib-folder of the<br>
> > template.<br>
> ><br>
> > But my jar contains a servlet and a tag-library. Is there a way to<br>
> > register them in OpenCms, without editing web.xml (for the servlet) or<br>
> > putting the .tld file in the real-filesystem? I would like to keep the<br>
> > jar and all it's dependencies in the vfs, if possible... :)<br>
><br>
> If you need to have your own servlet then I am afraid that you need to<br>
> edit the web.xml in some way.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>ok. The servlet-definition should actually never change, so it's not a big issue if I have to define it once manually.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> But the deployment of your jars is still possible with a module - as<br>
> soon as a module is published, its jar files will be exported to the<br>
> opencms lib folder in the RFS automatically<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Ok, this is good news!<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>But what about the taglib-definition-file? This file might change more frequently...<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Usually the .tld file should go to /WEB-INF/. I could of course put it in a web-accessible path (which would be in the vfs then), but I would prefer to avoid that :-)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Best regards,<br>
Yves<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> Best Regards<br>
> Christian</p></body></html>