java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
在myeclipse中启动tomcat 5.5.x服务器时出现上述错误。
实际上我已经检查了并在我的32位Windows机器上编译了它。 现在当我拿起我的tomcat和checkout的备份并尝试在Windows 7 64位启动时,我收到错误。 任何人都可以建议问题是什么。下面是完整的堆栈跟踪。
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { start | stop }
log4j:WARN No such property [maxFileSize] in org.apache.log4j.FileAppender.
Loading jar:file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
27 Sep 2014 12:20:21,013 INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].log():653 [main] - Initializing Spring root WebApplicationContext
Loading jar:file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Loading jar:file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/captcha.properties
27 Sep 2014 12:20:29,884 INFO com.liferay.portal.util.PortalImpl.<init>():252 [main] - Portal lib directory /D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/
27 Sep 2014 12:20:36,350 INFO com.liferay.portal.kernel.util.ServerDetector.getServerId():104 [main] - Detected server tomcat
Sep 27, 2014 12:20:39 PM com.sun.portal.container.service.ServiceManagerContextListenerImpl contextInitialized
INFO: PSC_CSPCS001 : Started initializing ServiceManager
Sep 27, 2014 12:20:39 PM com.sun.portal.container.service.ServiceManager addService
INFO: PSC_CSPCS004 : Service added, Name: com.sun.portal.container.service.CoordinationService, Implementation: com.sun.portal.container.service.coordination.impl.CoordinationServiceImpl
Sep 27, 2014 12:20:39 PM com.sun.portal.container.service.ServiceManager addService
INFO: PSC_CSPCS004 : Service added, Name: com.sun.portal.container.service.CachingService, Implementation: com.sun.portal.container.service.caching.impl.CachingServiceImpl
Sep 27, 2014 12:20:39 PM com.sun.portal.container.service.ServiceManager addService
INFO: PSC_CSPCS004 : Service added, Name: com.sun.portal.container.service.ClientCachingService, Implementation: com.sun.portal.container.service.caching.impl.ClientCachingServiceImpl
Sep 27, 2014 12:20:39 PM com.sun.portal.container.service.ServiceManager addService
INFO: PSC_CSPCS004 : Service added, Name: com.sun.portal.container.service.DeploymentService_Local, Implementation: com.sun.portal.container.service.deployment.impl.DeploymentServiceLocalImpl
Sep 27, 2014 12:20:39 PM com.sun.portal.container.service.ServiceManager addService
INFO: PSC_CSPCS004 : Service added, Name: com.sun.portal.container.service.ContainerEventService, Implementation: com.sun.portal.container.service.coordination.impl.ContainerEventServiceImpl
Sep 27, 2014 12:20:39 PM com.sun.portal.container.service.ServiceManager addService
INFO: PSC_CSPCS004 : Service added, Name: com.sun.portal.container.service.PolicyService, Implementation: com.liferay.portal.portletcontainer.PolicyServiceImpl
Sep 27, 2014 12:20:39 PM com.sun.portal.container.service.ServiceManagerContextListenerImpl contextInitialized
INFO: PSC_CSPCS002 : Finished initializing ServiceManager
Sep 27, 2014 12:20:39 PM com.sun.portal.portletcontainer.impl.PortletContainerContextListenerImpl contextInitialized
INFO: PSPL_PCCSPCPCI0003 : Starting PortletContainer 2.1
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.OutOfMemoryError: PermGen space
答案 0 :(得分:0)
这里的关键是
Caused by: java.lang.OutOfMemoryError: PermGen space
我的第一个有根据的猜测是你已经超出了PermGen记忆。有关于如何在互联网上处理它的大量信息(包括stackoverflow),所以我不会在这里重复解释。