hello Grzegorz, Thanks for helping me out. Gautam Ganguly pisze: > > dear Cocooners.. > > My configuration is: > > 1. JDK: 1.6.x > > 2. Tomcat: 6.x > > 3. Cocoon: 2.2.x > > 4. OS: Win 2K Advanced Server > > > > I have used Cocoon since early 2.0.4 up until 2.1.10.So > > <http://2.1.10.So> to upgrade to 2.2.x version,i am trying to put 1 and > > 1 together.. > > Hello Gautam. I'm happy to help you with some of your troubles. > > > So this are my queries... > > > > =========================================================== > > [QUERY-1] : deals with how all the entities work together > > =========================================================== > > > > [Pre-2.2 Version] > > > > 1. Request gets submitted > > 2. Cocoon Application running inside the Tomcat Container,gets hold of > > the request > > 3. Based on the Sitemap settings,all request for a certain url gets > > forwarded to the > > Cocoon based web-app say GSite. > > 4. GSite processes the request based on Sitemap settings for that > > request URL and > > sends the response back. > > > > which as i have always picturized inside my head is that : > > -->Tomcat is the container object for Cocoon, > > --> Cocoon in turn is the 'container' object to my web-app. > > --> So if for some reason, Cocoon changes, GSite needs to be > > changed too.. > > I'm not sure what GSite is exactly. Is it just a normal Cocoon application > consisting of sitemap and > other resources? > Yes..GSite is just a name for a cocoon application,as you said.. >
> > [2.2 Version] > > ------------------ > > 1. Request gets submitted > > 2. GSite web-app running inside the Tomcat Container,gets hold of the > > request > > 3. GSite processes the request based on Sitemap settings for that > > request URL and submits the response back. > > Don't you think that Cocoon must still be there somewhere in this list? :) > Actually, the processing of request is: > Tomcat -> DispatcherServlet (part of Cocoon subproject) -> SitemapServlet > -> sitemap of your webapp > Which is exactly the way it was before..except for the Dispatcher Servlet..i get that! > > > ..if you think so far what i understand is right,then does that mean > > that.. > > 1. GSite is now is now a Spring based web-app, > > It runs on top of Cocoon which is Spring-based now so it can be said that > Cocoon 2.2 applications > are Spring based. > > > 2. where Spring framework helps GSite get hold of necessary Cocoon > > dependencies to fulfill the request. > > Not sure what do you mean. Could you explain a little bit more? > I think what i got mixed up,is to look at Spring as a seperate entity,instead of just Cocoon,which hides me from Spring. Which means that my web-app, doesn't talk to Spring directly instead i just deal with cocoon as i used to and cocoon takes care of the rest. The reason behind all these? 1. We have 2 web-apps in our organization: One uses Cocoon and the other uses Spring. 2. On finding out that Cocoon-2.2 uses Spring instead of Avalon, i thought may be we can combine this too apps together. 3. This new single web-app will use Cocoon-2.2 as its easy to move over the front end to Cocoon .Also we can then re-use the code base in the spring based app by making direct calls to them from inside this new cocoon-2.2based web-app. 4. Its just a idea so far but first i need to upgrade the existing cocoon-2.1.10 app over to Cocoon-2.2 .... > > 3. So if something inside cocoon changes, my web-app keeps chugging > on?? > > If it's not a major change you can upgrade easily but I guess it's not the > answer you expect. > > > if i was a cocoon newbie..i could have not got mudlled up like > > this,but then having been a cocoon user.. > > i have all this baggage that i can't seem to let go off!! Hope,you all > > can make me see the right way..:) > > I would love to help but I'm really having hard times with understanding > what your problem is > exactly. > Fortunately, the second question is much more clear so I can give an > advice. > > > =================================================================== > > [QUERY-2] : deals with how to generate a war to use it in Tomcat > > =================================================================== > > I have tested used the steps given in > > http://cocoon.apache.org/2.2/1159_1_1.html,to build the test app. > > Works fine so far, but since i am so used to building war files, how > > do i do that, if this are the following steps that > > i have followed. I did take help of the link: > > http://marc.info/?t=119530014900006&r=1&w=4 > > <http://marc.info/?t=119530014900006&r=1&w=4>., which kinda helpmed me > > but not > > that much.So this are the following steps that i have followed,i need > > some help with the final steps.. > > 1. I create the block using mvn archetype.. > > 2. when i do the mvn jetty:run, it works..but > > 3. how do i generate the war file to use it in Tomcat. > > > > I did try all of these,in the /getting-started-app/myBlock1 dir: > > 1. mvn clean > > 2. mvn war:war --> cribs about not finding the web.xml file .. > > > > [INFO] Error assembling WAR: Deployment descriptor: > > > > D:\GG\cocoon- > 2.2\apps\getting-started-app\myBlock1\target\myBlock1-1.0\WEB-INF\web.xml > > does not exist. > > > > so i tried running, > > 1. mvn clean > > 2. Changed packaging info in POM.xml under myBlock1 from jar to war > > 3. mvn war:war [OR] mvn cocoon:deploy-war --> same error as above > > > > Can someone help me figure all this out,please ?? > > You cannot make a full blown webapp ready to be installed in Tomcat from > block directly. Instead > just follow this tutorial: > http://cocoon.apache.org/2.2/1362_1_1.html > > i followed the steps as listed in the link (minus anything dealing with myBlock2).Running, mvn install at the getting-started-app directory, which i get the following error.. > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Internal error in the plugin manager executing goal ' > org.apache.maven.plugins:maven-war-plugin:2.0.2:war': Unable to find the > mojo 'org.apache.maven.plugins:maven-war-plugin:2.0.2:war' in the plugin ' > org.apache.maven.plugins:maven-war-plugin' > Component descriptor cannot be found in the component repository: > org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-war-plugin:2.0.2:war > . ...don't know what i am missing here??? > > -- > Grzegorz Kossakowski > Committer and PMC Member of Apache Cocoon > http://reflectingonthevicissitudes.wordpress.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
