I have a problem developing my application for WebSphere 7. Here's the setup. I have a maven based project consisting of several modules that are developed in RAD 7.5.5.2
One of the modules is a regular web application (war) that uses JSP and relies on taglib.
Taglib itself is another module - a simple Java project with two files, a taglib descriptor and a tag file in META-INF / tags.
When I create a taglib banner and manually copy it to the WEB-INF / lib of the web application, the tag is selected correctly and displayed on the page.
When I deploy the project via RAD - taglib is not selected. The error says:
``` com.ibm.ws.jsp.JspCoreException: JSPG0047E: Unable to locate tag library for uri http://juriy.com/myproject/jsp/my-taglib ```
The same tag libraries that are packaged in the JAR and added to WEB-INF / lib work fine.
When I open the WebSphere admin console, I see that the taglib project is recognized by WebSphere. However, it is not packaged as a JAR; instead, the project path is added to the webapp class path. IN
``` Troublehooting -> Class Loader Viewer -> Module - com.ibm.ws.classloader.CompoundClassLoader ```
I see an entry for my taglib:
``` file:/D:/Data/MyProject/UIComponents/target/classes ```
In other words, WS doesn't seem to want to pack the project as a JAR during the development cycle, and then it doesn't fit like taglib.
Is there a way to tell RAD (or WebSphere) "Please pack this project as a JAR before adding it to the classpath"? Any alternative way to do this work is also welcome. I canβt manually copy the jar all the time during development - we all want everything to work automatically.
Disclaimer: I am not a WebSphere expert (only a week working with this animal), and I may have missed some obvious settings. Please suggest anything that can solve this problem.