Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 91012 invoked from network); 13 Apr 2007 18:40:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Apr 2007 18:40:05 -0000 Received: (qmail 77504 invoked by uid 500); 13 Apr 2007 18:40:05 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 77492 invoked by uid 500); 13 Apr 2007 18:40:05 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 77481 invoked by uid 99); 13 Apr 2007 18:40:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 11:40:05 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FORGED_HOTMAIL_RCVD,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of philipchang@hotmail.com designates 65.54.246.78 as permitted sender) Received: from [65.54.246.78] (HELO bay0-omc1-s6.bay0.hotmail.com) (65.54.246.78) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 11:39:58 -0700 Received: from BAY118-W18 ([207.46.8.181]) by bay0-omc1-s6.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 13 Apr 2007 11:39:38 -0700 Message-ID: X-Originating-IP: [66.194.223.194] From: Philip Chang To: Jakarta Commons Users List Subject: RE: bug in Betwixt XMLIntrospector.findByXMLDescriptor() ? Date: Fri, 13 Apr 2007 18:39:38 +0000 Importance: Normal Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 13 Apr 2007 18:39:38.0152 (UTC) FILETIME=[171F0280:01C77DFB] X-Virus-Checked: Checked by ClamAV on apache.org Martin,Thanks for your answer...But what if I need to put the betwixt file = in a separate folder (i.e. a "properties" folder) that is also defined in t= he CLASSPATH?Right now there is no flexibility - the betwixt and class file= s have to reside in the same folder.Thanks,Philip> Date: Fri, 13 Apr 2007 1= 9:51:43 +0200> From: mllist@mvdb.net> To: commons-user@jakarta.apache.org> = Subject: Re: bug in Betwixt XMLIntrospector.findByXMLDescriptor() ?> > Put = the betwixt file in the same package as the class.> > Mvgr,> Martin> > Phil= ip Chang wrote:> > When I call beanWriter.write( myClass );Betwixt is no= t able to find my file on Windows XP "c:\MyFolder\MyClass.betwixt"even t= hough I have added "c:\MyFolder" to the CLASSPATH. When I change the code = in XMLIntrospector.findByXMLDescriptor(), line 1216 from URL url =3D aCl= ass.getResource( name );to the following URL url =3D aClass.getResource(= "/" + name );then everything worked and Betwixt found my file "c:\MyFol= der\MyClass.betwixt"What should I do to fix this? 1. Should I create my ow= n My_XMLIntrospector.findByXMLDescriptor() 2. Should I move "MyClass.b= etwixt" to another folder? Which folder?Thanks,Philip> > _________________= ________________________________________________> > Your friends are close = to you. Keep them that way.> > http://spaces.live.com/signup.aspx> > ------= ---------------------------------------------------------------> To unsubsc= ribe, e-mail: commons-user-unsubscribe@jakarta.apache.org> For additional c= ommands, e-mail: commons-user-help@jakarta.apache.org>=20 _________________________________________________________________ Live Search Maps =96 find all the local information you need, right when yo= u need it. http://maps.live.com/?icid=3Dwlmtag2&FORM=3DMGAC01= --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org