tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manikandan <manikanda...@gmail.com>
Subject Re: Tomcat 7 - Getting tld scan error when i compile jsp using Ant task.
Date Thu, 27 Jun 2013 14:12:07 GMT
Thanks for your immediate response.

Bolded sentence only an *info* message. Next sentence is an exception after
that ant process will get terminated and couldn't complete the compilation
task.

     [java] 27 Jun, 2013 2:44:47 PM
> org.apache.jasper.compiler.TldLocationsCache tldScanJar
> *     [java] INFO: At least one JAR was scanned for TLDs yet contained no
> TLDs. Enable debug logging for this logger for a complete list of JARs that
> were scanned but no TLDs were found in them. Skipping unneeded JARs during
> scanning can improve startup time and JSP compilation time.
> *     [java] org.apache.jasper.JasperException:
> file:/home/local/mani/jsp/test.jsp (line: 2, column: 131) File
> "/META-INF/struts-tags.tld" not found



Only required jars in the classpath. As you aware of this, tomcat 7 only
added the functionality of jar scanning for TLDs, due to this I have to
include *tomcat-api.jar, tomcat-util.jar* in classpath because
*jasper.jar*has dependency of these two jars.


The problem is Jar scanning is not reading the *struts-tags.tld* file which
is present under META-INF/ directory of *struts2-core-2.3.12.jar. *This
might be the reason for getting the error *"File
"/META-INF/struts-tags.tld" not found"*
*
*
I have came across this
site<http://thinkinginsoftware.blogspot.in/2011/10/tomcat-7-scans-all-jars-for-tlds.html>which
would says
If you copy all taglibs that you use into /META-INF, Tomcat won't scan all
the jars for the tld's.


Note: Formerly, It was working fine with tomcat 6 version. After migrating
to the Tomcat 7, am getting this error.





On Thu, Jun 27, 2013 at 6:50 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Manikandan [mailto:manikandanmv@gmail.com]
> > Subject: Tomcat 7 - Getting tld scan error when i compile jsp using Ant
> task.
>
> > Got the below error
>
> It's not an error; note the use of INFO in the message.
>
> > Can some one throw lights to resolve this issue.
>
> It's simply providing information on how you can make the compilation
> process more efficient.  Add the jars that aren't pertinent to the
> <exclude> list in the Ant task.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
regards,
Manikandan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message