Advertisement

07.16.2007 at 05:59AM PDT, ID: 22698462
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Using a tag library in one war when the TLD is defined in a different war

Tags: birt, tag, library
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</taglib-uri>
            <taglib-location>/WEB-INF/tlds/birt.tld</taglib-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.rptdesign"
             format="html">
    <birt:param name="parameterTest" value="someValue"></birt:param>
</birt:viewer>

When I attempt to load this page from a browser, I get:

javax.servlet.ServletException: 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/BIRTViewer.jspf" %><%
                         ^-----------------------------^
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:236)
        at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
        at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:493)
        at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.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.
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: dfu23
Solution Provided By: suprapto45
Participating Experts: 1
Solution Grade: B
Views: 42
Translate:
Loading Advertisement...
07.16.2007 at 09:15PM PDT, ID: 19502189

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29