Hi Hasitha, Just following up on the mails. Sorry for the late reply. What you can do is - install the webapp mgt features on the products where you need the webapp deployment support. Then, copy your folder into the repo/deployment/webapps folder. There is no configuration that needs to be done to deploy a webapp. The config files such as web.xml are optional.
On Mon, May 18, 2015 at 2:18 PM, Hasitha Hiranya <[email protected]> wrote: > 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> > > -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
