Exceptions occurred during spring + ibatis + jetty + mysql startup.

Source: Internet
Author: User
Spring + ibatis + jetty + mysql has an exception during startup, not every time this problem occurs. when the startup fails, the network can be connected. do you know what the problem is. When the startup fails, mysql can be used to connect to the server. 2015-10-2917: 33: 54.008: INFO: oejs. Server: jetty-8.1.9.v201301312015-10-2917: 33: 54.102: INFO: oejpw. PlusConfiguration: NoTransactionmanagerfound ibatismysqlspringjetty

Spring + ibatis + jetty + mysql has an exception during startup, not every time this problem occurs. when the startup fails, the network can be connected. do you know what the problem is.
When the startup fails, mysql can be used to connect to the server.

17:33:54. 008: INFO: oejs. Server: jetty-8.1.9.v20130131
17:33:54. 102: INFO: oejpw. PlusConfiguration: No Transaction manager found-if your webapp requires one, please configure one.
17:33:54. 441: INFO:/: No Spring WebApplicationInitializer types detected on classpath
17:33:54. 572: INFO:/: Set web app root system property: 'aijiazu. root '= [D: \ cxjy \ code \ aijiazu-server \ src \ main \ webapp]
17:33:54. 623: INFO:/: Initializing log4j from [classpath: log4j. properties]
17:33:54. 632: INFO:/: Initializing Spring root WebApplicationContext
17:35:07, 342 [main] ERROR org. springframework. web. context. ContextLoader: 319-Context initialization failed
Org. springframework. beans. factory. beanCreationException: Error creating bean with name 'sqlmapclient' defined in class path resource [conf/spring-db.xml]: Invocation of init method failed; nested exception is com. ibatis. common. exception. nestedRuntimeException: Error occurred. cause: com. ibatis. common. xml. nodeletException: Error parsing XML. cause: java.net. connectException: Connection timed out: connect
Caused by: java.net. ConnectException: Connection timed out: connect
Caused by: com. ibatis. common. xml. NodeletException: Error parsing XML. Cause: java.net. ConnectException: Connection timed out: connect
Caused by: java.net. ConnectException: Connection timed out: connect
At org. springframework. beans. factory. support. AbstractAutowireCapableBeanFactory. initializeBean (AbstractAutowireCapableBeanFactory. java: 1482)
At org. springframework. beans. factory. support. AbstractAutowireCapableBeanFactory. doCreateBean (AbstractAutowireCapableBeanFactory. java: 521)
At org. springframework. beans. factory. support. AbstractAutowireCapableBeanFactory. createBean (AbstractAutowireCapableBeanFactory. java: 458)
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: 610)
At org. springframework. context. support. AbstractApplicationContext. finispolicanfactoryinitialization (AbstractApplicationContext. java: 932)
At org. springframework. context. support. AbstractApplicationContext. refresh (AbstractApplicationContext. java: 479)
At org. springframework. web. context. ContextLoader. configureAndRefreshWebApplicationContext (ContextLoader. java: 389)
At org. springframework. web. context. ContextLoader. initWebApplicationContext (ContextLoader. java: 294)
At org. springframework. web. context. ContextLoaderListener. contextInitialized (ContextLoaderListener. java: 112)
At org. eclipse. jetty. server. handler. ContextHandler. callContextInitialized (ContextHandler. java: 775)
At org. eclipse. jetty. servlet. ServletContextHandler. callContextInitialized (ServletContextHandler. java: 424)
At org. eclipse. jetty. server. handler. ContextHandler. startContext (ContextHandler. java: 767)
At org. eclipse. jetty. servlet. ServletContextHandler. startContext (ServletContextHandler. java: 249)
At org. eclipse. jetty. webapp. WebAppContext. startContext (WebAppContext. java: 1250)
At org. eclipse. jetty. server. handler. ContextHandler. doStart (ContextHandler. java: 710)
At org. eclipse. jetty. webapp. WebAppContext. doStart (WebAppContext. java: 492)
At org. mortbay. jetty. plugin. JettyWebAppContext. doStart (JettyWebAppContext. java: 293)
At org. eclipse. jetty. util. component. AbstractLifeCycle. start (AbstractLifeCycle. java: 64)
At org. eclipse. jetty. server. handler. HandlerCollection. doStart (HandlerCollection. java: 229)
At org. eclipse. jetty. server. handler. ContextHandlerCollection. doStart (ContextHandlerCollection. java: 172)
At org. eclipse. jetty. util. component. AbstractLifeCycle. start (AbstractLifeCycle. java: 64)
At org. eclipse. jetty. server. handler. HandlerCollection. doStart (HandlerCollection. java: 229)
At org. eclipse. jetty. util. component. AbstractLifeCycle. start (AbstractLifeCycle. java: 64)
At org. eclipse. jetty. server. handler. HandlerWrapper. doStart (HandlerWrapper. java: 95)
At org. eclipse. jetty. server. Server. doStart (servers. java: 280)
At org. mortbay. jetty. plugin. JettyServer. doStart (JettyServer. java: 65)
At org. eclipse. jetty. util. component. AbstractLifeCycle. start (AbstractLifeCycle. java: 64)
At org. mortbay. jetty. plugin. AbstractJettyMojo. startJetty (AbstractJettyMojo. java: 520)
At org.mortbay.jetty.plugin.AbstractJettyMojo.exe cute (AbstractJettyMojo. java: 365)
At org.mortbay.jetty.plugin.JettyRunMojo.exe cute (JettyRunMojo. java: 523)
At org.apache.maven.plugin.DefaultBuildPluginManager.exe cuteMojo (DefaultBuildPluginManager. java: 107)
At org.apache.maven.lifecycle.internal.MojoExecutor.exe cute (MojoExecutor. java: 209)
At org.apache.maven.lifecycle.internal.MojoExecutor.exe cute (MojoExecutor. java: 153)
At org.apache.maven.lifecycle.internal.MojoExecutor.exe cute (MojoExecutor. java: 145)
At org. apache. maven. lifecycle. internal. LifecycleModuleBuilder. buildProject (LifecycleModuleBuilder. java: 84)
At org. apache. maven. lifecycle. internal. LifecycleModuleBuilder. buildProject (LifecycleModuleBuilder. java: 59)
At org. apache. maven. lifecycle. internal. LifecycleStarter. singleThreadedBuild (LifecycleStarter. java: 183)
At org.apache.maven.lifecycle.internal.LifecycleStarter.exe cute (LifecycleStarter. java: 161)
At org. apache. maven. DefaultMaven. doExecute (DefaultMaven. java: 319)
At org.apache.maven.DefaultMaven.exe cute (DefaultMaven. java: 156)
At org.apache.maven.cli.MavenCli.exe cute (MavenCli. java: 534)
At org. apache. maven. cli. MavenCli. doMain (MavenCli. java: 196)
At org. apache. maven. cli. MavenCli. main (MavenCli. java: 141)
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 org. codehaus. plexus. classworlds. launcher. Launcher. launchEnhanced (Launcher. java: 290)
At org. codehaus. plexus. classworlds. launcher. Launcher. launch (Launcher. java: 230)
At org. codehaus. plexus. classworlds. launcher. Launcher. mainWithExitCode (Launcher. java: 409)
At org. codehaus. plexus. classworlds. launcher. Launcher. main (Launcher. java: 352)
Caused by: com. ibatis. common. exception. nestedRuntimeException: Error occurred. cause: com. ibatis. common. xml. nodeletException: Error parsing XML. cause: java.net. connectException: Connection timed out: connect
Caused by: java.net. ConnectException: Connection timed out: connect
Caused by: com. ibatis. common. xml. NodeletException: Error parsing XML. Cause: java.net. ConnectException: Connection timed out: connect
Caused by: java.net. ConnectException: Connection timed out: connect
At com. ibatis. sqlmap. engine. builder. xml. SqlMapConfigParser. parse (SqlMapConfigParser. java: 81)
At com. ibatis. sqlmap. client. SqlMapClientBuilder. buildSqlMapClient (SqlMapClientBuilder. java: 62)
At org. springframework. orm. ibatis. SqlMapClientFactoryBean. buildSqlMapClient (SqlMapClientFactoryBean. java: 329)
At org. springframework. orm. ibatis. SqlMapClientFactoryBean. afterPropertiesSet (SqlMapClientFactoryBean. java: 280)
At org. springframework. beans. factory. support. AbstractAutowireCapableBeanFactory. invokeInitMethods (AbstractAutowireCapableBeanFactory. java: 1541)
At org. springframework. beans. factory. support. AbstractAutowireCapableBeanFactory. initializeBean (AbstractAutowireCapableBeanFactory. java: 1479)
... 54 more
Caused by: com. ibatis. common. xml. NodeletException: Error parsing XML. Cause: java.net. ConnectException: Connection timed out: connect
Caused by: java.net. ConnectException: Connection timed out: connect
At com. ibatis. common. xml. NodeletParser. parse (NodeletParser. java: 53)
At com. ibatis. sqlmap. engine. builder. xml. SqlMapConfigParser. parse (SqlMapConfigParser. java: 78)
... 59 more
Caused by: java.net. ConnectException: Connection timed out: connect
At java.net. DualStackPlainSocketImpl. connect0 (Native Method)
At java.net. DualStackPlainSocketImpl. socketConnect (DualStackPlainSocketImpl. java: 79)
At java.net. AbstractPlainSocketImpl. doConnect (AbstractPlainSocketImpl. java: 339)
At java.net. AbstractPlainSocketImpl. connectToAddress (AbstractPlainSocketImpl. java: 200)
At java.net. AbstractPlainSocketImpl. connect (AbstractPlainSocketImpl. java: 182)
At java.net. PlainSocketImpl. connect (PlainSocketImpl. java: 172)
At java.net. SocksSocketImpl. connect (SocksSocketImpl. java: 392)
At java.net. Socket. connect (Socket. java: 579)
At java.net. Socket. connect (Socket. java: 528)
At sun.net. NetworkClient. doConnect (NetworkClient. java: 180)
At sun.net. www. http. HttpClient. openServer (HttpClient. java: 378)
At sun.net. www. http. HttpClient. openServer (HttpClient. java: 473)
At sun.net. www. http. HttpClient. parseHTTP (HttpClient. java: 598)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.