Bug#300209: tomcat4: tomcat dies with "Parse error in default web.xml" after upgrade

Wolfgang Baer 300209@bugs.debian.org, 300209@bugs.debian.org
Fri Apr 8 07:10:03 2005


Barry Hawkins wrote:
[...]

> Guys,
>     I have committed a debian/control file for the tomcat4 package that
> imposes both build (tomcat4 source) and runtime(tomcat4 binary)
> dependencies the following library versions:
> 
> libcommons-digester-java >= 1.5.0.1
> libcommons-collections-java >= 2.1.1
> libcommons-beanutils-java >= 1.6.1
> libcommons-logging-java >= 1.0.4
> 
>     This ensures that dependencies are satisfied for versions of the
> upstream libraries that are required by Tomat as well as one another,
> and ensures that the versions currently in testing are acceptable.
>     If someone could please test this build on x86 and upload it, that
> would be great.  I am out of town this week and it appears my DSL modem
> has locked up at home, preventing me from accessing my x86 box on which
> I normally build this.  I tried to build with
> j2sdk1.3-blackdown/xmlParserAPIs.jar/xercesImpl.jar, but I get the
> commons-dbcp-related error shown at the bottom of this message.  The
> package has built previously with the Sun 1.4 JDK packages generated by
> java-package without issue.
> 
> $ debuild -ICVS -us -uc
> [...]
> BUILD FAILED
> /home/barryh/packages/tomcat4/tomcat4-4.1.31/build-tree/jakarta-tomcat-4.1.31-src/build.xml:67:
> The following error occurred while executing this line:
> java.lang.UnsupportedClassVersionError:
> org/apache/commons/dbcp/ConnectionFactory (Unsupported major.minor
> version 48.0)

Hi Barry,

this means that libcommons-dbcp-java was build without target=1.3
therefore it is not usable anymore with jdk1.3.

Either you build tomcat with a jdk 1.4 or you rebuilt the
libcommons-dbcp-java library with target=1.3.

Wolfgang