Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B92006705 for ; Tue, 14 Jun 2011 17:44:11 +0000 (UTC) Received: (qmail 17592 invoked by uid 500); 14 Jun 2011 17:44:11 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 17529 invoked by uid 500); 14 Jun 2011 17:44:11 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 17521 invoked by uid 99); 14 Jun 2011 17:44:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 17:44:11 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.85.173.253] (HELO server.dankulp.com) (64.85.173.253) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 17:44:04 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id A605E183A0C; Tue, 14 Jun 2011 13:43:43 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter-dev@cxf.apache.org.SlAGLGDqZ7 Received: from dilbert.dankulp.com (c-24-91-72-253.hsd1.ma.comcast.net [24.91.72.253]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id 50145183A0C; Tue, 14 Jun 2011 13:43:42 -0400 (EDT) From: Daniel Kulp To: dev@cxf.apache.org Cc: Dennis Sosnoski Subject: Re: Tests failing with no internet connection Date: Tue, 14 Jun 2011 13:43:41 -0400 Message-ID: <7271939.W4Ql7XmUZY@dilbert.dankulp.com> User-Agent: KMail/4.6.0 (Linux/2.6.39; KDE/4.6.4; x86_64; ; ) In-Reply-To: <4DF6C31A.4010001@sosnoski.com> References: <4DF3EC04.5030106@sosnoski.com> <4DF41599.40107@sosnoski.com> <4DF6C31A.4010001@sosnoski.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-102.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.1 On Tuesday, June 14, 2011 2:10:34 PM Dennis Sosnoski wrote: > I'm having a hard time working out how to configure an XML catalog fo= r > Spring configuration of CXF, with my currently-limited internet acces= s. > If anyone has suggestions I'd appreciate hearing them. >=20 > 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. >=20 > Thanks for any suggestions, Spring looks in the META-INF/spring.schemas files to map namespaces to=20= schemas. Thus, you likely need to make an entry in one of them if thi= s is=20 really a Spring issue. The stack trace is the client side fault thoug= h which=20 implies that's not it. We'd likely need to see the server side error= . If=20 it's not spring, you likely need to add a META-INF/jax-ws-catalog.xml f= ile. Dan >=20 > - Dennis >=20 > On 06/12/2011 01:25 PM, Dennis Sosnoski wrote: > > Ok, I'll try to get this set up. > >=20 > > - Dennis > >=20 > > On 06/12/2011 01:23 PM, Freeman Fang wrote: > >> Hi Dennis, > >>=20 > >> 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 n= eed > >> add catalog.xml somewhere to map remote url to the local one. > >>=20 > >> Freeman > >>=20 > >> On 2011-6-12, at =E4=B8=8A=E5=8D=886:28, Dennis Sosnoski wrote: > >>> I've been trying to fix some sys test problems with new code whil= e > >>> running offline, and have run into problems with Spring apparentl= y > >>> trying to load schema definitions. Here's a typical exception: > >>>=20 > >>> Caused by: org.apache.cxf.binding.soap.SoapFault: > >>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreExcep= tio > >>> n: > >>> 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. > >>>=20 > >>> at > >>>=20 > >>> org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.= unm > >>> arshalFault(Soap11FaultInInterceptor.java:75) > >>>=20 > >>> at > >>>=20 > >>> org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.= han > >>> dleMessage(Soap11FaultInInterceptor.java:46) > >>>=20 > >>> at > >>>=20 > >>> org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.= han > >>> dleMessage(Soap11FaultInInterceptor.java:1) > >>>=20 > >>> at > >>>=20 > >>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInter= cep > >>> torChain.java:263) > >>>=20 > >>> at > >>>=20 > >>> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.on= Mes > >>> sage(AbstractFaultChainInitiatorObserver.java:99) > >>>=20 > >>> at > >>>=20 > >>> org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.han= dle > >>> Message(CheckFaultInterceptor.java:69) > >>>=20 > >>> at > >>>=20 > >>> org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.han= dle > >>> Message(CheckFaultInterceptor.java:1) > >>>=20 > >>> at > >>>=20 > >>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInter= cep > >>> torChain.java:263) > >>>=20 > >>> at > >>> org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java: > >>> 730) > >>>=20 > >>> ... > >>>=20 > >>> From other traces it seems the problem is that Xerces is trying t= o > >>> fetch the schema definition online and failing. > >>>=20 > >>> When I run the same test with an internet connection it loads the= > >>> configuration file without any problems. > >>>=20 > >>> Anyone have any ideas how I can work around this for offline buil= ds? > >>> And are we supposed to require an internet connection for full > >>> builds, or is this something that should be fixed anyway? > >>>=20 > >>> Thanks, > >>>=20 > >>> - Dennis > >>>=20 > >>> Dennis M. Sosnoski > >>> Java SOA and Web Services Consulting > >>> > >>> Axis2/CXF/Metro SOA and Web Services Training > >>> > >>> Web Services Jump-Start > >>=20 > >> --------------------------------------------- > >> Freeman Fang > >>=20 > >> FuseSource > >> Email:ffang@fusesource.com > >> Web: fusesource.com > >> Twitter: freemanfang > >> Blog: http://freemanfang.blogspot.com --=20 Daniel Kulp dkulp@apache.org http://dankulp.com/blog Talend - http://www.talend.com