axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keishi Katoux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2-5491) Deploying subdirectried contextpath with tomcat makes serviceName 'null' prifixed
Date Tue, 26 Feb 2013 12:36:13 GMT
Keishi Katoux created AXIS2-5491:
------------------------------------

             Summary: Deploying subdirectried contextpath with tomcat makes serviceName  'null'
prifixed
                 Key: AXIS2-5491
                 URL: https://issues.apache.org/jira/browse/AXIS2-5491
             Project: Axis2
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.6.2
         Environment: Windows7 or CentOS6, Tomcat 6.0.36, JDK 1.7.0_13
            Reporter: Keishi Katoux
            Priority: Minor


I have created war package of axis2/j web service. 
It's ok deploying tomcat manager with war name "somename.war". (context path  is /somename
)
It's not ok deploying tomcat manager with war name "prefix#somename.war". (context path  is
/prefix/somename )

When I accessed to http://hostname/prefix/somename/services/listServices, 
service name is prefixed with 'null'
for example, 
/somename/services/echoService will be /prefix/somename/services/nullechoService

With my investication, null is caused in here.
org/apache/axis2/deployment/ServiceDeployer.java L.96
    axisService.setName(serviceHierarchy + axisService.getName());

Because  Utils.getServiceHierarchy() (called at L.90) returns null as String return value.
(org/apache/axis2/deployment/util/Utils.java)

I changed  getServiceHierarchy() returning "" (empty string), and get correct service name
url mapping.
But I can't evaluate this workaround is correct or not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message