我正在尝试将我的项目(无错误编译并在本地运行)导出到runnable jar
文件中,以便从服务器执行。
Export
无论何时我都没有错误
java -jar Project.jar
我得到了
启动camel log4j:WARN找不到记录器的appender (org.apache.camel.main.MainSupport)。 log4j:WARN请初始化 log4j系统正常。线程“main”中的异常 org.springframework.beans.factory.BeanDefinitionStoreException:可以 不解析bean定义资源模式[META-INF / spring / * .xml]; 嵌套异常是java.io.FileNotFoundException:类路径资源 [META-INF / spring /]无法解析为URL,因为它不存在 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:190) 在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) 在org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) 在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) 在org.springframework.context.support.ClassPathXmlApplicationContext。(ClassPathXmlApplicationContext.java:139) 在org.springframework.context.support.ClassPathXmlApplicationContext。(ClassPathXmlApplicationContext.java:93) 在org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:216) 在org.apache.camel.spring.Main.doStart(Main.java:156) 在org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) 在org.apache.camel.main.MainSupport.run(MainSupport.java:150) 在pl.camel.project.Main.boot(Egzekutor.java:31) 在pl.camel.project.main(Egzekutor.java:21)引起:java.io.FileNotFoundException:类路径资源 [META-INF / spring /]无法解析为URL,因为它不存在 在org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:179) 在org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarResource(PathMatchingResourcePatternResolver.java:413) 在org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:342) 在org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:280) 在org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1227) 在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:177) ......还有15个
它找不到/META-INF/spring
目录,怎么样?
树: