Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-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 20E96987F for ; Wed, 14 Mar 2012 14:55:01 +0000 (UTC) Received: (qmail 28108 invoked by uid 500); 14 Mar 2012 14:55:00 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 28052 invoked by uid 500); 14 Mar 2012 14:55:00 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 28045 invoked by uid 99); 14 Mar 2012 14:55:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 14:55:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 14:54:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 14A501F9E4 for ; Wed, 14 Mar 2012 14:54:39 +0000 (UTC) Date: Wed, 14 Mar 2012 14:54:39 +0000 (UTC) From: "Jarek Gawor (Resolved) (JIRA)" To: dev@geronimo.apache.org Message-ID: <1338993371.12999.1331736879131.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <762425498.8480.1329977029045.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (GERONIMODEVTOOLS-787) Failed to hot deploy a resource file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jarek Gawor resolved GERONIMODEVTOOLS-787. ------------------------------------------ Resolution: Fixed Fix Version/s: 3.0-beta-2 Committed fix in revision 1300568. The code was unnecessarily and incorrectly creating a patch location to the source file instead of getting it directly from the IModuleFile. > Failed to hot deploy a resource file > ------------------------------------ > > Key: GERONIMODEVTOOLS-787 > URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-787 > Project: Geronimo-Devtools > Issue Type: Bug > Components: eclipse-plugin > Affects Versions: 3.0 > Reporter: Patrick Ouyang > Assignee: Jarek Gawor > Fix For: 3.0-beta-2 > > Attachments: TouchAndGo.png > > > It seems that G3 pickup the modified 4cb files from the wrong place. (4cb file is a resource file) > expect:C:/workspaces/Ride/New/sample1/TestContent1/TestContent1Web/target/classes/v4contentsource/source/en/TestContent1Web/Sample.4cb > actual:C:/workspaces/Ride/New/sample1/TestContent1/TestContent1Web/src/main/webapp/WEB-INF/classes/v4contentsource/source/en/TestContent1Web/Sample.4cb > Exception trace throw out from G3: > java.io.FileNotFoundException: C:\workspaces\Ride\New\sample1\TestContent1\TestContent1Web\src\main\webapp\WEB-INF\classes\v4contentsource\source\en\TestContent1Web\Sample.4cb (The system cannot find the path specified.) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.(FileInputStream.java:123) > at java.io.FileInputStream.(FileInputStream.java:83) > at org.apache.geronimo.st.v30.core.GeronimoServerBehaviourDelegate.findAndReplaceFiles(GeronimoServerBehaviourDelegate.java:1040) > at org.apache.geronimo.st.v30.core.GeronimoServerBehaviourDelegate.tryFileReplace(GeronimoServerBehaviourDelegate.java:971) > at org.apache.geronimo.st.v30.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:453) > at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:952) > at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775) > at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2893) > at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > This is the issue of GeronimoServerBehaviourDelegate. Please see the below code. > String sourceFile = module.getProject().getFile(rootFolder + ch + moduleFile.getModuleRelativePath() + ch + moduleFile.getName()).getLocation().toString(); > The path was constructed by three part. > rootFolder: C:/workspaces/Ride/New/sample1/TestContent1/TestContent1Web > moduleFile.getModuleRelativePath(): src/main/webapp/WEB-INF/classes/v4contentsource/source/en/TestContent1Web > moduleFile.getName(): Sample.4cb > G3 supposed that all the resources should come from main/webapp -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira