浏览 5632 次
锁定老帖子 主题:spring与flex集成求帮助!
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2012-01-18
2012-1-18 11:23:53 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\MyEclipse 6.5\bin;D:\Tomcat\bin 2012-1-18 11:23:53 org.apache.coyote.http11.Http11BaseProtocol init 信息: Initializing Coyote HTTP/1.1 on http-8181 2012-1-18 11:23:53 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 641 ms 2012-1-18 11:23:53 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 2012-1-18 11:23:53 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/5.5.23 2012-1-18 11:23:53 org.apache.catalina.core.StandardHost start 信息: XML validation disabled 2012-1-18 11:23:54 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 2012-1-18 11:23:54 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 2012-1-18 11:23:55 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring FrameworkServlet 'Spring MVC Dispatcher Servlet' 2012-1-18 11:23:55 org.springframework.web.servlet.FrameworkServlet initServletBean 信息: FrameworkServlet 'Spring MVC Dispatcher Servlet': initialization started 2012-1-18 11:23:55 org.springframework.context.support.AbstractApplicationContext prepareRefresh 信息: Refreshing org.springframework.web.context.support.XmlWebApplicationContext@7bfc04: display name [WebApplicationContext for namespace 'Spring MVC Dispatcher Servlet-servlet']; startup date [Wed Jan 18 11:23:55 CST 2012]; root of context hierarchy 2012-1-18 11:23:55 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions 信息: Loading XML bean definitions from ServletContext resource [/WEB-INF/config/web-application-config.xml] 2012-1-18 11:23:55 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory 信息: Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@7bfc04]: org.springframework.beans.factory.support.DefaultListableBeanFactory@44006e 2012-1-18 11:23:55 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons 信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@44006e: defining beans [_messageBroker,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.flex.messaging.servlet.MessageBrokerHandlerAdapter#0,productService,product]; root of factory hierarchy 2012-1-18 11:23:55 org.springframework.flex.messaging.config.FlexConfigurationManager$ResourceResolverAdapter getConfigurationFile 信息: Loading Flex services configuration from: ServletContext resource [/WEB-INF/flex/services-config.xml] 2012-1-18 11:23:55 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons 信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@44006e: defining beans [_messageBroker,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.flex.messaging.servlet.MessageBrokerHandlerAdapter#0,productService,product]; root of factory hierarchy 2012-1-18 11:23:55 org.springframework.web.servlet.FrameworkServlet initServletBean 严重: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker' defined in ServletContext resource [/WEB-INF/config/web-application-config.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1330) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:411) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:382) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:271) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:268) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:464) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:719) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:378) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:403) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:317) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:283) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI at flex.messaging.config.ApacheXPathServerConfigurationParser.initializeExpressionQuery(ApacheXPathServerConfigurationParser.java:43) at flex.messaging.config.AbstractConfigurationParser.parse(AbstractConfigurationParser.java:68) at org.springframework.flex.messaging.config.FlexConfigurationManager.getMessagingConfiguration(FlexConfigurationManager.java:66) at org.springframework.flex.messaging.MessageBrokerFactoryBean.afterPropertiesSet(MessageBrokerFactoryBean.java:132) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1361) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1327) ... 42 more 2012-1-18 11:23:55 org.apache.catalina.core.ApplicationContext log 严重: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker' defined in ServletContext resource [/WEB-INF/config/web-application-config.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1330) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:411) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:382) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:271) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:268) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:464) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:719) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:378) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:403) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:317) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:283) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI at flex.messaging.config.ApacheXPathServerConfigurationParser.initializeExpressionQuery(ApacheXPathServerConfigurationParser.java:43) at flex.messaging.config.AbstractConfigurationParser.parse(AbstractConfigurationParser.java:68) at org.springframework.flex.messaging.config.FlexConfigurationManager.getMessagingConfiguration(FlexConfigurationManager.java:66) at org.springframework.flex.messaging.MessageBrokerFactoryBean.afterPropertiesSet(MessageBrokerFactoryBean.java:132) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1361) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1327) ... 42 more 2012-1-18 11:23:55 org.apache.catalina.core.StandardContext loadOnStartup 严重: Servlet /SFTest threw load() exception java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI at flex.messaging.config.ApacheXPathServerConfigurationParser.initializeExpressionQuery(ApacheXPathServerConfigurationParser.java:43) at flex.messaging.config.AbstractConfigurationParser.parse(AbstractConfigurationParser.java:68) at org.springframework.flex.messaging.config.FlexConfigurationManager.getMessagingConfiguration(FlexConfigurationManager.java:66) at org.springframework.flex.messaging.MessageBrokerFactoryBean.afterPropertiesSet(MessageBrokerFactoryBean.java:132) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1361) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:411) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:382) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:271) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:268) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:464) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:719) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:378) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:403) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:317) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:283) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) 2012-1-18 11:23:56 org.apache.coyote.http11.Http11BaseProtocol start 信息: Starting Coyote HTTP/1.1 on http-8181 2012-1-18 11:23:56 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 2012-1-18 11:23:56 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/47 config=null 2012-1-18 11:23:56 org.apache.catalina.storeconfig.StoreLoader load 信息: Find registry server-registry.xml at classpath resource 2012-1-18 11:23:56 org.apache.catalina.startup.Catalina start 信息: Server startup in 3188 ms 一直在纠结这个问题,但长久找不出原因 下面列子我从官网下了参考的,但还是报同样的错! 请高手们帮我看看到底是什么原因啊?我把我的列子上传上来了! 多谢! 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2012-01-18
我最近也搭建了这么一个框架 spring集成flex,也遇到过这个问题,我已经把我搭建的框架放到了博客里了,你可以去看看。我也是刚开始学flex。互相学习。
|
|
返回顶楼 | |
发表时间:2012-01-19
dongdong246 写道 严重: Servlet /SFTest threw load() exception java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI 从这里入手检查吧。 |
|
返回顶楼 | |
发表时间:2012-01-27
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker' defined in ServletContext resource [/WEB-INF/config/web-application-config.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI |
|
返回顶楼 | |
发表时间:2012-01-27
虽然不知道你哪里找的例子,但是显然有些地方没有copy完
大致上你的web.xml少了flex的servlet配置 |
|
返回顶楼 | |
发表时间:2012-01-28
感觉像是缺少jar包
ps: spring 和 flex 貌似不存在什么集成吧,二者分的很开。 |
|
返回顶楼 | |
发表时间:2012-01-29
superxielei 写道 dongdong246 写道 严重: Servlet /SFTest threw load() exception java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI 从这里入手检查吧。 从这句话来判断,应该是用错jar包或jar包冲突造成的~ |
|
返回顶楼 | |
发表时间:2012-01-30
SPRING和FLEX怎么集成....FLEX现在有后端了吗?
|
|
返回顶楼 | |
发表时间:2012-01-31
应该是 Spring 整合 BlazedDS ,Spring 提供了有官方的整合方案不像早之前那样要自己加工“兵工厂”,去spring 官网上 找 找 ,有很完整的例子的,1.5以上好像支持blazeds4.0以上版本。
|
|
返回顶楼 | |
发表时间:2012-02-06
已经放弃flex了,前台用这个很蛋疼!!
|
|
返回顶楼 | |