no bugs..just ...'undocumented features'

glad you found the solution!
Martin 
__________

  



> Date: Fri, 28 Mar 2014 17:51:08 -0700
> Subject: Re: NoClassDefFoundError using catalina ant deploy task
> From: catph...@catphive.net
> To: users@tomcat.apache.org
> 
> I investigated more and found the solution... It seems like a doc bug in
> that the tutorial doesn't tell you everything you need to do to get deploy
> to work.
> 
> tomcat-util.jar needs to be placed in ~/.ant/lib. The tutorial says to
> place catalina-ant.jar there, but doesn't mention tomcat-util.jar.
> 
> The user needs the manager-script role for deploy to succeed. The tutorial
> doesn't mention this.
> 
> Overall the appdev tutorial is pretty problematic because it doesn't really
> include a complete example and seems to have kind of random organization.
> 
> 
> On Fri, Mar 28, 2014 at 4:41 PM, Brendan Miller <catph...@catphive.net>wrote:
> 
> > I was going through the tomcat docs and trying to use the default
> > build.xml file provided by the appdev tutorial to deploy my war to tomcat.
> >
> > Example build.xml:
> > http://tomcat.apache.org/tomcat-8.0-doc/appdev/build.xml.txt
> >
> > However, when I use the deploy task I always get
> > a java.lang.NoClassDefFoundError:
> > org/apache/tomcat/util/codec/binary/Base64 error.
> >
> > I've copied the relevant code here:
> > https://gist.github.com/catphive/9845270
> >
> > I've verified that tomcat-util.jar, which contains Base64.cass, is on the
> > path, compile.classpath, passed to taskdef.
> >
> > I'm just trying to do a basic tomcat tutorial, and getting this deploy
> > task to run is hanging me up. Any ideas what could be doing wrong? Are
> > these deploy tasks broken somehow?
> >
> > Brendan
> >
                                          

Reply via email to