Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

?wsdl is not being handled by cxf 2.5.x

Jaxb schema validation for Jaxws hand written classes
(824 lines)
STS Token invalidation
(13 lines)
Feb 8, 2012
Blue Diamond
Blue Diamond
Hello,

We are upgrading our CXF from 2.3.x to 2.5.x. We have our
WebServiceProviders implemented. Our components run in OSGi. Everything is
fine in 2.3.x where we used to embed CXF jars in our OSGi bundle.

Now, we want to use CXF bundles from OSGi thus making our service jars
thin.

Our WSDL is inside the bundle. So, after migration, these resources are not
visible to the outside CXF. So, we tried to handle this with 2 different
apporaches
1. jaxwsCxfFactoryBean.setWSDLURL - service started successfully
2. In our WS provider impl, the annotation attribute wsdlLocation =
"http://....../ourWSDL"
- service started successfully

Both approaches made the service start but both have one main problem.

When we open the ?wsdl endpoint on the browser, it throws a 500 error &
we
could see the following stacktrace on the server log. What I think is
happening is that, the ?wsdl request is being handle by CXF as a SOAP call
rather than a request for the WSDL document. Why could this be happening?

[qtp17003719-152 - /node/wsman?wsdl] phase.PhaseInterceptorChain --- -
Interceptor for -http://test/node}Node has thrown exception, unwinding now.
org.apache.cxf.interceptor.Fault: None of the policy alternatives can be
satisfied.
at
org.apache.cxf.ws.policy.AbstractPolicyInterceptor.handleMessage(AbstractPolicyInterceptor.java:47)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:323)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:289)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[131
rg.apache.cxf.bundle:2.5.2]
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)[99
rg.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)[99
rg.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[99
rg.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)[99
rg.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[99
rg.eclipse.jetty.server:7.5.4.v20111024]
at org.eclipse.jetty.server.Server.handle(Server.java:345)[99
rg.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[99
rg.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)[99
rg.eclipse.jetty.server:7.5.4.v20111024]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)[95
rg.eclipse.jetty._http:7.5.4.v20111024]
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)[95
rg.eclipse.jetty._http:7.5.4.v20111024]
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)[99
rg.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[94
rg.eclipse.jetty.io:7.5.4.v20111024]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[94
rg.eclipse.jetty.io:7.5.4.v20111024]
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[93
rg.eclipse.jetty.util:7.5.4.v20111024]
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[93
rg.eclipse.jetty.util:7.5.4.v20111024]
at java.lang.Thread.run(Unknown Source)[:1.6.0_17]
Caused by: org.apache.cxf.ws.policy.PolicyException: None of the policy
alternatives can be satisfied.
at
org.apache.cxf.ws.policy.EffectivePolicyImpl.chooseAlternative(EffectivePolicyImpl.java:171)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.ws.policy.EffectivePolicyImpl.chooseAlternative(EffectivePolicyImpl.java:164)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.ws.policy.EffectivePolicyImpl.initialise(EffectivePolicyImpl.java:109)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.ws.policy.PolicyEngineImpl.getEffectiveServerRequestPolicy(PolicyEngineImpl.java:327)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.ws.policy.EndpointPolicyImpl.initializeInterceptors(EndpointPolicyImpl.java:296)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.ws.policy.EndpointPolicyImpl.getInterceptors(EndpointPolicyImpl.java:126)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.ws.policy.PolicyInInterceptor.handle(PolicyInInterceptor.java:140)[131
rg.apache.cxf.bundle:2.5.2]
at
org.apache.cxf.ws.policy.AbstractPolicyInterceptor.handleMessage(AbstractPolicyInterceptor.java:45)[131
rg.apache.cxf.bundle:2.5.2]
... 21 more
2012-02-07 15:25:41,312 WARN  [qtp17003719-152 - /node/wsman?wsdl]
addressing.ContextUtils --- - WS-Addressing - failed to retrieve Message
Addressing Properties from context.
2012-02-07 15:25:41,312 WARN  [qtp17003719-152 - /node/wsman?wsdl]
addressing.ContextUtils --- - WS-Addressing - failed to retrieve Message
Addressing Properties from context.
2012-02-07 15:25:41,312 WARN  [qtp17003719-152 - /node/wsman?wsdl]
addressing.ContextUtils --- - WS-Addressing - failed to retrieve Message
Addressing Properties from context.


Any help is greatly appreciated. Thanks & Regards,

Anil


Reply
Tags: cxf
Messages in this thread
?wsdl is not being handled by cxf 2.5.x
reply Re: ?wsdl is not being handled by cxf 2.5.x
(187 lines) Feb 8, 2012 07:07
reply Re: ?wsdl is not being handled by cxf 2.5.x
(230 lines) Feb 9, 2012 03:44
reply Re: ?wsdl is not being handled by cxf 2.5.x
(271 lines) Feb 9, 2012 06:30
reply Re: ?wsdl is not being handled by cxf 2.5.x
(255 lines) Feb 9, 2012 08:57
reply Re: ?wsdl is not being handled by cxf 2.5.x
(279 lines) Feb 9, 2012 09:24
reply Re: ?wsdl is not being handled by cxf 2.5.x
(59 lines) Feb 9, 2012 09:36
reply Re: ?wsdl is not being handled by cxf 2.5.x
(75 lines) Feb 9, 2012 10:12
reply RE: ?wsdl is not being handled by cxf 2.5.x
(329 lines) Feb 10, 2012 02:26
reply RE: ?wsdl is not being handled by cxf 2.5.x
(349 lines) Feb 10, 2012 02:42
reply Re: ?wsdl is not being handled by cxf 2.5.x
(390 lines) Feb 10, 2012 11:44
reply RE: ?wsdl is not being handled by cxf 2.5.x
(405 lines) Feb 13, 2012 02:45
reply Re: ?wsdl is not being handled by cxf 2.5.x
(13 lines) Feb 14, 2012 05:58
reply Re: ?wsdl is not being handled by cxf 2.5.x
(27 lines) Feb 14, 2012 08:45
reply Re: ?wsdl is not being handled by cxf 2.5.x
(15 lines) Feb 14, 2012 12:59
reply Re: ?wsdl is not being handled by cxf 2.5.x
(29 lines) Feb 14, 2012 22:04
reply Re: ?wsdl is not being handled by cxf 2.5.x
(35 lines) Feb 15, 2012 00:34
reply Re: ?wsdl is not being handled by cxf 2.5.x
(63 lines) Feb 15, 2012 10:09
reply Re: ?wsdl is not being handled by cxf 2.5.x
(76 lines) Feb 10, 2012 03:53
reply Re: ?wsdl is not being handled by cxf 2.5.x
(131 lines) Feb 10, 2012 07:54
reply Re: ?wsdl is not being handled by cxf 2.5.x
(130 lines) Feb 10, 2012 11:41
WSDL defines I/O mep but how is all types of responses handled?
November 3, 2010 02:37:00 PM
Hi, If a web service defines in the WSDL an operation with input/output message exchange pattern (all elements optional for response object type), if the web service returns a 202 Accepted, is this handled by the framework silently, or an …
Created] (CXF-3612) wsdl2java error while parsing WSDL having policyreferences within wsdl
June 22, 2011 12:25:21 PM
wsdl2java error while parsing WSDL having policyreferences within wsdl
WSDL configuration driven from WSDL with Apache CXF Distributed OSGi
January 6, 2012 05:44:55 AM
Hello, I'm looking at the Distributed OSGi Reference Guide page from the Apache CXF Distributed OSGi project (http://cxf.apache.org/distributed-osgi-reference.html), and I'm interested by the configuration type "wsdl". As I understand it, using…
wsdl2java (cxf-codegen-plugin) and WSDL that uses <wsdl:import>s
July 8, 2010 12:41:08 PM
Greetings, all. I've been trying to use a JAX-WS bindings file to make my generated objects serializable, as referenced here: http://markmail.org/message/aw52wgp6bdpwo5rx However, no matter what I do, I get this error when trying to run the…
WSDL2Java from wsdl soap1.2 generating code fow wsdl soap1.1
July 5, 2011 06:40:47 AM
Hi all, I am generating the server part of an wsdl with soap 1.2 binding, and once the server is generated and published, the server does not allow soap1.2 calls. I have introduced this in the PortType,…
Fwd: %lld/%llu not handled by apr_vformatter
August 20, 2010 05:37:23 PM
Back to the list (I didn't realize it was just in CC) i ----- Forwarded Message ----- From: "Chris Knight" <christopher### @nasa.gov> To: "Igor Gali?" <i.ga### @brainsware.org> Sent: Saturday, 21 August, 2010 12:22:23 AM Subject:…
INVOKEVIRTUAL not handled yet
October 8, 2011 03:29:37 PM
I am getting RTE with message above when I try to run the example under "updating the base and differentiated objects" in the docs. Is this example supposed to work with the code in trunk? Also, I am assuming…
%lld/%llu not handled by apr_vformatter
August 11, 2010 10:52:25 AM
I spent half-a-day yesterday trying to figure out why I was crashing in apr_psprintf on a strlen until I realized that my "%llu%s" format string was causing it to use my long long int as a char *. Needless to say, no harm in adding support for…
How are column sort handled?
July 18, 2011 11:26:03 AM
Trying to understand the overhead when multiple columns are spread accross ssTables. For eg: Key K1 column b and c are in ssTable 1 and column a in ssTable 2. As I understand columns in a given row are sorted at the time it's stored. So does it…
How much connections are handled per thread?
December 20, 2011 07:38:14 AM
Hello together, just a short question. Does a single Tomcat thread handle more than one connection at a time? (kind of multiplexing) Is it possible that if there are more connections at a time per thread that there is a bug that a GET variable is…
Remove DefaultErrorHandlerBuilder.handled
May 2, 2011 10:11:13 AM
Hi, These handled(...) methods have been deprecated since camel-2.4.0 and they are not providing any value, I doubt anybody is using them. I would recommend removing them and document in the wiki a bit better what the alternative is (because there…
using redis when select(2) is already handled
August 29, 2011 04:01:42 PM
I'm considering adding redis to an application which has: - several processes and an existing but limited messaging IPC mechanism - user interfaces using (py)GTK and Tkinter with GTK & Tkinter mainloop() event handling - several C++ server…
Where is the .handled method? Migrating from 2.5 to 2.8.1
September 29, 2011 05:52:59 AM
Hi, i currently migrating my Camel Java DSL route from Camel 2.5 to 2.8.1 and i figured out, that in the onException clause, there is no .handled(true) method anymore. Where is it gone or how should i mark my messages as handled now? Thanks …
issue with 4.1 %3A encoding not handled in url parameter?
December 12, 2010 11:03:33 PM
When provided with this URL: http://www.cnn.com/2010/WORLD/europe/12/12/uk.protests.police/index.ht ml?eref=Feed%3A I get unknownhostexception, probably because it things the host name continues till : (unencoded form of %3A) Can you please…
Bug: ERROR_DISK_FULL is not handled in Win32 OS layer
June 9, 2011 05:22:32 AM
Hi, the Win32 OS layer function winWrite checks for the ERROR_HANDLE_DISK_FULL error code to detect "disk full" condition: if( pFile->lastErrno==ERROR_HANDLE_DISK_FULL ){ This check is not sufficient since the error code could also be…
Single POST request being handled twice
November 16, 2011 07:30:25 PM
OK, I know this seems crazy, but I've looked long and hard and cannot explain this as other than a Tomcat bug. I'm more than willing to dig up extra information where I can, but this is a very rare problem seen in production and not reproducible…
Error handler: log handled exception
January 28, 2011 10:10:32 AM
Hi there, Is it possible to log exception handled by means of errorHandler. Consider I have the following configuration <errorHandler id="defaultErrorHandler" type="DeadLetterChannel" deadLetterUri="dlq" useOriginalMessage="true"> …
Re: Error handler: log handled exception
January 28, 2011 10:10:37 AM
My fault. The end of the working day. Everything works just fine. Best Regards, Sergey Zhemzhitsky Sergey Zhemzhitsky/TRD 28.01.2011 18:43 To use### @camel.apache.org cc Subject Error handler: log handled exception Hi there, Is it…
Try-Catch-Finally and handled(false)
July 25, 2011 05:55:09 PM
Hello, I'm using the try-catch-finally feature in Camel 2.7.0. According to the source (TryDefinition.java, line 183), the handled(boolean) method is marked as deprecated and will be removed in Camel 3.0. My application uses the…
errorHandler + .handled(false)); in Spring DSL.
May 25, 2010 12:07:07 PM
Hi From the doc pages: errorHandler(deadLetterChannel("jms:queue:dead").maximumRedeliveries(3).redeliverDealy(5000).handled(false)); I can't figure out or find any information as to how do the .handled() in Spring DSL. I wan't to leave the…
WCF: myservice.svc?wsdl shows "You have created a service.", not WSDL?
February 18, 2011
I've created a WCF service with a wsHttpBinding and a mexHttpBinding. When running on http in IIS6, the myservice.svc shows the usual "You have…
Try all available WSDL IPs with JAX-WS
January 11, 2011
I'm using JAX-WS to open a service port. When the DNS exposes two IPs for the DNS entry (of the WSDL), the Service tries to use only the first -…
Error while Publishing WSDL
June 3, 2011
I am getting this error when i am publishing my WSDL file to TomCat6.0 using Bottom Up aproach. IWAB0489E Error when deploying Web service to Axis…
Jax-ws wsdl generation ssl offloading
March 22, 2011
Hi, I am currently developing a webservice using jax-ws based on an EJB like : @WebService() @RolesAllowed("allowedOne") @Stateless() public class…
Cannot access WSDL for my java webservice
May 26, 2011
I hava been developing a webservice in Java SE 6 with the Webserver JBOSS 5 and have been trying to work around a problem that came up when I…
Creating JDBC functions from corresponding WSDL
April 11, 2011
Hi, I am working on building a web service from scratch with JDBC for postgreSQL. thing is that the operations given in the wsdl file do not show…
Read wsdl file in browser
March 22, 2011
When i try to open WSDL file in browser (http://localhost/something/file.wsdl), i am offered to download that file. But i want instead of…
How many MySql queries/second can be handled by a server?
December 30, 2010
I've started developing a browser (database) game. My question is how many queries can a regular hosting handle (when I mean regular, I mean a…
Java EE scenarios that cannot be handled by Tomcat
June 14, 2011
Tomcat only implements the web container of the Java Enterprise Edition architecture. In contrast, e.g. GlassFish implements a full Java EE stack .…
No WSDL for JAX-WS based webservice deployed in Tomcat 6
March 8, 2011
Hi, In my effort to create a webservice that can be deployed on glassfish and tomcat, I noticed that both AS will give a different URL to the WSDL.…
HTTPS connection from c# client to Tomcat using wsdl.exe
May 17, 2011
I have a tomcat webservice and a c# .net client that connects to the service. I created the Connection classes with wsdl.exe and everything is fine.…
How to handle ajax errors that were not handled by statusCode?
May 18, 2011
I am making the following ajax call: $.ajax({ type: type, url: url, data: data, success: successCallback, error: defaultFailureCallback, dataType:…
How simultaneous queries are handled in a MySQL database?
February 12, 2011
I am using MySQL database and I would like to know if I make multiple (500 and more) queries simultaneously in order to get information from…
What do I change in php.ini file so that the sessions are handled in memcache?
November 15, 2010
I have installed the memcache extension and also memcached. Now what do I need to chance in the php.ini file so that all sessions are handled in…
Java WebService in Tomcat with WSDL - Axis2 problem
June 14, 2011
I've got problem with generating java webservice from WSDL file. During creation of java bean appers problem with axis2 libraries: "IWAB0506E Error…
Forcing a Tomcat-handled DataSource to be eagerly initialised
May 12, 2011
After eliminating a couple of PermGen-related problems in a Java web application I have reached the following point: the application runs in Tomcat…
LibCurl HTTPS credentials, sequence internally handled?
February 28, 2011
Hi all, hopefully someone can answer this for me as I'm beating my head against the wall. I'm using LibCurl to do a simple file post to an HTTPS…
A secured network connection( eg SSL ) is handled by the web server correct?
February 6, 2011
Basically a php programmer does not need to handle the encrypting and decrypting of the messages? The web server handles all the encryption and…
PHP/MYSQL - How are Database Level Constraints handled in Application
February 4, 2011
I have looked and seen related questions the general question of handling database constraints within the application vs native database…
How to get list of http request currently getting handled by nginx server ?
April 4, 2011
hi, i am using ab command to hit the http request to my local host . now on server side i want to check how many request currently getting handled…