You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by jfougere <Ju...@cpexterne.org> on 2008/06/04 23:00:50 UTC

Re: Problem with schema validation (JAX-WS & JAXB)

Here is attached a small project who produce the same stackOverFlow error
when server side schema validation is enabled.

Can you have a look and tell me if my use of CXF is wrong or if this is a
CXF issue ?

Thanks

Julien

http://www.nabble.com/file/p17656531/ValidationTest.zip ValidationTest.zip 
-- 
View this message in context: http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17656531.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Problem with schema validation (JAX-WS & JAXB)

Posted by Daniel Kulp <dk...@apache.org>.
On Jun 6, 2008, at 2:38 AM, jfougere wrote:

>
> Hi Dan,
>
> I tested my full project with your workaround in 2.1.1-SNAPSHOT and
> everything works correctly.

Cool.  Thanks for the verification.


>
>
> Thanks a lot.
>
> I assume this correction will be in official 2.1.1 release ? release  
> date in
> june, am i correct ?
>

Yep.

Dan




> Bye
>
> Julien
>
>
> dkulp wrote:
>>
>>
>> I have both of the sample projects now validating fine.
>>
>> I also fixed the SEVERE log messages that your test produced:
>>
>> SEVERE: Schema element {http://www.kba.de/
>> elemente}DatumEingangVeraeusserungsanzeige references undefined type
>> {http://www.w3.org/2001/XMLSchema
>> }anySimpleType for service {http://
>> service.jaxws.cxf.apache.org/}CxfExternTestZfzrPortTypeImplService.
>>
>> That popped up.   It's a bug in XmlSchema:
>> http://issues.apache.org/jira/browse/WSCOMMONS-355
>> but I worked around it in our code for now.
>>
>> In anycase, I'll get it committed and new snapshots up later today.
>> I'm waiting for a couple other fixes from gnodet first as he needs
>> some fixes for the ServiceMix 4 osgi bundle stuff.
>>
>>
>> Dan
>>
>>
>>
>> On Jun 5, 2008, at 1:25 PM, sistar wrote:
>>
>>>
>>> Hi Dan,
>>>
>>>
>>> i encounter the same problem with a different schema.
>>>
>>> I prepared a minimum maven project suitable for debugging.
>>>
>>> The problem only occurs in Client-Side Validation setup.
>>>
>>> The Server parses the wsdl normally and does sucessfully perform
>>> schema-validation.
>>>
>>> As soon as i add client validation with:
>>> ((BindingProvider) client).getRequestContext().put(
>>> 				"schema-validation-enabled",
>>> 				Boolean.TRUE);
>>>
>>> I encounter the problem.
>>>
>>> Here is the maven-project:
>>> http://www.nabble.com/file/p17675429/cxf.schema.validation.min.zip
>>> cxf.schema.validation.min.zip
>>>
>>> Would be great to solve this problem. We are stuck with cxf 2.0-
>>> incubator
>>> for this reason. Let me know if I can help in any way.
>>>
>>> Ralf
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17675429.html
>>> Sent from the cxf-user mailing list archive at Nabble.com.
>>>
>>
>> ---
>> Daniel Kulp
>> dkulp@apache.org
>> http://www.dankulp.com/blog
>>
>>
>>
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17685575.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog





Re: Problem with schema validation (JAX-WS & JAXB)

Posted by jfougere <Ju...@cpexterne.org>.
Hi Dan,

I tested my full project with your workaround in 2.1.1-SNAPSHOT and
everything works correctly.

Thanks a lot.

I assume this correction will be in official 2.1.1 release ? release date in
june, am i correct ?

Bye

Julien


dkulp wrote:
> 
> 
> I have both of the sample projects now validating fine.
> 
> I also fixed the SEVERE log messages that your test produced:
> 
> SEVERE: Schema element {http://www.kba.de/ 
> elemente}DatumEingangVeraeusserungsanzeige references undefined type
> {http://www.w3.org/2001/XMLSchema 
> }anySimpleType for service {http:// 
> service.jaxws.cxf.apache.org/}CxfExternTestZfzrPortTypeImplService.
> 
> That popped up.   It's a bug in XmlSchema:
> http://issues.apache.org/jira/browse/WSCOMMONS-355
> but I worked around it in our code for now.
> 
> In anycase, I'll get it committed and new snapshots up later today.    
> I'm waiting for a couple other fixes from gnodet first as he needs  
> some fixes for the ServiceMix 4 osgi bundle stuff.
> 
> 
> Dan
> 
> 
> 
> On Jun 5, 2008, at 1:25 PM, sistar wrote:
> 
>>
>> Hi Dan,
>>
>>
>> i encounter the same problem with a different schema.
>>
>> I prepared a minimum maven project suitable for debugging.
>>
>> The problem only occurs in Client-Side Validation setup.
>>
>> The Server parses the wsdl normally and does sucessfully perform
>> schema-validation.
>>
>> As soon as i add client validation with:
>> ((BindingProvider) client).getRequestContext().put(
>> 				"schema-validation-enabled",
>> 				Boolean.TRUE);
>>
>> I encounter the problem.
>>
>> Here is the maven-project:
>> http://www.nabble.com/file/p17675429/cxf.schema.validation.min.zip
>> cxf.schema.validation.min.zip
>>
>> Would be great to solve this problem. We are stuck with cxf 2.0- 
>> incubator
>> for this reason. Let me know if I can help in any way.
>>
>> Ralf
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17675429.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
> 
> ---
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17685575.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Problem with schema validation (JAX-WS & JAXB)

Posted by Daniel Kulp <dk...@apache.org>.
I have both of the sample projects now validating fine.

I also fixed the SEVERE log messages that your test produced:

SEVERE: Schema element {http://www.kba.de/ 
elemente}DatumEingangVeraeusserungsanzeige references undefined type {http://www.w3.org/2001/XMLSchema 
}anySimpleType for service {http:// 
service.jaxws.cxf.apache.org/}CxfExternTestZfzrPortTypeImplService.

That popped up.   It's a bug in XmlSchema:
http://issues.apache.org/jira/browse/WSCOMMONS-355
but I worked around it in our code for now.

In anycase, I'll get it committed and new snapshots up later today.    
I'm waiting for a couple other fixes from gnodet first as he needs  
some fixes for the ServiceMix 4 osgi bundle stuff.


Dan



On Jun 5, 2008, at 1:25 PM, sistar wrote:

>
> Hi Dan,
>
>
> i encounter the same problem with a different schema.
>
> I prepared a minimum maven project suitable for debugging.
>
> The problem only occurs in Client-Side Validation setup.
>
> The Server parses the wsdl normally and does sucessfully perform
> schema-validation.
>
> As soon as i add client validation with:
> ((BindingProvider) client).getRequestContext().put(
> 				"schema-validation-enabled",
> 				Boolean.TRUE);
>
> I encounter the problem.
>
> Here is the maven-project:
> http://www.nabble.com/file/p17675429/cxf.schema.validation.min.zip
> cxf.schema.validation.min.zip
>
> Would be great to solve this problem. We are stuck with cxf 2.0- 
> incubator
> for this reason. Let me know if I can help in any way.
>
> Ralf
>
> -- 
> View this message in context: http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17675429.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog





Re: Problem with schema validation (JAX-WS & JAXB)

Posted by sistar <ra...@gmail.com>.
Hi Dan,


i encounter the same problem with a different schema.

I prepared a minimum maven project suitable for debugging.

The problem only occurs in Client-Side Validation setup.

The Server parses the wsdl normally and does sucessfully perform
schema-validation.

As soon as i add client validation with:
 ((BindingProvider) client).getRequestContext().put(
				"schema-validation-enabled",
				Boolean.TRUE); 

I encounter the problem.

Here is the maven-project:
http://www.nabble.com/file/p17675429/cxf.schema.validation.min.zip
cxf.schema.validation.min.zip 

Would be great to solve this problem. We are stuck with cxf 2.0-incubator
for this reason. Let me know if I can help in any way.

Ralf

-- 
View this message in context: http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17675429.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Problem with schema validation (JAX-WS & JAXB)

Posted by jfougere <Ju...@cpexterne.org>.
Hi Dan,

I saw that changes was made last week in another related post, and I already
tried in 2.1-SNAPSHOT and
2.1.1-SNAPSHOT and the problem still occured.

Julien

dkulp wrote:
> 
> 
> It's probably a CXF issue.   I made some changes to the validation  
> schema loading late last week to hopefully fix this.   Can you try the  
> latest 2.1 snapshot to make sure it's fixed for 2.1.1?
> 
> Thanks!
> Dan
> 
> 
> On Jun 4, 2008, at 5:00 PM, jfougere wrote:
> 
>>
>> Here is attached a small project who produce the same stackOverFlow  
>> error
>> when server side schema validation is enabled.
>>
>> Can you have a look and tell me if my use of CXF is wrong or if this  
>> is a
>> CXF issue ?
>>
>> Thanks
>>
>> Julien
>>
>> http://www.nabble.com/file/p17656531/ValidationTest.zip  
>> ValidationTest.zip
>> -- 
>> View this message in context:
>> http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17656531.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
> 
> ---
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17662703.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Problem with schema validation (JAX-WS & JAXB)

Posted by Daniel Kulp <dk...@apache.org>.
It's probably a CXF issue.   I made some changes to the validation  
schema loading late last week to hopefully fix this.   Can you try the  
latest 2.1 snapshot to make sure it's fixed for 2.1.1?

Thanks!
Dan


On Jun 4, 2008, at 5:00 PM, jfougere wrote:

>
> Here is attached a small project who produce the same stackOverFlow  
> error
> when server side schema validation is enabled.
>
> Can you have a look and tell me if my use of CXF is wrong or if this  
> is a
> CXF issue ?
>
> Thanks
>
> Julien
>
> http://www.nabble.com/file/p17656531/ValidationTest.zip  
> ValidationTest.zip
> -- 
> View this message in context: http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-tp17319174p17656531.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog