WebService deployment failed due to config.getServletContext().getRealPath("")
returns null in NES6.2
-----------------------------------------------------------------------------------------------------
Key: AXIS2-3098
URL: https://issues.apache.org/jira/browse/AXIS2-3098
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: kernel
Affects Versions: 1.2, 1.3, nightly
Environment: Redhat Enterprise Linux 4, Netscape Enterprise Server
6.2, Firefox
Reporter: david
Priority: Critical
After I copied my StockQuoteService.aar file into tomcat 4.1.36 under folder
\axis2\WEB-INF\services, from this URL:
http://localhost:8080/axis2/services/listServices, I can see all the services
including Version and StockQuoteService, I did the same thing to NES6.2, I
could not see the StockQuoteService from the listServices URL, for NES, only I
manually added StockQuoteService.aar to services.LIST file under
\axis2\WEB-INF\services, then I can see the StockQuoteService and everything
works normally. But I checked the result on tomcat, nothing is added to
services.LIST file, but it still lists all the services.
After I debug into the code, I found in WarBasedAxisConfigurator.java, there
are three getRealPath("") calls, in NES6.2 environment, they returned null, but
in Tomcat, they returned the real path string, in order to work for more web
servers, they should be changed to getRealPath("/") , that will always return
the real path as: C:\apache-tomcat-4.1.36\webapps\axis2 in windows or
\opt\redhat-es\https-dduRHL.pkipro/web-apps/axis2.
I did the change in my version of axis2-1.2 release, it now work for both
tomcat and NES6.2.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]