- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
使用mvn exec:java
命令启动我的项目时出现异常
跟踪:
2015-08-11 16:57:58 INFO DatabaseBeansConfig:60 - Creating bean connectionFactory
Exception in thread "main" java.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:798)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:530)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:771)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:735)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:405)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:372)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.phistory.app.jetty.JettyInitializer.startJetty(JettyInitializer.java:41)
at com.phistory.app.Main.main(Main.java:13)
2015-08-11 16:57:58 ERROR ContextLoader:358 - Context initialization failed
java.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:798)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:530)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:771)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:735)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:405)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:372)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.phistory.app.jetty.JettyInitializer.startJetty(JettyInitializer.java:41)
at com.phistory.app.Main.main(Main.java:13)
- 我的类路径中的 Jars:
mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building XXXXXX 1.0.61
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ XXXXXX -
--
[INFO] XXXXXX:war:1.0.61
[INFO] +- javax:javaee-web-api:jar:7.0:provided
[INFO] +- javax:javaee-web-api:jar:javadoc:7.0:compile
[INFO] +- com.the-carpedia:the-carpedia-data:jar:1.2.11:compile
[INFO] | +- javax.servlet:javax.servlet-api:jar:javadoc:3.1.0:compile
[INFO] | +- org.hibernate:hibernate-entitymanager:jar:4.3.10.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
[INFO] | | +- org.hibernate:hibernate-core:jar:4.3.10.Final:compile
[INFO] | | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | | \- org.jboss:jandex:jar:1.1.0.Final:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec: jar:1.0.0.Final:compile
[INFO] | | \- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:javadoc:1.0.0.Final:compile
[INFO] | +- org.hibernate:hibernate-search-orm:jar:5.3.0.Final:compile
[INFO] | | \- org.hibernate:hibernate-search-engine:jar:5.3.0.Final:compile
[INFO] | | +- org.apache.lucene:lucene-core:jar:4.10.4:compile
[INFO] | | +- org.apache.lucene:lucene-analyzers-common:jar:4.10.4:compile
[INFO] | | \- org.apache.lucene:lucene-facet:jar:4.10.4:compile
[INFO] | | \- org.apache.lucene:lucene-queries:jar:4.10.4:compile
[INFO] | +- org.hibernate:hibernate-search-orm:jar:javadoc:5.3.0.Final:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.2.1.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.1.0:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:javadoc:5.2.1:compile
[INFO] | +- org.springframework:spring-web:jar:4.2.0.RELEASE:compile
[INFO] | | \- org.springframework:spring-aop:jar:4.2.0.RELEASE:compile
[INFO] | | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] | +- org.springframework:spring-web:jar:javadoc:4.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-orm:jar:4.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-jdbc:jar:4.2.0.RELEASE:compile
[INFO] | | \- org.springframework:spring-tx:jar:4.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-orm:jar:javadoc:4.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:javadoc:4.2.0.RELEASE:compile
[INFO] | +- org.apache.commons:commons-dbcp2:jar:2.1:compile
[INFO] | | +- org.apache.commons:commons-pool2:jar:2.3:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.2:compile
[INFO] | +- org.apache.commons:commons-dbcp2:jar:javadoc:2.1:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.10:compile
[INFO] | +- org.slf4j:slf4j-api:jar:javadoc:1.7.10:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:javadoc:2.6.0:compile
[INFO] +- org.springframework:spring-webmvc:jar:4.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:4.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-core:jar:4.2.0.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:4.2.0.RELEASE:compile
[INFO] +- org.springframework:spring-webmvc:jar:javadoc:4.2.0.RELEASE:compile
[INFO] +- org.springframework:spring-context-support:jar:4.2.0.RELEASE:runtime
[INFO] +- org.springframework:spring-beans:jar:4.2.0.RELEASE:runtime
[INFO] +- org.freemarker:freemarker:jar:2.3.23:compile
[INFO] +- org.freemarker:freemarker:jar:javadoc:2.3.23:compile
[INFO] +- commons-collections:commons-collections:jar:3.2.1:runtime
[INFO] +- mysql:mysql-connector-java:jar:5.1.36:runtime
[INFO] +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:provided
[INFO] +- org.eclipse.jetty:jetty-webapp:jar:9.3.2.v20150730:compile
[INFO] | +- org.eclipse.jetty:jetty-xml:jar:9.3.2.v20150730:compile
[INFO] | | \- org.eclipse.jetty:jetty-util:jar:9.3.2.v20150730:compile
[INFO] | \- org.eclipse.jetty:jetty-servlet:jar:9.3.2.v20150730:compile
[INFO] +- org.eclipse.jetty:jetty-webapp:jar:javadoc:9.3.2.v20150730:compile
[INFO] +- org.eclipse.jetty:jetty-servlet:jar:javadoc:9.3.2.v20150730:compile
[INFO] | \- org.eclipse.jetty:jetty-security:jar:9.3.2.v20150730:compile
[INFO] | \- org.eclipse.jetty:jetty-server:jar:9.3.2.v20150730:compile
[INFO] +- org.eclipse.jetty:jetty-server:jar:javadoc:9.3.2.v20150730:compile
[INFO] | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] | +- org.eclipse.jetty:jetty-http:jar:9.3.2.v20150730:compile
[INFO] | \- org.eclipse.jetty:jetty-io:jar:9.3.2.v20150730:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile
[INFO] | \- log4j:log4j:jar:1.2.17:compile
[INFO] \- org.slf4j:slf4j-log4j12:jar:javadoc:1.7.12:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.317 s
[INFO] Finished at: 2015-08-11T17:01:19+02:00
[INFO] Final Memory: 17M/222M
[INFO] ------------------------------------------------------------------------
Pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>XXXX</groupId>
<artifactId>XXXXX</artifactId>
<version>1.0.61</version>
<packaging>war</packaging>
<name>XXXX</name>
<inceptionYear>2014</inceptionYear>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.source.version>1.8</java.source.version>
<maven.compiler.plugin.version>3.1</maven.compiler.plugin.version>
<maven.war.plugin.version>2.3</maven.war.plugin.version>
<maven.clean.plugin.version>2.5</maven.clean.plugin.version>
<javax.ee.version>7.0</javax.ee.version>
<com.thecarpedia.data.version>1.2.11</com.thecarpedia.data.version>
<org.springframework.version>4.2.0.RELEASE</org.springframework.version>
<org.freemarker.version>2.3.23</org.freemarker.version>
<org.eclipse.jetty.version>9.3.2.v20150730</org.eclipse.jetty.version>
<org.slf4j-log4j12.version>1.7.12</org.slf4j-log4j12.version>
<commons.collection.version>3.2.1</commons.collection.version>
<mysql.connector.version>5.1.36</mysql.connector.version>
<jboss-logging.version>3.3.0.Final</jboss-logging.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<source>${java.source.version}</source>
<target>${java.source.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven.war.plugin.version}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<outputDirectory>deployments</outputDirectory>
<packagingExcludes>WEB-INF/lib/*-javadoc.jar</packagingExcludes>
<warName>ROOT</warName>
</configuration>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven.clean.plugin.version}</version>
<configuration>
<filesets>
<fileset>
<directory>deployments</directory>
<includes>
<include>**/*.war</include>
<followSymlinks>false</followSymlinks>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>${javax.ee.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>${javax.ee.version}</version>
<classifier>javadoc</classifier>
</dependency>
<dependency>
<groupId>com.the-carpedia</groupId>
<artifactId>the-carpedia-data</artifactId>
<version>${com.thecarpedia.data.version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${org.springframework.version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${org.springframework.version}</version>
<classifier>javadoc</classifier>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${org.springframework.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${org.springframework.version}</version>
<classifier>javadoc</classifier>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${org.springframework.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>${org.freemarker.version}</version>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>${org.freemarker.version}</version>
<classifier>javadoc</classifier>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>${commons.collection.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.connector.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>${jboss-logging.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>${org.eclipse.jetty.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>${org.eclipse.jetty.version}</version>
<classifier>javadoc</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>${org.eclipse.jetty.version}</version>
<classifier>javadoc</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>${org.eclipse.jetty.version}</version>
<classifier>javadoc</classifier>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${org.slf4j-log4j12.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${org.slf4j-log4j12.version}</version>
<classifier>javadoc</classifier>
</dependency>
</dependencies>
如您所见,我的类路径中有 org.springframework:spring-beans:jar:4.2.0.RELEASE
jar。这个项目直到最近都运行良好,但我不知道我必须进行哪些更改才引入此错误。
我已经尝试在 Jetty 和 Wildfly 8.2 上运行它,输出相同。
问题已解决我检测到我的数据库 bean @Configuration 有问题,我有一个循环引用,如下所示:
2015-08-15 18:50:07 INFO DatabaseBeansConfig:60 - Creating bean connectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
2015-08-15 18:50:07 INFO DatabaseBeansConfig:74 - Creating bean poolableConnectionFactory
2015-08-15 18:50:07 INFO DatabaseBeansConfig:88 - Creating bean objectPool
这种情况一直发生,直到它抛出 NoClassDefFoundError
异常。
最佳答案
尝试将 spring-beans:jar:4.2.0.RELEASE
Jar 添加到您的 IDE 构建路径
。
在 Eclipse
中转到:窗口 > 首选项 > Java > 构建路径 > 用户库。
关于初始化上下文时java.lang.NoClassDefFoundError : org. springframework.beans.FatalBeanException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31945674/
SQLite、Content provider 和 Shared Preference 之间的所有已知区别。 但我想知道什么时候需要根据情况使用 SQLite 或 Content Provider 或
警告:我正在使用一个我无法完全控制的后端,所以我正在努力解决 Backbone 中的一些注意事项,这些注意事项可能在其他地方更好地解决......不幸的是,我别无选择,只能在这里处理它们! 所以,我的
我一整天都在挣扎。我的预输入搜索表达式与远程 json 数据完美配合。但是当我尝试使用相同的 json 数据作为预取数据时,建议为空。点击第一个标志后,我收到预定义消息“无法找到任何内容...”,结果
我正在制作一个模拟 NHL 选秀彩票的程序,其中屏幕右侧应该有一个 JTextField,并且在左侧绘制弹跳的选秀球。我创建了一个名为 Ball 的类,它实现了 Runnable,并在我的主 Draf
这个问题已经有答案了: How can I calculate a time span in Java and format the output? (18 个回答) 已关闭 9 年前。 这是我的代码
我有一个 ASP.NET Web API 应用程序在我的本地 IIS 实例上运行。 Web 应用程序配置有 CORS。我调用的 Web API 方法类似于: [POST("/API/{foo}/{ba
我将用户输入的时间和日期作为: DatePicker dp = (DatePicker) findViewById(R.id.datePicker); TimePicker tp = (TimePic
放宽“邻居”的标准是否足够,或者是否有其他标准行动可以采取? 最佳答案 如果所有相邻解决方案都是 Tabu,则听起来您的 Tabu 列表的大小太长或您的释放策略太严格。一个好的 Tabu 列表长度是
我正在阅读来自 cppreference 的代码示例: #include #include #include #include template void print_queue(T& q)
我快疯了,我试图理解工具提示的行为,但没有成功。 1. 第一个问题是当我尝试通过插件(按钮 1)在点击事件中使用它时 -> 如果您转到 Fiddle,您会在“内容”内看到该函数' 每次点击都会调用该属
我在功能组件中有以下代码: const [ folder, setFolder ] = useState([]); const folderData = useContext(FolderContex
我在使用预签名网址和 AFNetworking 3.0 从 S3 获取图像时遇到问题。我可以使用 NSMutableURLRequest 和 NSURLSession 获取图像,但是当我使用 AFHT
我正在使用 Oracle ojdbc 12 和 Java 8 处理 Oracle UCP 管理器的问题。当 UCP 池启动失败时,我希望关闭它创建的连接。 当池初始化期间遇到 ORA-02391:超过
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 9 年前。 Improve
引用这个plunker: https://plnkr.co/edit/GWsbdDWVvBYNMqyxzlLY?p=preview 我在 styles.css 文件和 src/app.ts 文件中指定
为什么我的条形这么细?我尝试将宽度设置为 1,它们变得非常厚。我不知道还能尝试什么。默认厚度为 0.8,这是应该的样子吗? import matplotlib.pyplot as plt import
当我编写时,查询按预期执行: SELECT id, day2.count - day1.count AS diff FROM day1 NATURAL JOIN day2; 但我真正想要的是右连接。当
我有以下时间数据: 0 08/01/16 13:07:46,335437 1 18/02/16 08:40:40,565575 2 14/01/16 22:2
一些背景知识 -我的 NodeJS 服务器在端口 3001 上运行,我的 React 应用程序在端口 3000 上运行。我在 React 应用程序 package.json 中设置了一个代理来代理对端
我面临着一个愚蠢的问题。我试图在我的 Angular 应用程序中延迟加载我的图像,我已经尝试过这个2: 但是他们都设置了 src attr 而不是 data-src,我在这里遗漏了什么吗?保留 d
我是一名优秀的程序员,十分优秀!