Hi, i am deploying a ear application in the liberty server using the "run applications directly from the workspace" feature of eclipse ibm developer tools.
I noticed tlds inside a local jar existing within the same workspace were being ignored by the server, throwing this error:
[14/02/22 9:29:27:765 CET] 00000029 webapp E com.ibm.ws.webcontainer.webapp.WebApp reportRecursiveError Excepcion de pagina de error: myapp-war-1.0/myappExcepcion de pagina de errorcom.ibm.ws.jsp.webcontainerext.JSPErrorReport: /jsp/my.jsp(0,1) --> JSPG0005E: El campo tld no se ha podido encontrar para el uri[http://mylib/mytaglib] prefijo [my]
I also noticed tlds from jars coming from maven dependencies are being loaded succesfully.
Reviewing the xml used to deploy the app in place i noticed local workspace jars are being added in X:\path\to\liberty\servers\defaultServer\apps\myapp.xml this way:
<archive targetInArchive="/WEB-INF/lib/lib-with-tlds.jar">
<dir sourceOnDisk="X:\path\to\eclipse\wslib-with-tlds\target\classes" targetInArchive="/"/>
</archive>
Changing it to the format used for external depedencies (i.e. maven ones)
<file sourceOnDisk="X:\path\to\eclipse\wslib-with-tlds\target\lib-with-tlds.jar" targetInArchive="/WEB-INF/lib/lib-with-tlds.jar"/>
makes it work.
However in each redeploy the xml changes and the error is reproduced again.
I searched if this is a known bug without results, help to get a better workaround or a proper fix will be very appreciated
Thanks in advance
------------------------------
Javier Neira
Vitoria VI
1-666-666-6666
------------------------------