Here are some clues to this puzzle, but no luck so far.

After I included the “spring.jar” from the Spring Framework Release 2.0.6
download in my WEB-INF\lib, I was able to resolve all the exceptions related
to “java.lang.ClassNotFoundException:
org.springframework.scripting.config.LangNamespaceHandler”.

Although my CXF HelloWorld WAR application built on top of CXF 2.0.3 still
refuses to work on JBoss 4.0.5 after the above mentioned change, I did
notice the following:

2008-01-10 11:20:08,250 ERROR [STDERR] Jan 10, 2008 11:20:08 AM
org.apache.cxf.configuration.spring.ConfigurerImpl <init>
INFO: Could not find the configuration file cxf.xml on the classpath.

2008-01-10 11:20:09,046 ERROR [STDERR] Jan 10, 2008 11:20:09 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service {http://spring.demo/}HelloWorldService from class
demo.spring.HelloWorldImpl

2008-01-10 11:20:09,796 ERROR [STDERR] Jan 10, 2008 11:20:09 AM
org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /HelloWorld

2008-01-10 11:20:09,859 ERROR [STDERR] Jan 10, 2008 11:20:09 AM
org.apache.cxf.transport.servlet.CXFServlet loadSpringBus
INFO: Load the bus with application context

2008-01-10 11:20:09,890 ERROR [STDERR] Jan 10, 2008 11:20:09 AM
org.apache.cxf.transport.servlet.AbstractCXFServlet
replaceDestinationFactory
INFO: Servlet transport factory already registered

In my “beans.xml” file, there is a reference to the file “cxf.xml” as below
but this file does not exist anywhere in my WAR file:
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:jaxws="http://cxf.apache.org/jaxws";
        xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>

        <import resource="classpath:META-INF/cxf/cxf.xml" />
        <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
        <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

        <jaxws:endpoint 
          id="helloWorld" 
          implementor="demo.spring.HelloWorldImpl" 
          address="/HelloWorld" />
          
</beans>

Where should I include this “cfx.xml” configuration file that the Spring
Framework needs in my CXF HelloWorld WAR file and what is the content of
this file?
-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-a-CXF-WAR-file-onto-JBoss-4.0.5-tp14714988p14738564.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to