Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Atribute. #1270

Closed
GIAPB opened this issue Jan 18, 2017 · 8 comments
Closed

Missing Atribute. #1270

GIAPB opened this issue Jan 18, 2017 · 8 comments

Comments

@GIAPB
Copy link

GIAPB commented Jan 18, 2017

Everything works while in eclipse. The only problem is,
when exported, the console throws this error:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail
s.
Exception in thread "main" java.lang.ExceptionInInitializerError
        at xyz.lexium.giapb.GIAPB.main(GIAPB.java:22)
Caused by: java.lang.IllegalArgumentException: Attribute 'JCabi-Version' not fou
nd in MANIFEST.MF file(s) among 3 other attribute(s): ["Class-Path", "Main-Class
", "Manifest-Version"]
        at com.jcabi.manifests.Manifests.read(Manifests.java:274)
        at com.jcabi.github.RtGithub.<clinit>(RtGithub.java:82)
        ... 1 more

C:\Users\matthew\Desktop>
@0crat
Copy link

0crat commented Jan 18, 2017

@yegor256 please, pay attention to this issue

@yegor256
Copy link
Member

yegor256 commented Jan 19, 2017

@GIAPB how do you package your app? It seems that you delete that valuable META-INF/MANIFEST.MF that is supposed to be packaged together with all classes from jcabi-github.jar

@mattparksjr
Copy link

It in in xyz.lexium.giapb. Nothig else is changed. Just compiled via eclipse

@yegor256
Copy link
Member

@xXXIMMATTHEWXXx I'm afraid that "compile via eclipse" is what broke the structure of the JAR file. Try to package with Maven.

@mattparksjr
Copy link

Thanks

@amihaiemil
Copy link
Member

@GIAPB @xXXIMMATTHEWXXx The problem is that the library reads some attributes from its Manifest.MF file. This causes troubles when it is packaged in a .war for instance. You can solve this issue with maven-assembly-plugin. Here's how I did it: #1198 (comment) .

There is also an issue open, to change this mechanism; #1246

@amihaiemil
Copy link
Member

This has been fixed in release 0.37.

@0crat
Copy link

0crat commented Dec 5, 2018

Job gh:jcabi/jcabi-github#1270 is not assigned, can't get performer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants