`

tomcat启动报错

    博客分类:
  • Java
阅读更多

tomcat启动时报如下错误:

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.order.service.WmFactSkuManager com.sinoservices.wms.order.service.impl.WmFactSkuDetailInManagerImpl.wmFactSkuManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wmFactSkuManager': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.basicdata.service.ShelvesRuleCompute com.sinoservices.wms.order.service.impl.WmFactSkuManagerImpl.shelvesRuleCompute; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shelvesRuleCompute': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.basicdata.service.CdWhLocAreaManager com.sinoservices.wms.basicdata.service.impl.ShelvesRuleComputeImpl.cdwhlaManager; nested exception is java.lang.OutOfMemoryError: PermGen space
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:435)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:240)
... 130 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wmFactSkuManager': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.basicdata.service.ShelvesRuleCompute com.sinoservices.wms.order.service.impl.WmFactSkuManagerImpl.shelvesRuleCompute; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shelvesRuleCompute': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.basicdata.service.CdWhLocAreaManager com.sinoservices.wms.basicdata.service.impl.ShelvesRuleComputeImpl.cdwhlaManager; nested exception is java.lang.OutOfMemoryError: PermGen space
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:243)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:957)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:671)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:610)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:412)
... 132 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.basicdata.service.ShelvesRuleCompute com.sinoservices.wms.order.service.impl.WmFactSkuManagerImpl.shelvesRuleCompute; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shelvesRuleCompute': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.basicdata.service.CdWhLocAreaManager com.sinoservices.wms.basicdata.service.impl.ShelvesRuleComputeImpl.cdwhlaManager; nested exception is java.lang.OutOfMemoryError: PermGen space
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:435)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:240)
... 145 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shelvesRuleCompute': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.basicdata.service.CdWhLocAreaManager com.sinoservices.wms.basicdata.service.impl.ShelvesRuleComputeImpl.cdwhlaManager; nested exception is java.lang.OutOfMemoryError: PermGen space
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:243)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:957)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:671)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:610)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:412)
... 147 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.basicdata.service.CdWhLocAreaManager com.sinoservices.wms.basicdata.service.impl.ShelvesRuleComputeImpl.cdwhlaManager; nested exception is java.lang.OutOfMemoryError: PermGen space
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:435)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:240)
... 160 more
Caused by: java.lang.OutOfMemoryError: PermGen space

解决方案:Eclipse-->Application-->Servers-->Tomcat-->5.x-->JDK 加上以下一句即可:

-Xms256m -Xmx512m -Xss4M -XX:MaxPermSize=256m

 

0
5
分享到:
评论

相关推荐

    tomcat-juli.jar 用于在tomcat启动报错时除错

    tomcat-juli.jar 用于在tomcat启动报错时除错

    解决TOMCAT启动报错:tcnative.dll

    Tomcat报错,如: Can't load IA 32-bit .dll on a AMD 64-bit platform Can't load IA 64-bit .dll on a AMD 64-bit platform 都应该用x64里面的dll文件 不同的硬件平台需要与之对应的dll即可

    tomcat启动不了问题处理

    ### tomcat启动不了问题处理 在IT领域,Tomcat服务器是一款非常流行的开源Web服务器,它主要用来部署Java Web应用程序。然而,在使用过程中,用户可能会遇到Tomcat无法启动的问题。本文将详细探讨导致Tomcat启动...

    eclipse部署tomcat 报错

    "eclipse部署tomcat报错解决方案" 在Eclipse中部署Tomcat服务器时,可能会遇到各种问题。本文将讨论在Eclipse中部署Tomcat服务器时出现的问题和解决方案。 问题描述 在Eclipse中部署Tomcat服务器时,可能会出现...

    tomcat启动报错:java.util.zip.ZipException的解决方法

    在使用Apache Tomcat服务器时,有时会遇到启动异常的情况,其中一种常见的错误是`java.util.zip.ZipException`。这个异常通常表明在处理ZIP或JAR文件时遇到了问题,可能是因为文件损坏、格式不正确或者无法打开。在...

    CentOS 6.5上的Tomcat启动报错问题解决方法

    ### CentOS 6.5上的Tomcat启动报错问题解决方法 #### 一、问题背景 在搭建基于CentOS 6.5的操作系统环境时,安装了OpenJDK 1.7,并从Apache官网下载了一个纯版的Tomcat,但在尝试启动Tomcat服务器时遇到了两个主要...

    tcnative-1.dll解决windows 7 64下 tomcat启动报错-附件资源

    tcnative-1.dll解决windows 7 64下 tomcat启动报错-附件资源

    struts2中,在tomcat启动时候总是出现严重

    为了更具体地解决问题,需要查看`struts2中,在tomcat启动时候总是出现严重.txt`这个文本文件,它应该包含了详细的错误堆栈信息。根据这些信息,我们可以进一步定位问题所在,并采取相应的解决措施。如果文件中包含...

    tomcat 启动:Address already in use: JVM_Bind <null>:8080

    Tomcat 启动报错解决方案 Tomcat 是一个流行的开源 Web 服务器,可以运行 Java 语言编写的 Web 应用程序。然而,在启动 Tomcat 时,偶尔会遇到报错“Address already in use: JVM_Bind &lt;null&gt;:8080”,这意味着端口...

    tomcat报错

    1. **JAVA_HOME环境变量未定义**:这是Tomcat启动失败的主要原因。 2. **JAVA_HOME应该指向JDK而不是JRE**:这表明即使已经设置了JAVA_HOME,但指向了JRE目录而非JDK目录。 #### 知识点解析 ##### 1. Java环境基础...

    Tomcat启动时报错:java.lang.UnsatisfiedLinkError的解决

    之前tomcat启动老是报错,虽然不影响项目的启动运行,但是有强迫症的程序员会心里不爽: 如下: 问题分析 由于本机安装的jdk版本与tomcat中使用的jdk版本不一致导致的。 解决方法 后面我把原先tomcat启动环境用的...

    Tomcat无法正常启动的解决办法.zip

    Tomcat无法正常启动的解决办法 教你如何解决Tomcat无法正常启动 欢迎下载

    上传war文件大小超过Tomcat7最大文件限制报错

    ### 上传WAR文件大小超过Tomcat 7最大文件限制报错 #### 背景介绍 在部署Web应用程序时,可能会遇到因WAR文件过大而无法正常部署的问题。具体表现为当WAR文件大小超过了Tomcat服务器配置的最大限制时,系统会拒绝...

Global site tag (gtag.js) - Google Analytics