tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Pande <Amit.Pa...@veritas.com>
Subject Re: Tomcat 8.5 : Jasper errors
Date Mon, 27 Feb 2017 22:04:48 GMT
Any help on this as this worked in 8.0.x as expected but broke in 8.5.x (Checked with 8.5.9
and 8.5.11). This is preventing us from upgrade to Tomcat 8.5.
I see Jasper binaries have updated in 8.5.x. Is this a bug in catalina-jasper component?

 
To elaborate further, we have a customTag.jar with following layout. We just jasper task on
this to generated Java files.


customTag.jar
       ---META-INF
             --- gui.tld (This tld file has a reference to tag file under META-INF/tags directory)
             ---tags_directory 
                  ---- abc.tag ( The actual tag file)  


The jasper ant task is as follows -→


		<taskdef classname="org.apache.jasper.JspC" name="jasper2" description="BASE JSPS ">

		   <classpath refid="compile.classpath"/>                            
		   <classpath path="${gui.dist.dir}/${project.distname}/temp/WEB-INF/resources/"/>
  (This directory has the above mentioned jar file)
		</taskdef>

                               <jasper2 validateTld="false"  uriroot="${webgui.dist.dir}/${project.distname}/temp/jsps"

    	     	webXmlFragment="${dist.dir}/webcommon/WEB-INF/web-fragment.xml"
  		package="com.abc.xyz.web" 
    	    	outputDir="${src.jspc}" verbose="1" failonerror="yes" />


On 2/25/17, 7:32 AM, "Amit Pande" <Amit.Pande@veritas.com> wrote:

    When upgraded from Tomcat 8.0.x to 8.5.x, while building our custom tags, the build is
failing with below stack trace.
    
    The exception file not found does not give any clue on what’s the problem with the custom
tag definition. I tried setting verbose attribute in jspc ant task as well as tried running
ant with debug/verbose on.  Did not see any helpful information. 
    
    Appreciate any help on this.
    
    
    E:\test\ant\build.xml:407: org
    .apache.jasper.JasperException: File [/META-INF/tags/abc.tag] not
     found
            at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
    andler.java:55)
            at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.j
    ava:293)
            at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.j
    ava:80)
            at org.apache.jasper.compiler.TagFileProcessor.parseTagFileDirectives(Ta
    gFileProcessor.java:500)
            at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagFileInfo(TagLi
    braryInfoImpl.java:328)
            at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoIm
    pl.java:204)
            at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:43
    4)
            at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
            at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1448)
            at org.apache.jasper.compiler.Parser.parse(Parser.java:145)
            at org.apache.jasper.compiler.ParserController.doParse(ParserController.
    java:244)
            at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
    va:105)
            at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:372)
            at org.apache.jasper.JspC.processFile(JspC.java:1263)
            at org.apache.jasper.JspC.execute(JspC.java:1415)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:390)
            at org.apache.tools.ant.Target.performTasks(Target.java:411)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
    CheckExecutor.java:38)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:390)
            at org.apache.tools.ant.Target.performTasks(Target.java:411)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
    cutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at org.apache.tools.ant.Main.runBuild(Main.java:809)
            at org.apache.tools.ant.Main.startAnt(Main.java:217)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
            at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
     
    
    ?B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB�?�?[��X��ܚX�K??K[XZ[?�?\�\��][��X��ܚX�P??�X�]?�\?X�?K�ܙ�B��܈?Y??]?[ۘ[??��[X[�?�??K[XZ[?�?\�\��Z?[????�X�]?�\?X�?K�ܙ�B�

Mime
View raw message