JSPG0047E: Unable to locate tag library for uri

Posted on 2013-12-11
Last Modified: 2013-12-16
I am trying to use struts tag libraries in a .jsp for a 2.4 level j2ee web application.  I have the following at the top of my .jsp:

<%@ taglib uri="" prefix="logic" %>

the struts.jar file is in my classpath.  The meta-inf/tlds folder in the struts.jar file contains the struts-logic.tld file.  In that file the correct uri is defined: <uri></uri>

However, when I run the application in Rational Application Developer, I get the exception below.  Please help: JSPG0047E: Unable to locate tag library for uri       at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at      at$      at$
Question by:MikeAtWork66
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 36

Expert Comment

ID: 39713016
What version of Websphere/RAD are you using?

Author Comment

ID: 39713019
I'm using RAD 8.5.2 fix 2 with a Websphere 6.1 runtime.
LVL 13

Expert Comment

by:Murali Murugesan
ID: 39713023
Two things to try out,

1. Copy the tld folder from META-INF (from jar) to  WEB-INF/tld Declare the tld in web.xml just like doing it for JSTL. (This is the old approach)

2. I'm not so familiar with RAD so just see if there is a file generated for the libraries (may be xml) file and check if the struts jar is included (with no spacing issue)

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

LVL 36

Accepted Solution

mccarl earned 500 total points
ID: 39713027
There is this known issue for v6.1, could it be the problem?

Are you running it with the "Resource within the workspace" option? Have you tried the "Resources on server" option to see if there is a difference, as per the above issue?

Author Closing Comment

ID: 39721757
This bug was, indeed, the problem.
LVL 36

Expert Comment

ID: 39722987
I'm glad it helped! :)

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question