I have created a CXF Web application based on its 2.0.3 release and
included all the JAR files from its lib folder "\ApacheCXF\lib" in my
"\WebContent\WEB-INF\lib". Such a deployment runs fine on Tomcat 6.0
Server but I got the following errors when I tried to do the same with
JBoss server 4.0.5:

 

10:37:50,500 INFO  [[/JbossWebServices]] Initializing Spring root
WebApplicationContext

10:37:50,500 INFO  [ContextLoader] Root WebApplicationContext:
initialization started

10:37:50,562 INFO  [XmlWebApplicationContext] Refreshing
[EMAIL PROTECTED]:
display name [Root WebApplicationContext]; startup date [Wed Jan 09
10:37:50 EST 2008]; root of context hierarchy

10:37:50,718 INFO  [XmlBeanDefinitionReader] Loading XML bean
definitions from ServletContext resource [/WEB-INF/cxf-beans.xml]

10:37:50,890 INFO  [XmlBeanDefinitionReader] Loading XML bean
definitions from class path resource [META-INF/cxf/cxf.xml]

10:37:50,953 INFO  [XmlBeanDefinitionReader] Loading XML bean
definitions from class path resource
[META-INF/cxf/cxf-extension-soap.xml]

10:37:50,984 INFO  [XmlBeanDefinitionReader] Loading XML bean
definitions from class path resource [META-INF/cxf/cxf-servlet.xml]

10:37:51,031 INFO  [XmlWebApplicationContext] Bean factory for
application context
[EMAIL PROTECTED]
]:
[EMAIL PROTECTED]
3e0d

10:37:51,203 INFO  [XmlWebApplicationContext] Bean
'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for
getting processed by all BeanPostProcessors (for example: not eligible
for auto-proxying)

10:37:51,218 INFO  [XmlWebApplicationContext] Bean
'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible
for getting processed by all BeanPostProcessors (for example: not
eligible for auto-proxying)

10:37:51,234 INFO  [DefaultListableBeanFactory] Pre-instantiating
singletons in
[EMAIL PROTECTED]
3e0d: defining beans
[cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bu
s.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManag
er,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.Bindin
gFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.a
pache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLMana
ger,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueue
Manager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.e
ndpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,or
g.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.h
ttp.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistr
y,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatal
ogManager,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.
binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEdit
orConfigurer,org.apache.cxf.transport.servlet.ServletTransportFactory,ac
countService,contactService,contactServiceImpl,contactServiceTest]; root
of factory hierarchy

10:37:51,421 ERROR [STDERR] Jan 9, 2008 10:37:51 AM
org.apache.cxf.configuration.spring.ConfigurerImpl <init>

INFO: Could not find the configuration file cxf.xml on the classpath.

10:37:52,093 ERROR [STDERR] Jan 9, 2008 10:37:52 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass

INFO: Creating Service
{http://www.landslide.com/webservice/AccountService}AccountService from
class com.landslide.ws.service.AccountService

10:37:53,437 ERROR [STDERR] Jan 9, 2008 10:37:53 AM
org.apache.cxf.endpoint.ServerImpl initDestination

INFO: Setting the server's publish address to be /AccountService

10:37:53,515 ERROR [STDERR] Jan 9, 2008 10:37:53 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass

INFO: Creating Service
{http://www.landslide.com/webservice/ContactService}ContactService from
class com.landslide.ws.service.ContactService

10:37:53,593 ERROR [STDERR] Jan 9, 2008 10:37:53 AM
org.apache.cxf.endpoint.ServerImpl initDestination

INFO: Setting the server's publish address to be /ContactService

10:37:53,625 ERROR [STDERR] Jan 9, 2008 10:37:53 AM
org.apache.cxf.common.injection.ResourceInjector visitField

INFO: failed to resolve resource
com.landslide.ws.service.test.ContactServiceImpl/context

10:37:53,625 ERROR [STDERR] Jan 9, 2008 10:37:53 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass

INFO: Creating Service
{http://test.service.ws.landslide.com/}ContactServiceTest from class
com.landslide.ws.service.test.ContactServiceImpl

10:37:53,718 ERROR [STDERR] Jan 9, 2008 10:37:53 AM
org.apache.cxf.endpoint.ServerImpl initDestination

INFO: Setting the server's publish address to be /ContactServiceTest

10:37:53,718 INFO  [ContextLoader] Root WebApplicationContext:
initialization completed in 3218 ms

10:37:53,734 ERROR [STDERR] Jan 9, 2008 10:37:53 AM
org.apache.cxf.transport.servlet.CXFServlet loadSpringBus

INFO: Load the bus with application context

10:37:53,750 INFO  [BusApplicationContext] Refreshing
[EMAIL PROTECTED]: display name
[EMAIL PROTECTED]; startup date
[Wed Jan 09 10:37:53 EST 2008]; parent:
[EMAIL PROTECTED]

10:37:53,765 INFO  [BusApplicationContext] Bean factory for application
context [EMAIL PROTECTED]:
[EMAIL PROTECTED]
7b2

10:37:53,765 INFO  [DefaultListableBeanFactory] Pre-instantiating
singletons in
[EMAIL PROTECTED]
7b2: defining beans []; parent:
[EMAIL PROTECTED]
3e0d

10:37:53,781 ERROR [STDERR] Jan 9, 2008 10:37:53 AM
org.apache.cxf.transport.servlet.AbstractCXFServlet
replaceDestinationFactory

 

What do I have to do in order to run a CXF Web application on a JBoss
server instance? Please help.

Thanks!

Reply via email to