Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 45547 invoked from network); 9 May 2006 21:18:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2006 21:18:57 -0000 Received: (qmail 20887 invoked by uid 500); 9 May 2006 21:18:54 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 20845 invoked by uid 500); 9 May 2006 21:18:53 -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 20823 invoked by uid 99); 9 May 2006 21:18:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 14:18:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 14:18:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4F510714292 for ; Tue, 9 May 2006 21:18:10 +0000 (GMT) Message-ID: <27848592.1147209490321.JavaMail.jira@brutus> Date: Tue, 9 May 2006 21:18:10 +0000 (GMT+00:00) From: "Kathy Chan (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMODEVTOOLS-73) Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory In-Reply-To: <368173929.1141762778997.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-73?page=comments#action_12378753 ] Kathy Chan commented on GERONIMODEVTOOLS-73: -------------------------------------------- As discussed, Geronimo dev tools would implement: public IPath getPublishDirectory(IModule[] module) The input IModule[] would either contains one entry, which is the Web module or two entries, where the first entry is the EAR module and the second entry is the Web module. > Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory > ------------------------------------------------------------------------------------------------------------- > > Key: GERONIMODEVTOOLS-73 > URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-73 > Project: Geronimo-Devtools > Type: Bug > Components: eclipse-plugin > Versions: 1.0.0 > Environment: WTP 1.0.1 + Geronimo 1.0 plugin + Geronimo 1.0 server > Reporter: Kathy Chan > Assignee: Sachin Patel > > After creating a Web service using the Web service wizard on a Web project targetting Geronimo server, the file server-config.wsdd is generated in the server installation config-store directory under /WEB-INF. However, if I change something in the EAR and republish, the server-config.wsdd file is gone. Note that the server-config.wsdd file is not in the workspace. > I am relying on the IModulePublishHelper.getPublishDirectory() API in the org.eclipse.wst.server.core plugin to get the server's publish directory in order to copy the server-config.wsdd file into the workspace so that next time the WAR/EAR is re-published, the information of what was deployed to the Axis servlet is persisted. > Tomcat is currently implementing that and Geronimo needs to implement IModulePublishHelper.getPublishDirectory() as well. > Here's the current implementation in TomcatBehaviour.getPublishDirectory(): > /** > * Returns the path that the module is > * published to when in test environment mode. > * > * @param module a module on the server > * @return the path that the module is published to when in test environment mode, > * or null if not running as a test environment or the module is not a web module > */ > public IPath getPublishDirectory(IModule[] module) { > if (!getTomcatServer().isTestEnvironment() || module == null || module.length != 1) > return null; > > return getTempDirectory().append("webapps").append(module[0].getName()); > } > This solution would solve the problem for getting to server-config.wsdd for Axis Web service but there is still a bigger general problem with files created in the config-store directory not mirrored in the workspace. Hopefully this will be addressed in the next release of the Geronimo plugin. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira