[
https://issues.apache.org/jira/browse/CXF-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13657104#comment-13657104
]
Villard David edited comment on CXF-1355 at 5/14/13 2:57 PM:
-------------------------------------------------------------
Sorry Benson, I don't fully understand that you had explained. I have to
upgrade a web-app project using java.rmi.remote from XFire to CXF.
I'm in the same situation that Alexander, I have a Null Pointer Exception
during Bean initialization. Here my config.xml:
<import resource="classpath:META-INF/cxf/cxf.xml" />
<bean
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="urlMap">
<map>
<entry key="/">
<ref bean="handlerMapping" />
</entry>
</map>
</property>
</bean>
<bean id="handlerMapping"
class="
org.apache.cxf.spring.remoting.Jsr181HandlerMapping.Jsr181HandlerMapping"> <!--
From Jara's attachment -->
<property name="urlPrefix">
<value>/services/</value>
</property>
</bean>
and here my web.xml
<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/config.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
What's wrong ?
I would like to bring me your experience and eventually tell me how I can move
the code to resolve the problem.
Thanks so much.
David.
> Port Jsr181HandlerMapping from Xfire
> ------------------------------------
>
> Key: CXF-1355
> URL: https://issues.apache.org/jira/browse/CXF-1355
> Project: CXF
> Issue Type: New Feature
> Components: Integration
> Environment: Spring 1.x, 2.x
> Reporter: Jara Cesnek
> Assignee: Benson Margulies
> Fix For: 2.3
>
> Attachments: Jsr181HandlerMapping.java
>
>
> In Xfire was support for automatic scans for @WebService annotated beans in
> Spring servlet context and publish them as endpoints.
> In CXF this feature is missing.
> In attachment I provide my own implementation same functionality on CXF.
> (Spring code is fine, about CXF code I am not sure, but anyway this works)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira