0 Replies Latest reply on Sep 14, 2016 8:46 PM by Yu slieer

    run gitblit error

    Yu slieer Newbie

      env:

      windows10

      java 1.8.0_74, Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

      wildfly10.1

      Gitblit  GitHub - gitblit/gitblit: pure java git solution

       

      14:44:57,864 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 79) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host."/gitblit-1.8.0": org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host."/gitblit-1.8.0": java.lang.RuntimeException: java.lang.RuntimeException: Failed to register BouncyCastle as the defaut JCE provider

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

              at java.lang.Thread.run(Thread.java:745)

              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Failed to register BouncyCastle as the defaut JCE provider

              at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:236)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)

              ... 6 more

      Caused by: java.lang.RuntimeException: Failed to register BouncyCastle as the defaut JCE provider

              at org.apache.sshd.common.util.SecurityUtils.register(SecurityUtils.java:130)

              at org.apache.sshd.common.util.SecurityUtils.isBouncyCastleRegistered(SecurityUtils.java:108)

              at com.gitblit.transport.ssh.SshDaemon.<init>(SshDaemon.java:88)

              at com.gitblit.manager.ServicesManager.configureSshDaemon(ServicesManager.java:417)

              at com.gitblit.manager.ServicesManager.start(ServicesManager.java:108)

              at com.gitblit.manager.ServicesManager.start(ServicesManager.java:72)

              at com.gitblit.servlet.GitblitContext.startManager(GitblitContext.java:271)

              at com.gitblit.servlet.GitblitContext.startManager(GitblitContext.java:267)

              at com.gitblit.servlet.GitblitContext.startCore(GitblitContext.java:208)

              at com.gitblit.servlet.GitblitContext.contextInitialized(GitblitContext.java:148)

              at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)

              at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:200)

              at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171)

              at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)

              at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

              at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

              at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

              at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

              at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

              at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)

              at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234)

              ... 8 more

      Caused by: java.security.NoSuchProviderException: JCE cannot authenticate the provider BC

              at javax.crypto.JceSecurity.getInstance(JceSecurity.java:101)

              at javax.crypto.KeyAgreement.getInstance(KeyAgreement.java:230)

              at org.apache.sshd.common.util.SecurityUtils$BouncyCastleRegistration.call(SecurityUtils.java:148)

              at org.apache.sshd.common.util.SecurityUtils.register(SecurityUtils.java:124)

              ... 28 more

      Caused by: java.lang.SecurityException: Cannot verify jar:vfs:/E:/load/devTools/wildfly-10.1.0.Final/bin/content/gitblit-1.8.0.war/WEB-INF/lib/bcprov-jdk15on-1.52.jar!/

              at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:407)

              at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322)

              at javax.crypto.JarVerifier.verify(JarVerifier.java:250)

              at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:160)

              at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:186)

              at javax.crypto.JceSecurity.getInstance(JceSecurity.java:98)

              ... 31 more

      Caused by: java.security.PrivilegedActionException: java.util.zip.ZipException: zip file is empty

              at java.security.AccessController.doPrivileged(Native Method)

              at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:385)

              ... 36 more

      Caused by: java.util.zip.ZipException: zip file is empty

              at java.util.zip.ZipFile.open(Native Method)

              at java.util.zip.ZipFile.<init>(ZipFile.java:219)

              at java.util.zip.ZipFile.<init>(ZipFile.java:149)

              at java.util.jar.JarFile.<init>(JarFile.java:166)

              at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:88)

              at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:221)

              at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:216)

              at java.security.AccessController.doPrivileged(Native Method)

              at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:215)

              at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:71)

              at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:109)