You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Xiangmin Li <xi...@landslide.com> on 2008/01/09 16:50:55 UTC

How to deploy a CXF WAR file onto JBoss 4.0.5

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
org.springframework.web.context.support.XmlWebApplicationContext@c02d83:
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
[org.springframework.web.context.support.XmlWebApplicationContext@c02d83
]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7
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
org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7
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
org.apache.cxf.bus.spring.BusApplicationContext@ee5a06: display name
[org.apache.cxf.bus.spring.BusApplicationContext@ee5a06]; startup date
[Wed Jan 09 10:37:53 EST 2008]; parent:
org.springframework.web.context.support.XmlWebApplicationContext@c02d83

10:37:53,765 INFO  [BusApplicationContext] Bean factory for application
context [org.apache.cxf.bus.spring.BusApplicationContext@ee5a06]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@5ad
7b2

10:37:53,765 INFO  [DefaultListableBeanFactory] Pre-instantiating
singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@5ad
7b2: defining beans []; parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7
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!


Re: How to deploy a CXF WAR file onto JBoss 4.0.5

Posted by Daniel Kulp <dk...@apache.org>.
Also, take a look at:

http://cwiki.apache.org/CXF20DOC/appserverguide.html

We're trying to document as much about the various app servers as we can 
there.

Dan



On Thursday 10 January 2008, Glen Mazza wrote:
> Am Donnerstag, den 10.01.2008, 05:14 -0800 schrieb Landslide:
> > Glen,
> >
> > I understand that I am facing a challenging problem of class loaders
> > and class loading sequence, specifically for JBoss. As you can see,
> > my CXF WAR has everything it needs to run as I have included ALL
> > jars from CXF lib folder in its WEB-INF\lib.
> >
> > My case is a very simple HelloWorld CXF WAR (the sample from Release
> > 2.0.3) onto JBoss 4.0.5 GA (directly unzipped from JBoss download
> > without adding any additional jar). In other words, it would be very
> > easy for you or anyone else to reproduce the errors.
>
> Not really...I don't know much about JBoss, I've never installed it. 
> I would be doing the same guesswork as you in trying to fix the
> problem, and app server debugging generally falls outside the scope of
> a volunteer committer.
>
> I do know from experience that there are frequently initial classpath
> headaches when moving to a new application server.  Activating
> classpath loading logging (assuming JBoss has it, like Oracle App
> Server does) might help.  IIRC, also JBoss *might* be having a problem
> with the "geronimo*.jar" files there--I'm not really sure if that's it
> though.
>
> I would check the JBoss forums--search for CXF--and see if anyone's
> had any problems or solutions.  Glassfish Metro is another option if
> you continue to have absolutely no luck with CXF on JBoss.
>
> Sorry,
> Glen
>
> PS:  If you do find a solution, please respond back so it will be
> stored in the email archives, to help others in the future.



-- 
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog

Re: How to deploy a CXF WAR file onto JBoss 4.0.5

Posted by Glen Mazza <gl...@verizon.net>.
Am Donnerstag, den 10.01.2008, 05:14 -0800 schrieb Landslide:
> Glen,
> 
> I understand that I am facing a challenging problem of class loaders and
> class loading sequence, specifically for JBoss. As you can see, my CXF WAR
> has everything it needs to run as I have included ALL jars from CXF lib
> folder in its WEB-INF\lib.
> 
> My case is a very simple HelloWorld CXF WAR (the sample from Release 2.0.3)
> onto JBoss 4.0.5 GA (directly unzipped from JBoss download without adding
> any additional jar). In other words, it would be very easy for you or anyone
> else to reproduce the errors.

Not really...I don't know much about JBoss, I've never installed it.  I
would be doing the same guesswork as you in trying to fix the problem,
and app server debugging generally falls outside the scope of a
volunteer committer.  

I do know from experience that there are frequently initial classpath
headaches when moving to a new application server.  Activating classpath
loading logging (assuming JBoss has it, like Oracle App Server does)
might help.  IIRC, also JBoss *might* be having a problem with the
"geronimo*.jar" files there--I'm not really sure if that's it though.

I would check the JBoss forums--search for CXF--and see if anyone's had
any problems or solutions.  Glassfish Metro is another option if you
continue to have absolutely no luck with CXF on JBoss.

Sorry,
Glen

PS:  If you do find a solution, please respond back so it will be stored
in the email archives, to help others in the future.




Re: How to deploy a CXF WAR file onto JBoss 4.0.5

Posted by Landslide <xi...@landslide.com>.
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.


Re: How to deploy a CXF WAR file onto JBoss 4.0.5

Posted by Landslide <xi...@landslide.com>.
Glen,

I understand that I am facing a challenging problem of class loaders and
class loading sequence, specifically for JBoss. As you can see, my CXF WAR
has everything it needs to run as I have included ALL jars from CXF lib
folder in its WEB-INF\lib.

My case is a very simple HelloWorld CXF WAR (the sample from Release 2.0.3)
onto JBoss 4.0.5 GA (directly unzipped from JBoss download without adding
any additional jar). In other words, it would be very easy for you or anyone
else to reproduce the errors.

>From the following URL link, it seems that you have already had some lucks
with JBoss 4.0.5 GA + CXF. What version of CXF did you use in this case?
Would I have a better luck if I pacakge my HelloWorld CXF in an EAR together
with the modified jboss-app.xml? For your info, I did not have the problem
of "LinkageErrors involving the QName class" in my case so far.
http://cwiki.apache.org/CXF20DOC/appserverguide.html

Thanks for your help!
-- 
View this message in context: http://www.nabble.com/How-to-deploy-a-CXF-WAR-file-onto-JBoss-4.0.5-tp14714988p14732262.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: How to deploy a CXF WAR file onto JBoss 4.0.5

Posted by Glen Mazza <gl...@verizon.net>.
There are periodically headaches involved in getting CXF to work with
JBoss, primarily classpath issues I believe.  Perhaps searching our
archives[1] can be of help for you.

Glen

[1]
http://www.nabble.com/forum/Search.jtp?forum=16914&local=y&query=jboss

Am Mittwoch, den 09.01.2008, 10:50 -0500 schrieb Xiangmin Li:

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


Re: How to deploy a CXF WAR file onto JBoss 4.0.5

Posted by Jeff Zhang <je...@iona.com>.
Yes, the "ERROR [STDERR]" message is not an error. The reason is JavaLog 
and Log4J 's log level is different. I think it will confuse user, maybe 
we should fix it?

Thanks

Jeff Yu wrote:
> From the stack that you provided, I don't see any error in it. The 
> "ERROR [STDERR]" is not an error, it seems missing log4j jar??
> what else error did you get?  you also can refer to 
> http://cwiki.apache.org/CXF20DOC/appserverguide.html as  your 
> information.
>
>
> Thanks
> Jeff
>
> Xiangmin Li wrote:
>> 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
>> org.springframework.web.context.support.XmlWebApplicationContext@c02d83:
>> 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
>> [org.springframework.web.context.support.XmlWebApplicationContext@c02d83
>> ]:
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7
>> 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
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7
>> 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
>> org.apache.cxf.bus.spring.BusApplicationContext@ee5a06: display name
>> [org.apache.cxf.bus.spring.BusApplicationContext@ee5a06]; startup date
>> [Wed Jan 09 10:37:53 EST 2008]; parent:
>> org.springframework.web.context.support.XmlWebApplicationContext@c02d83
>>
>> 10:37:53,765 INFO  [BusApplicationContext] Bean factory for application
>> context [org.apache.cxf.bus.spring.BusApplicationContext@ee5a06]:
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@5ad
>> 7b2
>>
>> 10:37:53,765 INFO  [DefaultListableBeanFactory] Pre-instantiating
>> singletons in
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@5ad
>> 7b2: defining beans []; parent:
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7
>> 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!
>>
>>
>>   
>

Re: How to deploy a CXF WAR file onto JBoss 4.0.5

Posted by Jeff Yu <je...@iona.com>.
 From the stack that you provided, I don't see any error in it. The 
"ERROR [STDERR]" is not an error, it seems missing log4j jar??
what else error did you get?  you also can refer to 
http://cwiki.apache.org/CXF20DOC/appserverguide.html as  your information.


Thanks
Jeff

Xiangmin Li wrote:
> 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
> org.springframework.web.context.support.XmlWebApplicationContext@c02d83:
> 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
> [org.springframework.web.context.support.XmlWebApplicationContext@c02d83
> ]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7
> 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
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7
> 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
> org.apache.cxf.bus.spring.BusApplicationContext@ee5a06: display name
> [org.apache.cxf.bus.spring.BusApplicationContext@ee5a06]; startup date
> [Wed Jan 09 10:37:53 EST 2008]; parent:
> org.springframework.web.context.support.XmlWebApplicationContext@c02d83
>
> 10:37:53,765 INFO  [BusApplicationContext] Bean factory for application
> context [org.apache.cxf.bus.spring.BusApplicationContext@ee5a06]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@5ad
> 7b2
>
> 10:37:53,765 INFO  [DefaultListableBeanFactory] Pre-instantiating
> singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@5ad
> 7b2: defining beans []; parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7
> 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!
>
>
>