cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brad O'Hearne <br...@neurofire.com>
Subject Exception loading CXF service in Spring with HTTP Binding
Date Fri, 13 Jul 2007 22:59:54 GMT
I am loading a simple CXF service using Spring, and an HTTP Binding. It 
is throwing an Exception, which unfortunately is very cryptic, gives me 
no idea of what the problem is, or how to fix it, and there's not any 
solution I can find in the documentation or by searching in Google. Does 
anyone have any idea what this Exception means and/or how to fix it? 
Thanks...output is below:

ERROR [main] (ContextLoader.java:203) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'userService': Invocation of init method failed; nested 
exception is java.lang.IndexOutOfBoundsException: No group 1
Caused by:
java.lang.IndexOutOfBoundsException: No group 1
   at java.util.regex.Matcher.group(Matcher.java:463)
   at java.util.regex.Matcher.appendReplacement(Matcher.java:730)
   at java.util.regex.Matcher.replaceAll(Matcher.java:806)
   at 
org.apache.cxf.binding.http.strategy.Inflector.pluralize(Inflector.java:72)
   at 
org.apache.cxf.binding.http.strategy.ConventionStrategy.extractNoun(ConventionStrategy.java:148)


   at 
org.apache.cxf.binding.http.strategy.ConventionStrategy.map(ConventionStrategy.java:88) 

   at 
org.apache.cxf.binding.http.HttpBindingFactory.createBindingInfo(HttpBindingFactory.java:100)


   at 
org.apache.cxf.frontend.AbstractEndpointFactory.createBindingInfo(AbstractEndpointFactory.java:274)


   at 
org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:124)


   at 
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpointInfo(AbstractEndpointFactory.java:191)


   at 
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:105)


   at 
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:89)
   at 
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:142) 

   at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:277)
   at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:223)
   at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:175)
   at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:329)
   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:585)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)


   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)


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


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


   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.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)


   at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)


   at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)


   at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3826) 

   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4335)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) 

   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:824)
   at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:713)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:489)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1137)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 

   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   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:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)

Mime
View raw message