Bug#808661: h2database: FTBFS: error: package javax.servlet does not exist

Chris West (Faux) solo-debianbugs at goeswhere.com
Mon Dec 21 18:23:04 UTC 2015


Source: h2database
Version: 1.4.185-2
Severity: serious
Justification: fails to build from source
Tags: sid 
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-CC: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

The package fails to build:

JAVA_HOME=/usr/lib/jvm/default-java "/usr/lib/jvm/default-java/bin/javac" -sourcepath src/tools -d bin src/tools/org/h2/build/*.java
JAVA_HOME=/usr/lib/jvm/default-java "/usr/lib/jvm/default-java/bin/java" -Xmx256m -cp "bin:/usr/lib/jvm/default-java/lib/tools.jar:temp" org.h2.build.Build jar javadoc
Target: jar
Deleting temp
Deleting docs
Compiling 605 classes
src/main/org/h2/server/web/DbStarter.java:12: error: package javax.servlet does not exist
import javax.servlet.ServletContext;
                    ^
src/main/org/h2/server/web/DbStarter.java:13: error: package javax.servlet does not exist
import javax.servlet.ServletContextEvent;
                    ^
src/main/org/h2/server/web/DbStarter.java:14: error: package javax.servlet does not exist
import javax.servlet.ServletContextListener;
                    ^
src/main/org/h2/server/web/DbStarter.java:24: error: cannot find symbol
public class DbStarter implements ServletContextListener {
                                  ^
  symbol: class ServletContextListener
src/main/org/h2/server/web/DbStarter.java:30: error: cannot find symbol
    public void contextInitialized(ServletContextEvent servletContextEvent) {
                                   ^
  symbol:   class ServletContextEvent
  location: class DbStarter
src/main/org/h2/server/web/DbStarter.java:58: error: cannot find symbol
    private static String getParameter(ServletContext servletContext,


...

Note: src/main/org/h2/fulltext/FullTextLucene.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
31 errors
4 warnings
Exception in thread "main" java.lang.RuntimeException: An error occurred
	at org.h2.build.BuildBase.javac(BuildBase.java:882)
	at org.h2.build.Build.compile(Build.java:218)
	at org.h2.build.Build.compile(Build.java:97)
	at org.h2.build.Build.jar(Build.java:394)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.h2.build.BuildBase.invoke(BuildBase.java:243)
	at org.h2.build.BuildBase.runTarget(BuildBase.java:208)
	at org.h2.build.BuildBase.run(BuildBase.java:189)
	at org.h2.build.Build.main(Build.java:34)
debian/rules:11: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1

Full build log:
https://reproducible.debian.net/rb-pkg/unstable/amd64/h2database.html

-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)



More information about the pkg-java-maintainers mailing list