Opened 3 years ago

Closed 3 years ago

#1975 closed defect (fixed)

junit4 missing on debian built host

Reported by: Eche|on Owned by: zzz
Priority: minor Milestone: 0.9.30
Component: package/debian Version: 0.9.29
Keywords: Cc:
Parent Tickets: Sensitive: no

Description

Hi!

After I built a 0.9.29-11 .deb without addressbook.jar file, I checked output of ant debian and it told me "junit4 not found" with a few more error lines.
After installing junit4 on the built host, addressbook.jar is built.
But still some errors:
[mkdir] Created dir: /usr/src/i2p/i2p.i2p/apps/routerconsole/jsp/WEB-INF

[exec] [mkdir] Created dir: /usr/src/i2p/i2p.i2p/apps/routerconsole/jsp/WEB-INF/classes
[exec] [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[exec] [java] Mar 26, 2017 4:03:37 PM org.apache.tomcat.util.scan.StandardJarScanner? scan
[exec] [java] WARNING: Failed to scan [file:/usr/share/java/junit.jar] from classloader hierarchy
[exec] [java] java.io.FileNotFoundException?: /usr/share/java/junit.jar (No such file or directory)
[exec] [java] at java.util.zip.ZipFile?.open(Native Method)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:215)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:145)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:154)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:118)
[exec] [java] at org.apache.tomcat.util.scan.JarFileUrlJar?.<init>(JarFileUrlJar?.java:60)
[exec] [java] at org.apache.tomcat.util.scan.JarFactory?.newInstance(JarFactory?.java:48)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.process(StandardJarScanner?.java:338)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.scan(StandardJarScanner?.java:288)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scanJars(TldScanner?.java:262)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scan(TldScanner?.java:104)
[exec] [java] at org.apache.jasper.JspC.initServletContext(JspC.java:1540)
[exec] [java] at org.apache.jasper.JspC.execute(JspC.java:1383)
[exec] [java] at org.apache.jasper.JspC.main(JspC.java:278)
[exec] [java]
[exec] [java] Mar 26, 2017 4:03:38 PM org.apache.tomcat.util.scan.StandardJarScanner? scan
[exec] [java] WARNING: Failed to scan [file:/usr/share/java/commons-collections.jar] from classloader hierarchy
[exec] [java] java.io.FileNotFoundException?: /usr/share/java/commons-collections.jar (No such file or directory)
[exec] [java] at java.util.zip.ZipFile?.open(Native Method)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:215)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:145)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:154)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:118)
[exec] [java] at org.apache.tomcat.util.scan.JarFileUrlJar?.<init>(JarFileUrlJar?.java:60)
[exec] [java] at org.apache.tomcat.util.scan.JarFactory?.newInstance(JarFactory?.java:48)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.process(StandardJarScanner?.java:338)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.scan(StandardJarScanner?.java:288)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scanJars(TldScanner?.java:262)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scan(TldScanner?.java:104)
[exec] [java] at org.apache.jasper.JspC.initServletContext(JspC.java:1540)
[exec] [java] at org.apache.jasper.JspC.execute(JspC.java:1383)
[exec] [java] at org.apache.jasper.JspC.main(JspC.java:278)

Subtickets

Change History (5)

comment:1 Changed 3 years ago by Eche|on

Ok, looks like it needs junit pacakge, to. error removed with installing junit pacakge on debian.
Not really:

[java] WARNING: Failed to scan [file:/usr/share/java/commons-collections.jar] from classloader hierarchy

[exec] [java] java.io.FileNotFoundException?: /usr/share/java/commons-collections.jar (No such file or directory)
[exec] [java] at java.util.zip.ZipFile?.open(Native Method)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:215)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:145)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:154)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:118)
[exec] [java] at org.apache.tomcat.util.scan.JarFileUrlJar?.<init>(JarFileUrlJar?.java:60)
[exec] [java] at org.apache.tomcat.util.scan.JarFactory?.newInstance(JarFactory?.java:48)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.process(StandardJarScanner?.java:338)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.scan(StandardJarScanner?.java:288)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scanJars(TldScanner?.java:262)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scan(TldScanner?.java:104)
[exec] [java] at org.apache.jasper.JspC.initServletContext(JspC.java:1540)
[exec] [java] at org.apache.jasper.JspC.execute(JspC.java:1383)
[exec] [java] at org.apache.jasper.JspC.main(JspC.java:278)
[exec] [java]

package logol provide that .jar, but not in that path.
same with pki-server package.
Hmm

Last edited 3 years ago by Eche|on (previous) (diff)

comment:2 Changed 3 years ago by zzz

you have the error from the build process, before you installed junit4?

comment:3 Changed 3 years ago by Eche|on

sorry, it went by to fast. but after removing junit/junit4 I get the same error:
[exec] precompilejsp:

[exec] [mkdir] Created dir: /usr/src/i2p/i2p.i2p/apps/routerconsole/jsp/WEB-INF
[exec] [mkdir] Created dir: /usr/src/i2p/i2p.i2p/apps/routerconsole/jsp/WEB-INF/classes
[exec] [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[exec] [java] Mar 26, 2017 9:04:41 PM org.apache.tomcat.util.scan.StandardJarScanner? scan
[exec] [java] WARNING: Failed to scan [file:/usr/share/java/junit4.jar] from classloader hierarchy
[exec] [java] java.io.FileNotFoundException?: /usr/share/java/junit4.jar (No such file or directory)
[exec] [java] at java.util.zip.ZipFile?.open(Native Method)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:215)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:145)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:154)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:118)
[exec] [java] at org.apache.tomcat.util.scan.JarFileUrlJar?.<init>(JarFileUrlJar?.java:60)
[exec] [java] at org.apache.tomcat.util.scan.JarFactory?.newInstance(JarFactory?.java:48)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.process(StandardJarScanner?.java:338)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.scan(StandardJarScanner?.java:288)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scanJars(TldScanner?.java:262)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scan(TldScanner?.java:104)
[exec] [java] at org.apache.jasper.JspC.initServletContext(JspC.java:1540)
[exec] [java] at org.apache.jasper.JspC.execute(JspC.java:1383)
[exec] [java] at org.apache.jasper.JspC.main(JspC.java:278)
[exec] [java]
[exec] [java] Mar 26, 2017 9:04:41 PM org.apache.tomcat.util.scan.StandardJarScanner? scan
[exec] [java] WARNING: Failed to scan [file:/usr/share/java/junit.jar] from classloader hierarchy
[exec] [java] java.io.FileNotFoundException?: /usr/share/java/junit.jar (No such file or directory)
[exec] [java] at java.util.zip.ZipFile?.open(Native Method)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:215)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:145)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:154)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:118)
[exec] [java] at org.apache.tomcat.util.scan.JarFileUrlJar?.<init>(JarFileUrlJar?.java:60)
[exec] [java] at org.apache.tomcat.util.scan.JarFactory?.newInstance(JarFactory?.java:48)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.process(StandardJarScanner?.java:338)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.scan(StandardJarScanner?.java:288)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scanJars(TldScanner?.java:262)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scan(TldScanner?.java:104)
[exec] [java] at org.apache.jasper.JspC.initServletContext(JspC.java:1540)
[exec] [java] at org.apache.jasper.JspC.execute(JspC.java:1383)
[exec] [java] at org.apache.jasper.JspC.main(JspC.java:278)
[exec] [java]
[exec] [java] Mar 26, 2017 9:04:41 PM org.apache.tomcat.util.scan.StandardJarScanner? scan
[exec] [java] WARNING: Failed to scan [file:/usr/share/java/commons-collections.jar] from classloader hierarchy
[exec] [java] java.io.FileNotFoundException?: /usr/share/java/commons-collections.jar (No such file or directory)
[exec] [java] at java.util.zip.ZipFile?.open(Native Method)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:215)
[exec] [java] at java.util.zip.ZipFile?.<init>(ZipFile?.java:145)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:154)
[exec] [java] at java.util.jar.JarFile?.<init>(JarFile?.java:118)
[exec] [java] at org.apache.tomcat.util.scan.JarFileUrlJar?.<init>(JarFileUrlJar?.java:60)
[exec] [java] at org.apache.tomcat.util.scan.JarFactory?.newInstance(JarFactory?.java:48)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.process(StandardJarScanner?.java:338)
[exec] [java] at org.apache.tomcat.util.scan.StandardJarScanner?.scan(StandardJarScanner?.java:288)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scanJars(TldScanner?.java:262)
[exec] [java] at org.apache.jasper.servlet.TldScanner?.scan(TldScanner?.java:104)
[exec] [java] at org.apache.jasper.JspC.initServletContext(JspC.java:1540)
[exec] [java] at org.apache.jasper.JspC.execute(JspC.java:1383)
[exec] [java] at org.apache.jasper.JspC.main(JspC.java:278)
[exec] [java]
[exec] [java] Mar 26, 2017 9:04:41 PM org.apache.jasper.servlet.TldScanner? scanJars

comment:4 Changed 3 years ago by zzz

Status: newaccepted

I do see these build warnings after removing the junit and junit4 packages. This is during the routerconsole precompilejsp build target. The warnings are only shown when building 'ant debian'.

These are completely unrelated to the missing addressbook.jar issue in #1973, which is fixed in 0.9.29-12.

I will investigate why we're getting these warnings but I believe them to be harmless.

comment:5 Changed 3 years ago by zzz

Resolution: fixed
Status: acceptedclosed

Warnings suppressed in e1d776c76c9da2409f416e09b21f14c0d9f903dd to be 0.9.29-13

Note: See TracTickets for help on using tickets.