You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gernot <ge...@nurfuerspam.de> on 2015/02/10 16:23:56 UTC
ant task throws NoClassDefFoundError - Tomcat 8.0.18
Hi!
I'm using Tomcat 8.0.18.
I've following ant build.xml:
<import file="${tomcat.home}/bin/
catalina-tasks.xml"/>
<target name="jspc">
<jasper
validateXml="false"
uriroot="${webapp.path}"
webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
outputDir="${webapp.path}/WEB-INF/src" />
<validator path="${webapp.path}" />
...
</target>
<jasper> task works great, but <validator> task throws
java.lang.NoClassDefFoundError: org/apache/catalina/Globals
I have not found any documentation for <validator> task for Tomcat 8. Is
there any additional configuration necessary (in contrast to Tomcat
5.5/6/7)?
Re: ant task throws NoClassDefFoundError - Tomcat 8.0.18
Posted by Gernot <ge...@nurfuerspam.de>.
2015-02-10 16:41 GMT+01:00 Konstantin Kolinko <kn...@gmail.com>:
> 2015-02-10 18:23 GMT+03:00 Gernot <ge...@nurfuerspam.de>:
> > Hi!
> >
> > I'm using Tomcat 8.0.18.
> > I've following ant build.xml:
> >
> > <import file="${tomcat.home}/bin/
> > catalina-tasks.xml"/>
> >
> > <target name="jspc">
> >
> > <jasper
> > validateXml="false"
> > uriroot="${webapp.path}"
> > webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
> > outputDir="${webapp.path}/WEB-INF/src" />
> >
> > <validator path="${webapp.path}" />
> > ...
> > </target>
> >
> > <jasper> task works great, but <validator> task throws
> > java.lang.NoClassDefFoundError: org/apache/catalina/Globals
> > I have not found any documentation for <validator> task for Tomcat 8. Is
> > there any additional configuration necessary (in contrast to Tomcat
> > 5.5/6/7)?
>
> Thank you for the report, I filed this into Bugzilla
> https://issues.apache.org/bugzilla/show_bug.cgi?id=57558
>
> 1. What is the full stacktrace of that NoClassDefFoundError?
>
> 2. You should be able to fix this by adding catalina.jar to the list
> of files in catalina-tasks.xml
>
>
> Best regards,
> Konstantin Kolinko
>
>
Adding catalina.jar to the list of files in catalina-tasks.xml solves my
problem! - Thanks!
Thank you for reporting the problem in Bugzilla!
Best regards,
Gernot
Re: ant task throws NoClassDefFoundError - Tomcat 8.0.18
Posted by Konstantin Kolinko <kn...@gmail.com>.
2015-02-10 18:23 GMT+03:00 Gernot <ge...@nurfuerspam.de>:
> Hi!
>
> I'm using Tomcat 8.0.18.
> I've following ant build.xml:
>
> <import file="${tomcat.home}/bin/
> catalina-tasks.xml"/>
>
> <target name="jspc">
>
> <jasper
> validateXml="false"
> uriroot="${webapp.path}"
> webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
> outputDir="${webapp.path}/WEB-INF/src" />
>
> <validator path="${webapp.path}" />
> ...
> </target>
>
> <jasper> task works great, but <validator> task throws
> java.lang.NoClassDefFoundError: org/apache/catalina/Globals
> I have not found any documentation for <validator> task for Tomcat 8. Is
> there any additional configuration necessary (in contrast to Tomcat
> 5.5/6/7)?
Thank you for the report, I filed this into Bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=57558
1. What is the full stacktrace of that NoClassDefFoundError?
2. You should be able to fix this by adding catalina.jar to the list
of files in catalina-tasks.xml
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org