Hi, The reasons being,
1. Try to get this done using configurations only 2. This web service should be able to deploy on every WSO2 server (i.e including ESB). Writing a normal web app we cannot do that. 3. Wrting axis2 service could not return file content as plain text. It was always wrapped with response and return tags. Thanks On Sat, May 16, 2015 at 1:50 AM, Kasun Gajasinghe <[email protected]> wrote: > Hi, > > Can you try adding this as a normal webapp instead of defining it at > server.xml? > > On May 15, 2015, at 3:14 PM, Hasitha Hiranya <[email protected]> wrote: > > Hi Devs, > > I tried to follow [1]. > > My /repostory/conf/tomcatcatalina-server.xml file look like this > > > > <Host name="localhost" unpackWARs="true" deployOnStartup="false" > autoDeploy="false" > appBase="${carbon.home}/repository/deployment/server/webapps/"> > * <Context > docBase="/work/temp/wso2as-5.2.1/repository/conf/myfolder" > path="/test/ping" /> * > <Valve > className="org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve"/> > <Valve className="org.apache.catalina.valves.AccessLogValve" > directory="${carbon.home}/repository/logs" > prefix="http_access_" suffix=".log" > pattern="combined" /> > <Valve > className="org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve" > threshold="600"/> > <Valve > className="org.wso2.carbon.tomcat.ext.valves.CompositeValve"/> > <Valve > className="org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve"/> > <Valve > className="org.wso2.carbon.statistics.webapp.RequestIntercepterValve"/> > </Host> > > > If i access > > http://localhost:9763/test/ping/test.xml > > > It says 404 not found. If i apply this to tomcat 7.x, it works. > > Can you help me to understand why and get it working? > > [1] > https://www.moreofless.co.uk/static-content-web-pages-images-tomcat-outside-war/ > > Thanks > > -- > *Hasitha Abeykoon* > Senior Software Engineer; WSO2, Inc.; http://wso2.com > *cell:* *+94 719363063* > *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com> > > -- *Hasitha Abeykoon* Senior Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
