gpt4 book ai didi

在 Wildfly 8 中部署 war 文件时出现 Java IOException

转载 作者:太空宇宙 更新时间:2023-11-04 13:19:01 24 4
gpt4 key购买 nike

我尝试在 wildfly 8 上部署 war 文件(Drools 工作台),但出现以下异常:

    11:19:17,925 ERROR [org.eclipse.jgit.util.FS] (MSC service thread 1-2) Caught exception in FS.readPipe(): java.io.IOException: Cannot run program "bash" (in directory "C:\Users\bisharon"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) [rt.jar:1.7.0_72]
at java.lang.Runtime.exec(Runtime.java:617) [rt.jar:1.7.0_72]
at org.eclipse.jgit.util.FS.readPipe(FS.java:431) [org.eclipse.jgit-3.7.1.201504261725-r.jar:3.7.1.201504261725-r]
at org.eclipse.jgit.util.FS_Win32.discoverGitPrefix(FS_Win32.java:113) [org.eclipse.jgit-3.7.1.201504261725-r.jar:3.7.1.201504261725-r]
at org.eclipse.jgit.util.FS.gitPrefix(FS.java:517) [org.eclipse.jgit-3.7.1.201504261725-r.jar:3.7.1.201504261725-r]
at org.eclipse.jgit.util.SystemReader$Default.openSystemConfig(SystemReader.java:92) [org.eclipse.jgit-3.7.1.201504261725-r.jar:3.7.1.201504261725-r]
at org.eclipse.jgit.internal.storage.file.FileRepository.<init>(FileRepository.java:171) [org.eclipse.jgit-3.7.1.201504261725-r.jar:3.7.1.201504261725-r]
at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:577) [org.eclipse.jgit-3.7.1.201504261725-r.jar:3.7.1.201504261725-r]
at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:113) [org.eclipse.jgit-3.7.1.201504261725-r.jar:3.7.1.201504261725-r]
at org.uberfire.java.nio.fs.jgit.util.JGitUtil.newRepository(JGitUtil.java:104) [uberfire-nio2-jgit-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.rescanForExistingRepositories(JGitFileSystemProvider.java:407) [uberfire-nio2-jgit-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.<init>(JGitFileSystemProvider.java:371) [uberfire-nio2-jgit-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.<init>(JGitFileSystemProvider.java:343) [uberfire-nio2-jgit-0.7.3.Final.jar:0.7.3.Final]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_72]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_72]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_72]
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [rt.jar:1.7.0_72]
at java.lang.Class.newInstance(Class.java:379) [rt.jar:1.7.0_72]
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373) [rt.jar:1.7.0_72]
at java.util.ServiceLoader$1.next(ServiceLoader.java:445) [rt.jar:1.7.0_72]
at org.uberfire.java.nio.file.api.FileSystemProviders.buildProviders(FileSystemProviders.java:65) [uberfire-nio2-api-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.java.nio.file.api.FileSystemProviders.setup(FileSystemProviders.java:48) [uberfire-nio2-api-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.java.nio.file.api.FileSystemProviders.resolveProvider(FileSystemProviders.java:104) [uberfire-nio2-api-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:117) [uberfire-nio2-api-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:83) [uberfire-nio2-api-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.io.impl.AbstractIOService.newFileSystem(AbstractIOService.java:241) [uberfire-io-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.backend.server.cdi.SystemConfigProducer$2.create(SystemConfigProducer.java:252) [uberfire-backend-cdi-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.backend.server.cdi.SystemConfigProducer$2.create(SystemConfigProducer.java:187) [uberfire-backend-cdi-0.7.3.Final.jar:0.7.3.Final]
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:98) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.proxies.FileSystem$1366014920$Proxy$_$$_WeldClientProxy.getPath(Unknown Source) [weld-core-impl-2.1.2.Final.jar:]
at org.kie.uberfire.social.activities.server.SocialUserServicesExtendedBackEndImpl.buildPath(SocialUserServicesExtendedBackEndImpl.java:33) [kie-uberfire-social-activities-backend-6.3.0.Final.jar:6.3.0.Final]
at org.kie.uberfire.social.activities.server.SocialUserServicesExtendedBackEndImpl$Proxy$_$$_WeldClientProxy.buildPath(Unknown Source) [kie-uberfire-social-activities-backend-6.3.0.Final.jar:6.3.0.Final]
at org.kie.uberfire.social.activities.persistence.SocialUserCachePersistence.<init>(SocialUserCachePersistence.java:42) [kie-uberfire-social-activities-backend-6.3.0.Final.jar:6.3.0.Final]
at org.kie.uberfire.social.activities.persistence.SocialUserInstancePersistence.<init>(SocialUserInstancePersistence.java:16) [kie-uberfire-social-activities-backend-6.3.0.Final.jar:6.3.0.Final]
at org.kie.uberfire.social.activities.server.SocialUserPersistenceProducer.setup(SocialUserPersistenceProducer.java:76) [kie-uberfire-social-activities-backend-6.3.0.Final.jar:6.3.0.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_72]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_72]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_72]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_72]
at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:89) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:72) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:95) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.injection.producer.BeanInjectionTarget.postConstruct(BeanInjectionTarget.java:63) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:162) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:98) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:78) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.kie.uberfire.social.activities.server.SocialUserPersistenceProducer$Proxy$_$$_WeldClientProxy.toString(Unknown Source) [kie-uberfire-social-activities-backend-6.3.0.Final.jar:6.3.0.Final]
at org.uberfire.backend.server.cdi.SystemConfigProducer.runPostConstruct(SystemConfigProducer.java:143) [uberfire-backend-cdi-0.7.3.Final.jar:0.7.3.Final]
at org.uberfire.backend.server.cdi.SystemConfigProducer.afterDeploymentValidation(SystemConfigProducer.java:126) [uberfire-backend-cdi-0.7.3.Final.jar:0.7.3.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_72]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_72]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_72]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_72]
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:266) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:125) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:232) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:169) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:128) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:102) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:63) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:396) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:85) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:93) [wildfly-weld-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_72]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_72]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_72]
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method) [rt.jar:1.7.0_72]
at java.lang.ProcessImpl.<init>(ProcessImpl.java:385) [rt.jar:1.7.0_72]
at java.lang.ProcessImpl.start(ProcessImpl.java:136) [rt.jar:1.7.0_72]
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) [rt.jar:1.7.0_72]
... 74 more

我也尝试将其部署到其他应用程序服务器上,例如:tomcat、jboss 7,但部署失败。可能是什么问题呢 ?我应该配置一些东西吗?

最佳答案

这似乎是所使用的 JGit 版本的问题,可以安全地忽略:See this page for more info.它引用了 JGit github 存储库中描述的问题:“如果 bash 不在 PATH 中,则避免在 Windows 上出现 IOException。”

关于在 Wildfly 8 中部署 war 文件时出现 Java IOException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33276755/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com