[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

"org.slf4j does not exist" error (was Re: mh_make failing due to not finding junit:junit:jar:debian)



On 12/02/14 22:43, Matthew Vernon wrote:
> Hi,
> 
> Compilation (via debuild) is now failing despite my having the correct
> packages:
> 
> /home/mcv21/packages/libxmltooling-java/src/main/java/org/opensaml/xml/validation/AbstractValidatingXMLObject.java:[26,16]
> package org.slf4j does not exist
> 
> "import org.slf4j.Logger;" is the line in question, naturally.
> 
> I do have libslf4j-java installed, and there's a whole lot of stuff
> under /usr/share/maven-repo/org/slf4j
> 
> What have I done wrong?
> 
> In case it matters, the command line being run is:
> 
> cd . && /usr/lib/jvm/default-java/bin/java -noverify -cp
> /usr/share/maven2/boot/classworlds.jar:/usr/lib/jvm/default-java/lib/tools.jar
> -Dproperties.file.manual=/home/mcv21/packages/libxmltooling-java/debian/maven.properties
> -Dclassworlds.conf=/etc/maven2/m2-debian-nodocs.conf
> org.codehaus.classworlds.Launcher -s/etc/maven2/settings-debian.xml
> -Dmaven.repo.local=/home/mcv21/packages/libxmltooling-java/debian/maven-repo
>  package
> 
> But that's just what mh_make set up for me.

I thought I'd try stracing that compilation step to see if it helps.
Some of the relevant snippets:

[pid 10216]
open("/home/mcv21/packages/libxmltooling-java/debian/maven-repo/org/slf4j/slf4j-jdk14/debian/slf4j-jdk14-debian.pom",
O_RDONLY) = 24

i.e. its finding slf4j-jdk14-debian.pom OK within debian/maven-repo (I'm
presuming this is part of the maven-debian-helper magic). Similarly, it
opens slf4j-parent-debian.pom, slf4j-api-debian.pom,
jcl-over-slf4j-debian.pom. All well and good.

Then:

[pid 10216]
open("/home/mcv21/packages/libxmltooling-java/target/classes/org/slf4j",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
[pid 10216] open("./org/slf4j",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)

It seems to be this failing command that prompts the "package org.slf4j
does not exist" error.

I hope some of that's of use, but I don't feel I'm any closer to finding
out why this package won't build. Any ideas?

Thanks,

Matthew


Reply to: