Bug#775450: clojure1.6: clojure 1.6 doesn't work with gij/gcj 4.9 instead of openjdk

2015-01-15 Thread Rogério Brito
Package: clojure1.6
Version: 1.6.0+dfsg-1
Severity: normal

Hi.

First of all, thanks for packaging clojure. Unfortunately, it seems that
clojure doesn't work with simply any current installation of packages that
provide java2-runtime-headless (like gcj-4.9-jdk and its dependencies).
Here is what I get:

,[ clojure ]
| Exception in thread main java.lang.NoClassDefFoundError: 
clojure.core.protocols$seq_reduce
|at java.lang.Class.initializeClass(libgcj.so.15)
|at clojure.core.protocols__init.load(Unknown Source:19)
|at clojure.core.protocols__init.clinit(Unknown Source)
|at java.lang.Class.initializeClass(libgcj.so.15)
|at java.lang.Class.forName(libgcj.so.15)
|at clojure.lang.RT.loadClassForName(RT.java:2093)
|at clojure.lang.RT.load(RT.java:430)
|at clojure.lang.RT.load(RT.java:411)
|at clojure.core$load$fn__5066.invoke(core.clj:5641)
|at clojure.core$load.doInvoke(core.clj:5640)
|at clojure.lang.RestFn.invoke(RestFn.java:408)
|at clojure.core__init.load(Unknown Source:6270)
|at clojure.core__init.clinit(Unknown Source)
|at java.lang.Class.initializeClass(libgcj.so.15)
|at java.lang.Class.forName(libgcj.so.15)
|at clojure.lang.RT.loadClassForName(RT.java:2093)
|at clojure.lang.RT.load(RT.java:430)
|at clojure.lang.RT.load(RT.java:411)
|at clojure.lang.RT.doInit(RT.java:447)
|at clojure.lang.RT.clinit(RT.java:329)
|at java.lang.Class.initializeClass(libgcj.so.15)
|at clojure.main.clinit(main.java:20)
|at java.lang.Class.initializeClass(libgcj.so.15)
| Caused by: java.lang.VerifyError: verification failed at PC 75 in 
clojure.core.protocols$seq_reduce:invoke((Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;)Ljava.lang.Object;):
 incompatible type on stack
|at java.lang.Class.initializeClass(libgcj.so.15)
|...22 more
`

Is there any way to keep the ability to run with gcj?

If not, perhaps getting the dependency of clojure1.6 updated to be
default-jdk would be better (but, if I recall correctly, openjdk 7 didn't
work on some of the ports---perhaps the kfreebsd ones?---and the changed
dependency wouldn't really fix this).

Opinions?


Thanks once again,

Rogério Brito.


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (250, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf-8, LC_CTYPE=pt_BR.utf-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages clojure1.6 depends on:
ii  gcj-4.9-jre-headless [java2-runtime-headless]  4.9.2-10
ii  gcj-jre-headless [java2-runtime-headless]  4:4.9.2-1
ii  libasm4-java   5.0.3-1
ii  libjsr166y-java0.1.20080107-2

Versions of packages clojure1.6 recommends:
pn  rlwrap  none

clojure1.6 suggests no packages.

-- no debconf information

-- 
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFC
http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#775450: clojure1.6: clojure 1.6 doesn't work with gij/gcj 4.9 instead of openjdk

2015-01-15 Thread Emmanuel Bourg
Hi Rogério,

Le 15/01/2015 20:56, Rogério Brito a écrit :

 Is there any way to keep the ability to run with gcj?

I don't think this is possible, the Clojure 1.6.0 documentation [1]
states that Java 6 is the minimum version required and gcj is stuck with
Java 5.

 If not, perhaps getting the dependency of clojure1.6 updated to be
 default-jdk would be better (but, if I recall correctly, openjdk 7 didn't
 work on some of the ports---perhaps the kfreebsd ones?---and the changed
 dependency wouldn't really fix this).

I'm not sure we can reliably set a minimum version on the
default-jre-headless dependency. If we set (= 2:1.6) it will fail again
the next time the epoch is bumped (because 3:1.5  2:1.6). But at least
we should replace java2-runtime-headless with java6-runtime-headless.

Emmanuel Bourg

[1] http://clojure.org/getting_started

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#775450: clojure1.6: clojure 1.6 doesn't work with gij/gcj 4.9 instead of openjdk

2015-01-15 Thread Rogério Brito
Hi, Emmanuel.

First of all, thank you for your kind reply. I have been lurking into the
debian-java archives (just relearning Java, since the 1.1 days) and I feel
that you guys have fostered an excellent environment, especially for newbies
and wannabe contributors (like me).

On Jan 15 2015, Emmanuel Bourg wrote:
 I'm not sure we can reliably set a minimum version on the
 default-jre-headless dependency. If we set (= 2:1.6) it will fail again
 the next time the epoch is bumped (because 3:1.5  2:1.6).

Yes, I know that pain. That being said, is there any anticipation of bumping
the epoch again?

 But at least we should replace java2-runtime-headless with
 java6-runtime-headless.

That's great and would, at least, make it clear that once installed, at
least the basics of clojure would work.


Thanks once again,

-- 
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFC
http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#775396: tomcat8 not starting after fresh install

2015-01-15 Thread Arturo Borrero Gonzalez
Package: tomcat8
Version: 8.0.14-1
Severity: normal

Dear maintainer,

I installed tomcat8 from testing using aptitude.
The package itself failed to bring up the tomcat service.

Muanually calling 'service tomcat8 start' also fails.

The only log reference I can found is at /var/log/tomcat8/catalina.out:

Exception in thread main java.lang.UnsupportedClassVersionError: 
org/apache/catalina/startup/Bootstrap : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: org.apache.catalina.startup.Bootstrap. Program 
will exit.

Am I doing something wrong?

best regards.

-- System Information:
Debian Release: 7.7
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tomcat8 depends on:
ii  adduser3.113+nmu3
ii  debconf [debconf-2.0]  1.5.49
ii  tomcat8-common 8.0.14-1
ii  ucf3.0025+nmu3

Versions of packages tomcat8 recommends:
ii  authbind  2.1.1

Versions of packages tomcat8 suggests:
pn  libtcnative-1 none
ii  tomcat8-admin 8.0.14-1
pn  tomcat8-docs  none
pn  tomcat8-examples  none
pn  tomcat8-user  none

-- Configuration Files:
/etc/tomcat8/tomcat-users.xml [Errno 13] Permiso denegado: 
u'/etc/tomcat8/tomcat-users.xml'

-- debconf information:
  tomcat8/username: tomcat8
  tomcat8/javaopts: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC
  tomcat8/groupname: tomcat8

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#775396: tomcat8 not starting after fresh install

2015-01-15 Thread Emmanuel Bourg
Hi Arturo,

The message Unsupported major.minor version 51.0 means you are running
an application intended for a more recent version of Java. Here Tomcat 8
requires Java 7 and you are probably running Java 6 on your system.
Installing the openjdk-7-jre-headless package should fix this issue.

Emmanuel Bourg

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.