Hi Dennis,
I think we've fixed most remote schema download during build. For an
instance, here is a commit[1] I've done before to avoid downloading
envelop.xsd.
Which test failure you encountered without internet access?
[1]http://svn.apache.org/viewvc?view=revision&revision=1025804
Freeman
On 2011-6-14, at 上午10:10, Dennis Sosnoski wrote:
I'm having a hard time working out how to configure an XML catalog for
Spring configuration of CXF, with my currently-limited internet
access.
If anyone has suggestions I'd appreciate hearing them.
The strange part of the problem is that this only occurs with certain
schemas, so I'm wondering if the others are cached somewhere or are
being provided to Spring via some configuration mechanism.
Thanks for any suggestions,
- Dennis
On 06/12/2011 01:25 PM, Dennis Sosnoski wrote:
Ok, I'll try to get this set up.
- Dennis
On 06/12/2011 01:23 PM, Freeman Fang wrote:
Hi Dennis,
Yep, we should add xml catalog to avoid downloading xsd remotely.
We already have local wsrm-policy.xsd in ws/rm module so we just
need
add catalog.xml somewhere to map remote url to the local one.
Freeman
On 2011-6-12, at 上午6:28, Dennis Sosnoski wrote:
I've been trying to fix some sys test problems with new code while
running offline, and have run into problems with Spring apparently
trying to load schema definitions. Here's a typical exception:
Caused by: org.apache.cxf.binding.soap.SoapFault:
org
.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 71 in XML document from class path resource
[org/apache/cxf/systest/ws/rm/seqlength1.xml] is invalid; nested
exception is org.xml.sax.SAXParseException: src-resolve: Cannot
resolve
the name 'wsrmp:RMAssertion' to a(n) 'element declaration'
component.
at
org
.apache
.cxf
.binding
.soap
.interceptor
.Soap11FaultInInterceptor
.unmarshalFault(Soap11FaultInInterceptor.java:75)
at
org
.apache
.cxf
.binding
.soap
.interceptor
.Soap11FaultInInterceptor
.handleMessage(Soap11FaultInInterceptor.java:46)
at
org
.apache
.cxf
.binding
.soap
.interceptor
.Soap11FaultInInterceptor
.handleMessage(Soap11FaultInInterceptor.java:1)
at
org
.apache
.cxf
.phase
.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at
org
.apache
.cxf
.interceptor
.AbstractFaultChainInitiatorObserver
.onMessage(AbstractFaultChainInitiatorObserver.java:99)
at
org
.apache
.cxf
.binding
.soap
.interceptor
.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
at
org
.apache
.cxf
.binding
.soap
.interceptor
.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:1)
at
org
.apache
.cxf
.phase
.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:
730)
...
From other traces it seems the problem is that Xerces is trying
to fetch
the schema definition online and failing.
When I run the same test with an internet connection it loads the
configuration file without any problems.
Anyone have any ideas how I can work around this for offline
builds? And
are we supposed to require an internet connection for full
builds, or is
this something that should be fixed anyway?
Thanks,
- Dennis
--
Dennis M. Sosnoski
Java SOA and Web Services Consulting
<http://www.sosnoski.com/consult.html>
Axis2/CXF/Metro SOA and Web Services Training
<http://www.sosnoski.com/training.html>
Web Services Jump-Start <http://www.sosnoski.com/jumpstart.html>
---------------------------------------------
Freeman Fang
FuseSource
Email:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
---------------------------------------------
Freeman Fang
FuseSource
Email:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com