hey .im trying to deploy my project and when I add bitcoinj to my 
dependencies in pom it works  fine on Intellij 
but doesnt run when I try to run it as a jar from the server
this is what i get in my CMD report
C:\Users\vadnu\Desktop>java -jar VertexPoc1-1.0-fat.jar
Error: A JNI error has occurred, please check your installation and try 
again
Exception in thread "main" java.lang.SecurityException: Invalid signature 
file digest for Manifest main attributes
        at 
java.base/sun.security.util.SignatureFileVerifier.processImpl(Unknown 
Source)
        at 
java.base/sun.security.util.SignatureFileVerifier.process(Unknown Source)
        at java.base/java.util.jar.JarVerifier.processEntry(Unknown Source)
        at java.base/java.util.jar.JarVerifier.update(Unknown Source)
        at java.base/java.util.jar.JarFile.initializeVerifier(Unknown 
Source)
        at java.base/java.util.jar.JarFile.getInputStream(Unknown Source)
        at 
java.base/jdk.internal.loader.URLClassPath$JarLoader$2.getInputStream(Unknown 
Source)
        at java.base/jdk.internal.loader.Resource.cachedInputStream(Unknown 
Source)
        at java.base/jdk.internal.loader.Resource.getByteBuffer(Unknown 
Source)
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown Source)
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown
 
Source)
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown 
Source)
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown 
Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Unknown Source)
        at java.base/sun.launcher.LauncherHelper.loadMainClass(Unknown 
Source)
        at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(Unknown 
Source)



I tried to add it as a seperate Jar file and add it to the libraries but it 
doesnt recognise the classes inside Bitcoinj.library

C:\Users\vadnu\Desktop>java -jar VertexPoc1-0.0.1-SNAPSHOT-fat.jar
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 
details.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil 
(file:/C:/Users/vadnu/Desktop/VertexPoc1-0.0.1-SNAPSHOT-fat.jar) to 
constructor java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of 
io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
Mar 12, 2018 11:56:16 AM io.vertx.core.Starter
SEVERE: Failed in deploying verticle
java.lang.ClassNotFoundException: com.crypto.poc.vertex.VertexPoc
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown 
Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        at 
io.vertx.core.impl.JavaVerticleFactory.createVerticle(JavaVerticleFactory.java:37)
        at 
io.vertx.core.impl.DeploymentManager.createVerticles(DeploymentManager.java:229)
        at 
io.vertx.core.impl.DeploymentManager.lambda$doDeployVerticle$2(DeploymentManager.java:202)
        at io.vertx.core.impl.FutureImpl.setHandler(FutureImpl.java:76)
        at 
io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:171)
        at 
io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:143)
        at 
io.vertx.core.impl.DeploymentManager.deployVerticle(DeploymentManager.java:131)
        at io.vertx.core.impl.VertxImpl.deployVerticle(VertxImpl.java:665)
        at io.vertx.core.Starter.runVerticle(Starter.java:328)
        at io.vertx.core.Starter.run(Starter.java:125)
        at io.vertx.core.Starter.main(Starter.java:96)


-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bitcoinj+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to