I am writing authenticate service using Spring 2.5.6 with both Hessian remoting implementation and jaxws web service implement. Hession remoting is working fine. However, there is still error in jaxws web service implementation. Basically, I follow the instruction of the link https://jax-ws-commons.dev.java.net/spring/ and have both JAXWS2.1.1 and jaxws-spring download . In the process, I got com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class com.ceg.security.core.jaxws.jaxws.Authenticate is not found. Have you run APT to generate them.
I ran ant wsgen and resolve that issue. Now, I got another error like the following
nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'authenticateServiceEndpoint': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:104)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1245)
at
:
:
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:728)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:380)
at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 45)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3843)
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'authenticateServiceEndpoint': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.FactoryB eanRegistrySupport$1.run(FactoryBeanRegistrySuppor t.java:127)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.doGetObjectFromFactoryBean(Fact oryBeanRegistrySupport.java:116)
at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.getObjectFromFactoryBean(Factor yBeanRegistrySupport.java:91)
at org.springframework.beans.factory.support.Abstract BeanFactory.getObjectForBeanInstance(AbstractBeanF actory.java:1288)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:217 )
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.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:269)
... 42 more
Caused by: java.lang.NullPointerException
at com.sun.xml.ws.api.BindingID.parse(BindingID.java: 290)
at org.jvnet.jax_ws_commons.spring.SpringService.getO bject(SpringService.java:294)
at org.jvnet.jax_ws_commons.spring.SpringService.getO bject(SpringService.java:45)
at org.springframework.beans.factory.support.FactoryB eanRegistrySupport$1.run(FactoryBeanRegistrySuppor t.java:121)
Any idea, why, I attached both web.xml and applicationContext.xml. I am not using autowired. Thanks.