Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   spring + axis, access to bean (http://www.velocityreviews.com/forums/t700595-spring-axis-access-to-bean.html)

rafalak 10-06-2009 07:49 AM

spring + axis, access to bean
 
hello !
how i get access to bean from axis to spring context ?

in WebService I use
String[] configFiles = new String[] {"/WEB-INF/dispatcher-
servlet.xml"};
BeanFactory spring = new ClassPathXmlApplicationContext(configFiles);
Object obj = spring.getBean("sessionFactory");

but get FileNotFound Exception

my appContext.xml
....
<jaxws:endpoint id="helloWorld" implementor="test.ws.test" address="/
x" />
....

my web.xml
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-
class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-
class>
<load-on-startup>1</load-on-startup>
</servlet>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/appContext.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListe ner
</listener-class>
</listener>
<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</
servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>


All times are GMT. The time now is 03:09 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.