On Thu, 2011-05-05 at 13:35 +0200, Simon Paillard wrote:
> On Wed, May 04, 2011 at 08:12:10PM -0430, Ernesto Hernández-Novich wrote:
> > I've been trying to build a tomcat7 package based on the existing
> > tomcat6 package. After fiddling with it for a while, I've managed to
> > "build" what looks like a working binary, but I get a backtrace when the
> > services starts.
> > 
> > The relevant part of the backtrace is
> > 
> > java.lang.NoClassDefFoundError: org/apache/tomcat/util/res/StringManager
> >     at org.apache.catalina.startup.Catalina.<clinit>(Catalina.java:80)
> > ...
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:406)
> > 
> > meaning there's a missing class.
> > 
> > I found the reference to the class in build.xml however I have no idea
> > why it's not being built nor what should I do in debian/rules to install
> > it in its proper place. I've run ant manually and gotten the file to
> > build, and attempted putting it in tomcat's class search path, but the
> > problem persists.
> > 
> > If anyone is working on a tomcat7 package, or can shed light on what I'm
> > supposed to do next, I'd appreciate any pointers.

Hi Ernesto

I'm hoping to start packaging tomcat7 in the next few weeks (indeed I'm
running a session on it at the Ubuntu Developer Summit next week if you
want to tune in - see [0]).  

If you can wait a bit it would be great to collaborate on this work.

Looking at this issue specifically; this class should be contained in
tomcat-util.jar that the build process produces.  It looks like the
jar's produced by the tomcat build has changed quite a bit since tomcat6
so the packaging will need a thorough review to ensure that its picking
up all the right bits and pieces.  

From memory a standard tomcat install relies on jar files being
installed to the correct locations in the CATALINA_BASE directory so you
might want to start looking there.

I generally lurk on the debian-java IRC channel if you want to discuss
in more detail.

Cheers

James

[0]
https://blueprints.launchpad.net/ubuntu/+spec/server-o-tomcat7-packaging
-- 
James Page
Software Engineer, Ubuntu Server Team

Attachment: signature.asc
Description: This is a digitally signed message part

__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers>. Please 
use
[email protected] for discussions and questions.

Reply via email to