- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
“因为我是 Spring MVC 和 JDO 的新手”
“我不知道错误的原因是什么”
“出现这么多错误消息,我不知道如何找到错误”
“毕竟我的导师来过一次并清除了 hello world mvc 并说因为库”
“我是 spring 和 jdo 的新手,所以我不知道它需要什么库,程序中不需要什么库,即使我在 eclipse 工作,我也必须手动下载或借用我的程序的库... ”
“但是我使用了一个使用 mvc spring 框架的 java 数据对象程序,并纠正了以前的错误,即所谓的库丢失。”
显示是这样的..我相信 Eclipse 自动包含 JDO 库:通过 GAE 的 Java 数据对象所以我想这不是因为 JDO lib 并且我已经使用了
我使用的 Spring 库:
C:\Users\user\Personnal\Software\eclipse\springs lib SDK 1.9.9\spring-aop-3.2.0.RELEASE.jar
C:\Users\user\Personnal\Software\eclipse\springs lib SDK 1.9.9\spring-beans-3.2.0.RELEASE.jar
C:\Users\user\Personnal\Software\eclipse\springs lib SDK 1.9.9\spring-context-3.2.0.RELEASE.jar
C:\Users\user\Personnal\Software\eclipse\springs lib SDK 1.9.9\spring-core-3.2.0.RELEASE.jar
C:\Users\user\Personnal\Software\eclipse\springs lib SDK 1.9.9\spring-expression-3.2.0.RELEASE.jar
C:\Users\user\Personnal\Software\eclipse\springs lib SDK 1.9.9\spring-web-3.2.0.RELEASE.jar
C:\Users\user\Personnal\Software\eclipse\springs lib SDK 1.9.9\spring-webmvc-3.2.0.RELEASE.jar
lib文件夹通常包含在war路径中:
/jdo/war/WEB-INF/lib/appengine-api-1.0-sdk-1.9.9.jar
/jdo/war/WEB-INF/lib/appengine-api-labs.jar
/jdo/war/WEB-INF/lib/appengine-endpoints-deps.jar
/jdo/war/WEB-INF/lib/appengine-endpoints.jar
/jdo/war/WEB-INF/lib/appengine-jsr107cache-1.9.9.jar
/jdo/war/WEB-INF/lib/asm-4.0.jar
/jdo/war/WEB-INF/lib/com.springsource.org.aopalliance-1.0.0.jar
/jdo/war/WEB-INF/lib/commons-logging-1.0.2.jar
/jdo/war/WEB-INF/lib/datanucleus-api-jdo-3.1.3.jar
/jdo/war/WEB-INF/lib/datanucleus-api-jpa-3.1.3.jar
/jdo/war/WEB-INF/lib/datanucleus-appengine-2.1.2.jar
/jdo/war/WEB-INF/lib/datanucleus-core-3.1.3.jar
/jdo/war/WEB-INF/lib/geronimo-jpa_2.0_spec-1.0.jar
/jdo/war/WEB-INF/lib/jdo-api-3.0.1.jar
/jdo/war/WEB-INF/lib/jsr107cache-1.1.jar
/jdo/war/WEB-INF/lib/jta-1.1.jar
/jdo/war/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar
/jdo/war/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar
/jdo/war/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar
/jdo/war/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar
/jdo/war/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar
/jdo/war/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar
/jdo/war/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar
我的控制台显示如下:
<小时/>Sep 27, 2014 1:01:31 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed D:\eclipse workspace\jdo\war\WEB-INF/appengine-web.xml
Sep 27, 2014 1:01:31 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed D:\eclipse workspace\jdo\war\WEB-INF/web.xml
Sep 27, 2014 1:01:31 PM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 'D:\eclipse\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.9.9\appengine-java-sdk-1.9.9\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'D:\eclipse workspace\jdo\war\WEB-INF\appengine-web.xml'
Sep 27, 2014 1:01:31 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Sep 27, 2014 1:01:31 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
Sep 27, 2014 1:01:36 PM com.google.appengine.tools.development.ApiProxyLocalImpl log
INFO: javax.servlet.ServletContext log: Initializing Spring FrameworkServlet 'spring-dispatcher'
Sep 27, 2014 1:01:36 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'spring-dispatcher': initialization started
Sep 27, 2014 1:01:36 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'spring-dispatcher-servlet': startup date [Sat Sep 27 13:01:36 IST 2014]; root of context hierarchy
Sep 27, 2014 1:01:36 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-dispatcher-servlet.xml]
Sep 27, 2014 1:01:39 PM org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider registerDefaultFilters
INFO: JSR-330 'javax.inject.Named' annotation found and supported for component scanning
Sep 27, 2014 1:01:41 PM org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor <init>
INFO: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
Sep 27, 2014 1:01:41 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1080b7fd: defining beans [personcontroller,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.view.InternalResourceViewResolver#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
Sep 27, 2014 1:01:42 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1080b7fd: defining beans [personcontroller,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.view.InternalResourceViewResolver#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
Sep 27, 2014 1:01:42 PM org.springframework.web.servlet.FrameworkServlet initServletBean
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personcontroller' defined in file [D:\eclipse workspace\jdo\war\WEB-INF\classes\com\web\project\Personcontroller.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.web.project.Personcontroller]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1011)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:957)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:647)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:598)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:661)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:517)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:458)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:138)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:255)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:288)
at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:87)
at com.google.appengine.tools.development.Modules.startup(Modules.java:105)
at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:258)
at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213)
at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211)
at java.security.AccessController.doPrivileged(Native Method)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:219)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:210)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.web.project.Personcontroller]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$4.run(AbstractAutowireCapableBeanFactory.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
... 46 more
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70)
at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:64)
at com.web.project.Personcontroller.<init>(Personcontroller.java:23)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:127)
at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:135)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
... 50 more
Caused by: javax.jdo.JDOFatalUserException: A property named javax.jdo.PersistenceManagerFactoryClass must be specified, or a jar file with a META-INF/services/javax.jdo.PersistenceManagerFactory entry must be in the classpath, or a property named javax.jdo.option.PersistenceUnitName must be specified.
NestedThrowables:
javax.jdo.JDOUserException: PersistenceManagerFactory has been specified to use "persistence-unit" with name "transaction-optional" but none was found with that name
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:861)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:1099)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:919)
at pmf.PMF.<clinit>(PMF.java:6)
... 62 more
Caused by: javax.jdo.JDOUserException: PersistenceManagerFactory has been specified to use "persistence-unit" with name "transaction-optional" but none was found with that name
at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.<init>(JDOPersistenceManagerFactory.java:441)
at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:294)
at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:115)
at javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)
at java.security.AccessController.doPrivileged(Native Method)
at javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)
at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:844)
... 65 more
Sep 27, 2014 1:01:42 PM com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: javax.servlet.ServletContext log: unavailable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personcontroller' defined in file [D:\eclipse workspace\jdo\war\WEB-INF\classes\com\web\project\Personcontroller.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.web.project.Personcontroller]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1011)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:957)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:647)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:598)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:661)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:517)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:458)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:138)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:255)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:288)
at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:87)
at com.google.appengine.tools.development.Modules.startup(Modules.java:105)
at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:258)
at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213)
at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211)
at java.security.AccessController.doPrivileged(Native Method)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:219)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:210)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.web.project.Personcontroller]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$4.run(AbstractAutowireCapableBeanFactory.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
... 46 more
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70)
at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:64)
at com.web.project.Personcontroller.<init>(Personcontroller.java:23)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:127)
at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:135)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
... 50 more
Caused by: javax.jdo.JDOFatalUserException: A property named javax.jdo.PersistenceManagerFactoryClass must be specified, or a jar file with a META-INF/services/javax.jdo.PersistenceManagerFactory entry must be in the classpath, or a property named javax.jdo.option.PersistenceUnitName must be specified.
NestedThrowables:
javax.jdo.JDOUserException: PersistenceManagerFactory has been specified to use "persistence-unit" with name "transaction-optional" but none was found with that name
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:861)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:1099)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:919)
at pmf.PMF.<clinit>(PMF.java:6)
... 62 more
Caused by: javax.jdo.JDOUserException: PersistenceManagerFactory has been specified to use "persistence-unit" with name "transaction-optional" but none was found with that name
at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.<init>(JDOPersistenceManagerFactory.java:441)
at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:294)
at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:115)
at javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)
at java.security.AccessController.doPrivileged(Native Method)
at javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)
at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:844)
... 65 more
Sep 27, 2014 1:01:42 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@127.0.0.1:8888
Sep 27, 2014 1:01:42 PM com.google.appengine.tools.development.AbstractModule startup
INFO: Module instance default is running at http://localhost:8888/
Sep 27, 2014 1:01:42 PM com.google.appengine.tools.development.AbstractModule startup
INFO: The admin console is running at http://localhost:8888/_ah/admin
Sep 27, 2014 1:01:42 PM com.google.appengine.tools.development.DevAppServerImpl doStart
INFO: Dev App Server is now running
我的网络结果:HTTP ERROR 500 Powered by Jetty://
最佳答案
javax.jdo.JDOUserException:PersistenceManagerFactory 已被指定使用名称为“transaction-Optional”的“persistence-unit”,但没有找到该名称的“
”非常明确。您要么具有持久性.xml 位于错误的位置(应位于 CLASSPATH 根目录的 META-INF 下),或者它不包含该持久性单元,或者格式无效。
关于java - 如何查找 Eclipse kepler 上的 spring MVC/JDO 在运行时出现的错误确实是由于库丢失或程序错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26072554/
我无法从 Eclipse 访问互联网,因此无法使用更新站点添加软件。我尝试了几种不同的方法,但似乎都不起作用。 我正在使用 JBoss Dev Studio 版本的 kepler,但我认为这可能是一个
在 Fermi 中,我们可以启动 16 个并发内核。我们可以在 Kepler 中启动多少个内核?数量相同还是他们也增加了这个数量? 最佳答案 并发内核数从 16 增加到 32 for devices
谁能告诉我如何在 中打开两个或多个文件编辑器? eclipse 开普勒 ? 在 helios 之前的版本中,它可以通过快捷方式 打开。 ctrl + 8 . 在 中看起来像这样赫利俄斯 但在 开普勒我
当我启动 eclipse 时,在启动加载窗口中,eclise 自动退出并出现错误: !SESSION 2013-09-05 14:52:04.771 -----------------
我目前在 Windows 7 上使用 Eclipse Kepler。以前我可以进入工作区屏幕来应用我想要使用的工作区,但由于某种原因,当我启动 Eclipse 时,我现在看到 Kepler 的启动屏幕
我正在使用带有java8和ubuntu 14.04的Kepler eclipse。Eclipse向我显示了java预定义类和方法的建议。但它没有显示我声明的类/方法的建议。我已经搜索并找到了Windo
我已成功将 Eclipse Juno 连接到互联网。为了实现这一点,stackoverflow 上有很多帖子。这是此链接之一: Eclipse not connecting to internet v
就在上周,我在 eclipse (K) 中使用插件管理器安装了 egit。现在,我想安装 ObjectAid。只是,我的存储库(即使是标准存储库)都无法连接。 "Could not find... u
前言 1 简介 Kepler.gl作为一款强大的开源地理信息数据可视化工具,可以帮助我们轻松制作针对大规模矢量数据的可视化作品,从而辅助数据分析工作。 Kepler.gl制作常规地图非常简单方
dynamic parallelism的资料很少Kepler的,从这项新技术的描述来看,是否意味着解决了同一个warp中线程控制流发散的问题? 它允许 recursion和从设备代码午餐内核,是否意味
我想知道 Eclipse Kepler 中的消息“项目共享事件更新”是什么? THC. 最佳答案 为了其他从谷歌偶然发现这个问题的人的利益,请在此处查看 mwhs 的答案,这对我来说非常有用: htt
我目前正在将 64 位 Kepler 与 IBM Websphere Developer Tools 一起使用,但它运行速度很慢。 eclipse 进程经常使用 800M - 1.2G 并且它不时卡住
我遇到了 Eclipse 的问题。 它一次次崩溃(每天4-5次),没有任何错误! (CPU 使用率也正常),但我什么也做不了——在 Eclipse 中单击或写入,或关闭此应用程序。只有在进程管理器中杀
我安装了新版本的eclipse Kepler而不是Indigo。我当前的操作系统是Ubuntu 12.04。 一切看起来都很好,并且将Ubuntu更新设置为与Indigo相同。 但是当我尝试运行简单的
我已经安装了 Eclipse Kepler(构建 ID:20130614-0229)。当我尝试编译我的项目时,我遇到了大量与 JPA 相关的错误。我猜它们来自 Dali Java Persistenc
我正在开发一个枚举,其中包含用于处理 pop3 的命令,因此我想存储将在枚举中的每个命令执行的过程。这就是我构建的: 现在,当我尝试编辑时,我的 Eclipse 代码完成功能无法正常工作其中之一 @
我的 Eclipse Kepler 遇到问题。在我的 Java 项目中,我收到了一些警告,现在它们在项目资源管理器中显示为错误标记(红叉)。 看起来像这张图片 /image/H8j7f.png 所以我
我已经下载了 Eclipse Kepler 但无法启动,当我尝试打开(启动 eclipse)时出现错误:“无法加载 C:/Java/..../bin/client/jvm.dll”,在尝试找到解决方案
我有一个 Dropbox 工作区,最近(以前从未发生过这种情况),我回到家(我在学校也在 Dropbox 工作区中编辑了一些代码),现在每次我使用该工作区时 Eclipse 都会崩溃,但不是任何一个我
我昨天关闭了我的机器,今天早上启动我的 Eclipse 时,它加载时没有任何我的项目。我尝试对其进行清理,但无济于事。也在以下路径下 workspace\.metadata\.plugins\or
我是一名优秀的程序员,十分优秀!