Hi all The approach that i'm propsing is to handle programmatic webapp deployment for virtual host (added from catalina-server.xml) [1].
If we use a axis2 deployer to the virtual host directory that is manually added by the user, then all the webapps inside the virtual host can be deployed using kernel. In such case, web.xml will automaically added by the kernel. For the moment, i have checked it with CARBON-HOME/repository/deployment/server/webapps using WebappDeployer. Virtual host works fine. All the webapps could be accessible through virtual host. This need more changes to existing webapp-mgt component as well as org.carbon.tomcat. Another option is to write new axis2 deployer to handle this scenario. FYI: appbase directory - just a directory which is having all the webapps for a virtual host Eg: ../VritualHost/testapp.com/example.war where appbase is ../VirtualHost/ testapp.com So, if we give the ../VritualHost to monitor by axis2 deployer, then we can deploy all the webapps using kernel. Please provide your suggestions regarding this approach to support Virtual Host in catalina-server.xml. [1].https://wso2.org/jira/browse/CARBON-12866 Thanks, Reka On Thu, Apr 19, 2012 at 11:22 AM, Reka Thirunavukkarasu <[email protected]>wrote: > > > On Thu, Apr 19, 2012 at 10:40 AM, Kishanthan Thangarajah < > [email protected]> wrote: > >> >> >> On Wed, Apr 18, 2012 at 12:25 PM, Reka Thirunavukkarasu <[email protected]>wrote: >> >>> Hi >>> >>> On Wed, Apr 18, 2012 at 11:59 AM, Kishanthan Thangarajah < >>> [email protected]> wrote: >>> >>>> >>>> >>>> On Wed, Apr 18, 2012 at 11:53 AM, Supun Malinga <[email protected]>wrote: >>>> >>>>> Hi Pradeep, >>>>> >>>>> Why do we have a lib/tomcat/webapps/ directory?. That is misleading >>>>> for a new user. >>>>> >>>> >>>> This directory, along with work, conf, is created by tomcat as >>>> "/lib/tomcat" is set as the catalina home for the embedded tomcat. But >>>> since we are using repo/deployment/server/webapps for webapp deployment, >>>> its not recommended to use this directory to deploy webapps. >>>> >>>>> >>>>> thanks, >>>>> >>>>> On Wed, Apr 18, 2012 at 11:41 AM, Pradeep Fernando >>>>> <[email protected]>wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> why you deploy the web in carbon_home/lib/tomcat/webapps ? >>>>>> >>>>> >>> When i work with https://wso2.org/jira/browse/CARBON-12866, i >>> used carbon_home/lib/tomcat/webapps to point the appbase of Virtual host >>> creation using catalina-server.xml. When creating virtual host and >>> deploying webapp inside that also, even though the context and host were >>> available in tomcat engine, i ended up with resource is not available from >>> the browser. Then only when i checked deploying webapp using >>> carbon_home/lib/tomcat/webapps >>> was not working. I wanted to figure out like carbon_home/lib/tomcat/webapps >>> blocked by tomcat, webapp deployment in virtual host(created through >>> catalina-server.xml) also got blocked by tomcat. >>> >> >> Are you checking your webapps in vhosts using jsp's? This may be an issue >> related to this [1]. If yes, can you check it using servlets instead of >> jsp's? >> > > As u said, it works only with servlets not with jsp's. Thanks for pointing > out. > The issue here is the host and context that are created by > catalina-server.xml is not having any web.xml to be referred, since we move > the web.xml from CATALINA-HOME/conf to CARBON-HOME/repository/conf/tomcat > and also we are setting the web.xml dynamically only to the contexts that > are created which use our own deployment. So, the tomcat's own deployment > is not referred any web.xml in the CATALINA-HOME/conf path. > > I'm currently working on it. i'll update the thread once it is done. > > >> Also to be sure, can you check this on a standalone tomcat(7.0.26) >> instance as well, by following the same steps? >> >> Thanks, >> Kishanthan. >> [1] https://wso2.org/jira/browse/CARBON-12739 >> >>> >>> With the current AppServer, we need to manually deploy the webapp inside >>> the virtual host which specified from catalina-server.xml. Is that the >>> proper way to go ahead? >>> >>>> >>>>>> --Pradeep >>>>>> >>>>>> >>>>>> On Tue, Apr 17, 2012 at 11:01 PM, Reka Thirunavukkarasu < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi >>>>>>> >>>>>>> When i deployed a webapp into CARBON-HOME/lib/tomcat/webapps, the >>>>>>> relevant context got created. But accessing the resource of that >>>>>>> particular >>>>>>> webapp through browser, is giving "*The requested resource () is >>>>>>> not available."* >>>>>>> >>>>>>> FYI: >>>>>>> This webapp is working fine with >>>>>>> CARBON-HOME/repository/deployment/server/webapps. >>>>>>> >>>>>>> Could you provide suggestions to figure out this issue? >>>>>>> >>>>>>> Thanks, >>>>>>> Reka >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Pradeep Fernando >>>>>> Software Engineer >>>>>> Member, Management Committee - Platform & Cloud Technologies >>>>>> WSO2 Inc; http://wso2.com/ >>>>>> >>>>>> blog: http://pradeepfernando.blogspot.com/ >>>>>> m: +94776603662 >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> [email protected] >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Supun Malinga, >>>>> >>>>> Software Engineer, >>>>> WSO2 Inc. >>>>> http://wso2.com >>>>> http://wso2.org >>>>> email - [email protected] <[email protected]> >>>>> mobile - 071 56 91 321 >>>>> >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Kishanthan Thangarajah* >>>> Software Engineer, >>>> Development Technologies Team, >>>> WSO2, Inc. >>>> lean.enterprise.middleware >>>> >>>> Mobile - +94773426635 >>>> Blog - *http://kishanthan.wordpress.com* >>>> Twitter - *http://twitter.com/kishanthan* >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >> >> >> -- >> *Kishanthan Thangarajah* >> Software Engineer, >> Development Technologies Team, >> WSO2, Inc. >> lean.enterprise.middleware >> >> Mobile - +94773426635 >> Blog - *http://kishanthan.wordpress.com* >> Twitter - *http://twitter.com/kishanthan* >> >> >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
