Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 80258 invoked from network); 7 Oct 2010 18:54:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Oct 2010 18:54:59 -0000 Received: (qmail 63808 invoked by uid 500); 7 Oct 2010 18:54:59 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 63731 invoked by uid 500); 7 Oct 2010 18:54:58 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 63723 invoked by uid 99); 7 Oct 2010 18:54:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 18:54:58 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.72.192.227] (HELO fmmailgate02.web.de) (217.72.192.227) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 18:54:50 +0000 Received: from smtp04.web.de ( [172.20.0.225]) by fmmailgate02.web.de (Postfix) with ESMTP id 567731760E7F4 for ; Thu, 7 Oct 2010 20:54:30 +0200 (CEST) Received: from [93.104.148.16] (helo=[192.168.178.194]) by smtp04.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #24) id 1P3vbq-0001WU-00 for torque-dev@db.apache.org; Thu, 07 Oct 2010 20:54:30 +0200 Message-ID: <4CAE1765.8050405@web.de> Date: Thu, 07 Oct 2010 20:54:29 +0200 From: Patrick Carl User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Apache Torque Developers List Subject: Re: [Torque 4] mvn install of templates failes References: <4CA77247.6080904@web.de> <4CA772F2.7060107@u-form.de> <4CA7811D.80603@web.de> <4CAA2E7A.2040404@web.de> <4CAB7F61.50203@web.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: patrick.carl@web.de X-Sender: patrick.carl@web.de X-Provags-ID: V01U2FsdGVkX1/3nI9QeLVH9sDSu1kqQqA3jFe7mqhz8HX9ean2 nQSOgEstjxlsqfwmp1l2RAivmS3xDiuuH+Bvzm/YcrqTnJHXVL lYmThu1yJcLGElHstP7g== X-Virus-Checked: Checked by ClamAV on apache.org Hello Thomas, thanks a lot. I works fine now and the test run without problems. Patrick Am 07.10.2010 16:14, schrieb Thomas Fischer: > I tried to fix the problem in the generator but did not check whether the > fix solves the problem on linux. Could you svn update the generator, mvn > install it and then try to build the templates again ? > > Thanks, > > Thomas > > >>>>> ... >>>>> - Can you run the tests inside an IDE (e.g. eclipse) and set a >>> breakpoint >>>>> in org.apache.torque.generator.configuration.source.EntityReferences. >>>>> resolveEntity() (in the generator jar) and see whether it gets called >>> and >>>>> if yes why it fails ? >>>> >>>> I got the project to work with NetBeans and managed to debug. The >>>> resolveEntity method of EntityReferences is not called as far as I can >>> see. >>>> >>>> Could it have something to do with the fact that I use Linux as >>>> operating system? >>> >>> I'd be astonished if yes. Rather it is the XML parser used. >>> >>> Ok we need to trace from start here. Whats should happen is the > following: >>> - On reading the configuration, the EntityReferenceSaxHandler in the >>> package org.apache.torque.generator.configuration.source should be > invoked. >>> Please check that the startElement() method is hit and that on one of > the >>> calls the system ids ishttp://db.apache.org/torque/4.0/templates/data >>> base.xsd. If yes, the references will be added to the configuration by >>> >> > org.apache.torque.generator.configuration.controller.ControlConfigurationSaxHandler > >>> on line 275. >> >> The startElement method is called and reads the following values: >> systemId: http://db.apache.org/torque/4.0/templates/database.xsd >> ressource: ../../xsd/database-4-0.xsd >> >> I found out that adding the references to the configuration fails and >> creates an ConfigurationException: >> >> "resource file >> /home/pcs/projects/software/torque/trunk/torque-templates/src/main/ >> > resources/org/apache/torque/templates/om/resources/../../xsd/database-4-0.xsd > >> not found" >> >> The xsd is stored actually under >> /home/pcs/projects/software/torque/trunk/torque-templates/src/main/ >> resources/org/apache/torque/templates/xsd/database-4-0.xsd >> >> Furthermore I noticed that there is no directory resources under om. But >> creating it did not change anything. >> >>> >>> Further action depends on the outcome of these steps. >>> >>> Thomas >> >> I hope the new information is helpful >> >> Patrick >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org >> For additional commands, e-mail: torque-dev-help@db.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org > For additional commands, e-mail: torque-dev-help@db.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org