Announcement Announcement Module
Collapse
No announcement yet.
1.0 GA TestDrive deployment problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 1.0 GA TestDrive deployment problem

    Hi,

    I am trying to work with the 1.0 GA testdrive code.
    1) Tried to build a testdrive.war and deploy it to Tomcat 6 (6.0.18 and 6.0.20 on Windows XP, same result)
    webapps/ROOT dir (as WAR or expanded) - it produced severe exceptions:

    INFO: Loading Flex services configuration from: ServletContext resource [/WEB-INF/flex/services-config.xml]
    org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry destroySingletons
    INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@15c97e4:
    defining beans [_messageBrokerHandlerAdapter,_messageBrokerDefault HandlerMapping,_jsonConfigMapEditorConfigurer,_mes sageBrokerMessa
    gingProcessor,_flexRemotingAnnotationPostProcessor ,_messageBrokerRemotingProcessor,org.springframewo rk.flex.core.Excepti
    onTranslationAdvice#0,org.springframework.flex.cor e.EndpointServiceMessagePointcutAdvisor#0,org.spri ngframework.flex.cor
    e.MessageInterceptionAdvice#0,org.springframework. flex.core.EndpointServiceMessagePointcutAdvisor#1, _sessionFixationProt
    ectionConfigurer,_messageBrokerLoginCommand,_messa geBrokerEndpointProcessor,_messageBroker,org.sprin gframework.flex.remo
    ting.RemotingDestinationExporter#0,org.springframe work.flex.remoting.RemotingDestinationExporter#1,o rg.springframework.f
    lex.remoting.RemotingDestinationExporter#2,chat,si mple-feed,market-feed,org.springframework.flex.messaging.jms.JmsAda pte
    r#0,jms-chat,org.springframework.flex.messaging.integ ration.IntegrationAdapter#0,si-receive,org.springframework.flex.mes
    saging.integration.IntegrationAdapter#1,si-send,defaultMessageTemplate,org.springframework.fl ex.remoting.RemotingDestina
    tionExporter#3,simpleFeedStarter,org.springframewo rk.flex.remoting.RemotingDestinationExporter#4,mar ketFeedStarter,org.s
    pringframework.flex.remoting.RemotingDestinationEx porter#5,org.springframework.flex.remoting.Remotin gDestinationExporter
    #6]; parent: org.springframework.beans.factory.support.DefaultL istableBeanFactory@61736e
    Jun 26, 2009 6:00:39 PM org.springframework.web.servlet.FrameworkServlet initServletBean
    SEVERE: Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name
    '_messageBroker': Invocation of init method failed;
    nested exception is java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCap
    ableBeanFactory.java:480)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBea
    nFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapab
    leBeanFactory.java:380)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegis
    try.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListable
    BeanFactory.java:429)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplic
    ationContext.java:728)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:380)
    at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:4 02)
    at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:316 )
    at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:282)
    at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4149)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4458)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.java:987)
    at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:909)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:495)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1206)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:314)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:516)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:583)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:413)
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '_messageBroker': Invo
    cation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireC
    apableBeanFactory.java:1338)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCap
    ableBeanFactory.java:473)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBea
    nFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapab
    leBeanFactory.java:380)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegis
    try.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.Abstract BeanFactory.isSingleton(AbstractBeanFactory.java:3 66)
    at org.springframework.context.support.AbstractApplic ationContext.isSingleton(AbstractApplicationContex t.java:89
    6)
    at org.springframework.web.servlet.handler.AbstractUr lHandlerMapping.registerHandler(AbstractUrlHandler Mapping.j
    ava:296)
    at org.springframework.web.servlet.handler.SimpleUrlH andlerMapping.registerHandlers(SimpleUrlHandlerMap ping.java
    :129)
    ...
    ... 42 more
    Caused by: java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
    at flex.messaging.config.ApacheXPathServerConfigurati onParser.initializeExpressionQuery(ApacheXPathServ erConfigu
    rationParser.java:43)
    at flex.messaging.config.AbstractConfigurationParser. parse(AbstractConfigurationParser.java:68)

    Does it mean there are some prerequisited to deploy that WAR
    like have it with BlazeDS and some pre-configuration ?

    Is 1.0 GA deployment structure any different from M2 testdrive (turnkey)?

    Please create a 1.0 GA Turnkey Testdrive for us
    and/or provide some installation instructions.

    In your Reference Ch.6 there is not enough info, need more details:
    http://static.springframework.org/sp...l/ch06s03.html

    Example: if I need to deploy just one sample from FB3,
    what do I do, which parts have to be there (libs, dependencies, all Spring or parts, etc.)

    Please help !

    TIA,
    Oleg.

  • #2
    See what post Cristophe Coenraets on his blog, about test-drive with spring and BlazeDs integration. Put in "lib" directory same files that have and Cristophe. It's an point of start.
    See what u get in apache log. in your case is very easy. Tell about missing some class "CachedXPathAPI". Search on google, and will find that u need "xalan" package.

    Comment

    Working...
    X