1 Reply Latest reply on Mar 13, 2010 2:54 AM by Claus Ibsen

    CXF 2.2.4 to 2.2.6 Migration

    asatplayer Newbie

      I'm not sure if this is the correct forum to post this, but we aren't using any FUSE products, just standard CXF.  When attempting to migrate from CXF version2.2.4 to version 2.2.6 ( no code changes just a new CXF jar file ), I'm getting the following error and I can't figure out why...

      If someone else out there has been able to solve this issue, your feedback would be greatly appreciated.  Thanks -

       

      :1:33: The prefix "httpj" for element "httpj:engine-factory" is not bound.

      Mar 12, 2010 11:19:14 AM org.apache.cxf.common.injection.ResourceInjector invokePostConstruct

      WARNING: method annotated by @PostConstruct throws exception when invoked

      java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.apache.cxf.common.injection.ResourceInjector.invokePostConstruct(ResourceInjector.java:302)

              at org.apache.cxf.common.injection.ResourceInjector.construct(ResourceInjector.java:86)

              at org.apache.cxf.bus.spring.Jsr250BeanPostProcessor.postProcessAfterInitialization(Jsr250BeanPostProcessor.java:71)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:315)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1181)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)

              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)

              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)

              at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:65)

              at com.rightnow.chat.common.SpringHome.getApplicationContext(SpringHome.java:75)

              at com.rightnow.chat.server.EmbeddedJetty.start(EmbeddedJetty.java:151)

              at com.rightnow.chat.server.EmbeddedJetty.main(EmbeddedJetty.java:453)

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory': Cannot create inner bean '(inner bean)' of type while setting constructor argument with index 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method threw exception; nested exception is org.xml.sax.SAXParseException: The prefix "httpj" for element "httpj:engine-factory" is not bound.

              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:222)

              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:127)

              at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:373)

              at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:120)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:800)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:387)

              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

              at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)

              at org.apache.cxf.bus.spring.BusExtensionPostProcessor$1.findExtension(BusExtensionPostProcessor.java:70)

              at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:93)

              at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.getJettyHTTPServerEngineFactory(JettyHTTPTransportFactory.java:84)

              at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.finalizeConfig(JettyHTTPTransportFactory.java:74)

              ... 22 more

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method threw exception; nested exception is org.xml.sax.SAXParseException: The prefix "httpj" for element "httpj:engine-factory" is not bound.

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:451)

              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:215)

              ... 37 more

      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method threw exception; nested exception is org.xml.sax.SAXParseException: The prefix "httpj" for element "httpj:engine-factory" is not bound.

              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:130)

              at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:332)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:785)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:712)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:387)

              ... 38 more

      Caused by: org.xml.sax.SAXParseException: The prefix "httpj" for element "httpj:engine-factory" is not bound.

              at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

              at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)

              at org.apache.cxf.helpers.DOMUtils.readXml(DOMUtils.java:438)

              at org.apache.cxf.transport.http_jetty.spring.JettySpringTypesFactory.createTLSServerParametersMap(JettySpringTypesFactory.java:97)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        INFO (DefaultSingletonBeanRegistry.java:285) - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1a287b7: defining beans ; root of factory hierarchy

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:118)

              ... 42 more

      :1:33: The prefix "httpj" for element "httpj:engine-factory" is not bound.

      Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory': Cannot create inner bean '(inner bean)' of type while setting constructor argument with index 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method threw exception; nested exception is org.xml.sax.SAXParseException: The prefix "httpj" for element "httpj:engine-factory" is not bound.

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method threw exception; nested exception is org.xml.sax.SAXParseException: The prefix "httpj" for element "httpj:engine-factory" is not bound.

      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method threw exception; nested exception is org.xml.sax.SAXParseException: The prefix "httpj" for element "httpj:engine-factory" is not bound.

      Caused by: org.xml.sax.SAXParseException: The prefix "httpj" for element "httpj:engine-factory" is not bound.

              at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

              at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)

              at org.apache.cxf.helpers.DOMUtils.readXml(DOMUtils.java:438)

              at org.apache.cxf.transport.http_jetty.spring.JettySpringTypesFactory.createTLSServerParametersMap(JettySpringTypesFactory.java:97)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:118)

              at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:332)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:785)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:712)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:387)

              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:215)

              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:127)

              at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:373)

              at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:120)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:800)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:387)

              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)

              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)

              at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:65)

              at com.rightnow.chat.common.SpringHome.getApplicationContext(SpringHome.java:75)

              at com.rightnow.chat.server.EmbeddedJetty.start(EmbeddedJetty.java:151)

              at com.rightnow.chat.server.EmbeddedJetty.main(EmbeddedJetty.java:453)