[ 
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 <WAR name>/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

Reply via email to