You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Kathy Chan (JIRA)" <ji...@apache.org> on 2006/03/07 21:19:38 UTC

[jira] Created: (GERONIMODEVTOOLS-73) Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory

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
 Environment: WTP 1.0.1 + Geronimo 1.0 plugin + Geronimo 1.0 server
    Reporter: Kathy Chan


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


[jira] Updated: (GERONIMODEVTOOLS-73) Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-73?page=all ]

Sachin Patel updated GERONIMODEVTOOLS-73:
-----------------------------------------

    Fix Version/s: 1.x

> 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
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.0.0
>         Environment: WTP 1.0.1 + Geronimo 1.0 plugin + Geronimo 1.0 server
>            Reporter: Kathy Chan
>         Assigned To: Sachin Patel
>             Fix For: 1.x
>
>
> 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

        

[jira] Updated: (GERONIMODEVTOOLS-73) Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-73?page=all ]

Sachin Patel updated GERONIMODEVTOOLS-73:
-----------------------------------------

    Component: eclipse-plugin
      Version: 1.0.0
    Assign To: Sachin Patel

> 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


[jira] Commented: (GERONIMODEVTOOLS-73) Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-73?page=comments#action_12426241 ] 
            
Sachin Patel commented on GERONIMODEVTOOLS-73:
----------------------------------------------

Kathy, is what I've provided you suffient? Do your scenarios pass? If so can I mark this as fixed?

> 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
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.0.0
>         Environment: WTP 1.0.1 + Geronimo 1.0 plugin + Geronimo 1.0 server
>            Reporter: Kathy Chan
>         Assigned To: 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

        

[jira] Closed: (GERONIMODEVTOOLS-73) Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-73?page=all ]

Sachin Patel closed GERONIMODEVTOOLS-73.
----------------------------------------

    Resolution: Fixed

> 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
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.0.0
>         Environment: WTP 1.0.1 + Geronimo 1.0 plugin + Geronimo 1.0 server
>            Reporter: Kathy Chan
>         Assigned To: Sachin Patel
>             Fix For: 1.x
>
>
> 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

        

[jira] Resolved: (GERONIMODEVTOOLS-73) Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-73?page=all ]
     
Sachin Patel resolved GERONIMODEVTOOLS-73:
------------------------------------------

    Resolution: Fixed

This is fixed in HEAD for G1.0 support, the G1.1 implementation will differ and will add later.

> 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


[jira] Reopened: (GERONIMODEVTOOLS-73) Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-73?page=all ]
     
Sachin Patel reopened GERONIMODEVTOOLS-73:
------------------------------------------


Re-opening based on previous comment.

> 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


[jira] Commented: (GERONIMODEVTOOLS-73) Geronimo needs to support IModulePublishHelper.getPublishDirectory() to get to the server's publish directory

Posted by "Kathy Chan (JIRA)" <ji...@apache.org>.
    [ 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