在论坛上下了个BOSModularForWeb_CDROM(75)
在WAF帮助系统下了样例代码,按照说明进行操作
按说明进行配置,覆盖了web、src、metadata文件夹,找到waf样例中的单据,点击发布时,提示:选择的元数据包含标准产品内容,不能发布
我只好先同步数据库,启动服务,然后。。。启动报错,下面是详细信息,烦请大牛们指导,跪谢!
启动服务时报的错误
2015-03-27 06:55:55 信息 [con.out] ralBillEditPageController,generalBillListPageController,generalDataBaseBatchEditPageController,generalDataBaseEditPageController,generalDataBaseListPageController,com.kingdee.bos.webframework.template.database.web.GroupDataBaseBatchEditPageController,com.kingdee.bos.webframework.template.database.web.GroupDataBaseBatchTreeEditPageController,groupDataBaseEditPageController,groupDataBaseListPageController,groupDataBaseTreeEditPageController,treeDataBaseBatchEditPageController,treeDataBaseEditPageController,treeDataBaseListPageController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.handler.MappedInterceptor#1,org.springframework.web.servlet.handler.MappedInterceptor#2,org.springframework.web.servlet.view.InternalResourceViewResolver#0,customerInfoCollectHelper,exceptionResolver,annotationMethodHandlerAdapter,multipartResolver,jsonConverter,resourceManager,httpSessionStateProvider,sessionManager,converterRegister,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1429bbb
2015-03-27 06:55:55 信息 [con.out] [2015-03-27 06:55:55,801 ERROR at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:457)]Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: com/kingdee/bos/cdo/ICommonDataObject
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at com.apusic.web.container.ServletComponent.initializeComponent(Unknown Source)
at com.apusic.web.container.ServletComponent.initializeComponent(Unknown Source)
at com.apusic.web.container.WebComponent.create(Unknown Source)
at com.apusic.web.container.WebComponent.getComponent(Unknown Source)
at com.apusic.web.container.WebComponent.init(Unknown Source)
at com.apusic.web.container.WebContainer.loadServlet(Unknown Source)
at com.apusic.web.container.WebContainer.loadServlet(Unknown Source)
at com.apusic.web.container.WebContainer.loadStartupServlets(Unknown Source)
at com.apusic.web.container.WebContainer.start(Unknown Source)
at com.apusic.web.http.VirtualHost.addContext(Unknown Source)
at com.apusic.web.http.HttpServer.loadWebModule(Unknown Source)
at com.apusic.web.WebService.loadWebModule(Unknown Source)
at com.apusic.deploy.runtime.WebModule.load(Unknown Source)
at com.apusic.deploy.runtime.J2EEApplication.loadModules(Unknown Source)
at com.apusic.deploy.runtime.J2EEApplication.startApplication(Unknown Source)
at com.apusic.deploy.runtime.J2EEApplication.startService(Unknown Source)
at com.apusic.service.Service.start(Unknown Source)
at com.apusic.deploy.runtime.J2EEDeployer.startUserApplications(Unknown Source)
at com.apusic.deploy.runtime.J2EEDeployer.startService(Unknown Source)
at com.apusic.service.Service.start(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.apusic.jmx.MBeanDescriptor.invoke(Unknown Source)
at com.apusic.jmx.DynamicMBeanSupport.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at com.apusic.server.J2EEServer.start(Unknown Source)
at com.apusic.server.J2EEServer.startup(Unknown Source)
at com.apusic.server.Main.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/kingdee/bos/cdo/ICommonDataObject
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getDeclaredMethods(Class.java:1763)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:467)
at org.springframework.web.method.HandlerMethodSelector.selectMethods(HandlerMethodSelector.java:58)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:137)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:107)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initApplicationContext(AbstractHandlerMethodMapping.java:87)
at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 47 more
2015-03-27 06:55:55 警告 [apusic.web.myweb./myweb] 无法装载启动Servlet 'MVCServlet'。
启动测试页面时的错误
2015-03-27 06:50:05 信息 [con.out] [2015-03-27 06:50:05,407 INFO at com.kingdee.bos.waf.filter.EaswebRPCFilter.doFilter(EaswebRPCFilter.java:40)][EASWeb] RPC Filter doFilter start ...
2015-03-27 06:50:05 信息 [con.out] [Eas portal]webContext is null.
2015-03-27 06:50:05 信息 [con.out] [2015-03-27 06:50:05,407 INFO at com.kingdee.bos.waf.filter.EaswebRPCFilter.doFilter(EaswebRPCFilter.java:55)][EASWeb] RPC Filter doFilter end ...
2015-03-27 06:50:05 错误 [apusic.web.eas.ear./eassso] 执行Servlet时发生错误。
org.springframework.context.ApplicationContextException: Unable to initialize application context.
at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:117)
at com.apusic.web.container.ServletComponent.service(Unknown Source)
at com.apusic.web.container.ServletFilterWrapper.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at com.kingdee.eas.cp.eip.sso.web.cache.SSOCacheResourceFilter.doFilter1(SSOCacheResourceFilter.java:61)
at com.kingdee.eas.cp.eip.sso.web.cache.SSOCacheResourceFilter.doFilter(SSOCacheResourceFilter.java:43)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at com.kingdee.eas.cp.common.web.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:98)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.container.WebContainer.processRequest(Unknown Source)
at com.apusic.web.http.VirtualHost.processRequest(Unknown Source)
at com.apusic.web.http.HttpServer.processRequest(Unknown Source)
at com.apusic.web.http.HttpConnectionHandler.service(Unknown Source)
at com.apusic.web.http.ConnectionHandler.processRequest(Unknown Source)
at com.apusic.web.http.ConnectionHandler.processConnection(Unknown Source)
at com.apusic.web.http.ConnectionHandler.run(Unknown Source)
推荐阅读