You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Gertjan van Oosten (JIRA)" <ji...@apache.org> on 2007/07/03 10:41:04 UTC
[jira] Created: (AXIS2-2889) DeploymentException: The service group
name is not valid
DeploymentException: The service group name is not valid
--------------------------------------------------------
Key: AXIS2-2889
URL: https://issues.apache.org/jira/browse/AXIS2-2889
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: deployment
Affects Versions: 1.2, 1.3, nightly
Reporter: Gertjan van Oosten
Fix For: 1.3, nightly
When hot-updating an .aar named "west-ws-1.0.aar" Axis2 throws an exception:
INFO: org.apache.axis2.deployment.DeploymentException: The west-ws-1 service group name is not valid.
If I copy the file into the services directory and (re)start Tomcat, the service group is correctly deployed. In the admin interface the service group shows up as "west-ws-1.0". The problem with the hot update appears to be caused by getAxisServiceName() in modules/kernel/src/org/apache/axis2/deployment/DeploymentEngine.java:
/**
* Retrieves service name from the archive file name.
* If the archive file name is service1.aar , then axis2 service name would be service1
*
* @param fileName the archive file name
* @return Returns String.
*/
public static String getAxisServiceName(String fileName) {
char seperator = '.';
String value;
int index = fileName.indexOf(seperator);
if (index > 0) {
value = fileName.substring(0, index);
return value;
}
return fileName;
}
If the line
int index = fileName.indexOf(seperator);
would read
int index = fileName.lastIndexOf(seperator);
that code would be a lot better.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-2889) DeploymentException: The service
group name is not valid
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe resolved AXIS2-2889.
--------------------------------------
Resolution: Fixed
fixed
> DeploymentException: The service group name is not valid
> --------------------------------------------------------
>
> Key: AXIS2-2889
> URL: https://issues.apache.org/jira/browse/AXIS2-2889
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: deployment
> Affects Versions: 1.3, 1.2, nightly
> Reporter: Gertjan van Oosten
> Fix For: 1.3, nightly
>
>
> When hot-updating an .aar named "west-ws-1.0.aar" Axis2 throws an exception:
> INFO: org.apache.axis2.deployment.DeploymentException: The west-ws-1 service group name is not valid.
> If I copy the file into the services directory and (re)start Tomcat, the service group is correctly deployed. In the admin interface the service group shows up as "west-ws-1.0". The problem with the hot update appears to be caused by getAxisServiceName() in modules/kernel/src/org/apache/axis2/deployment/DeploymentEngine.java:
> /**
> * Retrieves service name from the archive file name.
> * If the archive file name is service1.aar , then axis2 service name would be service1
> *
> * @param fileName the archive file name
> * @return Returns String.
> */
> public static String getAxisServiceName(String fileName) {
> char seperator = '.';
> String value;
> int index = fileName.indexOf(seperator);
> if (index > 0) {
> value = fileName.substring(0, index);
> return value;
> }
> return fileName;
> }
> If the line
> int index = fileName.indexOf(seperator);
> would read
> int index = fileName.lastIndexOf(seperator);
> that code would be a lot better.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org