Hi Jamie,

I think I found the case of your issue.
You can't specify the address as the whole URL when you use servlet transport.

Because CXF servlet can't get the war's name and host name and port name,
so it just use the relative context path to build the endpoint address info.
And this address info will be replaced according to the request url.

Please change the address in the  beans.xml from

address="http://localhost:7001/cxf-test/gfs";

 to

address="/gfs"


And you can access the service wsdl with this url

"http://localhost:7001/cxf-test/gfs?wsdl";


Cheers,

Willem.


Ridgway, Jamie Mr CONT USAAC wrote:
UNCLASSIFIED////


Yes, it's toward the bottom of the attached log fragment below. Looking
through this again, I now see a message complaining about not being able
to find a cxf.xml. Did I miss a step?

Also, I couldn't find way to successfully supply the wsdlLocation
property using /WEB-INF/wsdl/gfs.wsdl. Instead I had to drop it on a web
server I have running and supply the URL where it could be located.
(This is the part in the first post I mentioned that was ugly.) I have
tried every way I can see for it to be set and it always fails to
deploy.

Thanks again,
Jamie

Here's the cxf-servlet.xml (I called it beans.xml based on one of the
examples I saw) :

<?xml version="1.0" encoding="UTF-8"?>

<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-2.0.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="gfs"
implementor="mil.army.usaac.services.genericformsservice.GenericFormsSer
vicePortTypeImpl" address="http://localhost:7001/cxf-test/gfs";
          wsdlLocation="http://192.168.250.247/schemas/wsdl/gfs.wsdl"; />
</beans>

---------

Here's the web.xml :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
  <display-name>CXF Test Provider Webapp</display-name>
        <context-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>WEB-INF/beans.xml</param-value>
        </context-param>

        <listener>
                <listener-class>
        
org.springframework.web.context.ContextLoaderListener
                </listener-class>
        </listener>

        <servlet>
                <servlet-name>CXFServlet</servlet-name>
                <display-name>CXF Servlet</display-name>
                <servlet-class>
org.apache.cxf.transport.servlet.CXFServlet             </servlet-class>
                <load-on-startup>1</load-on-startup>
        </servlet>

        <servlet-mapping>
                <servlet-name>CXFServlet</servlet-name>
                <url-pattern>/*</url-pattern>
        </servlet-mapping>
</web-app>

--------

Here's the relevant section of my log file:


[#|2007-06-21T12:49:31.279-0400|INFO|sun-appserver9.1|javax.enterprise.s
ystem.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|[AutoDeploy]
Selecting file
/home/ridgwayjw/devapps/glassfish/domains/domain1/autodeploy/cxf-test-ea
r-1.0-SNAPSHOT.ear for autodeployment.|#]

[#|2007-06-21T12:49:32.074-0400|INFO|sun-appserver9.1|javax.enterprise.s
ystem.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|deployed with
moduleid = cxf-test-ear-1.0-SNAPSHOT|#]

[#|2007-06-21T12:49:32.306-0400|INFO|sun-appserver9.1|javax.enterprise.s
ystem.container.web|_ThreadID=14;_ThreadName=Timer-4;|PWC1412:
WebModule[/cxf-test] ServletContext.log():Initializing Spring root
WebApplicationContext|#]

[#|2007-06-21T12:49:32.307-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.ContextLoader|_ThreadID=14;_ThreadName=Timer-4;|Root
WebApplicationContext: initialization started|#]

[#|2007-06-21T12:49:32.406-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Refreshing
[EMAIL PROTECTED]:
display name [Root WebApplicationContext]; startup date [Thu Jun 21
12:49:32 EDT 2007]; root of context hierarchy|#]

[#|2007-06-21T12:49:32.627-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
er-4;|Loading XML bean definitions from ServletContext resource
[/WEB-INF/beans.xml]|#]

[#|2007-06-21T12:49:32.749-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
er-4;|Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]|#]

[#|2007-06-21T12:49:32.800-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
er-4;|Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-soap.xml]|#]

[#|2007-06-21T12:49:32.821-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
er-4;|Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-servlet.xml]|#]

[#|2007-06-21T12:49:32.858-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Bean factory for application context
[EMAIL PROTECTED]
]:
[EMAIL PROTECTED]
92c|#]

[#|2007-06-21T12:49:33.011-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not
eligible for getting processed by all BeanPostProcessors (for example:
not eligible for auto-proxying)|#]

[#|2007-06-21T12:49:33.028-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Bean 'cxf' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)|#]

[#|2007-06-21T12:49:33.030-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is
not eligible for getting processed by all BeanPostProcessors (for
example: not eligible for auto-proxying)|#]

[#|2007-06-21T12:49:33.063-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.support.DefaultListableBeanFactory|_ThreadID=14;_ThreadN
ame=Timer-4;|Pre-instantiating singletons in
[EMAIL PROTECTED]
92c: 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.binding.BindingFactoryManager,org.apache.cxf.transport
.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorMana
ger,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,or
g.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusL
ifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.en
dpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleMan
ager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.
endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,o
rg.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.soap.So
apBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.ap
ache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.se
rvlet.ServletTransportFactory,gfs]; root of factory hierarchy|#]

[#|2007-06-21T12:49:33.855-0400|INFO|sun-appserver9.1|org.apache.cxf.ser
vice.factory.ReflectionServiceFactoryBean|_ThreadID=14;_ThreadName=Timer
-4;|Creating Service
{http://services.usaac.army.mil/GenericFormsService/}GenericFormsService
from WSDL: http://192.168.250.247/schemas/wsdl/gfs.wsdl|#]

[#|2007-06-21T12:49:35.159-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.ContextLoader|_ThreadID=14;_ThreadName=Timer-4;|Root
WebApplicationContext: initialization completed in 2852 ms|#]

[#|2007-06-21T12:49:35.174-0400|INFO|sun-appserver9.1|org.apache.cxf.bus
.spring.BusApplicationContext|_ThreadID=14;_ThreadName=Timer-4;|Refreshi
ng [EMAIL PROTECTED]: display name
[EMAIL PROTECTED]; startup date
[Thu Jun 21 12:49:35 EDT 2007]; parent:
[EMAIL PROTECTED]|
#]

[#|2007-06-21T12:49:35.195-0400|INFO|sun-appserver9.1|org.apache.cxf.bus
.spring.BusApplicationContext|_ThreadID=14;_ThreadName=Timer-4;|Could
not find the configuration file cxf.xml on the classpath.|#]

[#|2007-06-21T12:49:35.196-0400|INFO|sun-appserver9.1|org.apache.cxf.bus
.spring.BusApplicationContext|_ThreadID=14;_ThreadName=Timer-4;|Bean
factory for application context
[EMAIL PROTECTED]:
[EMAIL PROTECTED]
12|#]

[#|2007-06-21T12:49:35.196-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.support.DefaultListableBeanFactory|_ThreadID=14;_ThreadN
ame=Timer-4;|Pre-instantiating singletons in
[EMAIL PROTECTED]
12: defining beans []; parent:
[EMAIL PROTECTED]
92c|#]

[#|2007-06-21T12:49:35.228-0400|INFO|sun-appserver9.1|javax.enterprise.s
ystem.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|[AutoDeploy]
Successfully autodeployed :
/home/ridgwayjw/devapps/glassfish/domains/domain1/autodeploy/cxf-test-ea
r-1.0-SNAPSHOT.ear.|#]

[#|2007-06-21T12:51:45.394-0400|WARNING|sun-appserver9.1|org.apache.cxf.
transport.servlet.ServletController|_ThreadID=15;_ThreadName=httpSSLWork
erThread-8080-0;_RequestID=7b86c146-0d24-4e28-b398-022ecca2bfab;|Can't
find the the request for http://localhost:8080/cxf-test/gfs's Observer
|#]


-----Original Message-----
From: Willem Jiang [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 21, 2007 11:09 PM
To: [email protected]
Subject: Re: [U] No Service found

Hi Jamie,

Can you find the log likes this
"INFO: Creating Service
{http://apache.org/hello_world_soap_http}SOAPService from WSDL: WEB-INF/wsdl/hello_world.wsdl" ?

Can you show me the cxf_servlet.xml and web.xml configuration of your
sevice?

cxf_servlet.xml 's  <jaxws:address="/greeter"/> web.xml's
<url-pattern>/services/*</url-pattern>

They relate to your sevice's wsdl  query url.

Cheers,

Willem.

Ridgway, Jamie Mr CONT USAAC wrote:
UNCLASSIFIED////


I have finally convinced both Glassfish and Weblogic 9.2 to deploy my service. It was ugly how I did it but it worked.

Now when I try to access the wsdl using http://localhost:8080/cxf-test/gfs?wsdl I get a page back displaying "No service found". The log files show where the request is being processed by the ServletController but has a warning saying : Can't find the the request for http://localhost:8080/cxf-test/gfs's Observer

(The message does have "the the" in it).

Can anyone enlighten me?

Thanks,
Jamie
UNCLASSIFIED////



UNCLASSIFIED////



Reply via email to