<求助>spring报错 [问题点数:40分,结帖人qq245282209]

Bbs2
本版专家分:253
结帖率 96.3%
Bbs2
本版专家分:253
Bbs2
本版专家分:253
Bbs2
本版专家分:253
Bbs3
本版专家分:510
Bbs2
本版专家分:253
Bbs2
本版专家分:253
Bbs5
本版专家分:2741
Bbs2
本版专家分:253
求助,不懂就问,初配spring报错
新手,初用SSH,之前hibernate,和Struts2,正常运行,按照网上教程加上<em>spring</em>做了整合,然后就<em>报错</em>了。。rn请大神指点一下[code=text]rnrn二月 23, 2017 4:00:35 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'TransactionManager' while setting bean property 'sessionFactory'; nested exception is org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No bean named 'TransactionManager' is definedrn at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No bean named 'TransactionManager' is definedrn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)rn ... 28 morernrn二月 23, 2017 4:00:35 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Error listenerStartrn二月 23, 2017 4:00:35 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/uimaker_OA] startup failed due to previous errorsrn二月 23, 2017 4:00:35 下午 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn二月 23, 2017 4:00:35 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: The web application [/uimaker_OA] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn二月 23, 2017 4:00:35 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: The web application [/uimaker_OA] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.rn二月 23, 2017 4:00:35 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-bio-8080"]rn二月 23, 2017 4:00:35 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-bio-8009"]rn二月 23, 2017 4:00:35 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 8711 msrn[/code]rnrnweb.xmlrnrn[code=text]rnparam-name>contextConfigLocationrnclasspath:applicationContext.xmlrnrnrnrnorg.<em>spring</em>framework.web.context.ContextLoaderListenerrnrnrn rn CharacterEncodingFilterrn org.<em>spring</em>framework.web.filter.CharacterEncodingFilterrn rn forceEncodingrn truern rn rn rn CharacterEncodingFilterrn *.actionrn rn rn OpenSessionInViewFilterrn org.<em>spring</em>framework.orm.hibernate3.support.OpenSessionInViewFilterrn rn rn OpenSessionInViewFilterrn *.actionrn rn rn struts2rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn rn struts2rn *.actionrn rn rn 30rn rn[/code]rnrnapplicationContext.xmlrnrn[code=text]rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]
求助:整合struts和spring,applicationContext.xml报错
初学<em>spring</em>,搞了一天也没搞好,只好来csdn请大家帮忙看看,先谢了!rnrnrn用例:用户登陆验证密码rnrn整合方式:把struts的action委托给<em>spring</em>处理rnrn数据读取方式:使用<em>spring</em>的JdbcTemplate读取rnrnrn下面是点击登陆后报的错误信息:rn---------------rnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: Error creating bean with name 'userBo' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property 'dao'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)rn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn cn.com.jac.dmps.action.JacDmpsActionServlet.process(JacDmpsActionServlet.java:16)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'userBo' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property 'dao'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)rn org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:190)rn org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)rn org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)rn org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)rn org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)rn org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)rn org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)rn org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)rn org.<em>spring</em>framework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)rn org.<em>spring</em>framework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)rn org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)rn org.<em>spring</em>framework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)rn javax.servlet.GenericServlet.init(GenericServlet.java:211)rn org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)rn org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)rn org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)rn org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)rn org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn org.apache.catalina.startup.Catalina.start(Catalina.java:556)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:585)rn org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)rn org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rn
Spring事件被三次调用剖析-ApplicationListener
发布事件的源代码所在处 org.<em>spring</em>framework.context.support.AbstractApplicationContext#publishEvent public void publishEvent(ApplicationEvent event) { Assert.notNull(event, &amp;quot;Event must not be null&amp;quot;); if...
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized
[11-15 11:34:44][localhost-startStop-1][WARN ][AbstractApplicationContext.java-1052]-Exception thrown from ApplicationListener handling ContextClosedEvent java.lang.IllegalStateException: Applicati...
使用lamda表达式启动报错
如图 还有下面的异常,截不全就复制下来了,如下: org.<em>spring</em>framework.context.support.AbstractApplicationContext.doClose(Abst
哪位大神可以帮忙解决一下,tomcat启动报错
17:48:46,781 ERROR ContextLoader:356 - Context initialization failed java.lang.NoSuchMethodError: or
关于sshe web项目错误 syntax error, expect RPAREN, actual UNIQUE unique
在包下写的测试类下写TestHibernate类,用junit测试,能正常进行插入到数据库表中,把表删除后也能自动创建,类如下: package sy.test; import org.junit.T
小白求助spring 关于TransactionProxyFactoryBean的报错
Exception in thread "main" org.<em>spring</em>framework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.<em>spring</em>framework.jdbc.datasource.DatasourceTransactionManager] for bean with name 'transactionManager' defined in class path resource [applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.<em>spring</em>framework.jdbc.datasource.DatasourceTransactionManagerrn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1327)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:594)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1396)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:959)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:683)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at cn.itcast.test.Test.main(Test.java:11)rnCaused by: java.lang.ClassNotFoundException: org.<em>spring</em>framework.jdbc.datasource.DatasourceTransactionManagerrn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at org.<em>spring</em>framework.util.ClassUtils.forName(ClassUtils.java:247)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1348)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1319)rn ... 9 morernrn意思是说找不到那个类,但是我检查了配置文件和相关jar包,确切没有漏,求大神帮忙看看,谢谢rn配置文件我放在二楼
使用spring报错Error getConfigured,求助大虾
struts-config.xmlrnrnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn
求助rcp与spring集成总是报错
我用ide是eclipse3.2+myeclipse6.0rn<em>spring</em>的包是通过myeclipse引入的rn这是Activator的内容rn[code=Java]rnpublic class Activator extends AbstractUIPlugin rnrn // The plug-in IDrn public static final String PLUGIN_ID = "cn.qjq.shitrcp";rnrn // The shared instancern private static Activator plugin;rn ApplicationContext applicationContext;rn rn /**rn * The constructorrn */rn public Activator() rn rnrn /*rn * (non-Javadoc)rn * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)rn */rn public void start(BundleContext context) throws Exception rn super.start(context);rn plugin = this;rn initialApplication();rn rnrn /*rn * (non-Javadoc)rn * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)rn */rn public void stop(BundleContext context) throws Exception rn plugin = null;rn super.stop(context);rn rnrn /**rn * Returns the shared instancern *rn * @return the shared instancern */rn public static Activator getDefault() rn return plugin;rn rnrn /**rn * Returns an image descriptor for the image file at the givenrn * plug-in relative pathrn *rn * @param path the pathrn * @return the image descriptorrn */rn public static ImageDescriptor getImageDescriptor(String path) rn return imageDescriptorFromPlugin(PLUGIN_ID, path);rn rn rn private void initialApplication()rn rn// applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");rn// applicationContext = new FileSystemXmlApplicationContext("src/applicationContext.xml");rn ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();rn rn try rn Thread.currentThread().setContextClassLoader(getDefault().getClass().getClassLoader());rn// applicationContext = new FileSystemXmlApplicationContext(ProjectUtil.toFullPath("properties/applicationContext.xml"));rn applicationContext = new FileSystemXmlApplicationContext("file:d:/www/javapro/shit_rcp/properties/applicationContext.xml");rn catch (Exception e) rn e.printStackTrace();rn rn finally rn Thread.currentThread().setContextClassLoader(oldLoader);rn rn rn public ApplicationContext getAPP()rn rn return applicationContext;rn rnrnrn[/code]rnProjectUtil.java的内容如下rn[code=Java]rnpublic class ProjectUtilrnrn private static AbstractUIPlugin plugin = Activator.getDefault();rn rn private ProjectUtil() rn rn /**rn * 判断当前的运行状态是否为插件方式rn * @return true=插件方式运行rn */rn private static boolean isPlugin() rn return plugin != null;rn rn rn public static URL getURL(String path) rn if (isPlugin())//如果是插件rn return FileLocator.find(plugin.getBundle(), new Path(path), null);rn elsern try rn return new URL("file:" + path);rn catch (MalformedURLException e) rn throw new RuntimeException(path + " is error", e);rn rn rn rn public static InputStream getInputStream(String path) rn URL url = getURL(path);rn try rn return url.openStream();rn catch (IOException e) rn throw new RuntimeException(e);rn rn rn rn public static String toFullPath(String path) rn if (isPlugin()) rn try rn return FileLocator.toFileURL(ProjectUtil.getURL(path)).getPath();rn catch (IOException e) rn throw new RuntimeException(path + " toFullPath is fault", e);rn rn else rn return path;rn rn rnrnrn[/code]rn只要执行applicationContext = new ××程序就不能运行。不执行这句就没有问题rn请大侠指点rn
求助!没有使用spring报错
严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldExceptionrn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)rn at org.<em>spring</em>framework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)rn at org.<em>spring</em>framework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)rn at org.<em>spring</em>framework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.<em>spring</em>framework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldExceptionrn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:169)rn at org.<em>spring</em>framework.aop.config.ConfigBeanDefinitionParser.class$(ConfigBeanDefinitionParser.java:208)rn at org.<em>spring</em>framework.aop.config.ConfigBeanDefinitionParser.createPointcutDefinition(ConfigBeanDefinitionParser.java:539)rn at org.<em>spring</em>framework.aop.config.ConfigBeanDefinitionParser.parsePointcut(ConfigBeanDefinitionParser.java:476)rn at org.<em>spring</em>framework.aop.config.ConfigBeanDefinitionParser.parse(ConfigBeanDefinitionParser.java:142)rn at org.<em>spring</em>framework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)rn at org.<em>spring</em>framework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)rn at org.<em>spring</em>framework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)rn ... 37 morernCaused by: java.lang.ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 50 morern2010-9-14 12:08:00 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2010-9-14 12:08:00 org.apache.catalina.core.StandardContext startrn严重: Context [/mywebs] startup failed due to previous errors
求助帖子:spring boot 项目 依赖报错
先介绍一下我的项目情况。 rnrn我这个项目是多模块maven项目rnrn我的计划是:common是 核心模块-与数据库交互、service、dao、control等。rnmobile是前端展示页面情况rnrn1、 common-bootrnrn2、mobile-bootrnrncommon 包含了 redis、动态切换主从数据库rnrn目前 的情况是 单独启动都可以启动运行。。rnrn然后在mobile依赖common-boot的时候,就出现了错误,错误麻烦大家下载程序帮我弄一下,谢谢。rnrn经过努力,确实搞不定了。 rnrn在此请求帮我看看,调试一下项目。 rnrn程序 地址:rnhttps://gitee.com/william007/william_boot
Spring ApplicationListener使用方法及问题
使用场景在一些业务场景中,当容器初始化完成之后,需要处理一些操作,比如一些数据的加载、初始化缓存、特定任务的注册等等。这个时候我们就可以使用Spring提供的ApplicationListener来进行操作。用法本文以在Spring boot下的使用为例来进行说明。首先,需要实现ApplicationListener接口并实现onApplicationEvent方法。把需要处理的操作放在onAppl
刚刚尝试找一下springMVC的demo,但是跑起来有些问题,错误日志该怎么看?
刚刚开始接触关于<em>spring</em>的web开发.. 找了个demo,环境也是根据里面的pom直接maven的. 目前数据库 mysql安装尚未成功,但是没有需要加载的初始数据. 对启动有影响吗? packa
Spring 4.2框架中注释驱动的事件监听器详解
Spring 4.2框架中注释驱动的事件监听器详解作者:chszs,版权所有,未经同意,不得转载。博主主页:http://blog.csdn.net/chszs事件交互已经成为很多应用程序不可或缺的一部分,Spring框架提供了一个完整的基础设施来处理瞬时事件。下面我们来看看Spring 4.2框架中基于注释驱动的事件监听器。1、早期的方式在早期,组件要从Spring事件获知自定义域事件中获取通知,
LifecycleProcessor not initialized
Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListener ApplicationEventMulticaster not initialized BeanFactory not initialized or already closed LifecycleProcessor not initialized
exception handling
In this exercise, you need to know how and when to throw an exception. Design a class Matrix that throws the following exceptions: A out_of_range exception, which is thrown whenever a user access
Spring 报错
[framework] 2016-04-21 13:49:53,972 - org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader -381 [main] INFO org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext.xml]rn[framework] 2016-04-21 13:49:54,355 - org.<em>spring</em>framework.context.support.GenericApplicationContext -764 [main] INFO org.<em>spring</em>framework.context.support.GenericApplicationContext - Refreshing org.<em>spring</em>framework.context.support.GenericApplicationContext@19565a99: startup date [Thu Apr 21 13:49:54 CST 2016]; root of context hierarchyrn[framework] 2016-04-21 13:49:54,531 - org.<em>spring</em>framework.context.support.PropertySourcesPlaceholderConfigurer -940 [main] INFO org.<em>spring</em>framework.context.support.PropertySourcesPlaceholderConfigurer - Loading properties file from class path resource [config.properties]rn[framework] 2016-04-21 13:49:54,614 - org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory -1023 [main] INFO org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory@2ea54d32: defining beans [org.<em>spring</em>framework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,AccountSrevice,AccountDao,org.<em>spring</em>framework.context.annotation.internalConfigurationAnnotationProcessor,org.<em>spring</em>framework.context.annotation.internalAutowiredAnnotationProcessor,org.<em>spring</em>framework.context.annotation.internalRequiredAnnotationProcessor,org.<em>spring</em>framework.context.annotation.internalCommonAnnotationProcessor,org.<em>spring</em>framework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchyrn[framework] 2016-04-21 13:49:54,644 - com.mchange.v2.log.MLog -1053 [main] INFO com.mchange.v2.log.MLog - MLog clients using log4j logging.rn[framework] 2016-04-21 13:49:54,966 - com.mchange.v2.c3p0.C3P0Registry -1375 [main] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]rn[framework] 2016-04-21 13:49:55,092 - org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory -1501 [main] INFO org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory@2ea54d32: defining beans [org.<em>spring</em>framework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,AccountSrevice,AccountDao,org.<em>spring</em>framework.context.annotation.internalConfigurationAnnotationProcessor,org.<em>spring</em>framework.context.annotation.internalAutowiredAnnotationProcessor,org.<em>spring</em>framework.context.annotation.internalRequiredAnnotationProcessor,org.<em>spring</em>framework.context.annotation.internalCommonAnnotationProcessor,org.<em>spring</em>framework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchyrn[framework] 2016-04-21 13:49:55,094 - org.<em>spring</em>framework.test.context.TestContextManager -1503 [main] ERROR org.<em>spring</em>framework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener [org.<em>spring</em>framework.test.context.support.DependencyInjectionTestExecutionListener@7f81c084] to prepare test instance [cn.com.test.SpringDemo1@7d256e50]rnjava.lang.IllegalStateException: Failed to load ApplicationContextrn at org.<em>spring</em>framework.test.context.TestContext.getApplicationContext(TestContext.java:157)rn at org.<em>spring</em>framework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)rn at org.<em>spring</em>framework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)rn at org.<em>spring</em>framework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:313)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)rn at org.<em>spring</em>framework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.<em>spring</em>framework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'AccountSrevice' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'dao' while setting bean property 'dao'; nested exception is org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No bean named 'dao' is definedrn at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)rn at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1391)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)rn at org.<em>spring</em>framework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:106)rn at org.<em>spring</em>framework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:57)rn at org.<em>spring</em>framework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100)rn at org.<em>spring</em>framework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)rn at org.<em>spring</em>framework.test.context.TestContext.loadApplicationContext(TestContext.java:124)rn at org.<em>spring</em>framework.test.context.TestContext.getApplicationContext(TestContext.java:148)rn ... 24 morernCaused by: org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No bean named 'dao' is definedrn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:549)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1096)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:278)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)rn ... 42 more
Spring报错
org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'lifeCycleBean2' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.ClassCastException: com.sun.proxy.$Proxy4 cannot be cast to cn.itcast.<em>spring</em>.lifecycle.LifeCycleBean2rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:532)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at cn.itcast.<em>spring</em>.beaninstance.SpringInstanceTest.demo2(SpringInstanceTest.java:24)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:601)rn at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)rn at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)rn at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: java.lang.ClassCastException: com.sun.proxy.$Proxy4 cannot be cast to cn.itcast.<em>spring</em>.lifecycle.LifeCycleBean2rn at cn.itcast.<em>spring</em>.lifecycle.MyBeanPostProcessor.postProcessAfterInitialization(MyBeanPostProcessor.java:19)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:412)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1492)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)rn ... 34 morern
spring报错
今天<em>spring</em><em>报错</em>呀,请看以下<em>报错</em>,rnrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'orderDetailsService' defined in ServletContext resource [/WEB-INF/applicationContext_service.xml]: Error setting property values; nested exception is org.<em>spring</em>framework.beans.NotWritablePropertyException: Invalid property 'orderDAO' of bean class [wteam.service.ordManageService.OrderDetailsService]: Bean property 'orderDAO' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1396)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)rn at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrnrn这是我的xml文件的配置:rnrn rn rn rn rn rnrnrn rn rn rnrnrnjava代码那部分:rnrnprivate OrderDAOItf orderDAO;rnrnpublic OrderDAOItf getorderDAO() rn return orderDAO;rn rnrn public void setOrderDAO(OrderDAOItf orderDAO) rn this.orderDAO = orderDAO;rn rnrn感觉我的set和get没问题呀,大家能看出哪里有问题吗
spring 报错
2011-05-02 20:53:55 ERROR [default]:253 - Servlet.service() for servlet default threw exceptionrnjava.lang.IllegalArgumentException: object is not an instance of declaring classrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.<em>spring</em>framework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn at org.<em>spring</em>framework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn at org.<em>spring</em>framework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn at $Proxy3.query(Unknown Source)rn at com.sunrister.teachplan.action.TeachPlanAction.query(TeachPlanAction.java:92)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229)rn
使用ApplicationListener对访问做日志记录
场景:有时需要后台对每一次的web请求做记录,可以采用如下的方式: @Slf4j @Component public class ServletRequestHandlerEventListaner implements ApplicationListener { /** * 可以实现直接记录 * @param event */ @Override
SSH整合的时候启动tomcat报错
1.如果错误信息大致是:Connection 相关的,那么说明你的mysql或者sql server或者oracle服务没有启动 2.  如果<em>报错</em>信息如下: Exception thrown from ApplicationListener handling ContextClosedEvent java.lang.IllegalStateException: ApplicationEvent
求助报错
刚配好.net2003,但是在调试程序的时候总是报“找不到脚本库/aspnet_client/system_web/1_1_4322/WebUIValidation.js.请尝试手动放置此文件...”
报错求助
[quote][code=c]#include "stdafx.h"rn#include rn#include rn#include rnusing namespace std;rnrnrnstring& TiHuan(string& str,const string& old_date,const string& new_date) rn rn for(string::size_type pos(0);pos!=string::npos;pos+=new_date.length()) rn rn if( (pos=str.find(old_date,pos))!=string::npos ) rn rn str.replace(pos,old_date.length(),new_date); rn rn else rn break; rn ; rn return str; rn ; rnrnint main(void)rnrn rnrn //Son.ShowTheData(10);rn //char i_date[1096]=0;rn char *i_date=NULL;rn //char DateBuffer[50]=0;rn char Month[20]=0;rn time_t TheDate;rn time(&TheDate);rn printf("time is: %s", ctime(&TheDate));rn memcpy(i_date,ctime(&TheDate) + 4,20);rn //memcpy(Month,ctime(&TheDate) + 4,3);rn string Date = "12345";rn Date = i_date;rnrn TiHuan(Date,"Jan","01");rn TiHuan(Date,"Feb","02");rn TiHuan(Date,"Mar","03");rn TiHuan(Date,"Apr","04");rn TiHuan(Date,"May","05");rn TiHuan(Date,"Jun","06");rn TiHuan(Date,"Jul","07");rn TiHuan(Date,"Aug","08");rn TiHuan(Date,"Sep","09");rn TiHuan(Date,"Oct","10");rn TiHuan(Date,"Nov","11");rn TiHuan(Date,"Dec","12");rn const char *DateBuffer = Date.c_str();rn cout<< 0) //Mon Dec 05 14:35:03 2016rn rn cout<<
Spring求助
我想在web项目启动的时候 从数据库中取出数据然后进行一系列的初始化 ,所以用了两种方法:rn一种是继承Spring的ApplicationContextListenerrn另一种是继承ServletContextListener,但是这两个类中都是用了dao,我的dao是交给Spring管理rn当时启动的时候总是报空指针错误,从错误中可以看出是由于dao的问题 ,不过我有点不明白 Spring已经启动了 而我的listener都是配置在Spring启动的Listener之后 为什么还是会<em>报错</em>?rn rn
spring Boot上传文件报错
<em>spring</em> Boot上传文件<em>报错</em> <em>spring</em> Boot版本 1.5.6 <em>报错</em>原因: org.<em>spring</em>framework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.io.IOException: The temporary uplo...
Spring security 报错
我在配<em>spring</em> security的时候<em>报错</em>了, security对应的namespace handler找不到rn[code=text]rn八月 24, 2015 2:04:18 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.<em>spring</em>framework.org/schema/security]rnOffending resource: ServletContext resource [/WEB-INF/<em>spring</em>-security.xml]rnrn at org.<em>spring</em>framework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)rn at org.<em>spring</em>framework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)rn at org.<em>spring</em>framework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)rn at org.<em>spring</em>framework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:301)rn at org.<em>spring</em>framework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1408)rn at org.<em>spring</em>framework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1401)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:168)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:138)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)rn at org.<em>spring</em>framework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)rn at org.<em>spring</em>framework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)rn at org.<em>spring</em>framework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:604)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:509)rn at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnrn八月 24, 2015 2:04:18 下午 org.apache.catalina.core.StandardContext startInternalrn严重: One or more listeners failed to start. Full details will be found in the appropriate container log filern八月 24, 2015 2:04:18 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/PhoneGameBoxWebApp] startup failed due to previous errorsrn八月 24, 2015 2:04:18 下午 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn八月 24, 2015 2:04:18 下午 org.apache.catalina.core.StandardContext listenerStoprn严重: Exception sending context destroyed event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnjava.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContextrn at org.<em>spring</em>framework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:170)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:997)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:973)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:925)rn at org.<em>spring</em>framework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:583)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:116)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4776)rn at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5390)rn at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnrn八月 24, 2015 2:04:18 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-nio-8080"]rn八月 24, 2015 2:04:18 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-nio-8009"]rn八月 24, 2015 2:04:18 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 4639 msrn[/code]rnrn我查过网上 基本上都是说rn1. 版本不对rn2. <em>spring</em>-security-config.jar找不到rnrn版本我对了好多遍 应该没有问题,至于jar文件 我查看了我的/WEB-INF/lib 里面是有这个jar文件的rnrnmaven dependencyrn3.2.5.RELEASErn rn rn org.<em>spring</em>framework.securityrn <em>spring</em>-security-webrn $<em>spring</em>.security.versionrn rnrn rn org.<em>spring</em>framework.securityrn <em>spring</em>-security-configrn $<em>spring</em>.security.versionrn rnrn rn org.<em>spring</em>framework.securityrn <em>spring</em>-security-corern $<em>spring</em>.security.versionrn rn[img=https://img-bbs.csdn.net/upload/201508/24/1440397385_718604.png][/img]rn/WEB-INF/web.xmlrn[code=text]rnrnrn Springrnrn rn mvc-dispatcherrn org.<em>spring</em>framework.web.servlet.DispatcherServletrn 1rn rnrn rn mvc-dispatcherrn /rn rnrn rn rn <em>spring</em>SecurityFilterChainrn org.<em>spring</em>framework.web.filter.DelegatingFilterProxyrn rnrn rn <em>spring</em>SecurityFilterChainrn /*rn rn rn rn org.<em>spring</em>framework.web.context.ContextLoaderListenerrn rnrn rn contextConfigLocationrn rn /WEB-INF/mvc-dispatcher-servlet.xmlrn /WEB-INF/<em>spring</em>-security.xmlrn rn rnrn[/code]rnrnWEB-INF/<em>spring</em>-security.xmlrn[code=text]rnrnrn rn rn /rn rnrn rn rn rn rn rn rn rnrn[/code]rn
Spring MVC Junit单元测试报错
java.lang.ExceptionInInitializerErrorrn at org.<em>spring</em>framework.mock.web.MockHttpServletResponse.(MockHttpServletResponse.java:76)rn at org.<em>spring</em>framework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:172)rn at org.<em>spring</em>framework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:100)rn at org.<em>spring</em>framework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:319)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:212)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:232)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)rn at org.<em>spring</em>framework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.<em>spring</em>framework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:309)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:175)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)rnCaused by: java.util.MissingResourceException: Can't find bundle for base name javax.servlet.LocalStrings, locale zh_CNrn at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)rn at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)rn at java.util.ResourceBundle.getBundle(ResourceBundle.java:721)rn at javax.servlet.ServletOutputStream.(ServletOutputStream.java:87)rn ... 25 more
spring配置文件报错
http://blog.sina.com.cn/s/blog_68158ebf0100q74a.html
spring的dubbo配置文件报错
今天导入一个新的maven项目,<em>spring</em>的dubbo配置文件<em>报错</em>(有dubbo标签的都出现了),配置文件如下: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"        xmlns:context="http://www.<em>spring</em>framework.org/schema/context" xmlns:dubbo="
spring +struts整合报错
Source not found for URLClassPath$JarLoader.getJarFile(URL) line: not available
Spring配置文件报错org.springframework.beans.factory.BeanDefinitionStoreException
## 总共有三个相关联的配置文件,其中dataSource.properties是连接数据库,database.xml是数据库配置,applicationContext.xml再来引用了它们rn![图片说明](https://img-ask.csdn.net/upload/201605/02/1462181765_118234.png)rnrnrn![图片说明](https://img-ask.csdn.net/upload/201605/02/1462181774_107236.png)rnrnrn![图片说明](https://img-ask.csdn.net/upload/201605/02/1462181781_854675.png)rn## <em>报错</em>如下:rnrnorg.<em>spring</em>framework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource [database.xml]: Could not resolve placeholder 'dataSource.driverClassName' in string value "$dataSource.driverClassName"rn at org.<em>spring</em>framework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)rn at org.<em>spring</em>framework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220)rn at org.<em>spring</em>framework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:669)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)rn at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:722)
maven整合Spring报错
[code=java]:rn严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.beans.factory.config.PropertyPlaceholderConfigurer#0': Error setting property values; nested exception is org.<em>spring</em>framework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:rnPropertyAccessException 1: org.<em>spring</em>framework.beans.MethodInvocationException: Property 'systemPropertiesModeName' threw exception; nested exception is org.<em>spring</em>framework.core.ConstantException: Field 'SYSTEM_PROPERTIES_MODE_ENVIRONMENT' not found in class [org.<em>spring</em>framework.beans.factory.config.PropertyPlaceholderConfigurer]rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:626)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)rn at org.<em>spring</em>framework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: org.<em>spring</em>framework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:rnPropertyAccessException 1: org.<em>spring</em>framework.beans.MethodInvocationException: Property 'systemPropertiesModeName' threw exception; nested exception is org.<em>spring</em>framework.core.ConstantException: Field 'SYSTEM_PROPERTIES_MODE_ENVIRONMENT' not found in class [org.<em>spring</em>framework.beans.factory.config.PropertyPlaceholderConfigurer]rn at org.<em>spring</em>framework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)rn at org.<em>spring</em>framework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1358)rn ... 36 more[/code]rn求有经验的大神,指点下[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/54.gif][/img]
spring 循环注入报错
2019-01-21 17:17:51,705 ERROR [org.<em>spring</em>framework.web.context.ContextLoader] - Context initialization failed org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 't...
spring 注解方式 报错
严重: Context initialization failed org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMappin...
Spring测试时的报错
Spring测试<em>报错</em>,反正就是<em>报错</em>,各种<em>报错</em>: 我的错误过程: 错误1 警告<em>报错</em>: log4j:WARN No appenders could be found for logger (org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext). log4j:WARN Please initiali...
Maven构建spring报错
Error: The type org.<em>spring</em>framework.core.NestedRuntimeException cannot be resolved. It is indirectly referenced from required .class files Exception in thread “main” java.lang.Error: Unresolved comp...
Spring Boot 之 报错记录
<em>报错</em>信息 org.xml.sax.SAXParseException: 对实体 "tag" 的引用必须以 ';' 分隔符结尾。 重现步骤 a class="nav-link" th:href="/blogs?order=hot&tag=2">hota> 错误原因 Themleaf 是xml模板不能输入 & 符号 应该用 &amp;代替 HTML的 &lt
spring配置文件报错,求解
rnrnrn rn rn rn rn rnrnrn<em>报错</em>:rnMultiple annotations found at this line:rn - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-rn scan'.rn - schema_reference.4: Failed to read schema document 'http://www.<em>spring</em>framework.org/schema/context/<em>spring</em>-rn context-3.2.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is rn not .
Spring,ehcache整合报错
摘要:在做Spring整合ehcache配置的时候出现了下面的错误,提示如下:java.lang.ClassNotFoundException: org.<em>spring</em>framework.cache.ehcache.EhCacheManagerFactoryBean,经过检查发现是因为org.<em>spring</em>framework.cache.ehcache.EhCacheManagerFactoryBea...
spring依赖注入报错,proxy
org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'county.station.ticket.service.impl.BranchServiceTest': Injection of resource dependencies failed; nested excepti
java spring 连接数据库报错
九月 22, 2013 6:31:41 下午 org.apache.catalina.core.AprLifecycleListener initrnINFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.7.0_25\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Java\jdk1.7.0_25\bin;C:\Program Files (x86)\tomcat\bin;C:\Program Files (x86)\PostgreSQL\bin;C:\php;C:\Program Files (x86)\eclipse;;.rn九月 22, 2013 6:31:41 下午 org.apache.coyote.AbstractProtocol initrnINFO: Initializing ProtocolHandler ["http-bio-8080"]rn九月 22, 2013 6:31:41 下午 org.apache.coyote.AbstractProtocol initrnINFO: Initializing ProtocolHandler ["ajp-bio-8009"]rn九月 22, 2013 6:31:41 下午 org.apache.catalina.startup.Catalina loadrnINFO: Initialization processed in 485 msrn九月 22, 2013 6:31:41 下午 org.apache.catalina.core.StandardService startInternalrnINFO: Starting service Catalinarn九月 22, 2013 6:31:41 下午 org.apache.catalina.core.StandardEngine startInternalrnINFO: Starting Servlet Engine: Apache Tomcat/7.0.41rn九月 22, 2013 6:31:42 下午 org.apache.catalina.startup.HostConfig deployDescriptorrnINFO: Deploying configuration descriptor E:\EclipseWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\AEMS.xmlrn九月 22, 2013 6:31:42 下午 org.apache.catalina.startup.SetContextPropertiesRule beginrnWARNING: [SetContextPropertiesRule]Context Setting property 'source' to 'org.eclipse.jst.jee.server:AEMS' did not find a matching property.rn九月 22, 2013 6:31:42 下午 org.apache.catalina.loader.WebappClassLoader validateJarFilernINFO: validateJarFile(E:\EclipseWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\AEMS\WEB-INF\lib\jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.classrn九月 22, 2013 6:31:42 下午 org.apache.catalina.loader.WebappClassLoader validateJarFilernINFO: validateJarFile(E:\EclipseWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\AEMS\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrn九月 22, 2013 6:31:43 下午 org.apache.catalina.core.ApplicationContext logrnINFO: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.<em>spring</em>framework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rn九月 22, 2013 6:31:45 下午 org.apache.catalina.core.StandardContext listenerStartrn[color=#FF0000]SEVERE: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/E:/EclipseWorkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/AEMS/WEB-INF/classes/<em>spring</em>-web-beans.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection available[/color]rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:546)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.<em>spring</em>framework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)rn at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:724)rnCaused by: org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection availablern at org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:106)rn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:148)rn at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)rn at org.<em>spring</em>framework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)rn at org.<em>spring</em>framework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)rn at org.<em>spring</em>framework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)rn ... 26 morernrn九月 22, 2013 6:31:45 下午 org.apache.catalina.core.ApplicationContext logrnINFO: Set web app root system property: 'webapp.root' = [E:\EclipseWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\AEMS\]rn九月 22, 2013 6:31:45 下午 org.apache.catalina.core.ApplicationContext logrnINFO: Initializing log4j from [classpath:log4j-config.xml]rnlog4j:WARN Continuable parsing error 34 and column 11rnlog4j:WARN 元素类型为 "logger" 的内容必须匹配 "(level?,appender-ref*)"。rnlog4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.rn九月 22, 2013 6:31:45 下午 org.apache.catalina.core.StandardContext startInternalrnSEVERE: Error listenerStartrn九月 22, 2013 6:31:45 下午 org.apache.catalina.core.StandardContext startInternalrnSEVERE: Context [/AEMS] startup failed due to previous errorsrn九月 22, 2013 6:31:45 下午 org.apache.catalina.core.ApplicationContext logrnINFO: Shutting down log4jrn九月 22, 2013 6:31:45 下午 org.apache.catalina.core.ApplicationContext logrnINFO: Closing Spring root WebApplicationContextrn九月 22, 2013 6:31:45 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn[color=#FF0000]SEVERE: The web application [/AEMS] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.[/color]rn九月 22, 2013 6:31:45 下午 org.apache.coyote.AbstractProtocol startrnINFO: Starting ProtocolHandler ["http-bio-8080"]rn九月 22, 2013 6:31:45 下午 org.apache.coyote.AbstractProtocol startrnINFO: Starting ProtocolHandler ["ajp-bio-8009"]rn九月 22, 2013 6:31:45 下午 org.apache.catalina.startup.Catalina startrnINFO: Server startup in 3205 msrnrn请问这是数据库连接不上造成的吗?rn有没有可能是因为我数据库在linux上备份,然后恢复到windows时,LC_COLLATE不一致造成的?还是另有别的原因?rn麻烦了……
myeclipse添加Spring报错
给项目添加Spring后,applicationContext.xml一直<em>报错</em>,在problems试图中有如下提示:rn[color=#FF0000]Error occured processing XML 'Provider org.apache.xerces.parsers.IntegratedParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.'. See Error Log for more details applicationContext.xml[/color]rn不知有人是否遇到过,希望帮小弟解决
spring与hibernate整合报错
-----------beans.xml配置---------rnrn rn rn rn rn rn rn rn rn rnrn---------错误信息-----------rnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [beans.xml]: Initialization of bean failed; nested exception is org.<em>spring</em>framework.beans.InvalidPropertyException: Invalid property 'initialSize' of bean class [org.apache.commons.dbcp.BasicDataSource]: No property 'initialSize' foundrn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at junit.test.PersonServiceTest.setUpBeforeClass(PersonServiceTest.java:18)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)rn at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.<em>spring</em>framework.beans.InvalidPropertyException: Invalid property 'initialSize' of bean class [org.apache.commons.dbcp.BasicDataSource]: No property 'initialSize' foundrn at org.<em>spring</em>framework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:382)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1288)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1249)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)rn ... 29 morern
用Spring的测试框架报错
<em>spring</em>2.5 rnjunit4.4 rnrn以下是<em>报错</em>代码,已经找到<em>spring</em>的配置文件了,但没有成功解析配置文件 rn[code=Java]rnjava.lang.IllegalStateException: Failed to load ApplicationContextrn at org.<em>spring</em>framework.test.context.TestContext.getApplicationContext(TestContext.java:201)rn at org.<em>spring</em>framework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)rn at org.<em>spring</em>framework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)rn at org.<em>spring</em>framework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:255)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:111)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:148)rn at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)rn at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)rn at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)rn at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)rn at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)rn at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)rnCaused by: org.<em>spring</em>framework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [<em>spring</em>-base.xml]; nested exception is java.lang.ArrayIndexOutOfBoundsException: 27233rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)rn at org.<em>spring</em>framework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:81)rn at org.<em>spring</em>framework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:42)rn at org.<em>spring</em>framework.test.context.TestContext.loadApplicationContext(TestContext.java:173)rn at org.<em>spring</em>framework.test.context.TestContext.getApplicationContext(TestContext.java:197)rn ... 17 morernCaused by: java.lang.ArrayIndexOutOfBoundsException: 27233rn at org.<em>spring</em>framework.asm.ClassReader.readUTF8(Unknown Source)rn at org.<em>spring</em>framework.asm.ClassReader.accept(Unknown Source)rn at org.<em>spring</em>framework.asm.ClassReader.accept(Unknown Source)rn at org.<em>spring</em>framework.core.type.classreading.SimpleMetadataReader.getAnnotationMetadata(SimpleMetadataReader.java:55)rn at org.<em>spring</em>framework.core.type.filter.AnnotationTypeFilter.matchSelf(AnnotationTypeFilter.java:68)rn at org.<em>spring</em>framework.core.type.filter.AbstractTypeHierarchyTraversingFilter.match(AbstractTypeHierarchyTraversingFilter.java:55)rn at org.<em>spring</em>framework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent(ClassPathScanningCandidateComponentProvider.java:252)rn at org.<em>spring</em>framework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:192)rn at org.<em>spring</em>framework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:201)rn at org.<em>spring</em>framework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:84)rn at org.<em>spring</em>framework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)rn at org.<em>spring</em>framework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)rn at org.<em>spring</em>framework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)rn ... 27 morern[/code]rnrn以下是测试用例代码: rn[code=Java]rn@ContextConfiguration(locations = "/<em>spring</em>-base.xml" )rnpublic class CustomerServiceTest extends AbstractTransactionalJUnit4SpringContextTestsrn @Autowiredrn private CustomerService customerService;rn rn @Testrn public void testGetText() rn ......rn rnrn set、get方法....rnrn[/code]rnrn以下是<em>spring</em>配置文件: rn[code=Java]rnrnrn Spring公共配置文件rnrn rn rn rn rnrn rn rn .... rn rnrn rn rn rn rn rn rn $dialectrn org.hibernate.cache.EhCacheProviderrn /ehcache.xmlrn truern updatern rn rn rn rn rn com.security.domain.Resourcern com.security.domain.Rolern com.security.domain.Userrn rn rn rn rn com.entity.*rn rn rn rn rn rn rnrn rn rn rn rnrn rn rnrn rn rn rn rnrn[/code]rnrn我启动项目的时候是没有错误的,就是用<em>spring</em>的测试框架的时候它<em>报错</em>,真不知道怎么办啊。
Spring 配置报错 org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression
[code=java]rn@Aspect() rnpublic class HelloWorldAspect rn rn //@Pointcut(value="execution(* com.baker.example.*(..)) && args(param)", argNames = "param") rn @Pointcut(value="execution(* com.baker.example..*.*(..))") rn public void beforePointcut() rn rn @Before(value = "beforePointcut()") rn public void beforeAdvice(JoinPoint jp) rn System.out.println("===========before advice param:" + jp.getSignature().getName()); rn rnrnrnpublic class HelloWorldService rn public void sayBefore(String str)rn rn System.out.println("-----------hello world!!------------------"+str);rnrnrn[/code]rnrn[code=text]rn rn rn[/code]
Spring总是报错为啥
[code="java"]rnpublic interface Action rn public String execute(String str);rnrn[/code]rnrn[code="java"]rnpublic class LowerAction implements Action rn private String message;rnrn public String getMessage() rn return message;rn rnrn public void setMessage(String string) rn message = string;rn rnrn public String execute(String str) rn return (getMessage() + str).toLowerCase();rn rnrn[/code]rnrn[code="java"]rnpublic class UpperAction implements Action rn private String message;rnrn public String getMessage() rn return message;rn rnrn public void setMessage(String string) rn message = string;rn rnrn public String execute(String str) rn return (getMessage() + str).toUpperCase();rn rnrn[/code]rnrn[code="java"]rnpublic class Test rn public static void main(String args[])rn ApplicationContext ctx = new FileSystemXmlApplicationContext("bean.xml"); rn Action action = (Action) ctx.getBean("TheAction");rn System.out.println(action.execute("Rod Johnson"));rn rnrnrn[/code]rnrn[code="java"]rnrnrnrn Spring Quick Startrn rn rn Hellorn rn rnrn[/code]rnrn上面代码运行后<em>报错</em>:rn跳出对话框 could not find main class.Program will exit.rn然后异常rnjava.lang.UnsupportedClassVersionError: org/<em>spring</em>framework/context/ApplicationContext (Unsupported major.minor version 49.0)rn at java.lang.ClassLoader.defineClass0(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:539)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)rn at java.net.URLClassLoader.access$100(URLClassLoader.java:55)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:194)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:187)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:289)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:235)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)rnException in thread "main" rnrn什么原因啊n[b]问题补充:[/b]n[code="java"]rnpublic static void main(String args[])rn System.out.println("Hello!");rnrn[/code]rn我运行这个没问题n[b]问题补充:[/b]n我用的是ECLIPSE,我确实是有两个JDK一个是1.5一个是1.4rn单我有两个项目其中一个必须用1.4版本的没有办法不能删除.所以必须两个同时存在rnrn但我觉得这个应该也不会有问题啊.我都在这个环境里开发快1年了也没有出问题啊.rnrn而且我运行下面的代码没有问题啊rnpublic static void main(String args[]) rn System.out.println("Hello!"); rn rnrn为什么这段就不行了呢有什么特出呢!是用了<em>spring</em>框架吗??rn<em>spring</em>框架会影响这个吗rn public static void main(String args[]) rn ApplicationContext ctx = new FileSystemXmlApplicationContext("bean.xml"); rn Action action = (Action) ctx.getBean("TheAction"); rn System.out.println(action.execute("Rod Johnson")); rn rnn[b]问题补充:[/b]n上面得问题解决了!rn现在又报这个错误了rn2009-6-3 12:22:16 org.<em>spring</em>framework.context.support.AbstractApplicationContext prepareRefreshrn信息: Refreshing org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext@13a328f: display name [org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext@13a328f]; startup date [Wed Jun 03 12:22:16 CST 2009]; root of context hierarchyrn2009-6-3 12:22:16 org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitionsrn信息: Loading XML bean definitions from file [F:\MyCode\Spring\bean.xml]rn2009-6-3 12:22:16 org.<em>spring</em>framework.context.support.AbstractApplicationContext obtainFreshBeanFactoryrn信息: Bean factory for application context [org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext@13a328f]: org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory@fe64b9rnException in thread "main" java.lang.NoClassDefFoundError: org/antlr/runtime/Lexerrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:620)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn at java.net.URLClassLoader.access$100(URLClassLoader.java:56)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:195)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:251)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)rn at org.<em>spring</em>framework.context.expression.StandardBeanExpressionResolver.(StandardBeanExpressionResolver.java:57)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:441)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140)rn at org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:84)rn at <em>spring</em>.test.Test.main(Test.java:8)n[b]问题补充:[/b]n加了还是这个错n[b]问题补充:[/b]n2009-6-8 21:33:11 org.<em>spring</em>framework.context.support.AbstractApplicationContext prepareRefreshrn信息: Refreshing org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext@13a328f: display name [org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext@13a328f]; startup date [Mon Jun 08 21:33:11 CST 2009]; root of context hierarchyrn2009-6-8 21:33:12 org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitionsrn信息: Loading XML bean definitions from file [F:\MyCode\testSpring\src\my<em>spring</em>.xml]rn2009-6-8 21:33:12 org.<em>spring</em>framework.context.support.AbstractApplicationContext obtainFreshBeanFactoryrn信息: Bean factory for application context [org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext@13a328f]: org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory@fe64b9rnException in thread "main" java.lang.NoClassDefFoundError: org/antlr/runtime/Lexerrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:620)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn at java.net.URLClassLoader.access$100(URLClassLoader.java:56)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:195)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:251)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)rn at org.<em>spring</em>framework.context.expression.StandardBeanExpressionResolver.(StandardBeanExpressionResolver.java:57)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:441)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140)rn at org.<em>spring</em>framework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:84)rn at hello.<em>spring</em>.TestHelloWorld.main(TestHelloWorld.java:8)
spring myeclipse 报错servlet
nn```n nnnnnnnnnnn n n n nnnnn```n像上面这样的 写我的myeclipse 就会<em>报错</em>n错误是:Referenced file contains errors (http://www.<em>spring</em>framework.org/schema/beans/<em>spring</em>-beans-4.0.xsd). For more information, right click on the message in the Problems View and n select "Show Details..."n n 然后我不以注解驱动的方式 的话就没错n n 就是把下面的删掉就没<em>报错</em>了nnnn
spring 注入失败报错
<em>报错</em>代码片段: Error creating bean with name 'itemServiceImpl': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire...
hibernate级联删除 spring报错
现有机构,部门,员工,三张表,其主键一次引用,就是部门引用机构主键,员工引用部门主键,部门联系人字段引用员工主键,先在想删除机构,其下属部门 员工级联删除,报了org.<em>spring</em>framework.dao.InvalidDataAccessApiUsageException: deleted object would be re-saved by cascade (remove deleted object from associations): [com.office.vo.BranchInfo#2]; nested exception is org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [com.office.vo.BranchInfo#2]rnCaused by: org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [com.office.vo.BranchInfo#2]错误。rn以下是三个表的xml。谁有好的办法解决呢? 谢谢!rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnhibernate-mapping>rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn
spring jbpm4.4 集成报错
严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanDefinitionStoreException: Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.log4j.Logger.trace(Ljava/lang/Object;)Vrn at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:423)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:901)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:815)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)
spring aop报错问题
今天在使用<em>spring</em>的过程中,加入<em>spring</em> aop拦截之后总是<em>报错</em>。错误前面是Error creating bean with name 'org.<em>spring</em>framework.context.event.internalEve等等等。发现是少了一个jar包造成的。解决方法是引入aspectweaver-1.5.3.jar。...
Spring mvc报错与解决方案
JSPs only permit GET POST or HEAD: @RequestMapping(value={"/testTest/{id}"}, method=RequestMethod.PUT) @ResponseBody //添加这一注解 public String putMethod(@PathVariable int id){ return "apa
spring:tomcat启动服务报错
九月 04, 2017 10:44:26 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:sp
spring加载xml文件报错
用applicationcontext加载: ApplicationContext factory=new ClassPathXmlApplicationContext("classpath:bean.xml");  ConnectionUtil connectionUtil=(ConnectionUtil) factory.getBean("connection"); System.out
spring quartz 定时器报错
Caused by: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: Table 'driverbible.qrtz_locks' doesn't exist [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErr...
spring 使用注解报错
Exception in thread "main" java.lang.IllegalArgumentExceptionrn at org.<em>spring</em>framework.asm.ClassReader.(Unknown Source)rn at org.<em>spring</em>framework.asm.ClassReader.(Unknown Source)rn at org.<em>spring</em>framework.asm.ClassReader.(Unknown Source)rn at org.<em>spring</em>framework.core.type.classreading.SimpleMetadataReader.(SimpleMetadataReader.java:52)rn at org.<em>spring</em>framework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)rn at org.<em>spring</em>framework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)rn at org.<em>spring</em>framework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)rn at org.<em>spring</em>framework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298)rn at org.<em>spring</em>framework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)rn at org.<em>spring</em>framework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)rn at org.<em>spring</em>framework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230)rn at org.<em>spring</em>framework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153)rn at org.<em>spring</em>framework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130)rn at org.<em>spring</em>framework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285)rn at org.<em>spring</em>framework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at com.iss.service.QuickStartTest.main(QuickStartTest.java:8)rnrnrn
swagger+springMvc spring报错
[img=https://img-bbs.csdn.net/upload/201805/03/1525331275_121743.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201805/03/1525330773_78324.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201805/03/1525330824_409937.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201805/03/1525331436_53798.jpg][/img]rn原本项目是可以运行的,配置了一下swagger之后就<em>报错</em>,怀疑是<em>spring</em>版本的问题,换过很多版本还是这样<em>报错</em>
Spring 报错怎么回事
org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'departmentService' defined in file [C:\Users\Ma\Desktop\学习\wp1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ssh\WEB-INF\classes\applicationContext-beans.xml]: Initialization of bean failed; nested exception is org.<em>spring</em>framework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.ssh.service.EmployeeService$$EnhancerByCGLIB$$67a7b9ee' to required type 'com.ssh.dao.DepartmentDao' for property 'departmentDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.ssh.service.EmployeeService$$EnhancerByCGLIB$$67a7b9ee] to required type [com.ssh.dao.DepartmentDao] for property 'departmentDao': no matching editors or conversion strategy foundrn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.<em>spring</em>framework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.ssh.service.EmployeeService$$EnhancerByCGLIB$$67a7b9ee' to required type 'com.ssh.dao.DepartmentDao' for property 'departmentDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.ssh.service.EmployeeService$$EnhancerByCGLIB$$67a7b9ee] to required type [com.ssh.dao.DepartmentDao] for property 'departmentDao': no matching editors or conversion strategy foundrn at org.<em>spring</em>framework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:473)rn at org.<em>spring</em>framework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:509)rn at org.<em>spring</em>framework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:504)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1502)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1461)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)rn ... 21 morernCaused by: java.lang.IllegalStateException: Cannot convert value of type [com.ssh.service.EmployeeService$$EnhancerByCGLIB$$67a7b9ee] to required type [com.ssh.dao.DepartmentDao] for property 'departmentDao': no matching editors or conversion strategy foundrn at org.<em>spring</em>framework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:267)rn at org.<em>spring</em>framework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:458)rn ... 27 more
Spring Boot测试报错
文章目录<em>报错</em>信息解决方案 <em>报错</em>信息 java.lang.IllegalStateException: Failed to load ApplicationContext at org.<em>spring</em>framework.test.contextLoads 解决方案 认真查看Caused By信息,即可解决问题。 ...
spring mvc上传报错
[img=https://img-bbs.csdn.net/upload/201407/19/1405736858_958162.png][/img][img=https://img-bbs.csdn.net/upload/201407/19/1405736919_337316.png][/img]rn报[img=https://img-bbs.csdn.net/upload/201407/19/1405736956_373394.png][/img]
Spring Boot报错问题解决
<em>报错</em>提示: [17360] 31 Jul 08:36:10.918 # Creating Server TCP listening socket *:6379: bind: Unknown error解决方法: redis>redis-cli.exe 127.0.0.1:6379> shutdown not connected> exit解决后:
spring boots 持久化 报错
Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in dbdemo.mysql.test.JpaConfiguration: Invocation of init method failed
Spring配置文件报错问题
项目中Spring的各种配置文件<em>报错</em>,在左边处显示红叉.问题一: 出现这种情况是标签头部有空格!. 问题二: 问题描述:配置文件傍边会<em>报错</em>,就是说找不到这个标签对应的约束等,<em>spring</em>-mvc.xml,<em>spring</em>-mybatis,applicationContext.xml等配置文件都会出现这样的错误. 查阅了网上的资料,说的各种解决方法,比如说是对应的约束jar包没有引入等等解决方案.但是我这
Spring上传报错413
SpringMVC上传文件<em>报错</em>413笔者今天工作时,运维的同事反馈我们上线不久的项目上传文件过大时,总是提示上传失败。场景重现一下,发现<em>报错</em>信息显示413:Request entity too large。这个错误一般出现在上传文件的时候,nginx conf配置Post请求体长度过长。解决办法: 打开nginx主配置文件nginx.conf, 找到http{},修改或添加如下配置 client
tomcat加载Spring报错
严重: action: nullrnjava.lang.ClassNotFoundException: org.<em>spring</em>framework.web.struts.ContextLoaderPlugInrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn严重: Servlet /Benben threw load() exceptionrnjavax.servlet.UnavailableExceptionrn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)rnrn我的tomcat启动的时候就报这两个错误,怎么回事呢?我的配置文件:rnapplicationContext.xmlrnrnrnrn rn rn rnrnstruts-config.xmlrnrnrnrnrnrn rn rnrn rnrn rn rn rn rn rn rn rnrn rnrn rn rn rn rn rn
spring Boot上传文件报错
<em>spring</em> Boot版本 1.4.5  <em>报错</em>原因:org.<em>spring</em>framework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [C:\U
spring boot初始化报错
解决方法: 将pom文件中添加如下依赖         &amp;lt;dependency&amp;gt;               &amp;lt;groupId&amp;gt;org.<em>spring</em>framework.boot&amp;lt;/groupId&amp;gt;               &amp;lt;artifactId&amp;gt;<em>spring</em>-boot-starter-tomcat&amp;lt;/artifactId&amp;gt;  ...
Spring 注入报错
下面的是接口类和实现类public interface CompactDisc { void play(); }public class SgtPeppers implements CompactDisc{ private String name="1 number"; private String title="xiulianaiqing"; public voi
spring boot报错
我按照资料练习<em>spring</em> boot,<em>报错</em>,<em>报错</em>信息如下:rnProject build error: Non-resolvable parent POM: Failure to find org.<em>spring</em>framework.boot:<em>spring</em>-boot-starter0-parent:pom:1.3.0.BUILD-SNAPSHOT in http://repo.<em>spring</em>.io/rn snapshot was cached in the local repository, resolution will not be reattempted until the update interval of <em>spring</em>-snapshots has elapsed or updates are forced and rn 'parent.relativePath' points at wrong local POMrnrn我的setting文件:rnrnrn E:\IDE\repositoryrnrn rn rn mirrorIdrn repositoryIdrn Human Readable Name for this Mirror.rn http://my.repository.com/repo/pathrn rn rn rn alimavenrn centralrn aliyun mavenrn http://maven.aliyun.com/nexus/content/groups/publicrn rn rnrnpom.xml:rnrn 4.0.0rn rn com.examplern myprojctrn 0.0.1-SNAPSHOTrn rn rn <em>spring</em>-boot-starter0-parentrn org.<em>spring</em>framework.bootrn 1.3.0.BUILD-SNAPSHOTrn rn rn rn rn org.<em>spring</em>framework.bootrn <em>spring</em>-boot-starter-webrn rn rn rn rn rn rn org.<em>spring</em>framework.bootrn <em>spring</em>-boot-maven-pluginrn rn rn rn rn rn rn <em>spring</em>-snapshotsrn http://repo.<em>spring</em>.io/snapshotrn truern rn rn <em>spring</em>-milestonesrn http://repo.<em>spring</em>.io/milestonern rn rn rn rn <em>spring</em>-snapshotsrn http://repo.<em>spring</em>.io/snapshotrn rn rn <em>spring</em>-milestonesrn http://repo.<em>spring</em>.io/milestonern rn rnrnrn按照网上的方法也试了好多次都没有效果,望各位大神指点rnrnrn
spring bean报错
Exception in thread "main" org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'fileDao' defined in class path resource [appDateSource.xml]: Instantiation of bean failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Could not instantiate bean class [dao.FileDao]: Constructor threw exception; nested exception is java.lang.NullPointerExceptionrnrn但是我项目里面已经有FileDao这个类,并在dao这个包下面.rnrnappDateSource.xml里面的配置如下:rn[code=XML]rnrnrnrnrn[/code]
Spring 3 AOP报错
在Spring3开发中 AOP报这个异常:rnrg.<em>spring</em>framework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [scoped-proxy]rn这是什么错误?如何解决啊!!!
spring 事务xml报错
xml:红叉提示rnError occured processing XML 'org/<em>spring</em>framework/transaction/interceptor/TransactionInterceptor'. See Error Log for more detailsrnrn运行<em>报错</em>:rnorg.<em>spring</em>framework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptorrn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)rn at org.<em>spring</em>framework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)rn at org.<em>spring</em>framework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)rn at org.<em>spring</em>framework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.<em>spring</em>framework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at com.<em>spring</em>.tx.SpringTransactionTest.(SpringTransactionTest.java:15)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:217)rn at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)rn at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:363)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)rnCaused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptorrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:615)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)rn at java.net.URLClassLoader.access$000(URLClassLoader.java:58)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:197)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn at org.<em>spring</em>framework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionParser.java:126)rn at org.<em>spring</em>framework.transaction.config.AnnotationDrivenBeanDefinitionParser.parse(AnnotationDrivenBeanDefinitionParser.java:84)rn at org.<em>spring</em>framework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)rn at org.<em>spring</em>framework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1438)rn at org.<em>spring</em>framework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:185)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139)rn at org.<em>spring</em>framework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)rn at org.<em>spring</em>framework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)rn ... 36 morernCaused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptorrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn ... 58 morernrn
spring自动发送邮件报错
在每天的下午四点钟,执行某类中的方法,正常到达。rn可是执行发送邮件send时<em>报错</em>。因为我要在这里查询数据库。rn是不是session未关闭的原因。然后就发送,所以导致的呢。rn请求支援~~~rnrn错误消息:rn at com.vstartek.crm.secutity.mail.SimpleMailServer.sendTextMail(SimpleMailServer.java:41)rn at com.vstartek.crm.secutity.service.QuBirthday.sendMail(QuBirthday.java:56)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.<em>spring</em>framework.util.MethodInvoker.invoke(MethodInvoker.java:283)rn at org.<em>spring</em>framework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:272)rn at org.<em>spring</em>framework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)rn at org.quartz.core.JobRunShell.run(JobRunShell.java:202)rn at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)rn17:26:17,312 DEBUG ExceptionHelper:97 - Detected JDK support for nested exceptions.rn17:26:17,328 INFO JobRunShell:207 - Job DEFAULT.birthTask threw a JobExecutionException: rnorg.quartz.JobExecutionException: Invocation of method 'sendMail' on target class [class com.vstartek.crm.secutity.service.QuBirthday] failed [See nested exception: java.lang.NoClassDefFoundError: javax/activation/DataSource]rn at org.<em>spring</em>framework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:287)rn at org.<em>spring</em>framework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)rn at org.quartz.core.JobRunShell.run(JobRunShell.java:202)rn at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)rnCaused by: java.lang.NoClassDefFoundError: javax/activation/DataSourcern at com.vstartek.crm.secutity.mail.SimpleMailServer.sendTextMail(SimpleMailServer.java:41)rn at com.vstartek.crm.secutity.service.QuBirthday.sendMail(QuBirthday.java:56)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.<em>spring</em>framework.util.MethodInvoker.invoke(MethodInvoker.java:283)rn at org.<em>spring</em>framework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:272)rn ... 3 morern
spring aop报错
最近没事,看了下<em>spring</em>的aop什么的,想在项目中作个记录错误日志的这样的一个东西熟悉一下aop,结果<em>报错</em>,求高手指导啊,谢谢: applicationContext.xml中aop的相关配置:     rn            rn  rn 启动<em>报错</em>,不要这段是可以正常运行的,错误信息如下 :rn org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.aop.aspectj.AspectJPointcutAdvisor#0': Instantiation of bean failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Could not instantiate bean class [org.<em>spring</em>framework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: warning no match for this type name: com.demo.action [Xlint:invalidAbsoluteTypeName]  at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)  at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)  at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)  at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)  at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)  at java.security.AccessController.doPrivileged(Native Method)  at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)  at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)  at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)  at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)  at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)  at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)  at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)  at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)  at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)  at org.<em>spring</em>framework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)  at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)  at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)  at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)  at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)  at java.util.concurrent.FutureTask.run(Unknown Source)  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  at java.lang.Thread.run(Unknown Source) Caused by: org.<em>spring</em>framework.beans.BeanInstantiationException: Could not instantiate bean class [org.<em>spring</em>framework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: warning no match for this type name: com.demo.action [Xlint:invalidAbsoluteTypeName]  at org.<em>spring</em>framework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)  at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)  at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)  ... 25 more Caused by: java.lang.IllegalArgumentException: warning no match for this type name: com.demo.action [Xlint:invalidAbsoluteTypeName]  at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:302)  at org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:206)  at org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:193)  at org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut.getMethodMatcher(AspectJExpressionPointcut.java:179)  at org.<em>spring</em>framework.aop.aspectj.AbstractAspectJAdvice.buildSafePointcut(AbstractAspectJAdvice.java:189)  at org.<em>spring</em>framework.aop.aspectj.AspectJPointcutAdvisor.(AspectJPointcutAdvisor.java:51)  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)  at java.lang.reflect.Constructor.newInstance(Unknown Source)  at org.<em>spring</em>framework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)  ... 27 morern  rn 把expression="execution(* com.demo.action.* (..))"换成expression="execution(* com.demo.action.*.* (..))"启动正常,访问的时候<em>报错</em>,错误信息如下:rn java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)V  at net.sf.cglib.core.DebuggingClassWriter.(DebuggingClassWriter.java:47)  at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)  at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)  at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)  at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:144)  at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:116)  at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)  at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)  at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)  at org.<em>spring</em>framework.aop.framework.Cglib2AopProxy.createEnhancer(Cglib2AopProxy.java:229)  at org.<em>spring</em>framework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:171)  at org.<em>spring</em>framework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110)  at org.<em>spring</em>framework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:490)  at org.<em>spring</em>framework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:365)  at org.<em>spring</em>framework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:325)  at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361)  at com.opensymphony.xwork2.<em>spring</em>.SpringObjectFactory.buildBean(SpringObjectFactory.java:172)  at com.opensymphony.xwork2.<em>spring</em>.SpringObjectFactory.buildBean(SpringObjectFactory.java:144)  at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:150)  at com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:120)  at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:299)  at com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:399)  at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:198)  at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)  at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)  at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)  at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:478)  at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)  at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)  at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  at java.lang.Thread.run(Unknown Source)rn  rn ExceptionAspect.java内容如下:rn package com.demo.util;rn import java.util.Date;rn public class ExceptionAspect rn  /**   *  记录异常信息   * @param ex  捕获到的异常   */  public void writerException(Exception ex)   try    String msg="异常类型:"+ex.getMessage()+" 时间:"+new Date();    FileUtil.writer("d://log.txt",true, msg);    FileUtil.writer("d://log.txt", true, ex.toString());    catch (Exception e)    e.printStackTrace();      rn  
dubbo spring 报错问题
![图片说明](https://img-ask.csdn.net/upload/201704/06/1491467324_287222.png)n 对这个<em>报错</em>有点绝望...不知道问题出在哪里...n n![图片说明](https://img-ask.csdn.net/upload/201704/06/1491467372_35265.png)n 调用这个测试控制器报的错,这个项目只有这个控制器。n
spring c3p0 mysql报错
An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: Attempted to use a closed or broken resource poolrnCause: com.mchange.v2.resourcepool.ResourcePoolException: Attempted to use a closed or broken resource poolrnrn不知道为什么,服务器运行一段时间后,就会出现上面的异常,通常为1个星期左右,时间短一点几天就出异常了!刚启动的时候是不会出现异常的。rn连接吃配置:rnrn
webwork 与spring继承报错
在用webwork时报如下的错误,rn12-22-2006 11:44 [main] com.opensymphony.webwork.<em>spring</em>.WebWorkSpringObjectFactory [43] rnrnFATAL - ********** FATAL ERROR STARTING UP SPRING-WEBWORK INTEGRATION **********rnLooks like the Spring listener was not configured for your web app! rnNothing will work until WebApplicationContextUtils returns a valid ApplicationContext.rnYou might need to add the following to web.xml: rn rn org.<em>spring</em>framework.web.context.ContextLoaderListenerrn rn这个web.xml本来是部署struts 时的一个配置文件,现在在其中增加如下的配置,服务器用的是rnrnweblogic8.1 web.xml部分内容如下:rnrnrn contextConfigLocationrn rn /WEB-INF/classes/applicationContext.xmlrn rn rnrnrnorg.<em>spring</em>framework.web.context.ContextLoaderListenerrn rnrn webworkrn com.opensymphony.webwork.dispatcher.FilterDispatcherrn
spring boot访问报错
<em>spring</em> boot启动时<em>报错</em>,信息如下 This application has no explicit mapping for /error, so you are seeing this as a fallback. Mon Jul 06 21:57:13 CST 2017 There was an unexpected error (type=Not Found, status
初始化spring报错
严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnjava.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml!rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:299)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5108)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1694)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1684)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)rn at java.lang.Thread.run(Thread.java:748)rnrnweb.xml如下:rnrn rn net.sf.navigator.menu.MenuContextListenerrn rnrn rn org.<em>spring</em>framework.web.context.ContextLoaderListenerrn rn rn contextConfigLocationrn classpath:beans.xmlrn
Spring的导入jar包报错
这个错误可以把:4.3.9的jar包换成4.3.10的版本           org.<em>spring</em>framework         <em>spring</em>-context         4.3.10.RELEASE
Spring 报错集合
Spring<em>报错</em>的集合 NoSuchMethodError AnnotatedElementUtils...
linux内核设计与实现 第三版下载
Linux Kernel Development 经典中的经典,人手一本 2.6.34内核 英文第三版 相关下载链接:[url=//download.csdn.net/download/tony_ayuan/2802399?utm_source=bbsseo]//download.csdn.net/download/tony_ayuan/2802399?utm_source=bbsseo[/url]
给排水软件下载
计算给排水常用数据,水力计算表,流速测定等等 相关下载链接:[url=//download.csdn.net/download/czqiao0119/4221961?utm_source=bbsseo]//download.csdn.net/download/czqiao0119/4221961?utm_source=bbsseo[/url]
输出前后三个月的月份下载
随意给出某年某月(如2003年1月),可以显示2002年12月、2003年1月、2003年2月的日历(包括每月的天数和所对应的星期几),并且在每月的左上角或右上角打印出相应的年份和月份 相关下载链接:[url=//download.csdn.net/download/baijuyitadie/4389248?utm_source=bbsseo]//download.csdn.net/download/baijuyitadie/4389248?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的