[ 
https://issues.apache.org/jira/browse/CXF-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925644#action_12925644
 ] 

Patrick Leamon commented on CXF-3095:
-------------------------------------

Ignoring the specified schema's seems to be due to      the changes in 
CXF-2851.  The code that used to load the schemas is now in a path that is 
never called (unless there is something reflectively calling 
AbstractServiceFactoryBean.initializeDataBindings() ).  Going back to 2.2.9 
fixes this issue.

> Jax WS - Schema validation fails after 5th request
> --------------------------------------------------
>
>                 Key: CXF-3095
>                 URL: https://issues.apache.org/jira/browse/CXF-3095
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2.10
>         Environment: running in tomcat 6
>            Reporter: Patrick Leamon
>
> I'm having very odd schema validation issues since moving from cxf 2.0.11 to 
> cxf 2.2.10.
> The beans.xml I'm using to configure the web service looks something like:
> {code:xml}
>     <jaxws:endpoint id="LocationServiceId"
>                     implementor="com.blah.LocationServiceImpl"
>                     address="/services/location">
>         <jaxws:properties>
>             <entry key="schema-validation-enabled" value="true" />
>         </jaxws:properties>
>         <jaxws:schemaLocations>
>             
> <jaxws:schemaLocation>classpath:xsd/common-types.xsd</jaxws:schemaLocation>
>             
> <jaxws:schemaLocation>classpath:xsd/location-types..xsd</jaxws:schemaLocation>
>             
> <jaxws:schemaLocation>classpath:xsd/location-service.xsd</jaxws:schemaLocation>
>         </jaxws:schemaLocations>
>     </jaxws:endpoint>
> {code}
> The first five requests that I send to this web service function correctly.  
> Any further requests result in:
> Unmarshalling Error: cvc-elt.1: Cannot find the declaration of element 
> 'ns1:locationElement'
> Previously in 2.0.11 this was working fine, regardless of the number of 
> requests being sent.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to