I have a JEE application war that is inside of an ear file. Let's call this application.war and application.ear. This application is deployed under Weblogic Server 9.1 with a location of
https://localhost:port/application/.
I am trying to integrate the BIRT web viewer which comes prepackaged in a separate war named birt.war. I successfully deployed this war to the same Weblogic Server with a location of
https://localhost:port/birt/.
BIRT comes packaged with a tag library, which is how I'd like to integrate it with my existing application. In the birt.war, the web.xml has the following defined:
<taglib>
<taglib-uri>/birt.tld</tag
lib-uri>
<taglib-location>/WEB-INF/
tlds/birt.
tld</tagli
b-location
>
</taglib>
In my application.war, I've added a simple JSP fragment that will be included on pages that need to show the report viewer. That JSP fragment looks like:
<%@ taglib uri="/birt/birt.tld" prefix="birt" %>
<birt:viewer id="1"
isHostPage="false"
pattern="frameset"
reportDesign="reportName.r
ptdesign"
format="html">
<birt:param name="parameterTest" value="someValue"></birt:p
aram>
</birt:viewer>
When I attempt to load this page from a browser, I get:
javax.servlet.ServletExcep
tion: Failed to compile JSP. No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ include file="//jspf/report/BIRTVi
ewer.jspf"
%><%
^-------------------------
----^
at weblogic.servlet.internal.
ServletStu
bImpl.exec
ute(Servle
tStubImpl.
java:236)
at weblogic.servlet.internal.
ServletStu
bImpl.onAd
dToMapExce
ption(Serv
letStubImp
l.java:380
)
at weblogic.servlet.internal.
ServletStu
bImpl.exec
ute(Servle
tStubImpl.
java:298)
at weblogic.servlet.internal.
ServletStu
bImpl.exec
ute(Servle
tStubImpl.
java:165)
at weblogic.servlet.internal.
RequestDis
patcherImp
l.invokeSe
rvlet(Requ
estDispatc
herImpl.ja
va:493)
at weblogic.servlet.internal.
RequestDis
patcherImp
l.forward(
RequestDis
patcherImp
l.java:245
)
Now, on to the question. Does a tag library have to be defined in the same web application war as the JSP that is using it? Have I made some other obvious oversight with this configuration? Any help would be greatly appreciated.