Re: Cocoon 2.2.x upgrade related help
> > DispatcherServlet is part of Servlet Service Framework, quite new > invention of Cocoon community. If > you want to read a little bit more about its function take a look here: > > http://cocoon.zones.apache.org/daisy/cdocs-servlet-service-impl/g1/1412.html > > Docs for SSF are not finished yet (lack of time) but you should get at > least rough idea about its > function. If you have any comments about this particular document don't > hesitate to express them. > I'll get back to finishing this document quite shortly so any feedback is > more than welcome. > i will have to take a look at it..because as you could have guessed by now..i need to!! > > > > > > 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. > > You are right to some extent. I mean, Cocoon setups Spring on its own and > hides most low-level > details of this framework. However, every new component (e.g. generator) > in 2.2 is just a casual > Spring bean. It means that it can benefit from all Spring features like > Dependency Injection, > support for transactions, scoped beans, etc. > now i am getting the view of the model :) > > > 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.2 based 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 > > As long as your both applications are in the same Spring's application > context they can reference to > beans of each other. > > > 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??? > > > Argh, you are not the first one mentioning this error. It's quite > interesting that I haven't managed > to reproduce it on different machines to date. Anyway, you got this error > after executing following > commands: > cd myCocoonWebapp > mvn clean package > > It's crucial here that you execute this command in myCocoonWebapp > directory. Report if you get the > same error, then. > that did it!!.. yes i had been running those commands from the parent dir. which in this case was = getting-started-app Since the web-app that i am in the process of upgrading is huge, i think i will keep pestering you all again..;) i do appreciate your help..thank you! Gautam > > -- > 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] > >
Re: Cocoon 2.2.x upgrade related help
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
Cocoon 2.2.x upgrade related help
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 to upgrade to 2.2.x version,i am trying to put 1 and 1 together.. 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.. [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. ..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, 2. where Spring framework helps GSite get hold of necessary Cocoon dependencies to fulfill the request. 3. So if something inside cocoon changes, my web-app keeps chugging on?? 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..:) === [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=11953001496&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.xmldoes 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 ?? thanks, Gautam
Re: Cocoon-2.1.7:Session objects not getting destroyed after using auth-logout action
hi all, Status update: FIXED Cause : To create a page post-login,i have been using map:aggregate for putting together menu.xml and the content.xml.Does work ,but it also caches the request and manages to remember the last session object. Solution: i replaced the logic to use cinclude transformer not-cache mode. don't know if anyone uses the same design to create dynamic pages,but thought it might help others. thanks for your time. kind regards, gautam >>> [EMAIL PROTECTED] 10/10/2005 1:05:23 PM >>> hi all, I have recently moved the existing web-app on Cocoon-2.0.5 to cocoon-2.1.7.and i am facing session objects getting mixed up between multiple users.The main issue i am running into is giving users access to apps which he is not permissible for his group. I am configured as follows: -- Cocoon ver- 2.1.7 O.S- Windows 2003 Tomcat - tomcat-5.x In brief: -- My website structure is this: Main Sitemap( login/ logout takes place from here) | |--> Sub-sitemap-ADM( ADMIN can seee this along with stuff for MANAGERand USER) |--> Sub-sitemap-MGR( MANAGER can see these as well as stuff for USERS) |--> Sub-sitemap-Usr ( simple USERs can see these) When a user logs in, i use the authentication security handler to verify the user.Once done i save the user's security access level into the 'AUTHENTICATION' context.I use the [auth-protect] action to get hold of all the authentication conetxt data in the session. Scenario -- Step-1) If the user belongs to the 'MGR' group, he gets directed to the sub-sitemap which deals with only mnagerial task.He gets his work done,returns back to the main menu where he logs out and ends his session. step-2) Another user logs in and he belongs to group -'USR', he gets directed to sub-sitemap [Sub-sitemap-Usr].he goes in there,does his stuff and decides to go back to the main sitemap , when this happens some how he is getting hold of the previous users authentication context which in my case makes him see all content belonging to manager group(in the current case or of some one who happened to be the previous user being tracked by the site) While trying to figure out whats happening, i found out that session objects are not getting destroyed when i use the [auth-logout] action. Consequence the 'USR' returns from the sub-stemap to the main sitemap and manages to see the 'MGR' guys content,which is a bummer! Side note: *- 1)i do use the security-handlerfrom the main sitemap , in the sub-stemap to check if the user is logged-in or not. 2)based on the pipeline match, i use map:mount to load the sub-sitemaps. 2)this issue happens irrespective of if the session was opened using different browser windows. Has any one come across these issue? Can you all help me figure these out ,please? regards, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon-2.1.7:Session objects not getting destroyed after using auth-logout action
hi all, I have recently moved the existing web-app on Cocoon-2.0.5 to cocoon-2.1.7.and i am facing session objects getting mixed up between multiple users.The main issue i am running into is giving users access to apps which he is not permissible for his group. I am configured as follows: -- Cocoon ver- 2.1.7 O.S- Windows 2003 Tomcat - tomcat-5.x In brief: -- My website structure is this: Main Sitemap( login/ logout takes place from here) | |--> Sub-sitemap-ADM( ADMIN can seee this along with stuff for MANAGERand USER) |--> Sub-sitemap-MGR( MANAGER can see these as well as stuff for USERS) |--> Sub-sitemap-Usr ( simple USERs can see these) When a user logs in, i use the authentication security handler to verify the user.Once done i save the user's security access level into the 'AUTHENTICATION' context.I use the [auth-protect] action to get hold of all the authentication conetxt data in the session. Scenario -- Step-1) If the user belongs to the 'MGR' group, he gets directed to the sub-sitemap which deals with only mnagerial task.He gets his work done,returns back to the main menu where he logs out and ends his session. step-2) Another user logs in and he belongs to group -'USR', he gets directed to sub-sitemap [Sub-sitemap-Usr].he goes in there,does his stuff and decides to go back to the main sitemap , when this happens some how he is getting hold of the previous users authentication context which in my case makes him see all content belonging to manager group(in the current case or of some one who happened to be the previous user being tracked by the site) While trying to figure out whats happening, i found out that session objects are not getting destroyed when i use the [auth-logout] action. Consequence the 'USR' returns from the sub-stemap to the main sitemap and manages to see the 'MGR' guys content,which is a bummer! Side note: *- 1)i do use the security-handlerfrom the main sitemap , in the sub-stemap to check if the user is logged-in or not. 2)based on the pipeline match, i use map:mount to load the sub-sitemaps. 2)this issue happens irrespective of if the session was opened using different browser windows. Has any one come across these issue? Can you all help me figure these out ,please? regards, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to access the security handler/authentication context infofromsub-sitemap?
Leon, You see thats what i was trying to achieve by using the auth-protect action in the sub-sitemap.Because the "authentication context " is only accessible inside a pipeline protected by the auth-protect action... Also,when a sub-sitemap gets mounted and if you are using encode-URL in the sitemap to generate a session-id,it doesn't get passed to the loaded sitemap..which i think, is creating these problem..unless like always i am just missing something very small!! regards Gautam >>> [EMAIL PROTECTED] 04/18/04 03:08PM >>> It would be interesting to see whether the session transformer can get information out of the authentication context using getxml. and then use in the subsitemap. The handler may not be knowm, bit the context *could* be available. Leon Gautam Ganguly wrote: >Leon, > ..and thats what i am currently doing.But then my need also,is to get >hold of the current user info that i have stored in the authentication >context..so i could use that for logging purposes in the child-webapp. >Something like a single-signon kind of setup. > I think you did a lot, to help me out with all your suggestions .I do >appreciate that:) >regards >Gautam > > > >>>>[EMAIL PROTECTED] 04/18/04 02:44PM >>> >>>> >>>> >As I understood that section, you cannot referencethe authentication >handler in the subsitemap. I think >the directory in which the subsitemap resides should be accessed from >within the protected part of the >parent sitemap. > >e.g. a match=""protected/subdir/**.html" within the parent sitemap >should do the >authentication, and the subsitemap does not know anythink about >authentication. > >it works becuase sitemaps are recursively read when a request comes >in. > >That however is as far as *i* understood it. I've never tried it, so I > >should probably just shut up:) > >leon > > >Gautam Ganguly wrote: > > > >>hi Leon, >> I had read that..and thats why i am confused as to how do go about >>it,bcos on that page under the "Working with subsitemaps" section.. >>the very first line says.."The common solution for the framework and >>subsitemaps is to define the handler (in the main sitemap."..i tried >>that: >>1)When i just declare the handler in the main-stemap only,the >>sub-sitemap doesn't seem to find it. >>2)When i the handler in the sub-sitemap(as you had suggested),then it >>just takes me to the login screen,as if the user is accessing the >>resource for the first time.. >> >>But in that page..it also mentions this "The definition of handlers >> >> >in > > >>a sub-sitemap is a TODO and will be available in the next release. >> >> >..." > > >>..which release is that?? >> >>regards, >>Gautam >> >> >> >> >> >> >> >>>>>[EMAIL PROTECTED] 04/18/04 02:06PM >>> >>>>> >>>>> >>>>> >>>>> >>You did read: >>http://www.aerialbear.com/cocoon/documents/developing/webapps/authentication.html >> >> > > > >>(search for subsitemap) ? >> >>Gautam Ganguly wrote: >> >> >> >> >> >>>hi Leon, >>>I tried that,but that creates a totally new security handler,which >>>takes me through the whole login process again.The docs talk about >>>accessing the parent sitemaps handler in the sub-sitemap,but i >>> >>> >>> >>> >>haven't >> >> >> >> >>>seen any examples yet,as to how to do that.Anything else...? >>>But still, i thank you for your suggestion and your time. >>>regards, >>>Gautam >>> >>> >>> >>> >>> >>> >>> >>> >>>>>>[EMAIL PROTECTED] 04/18/04 01:30PM >>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>I think you need to define the authentication manager in the >>>sub-sitemap >>>also. >>> >>>Leon >>> >>>Gautam Ganguly wrote: >>> >>> >>> >>> >>> >>> >>> >>>>hi all, >>>>I am using cocoon-2.1.2. >>>>This is h
Re: How to access the security handler/authentication context infofromsub-sitemap?
Leon, ..and thats what i am currently doing.But then my need also,is to get hold of the current user info that i have stored in the authentication context..so i could use that for logging purposes in the child-webapp. Something like a single-signon kind of setup. I think you did a lot, to help me out with all your suggestions .I do appreciate that:) regards Gautam >>> [EMAIL PROTECTED] 04/18/04 02:44PM >>> As I understood that section, you cannot referencethe authentication handler in the subsitemap. I think the directory in which the subsitemap resides should be accessed from within the protected part of the parent sitemap. e.g. a match=""protected/subdir/**.html" within the parent sitemap should do the authentication, and the subsitemap does not know anythink about authentication. it works becuase sitemaps are recursively read when a request comes in. That however is as far as *i* understood it. I've never tried it, so I should probably just shut up:) leon Gautam Ganguly wrote: >hi Leon, > I had read that..and thats why i am confused as to how do go about >it,bcos on that page under the "Working with subsitemaps" section.. >the very first line says.."The common solution for the framework and >subsitemaps is to define the handler (in the main sitemap."..i tried >that: >1)When i just declare the handler in the main-stemap only,the >sub-sitemap doesn't seem to find it. >2)When i the handler in the sub-sitemap(as you had suggested),then it >just takes me to the login screen,as if the user is accessing the >resource for the first time.. > >But in that page..it also mentions this "The definition of handlers in >a sub-sitemap is a TODO and will be available in the next release. ..." >..which release is that?? > >regards, >Gautam > > > > > >>>>[EMAIL PROTECTED] 04/18/04 02:06PM >>> >>>> >>>> >You did read: >http://www.aerialbear.com/cocoon/documents/developing/webapps/authentication.html > >(search for subsitemap) ? > >Gautam Ganguly wrote: > > > >>hi Leon, >> I tried that,but that creates a totally new security handler,which >>takes me through the whole login process again.The docs talk about >>accessing the parent sitemaps handler in the sub-sitemap,but i >> >> >haven't > > >>seen any examples yet,as to how to do that.Anything else...? >> But still, i thank you for your suggestion and your time. >>regards, >>Gautam >> >> >> >> >> >> >>>>>[EMAIL PROTECTED] 04/18/04 01:30PM >>> >>>>> >>>>> >>>>> >>>>> >>I think you need to define the authentication manager in the >>sub-sitemap >>also. >> >>Leon >> >>Gautam Ganguly wrote: >> >> >> >> >> >>>hi all, >>>I am using cocoon-2.1.2. >>>This is how the main-sitemap looks like: >>> >>>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>The auth-protect does everything as the doc says. >>> >>>But in the sub-sitemap,which handles the child-webapp..i have the >>> >>> >>> >>> >>need >> >> >> >> >>>to access the authentication context info of the current logged in >>>user.On putting the auth-protect action in the sub-sitemap,the >>>sub-sitemap >>>keeps saying "Unknown handler to check:Securityhandler" >>> >>>This is how the sub-sitemap looks like: >>>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>If someone could help me,as to how this can be done..i would highly >>>appreciate that. >>> >>>with regards, >>>Gautam >>> >>> >>>- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >>> >>> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to access the security handler/authentication context infofromsub-sitemap?
hi Leon, I had read that..and thats why i am confused as to how do go about it,bcos on that page under the "Working with subsitemaps" section.. the very first line says.."The common solution for the framework and subsitemaps is to define the handler (in the main sitemap."..i tried that: 1)When i just declare the handler in the main-stemap only,the sub-sitemap doesn't seem to find it. 2)When i the handler in the sub-sitemap(as you had suggested),then it just takes me to the login screen,as if the user is accessing the resource for the first time.. But in that page..it also mentions this "The definition of handlers in a sub-sitemap is a TODO and will be available in the next release. ..." ..which release is that?? regards, Gautam >>> [EMAIL PROTECTED] 04/18/04 02:06PM >>> You did read: http://www.aerialbear.com/cocoon/documents/developing/webapps/authentication.html (search for subsitemap) ? Gautam Ganguly wrote: >hi Leon, > I tried that,but that creates a totally new security handler,which >takes me through the whole login process again.The docs talk about >accessing the parent sitemaps handler in the sub-sitemap,but i haven't >seen any examples yet,as to how to do that.Anything else...? > But still, i thank you for your suggestion and your time. >regards, >Gautam > > > > >>>>[EMAIL PROTECTED] 04/18/04 01:30PM >>> >>>> >>>> >I think you need to define the authentication manager in the >sub-sitemap >also. > >Leon > >Gautam Ganguly wrote: > > > >>hi all, >> I am using cocoon-2.1.2. >> This is how the main-sitemap looks like: >> >>> >> >> >> >> >> >> >> >> >> >> >> >> >>The auth-protect does everything as the doc says. >> >>But in the sub-sitemap,which handles the child-webapp..i have the >> >> >need > > >>to access the authentication context info of the current logged in >>user.On putting the auth-protect action in the sub-sitemap,the >>sub-sitemap >>keeps saying "Unknown handler to check:Securityhandler" >> >>This is how the sub-sitemap looks like: >>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>If someone could help me,as to how this can be done..i would highly >>appreciate that. >> >>with regards, >>Gautam >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to access the security handler/authentication context infofrom sub-sitemap?
hi Leon, I tried that,but that creates a totally new security handler,which takes me through the whole login process again.The docs talk about accessing the parent sitemaps handler in the sub-sitemap,but i haven't seen any examples yet,as to how to do that.Anything else...? But still, i thank you for your suggestion and your time. regards, Gautam >>> [EMAIL PROTECTED] 04/18/04 01:30PM >>> I think you need to define the authentication manager in the sub-sitemap also. Leon Gautam Ganguly wrote: >hi all, > I am using cocoon-2.1.2. > This is how the main-sitemap looks like: > > > > > > > > > > > > > > >The auth-protect does everything as the doc says. > >But in the sub-sitemap,which handles the child-webapp..i have the need >to access the authentication context info of the current logged in >user.On putting the auth-protect action in the sub-sitemap,the >sub-sitemap >keeps saying "Unknown handler to check:Securityhandler" > >This is how the sub-sitemap looks like: > > > > > > > > > > > > > > > > >If someone could help me,as to how this can be done..i would highly >appreciate that. > >with regards, >Gautam > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to access the security handler/authentication context info from sub-sitemap?
hi all, I am using cocoon-2.1.2. This is how the main-sitemap looks like: The auth-protect does everything as the doc says. But in the sub-sitemap,which handles the child-webapp..i have the need to access the authentication context info of the current logged in user.On putting the auth-protect action in the sub-sitemap,the sub-sitemap keeps saying "Unknown handler to check:Securityhandler" This is how the sub-sitemap looks like: If someone could help me,as to how this can be done..i would highly appreciate that. with regards, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FIXED]Re: passing request parameters on map-redirect
hi there, sorry for that request.But after looking at the help section,i tried doing a and that did the trick. Thanks for reading. regards Gautam >>> [EMAIL PROTECTED] 03/12/04 12:45PM >>> hi all, I am using cocoon-2.1.2 and these is what my sitemap pipeline looks like: --- - When pipeline do-add.html is called,its being passed a set of request-parameters from the previous pipeline.On success of the add action,i am trying to redirect it to the on-success.html pipeline,but that somehow makes it loose all the request-parameter values. So my query is : How to pass the current pipelines request parameters to the called redirect-to pipeline? Any kind of help or suggestion would be appreciated. regards, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
passing request parameters on map-redirect
hi all, I am using cocoon-2.1.2 and these is what my sitemap pipeline looks like: --- - When pipeline do-add.html is called,its being passed a set of request-parameters from the previous pipeline.On success of the add action,i am trying to redirect it to the on-success.html pipeline,but that somehow makes it loose all the request-parameter values. So my query is : How to pass the current pipelines request parameters to the called redirect-to pipeline? Any kind of help or suggestion would be appreciated. regards, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FIXED] RE: Embedded JavaScript file inside dynamic SVG isn't working
hi Robby and Steve, when i changed the href value from to and that made it find the script file. hope that helps you all and thanks once again. regards Gautam >>> [EMAIL PROTECTED] 02/11/04 09:14AM >>> hi Robby , Thanks for that that worked.I ahd tried that logic earlier for including the script code inside the svg file itself but that didnot seem to work.Now when i looked your example here..i changed the script type from "text/ecmascript" to "text/javascript",it started working.Thanks a lot for that.Even though the svg gets a lot bigger given the fact that i would put all the logic inside it,but i i will check into the fact as to why the sitemap can't find the javascript file from inside the generated svg.I will keep you all informed on that. ..and thanks to you too Steve,for your time and your help. As always thanks to all those who always seem to somehow make a dumb person like me, look a little bit intelligent in his own world!!! regards, Gautam >>> [EMAIL PROTECTED] 02/11/04 02:32AM >>> Hi Steve and Gautam, you can try the following to see if your code works at all I did embed the scripting and CSS in the stylesheet, because I wanted a quick solution and hadn't any knowledge of how to use the sitemap. http://www.w3.org/1999/xlink"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"> http://www.w3.org/2000/svg"; width="1000" heigth="120">
RE: Embedded JavaScript file inside dynamic SVG isn't working
hi Robby , Thanks for that that worked.I ahd tried that logic earlier for including the script code inside the svg file itself but that didnot seem to work.Now when i looked your example here..i changed the script type from "text/ecmascript" to "text/javascript",it started working.Thanks a lot for that.Even though the svg gets a lot bigger given the fact that i would put all the logic inside it,but i i will check into the fact as to why the sitemap can't find the javascript file from inside the generated svg.I will keep you all informed on that. ..and thanks to you too Steve,for your time and your help. As always thanks to all those who always seem to somehow make a dumb person like me, look a little bit intelligent in his own world!!! regards, Gautam >>> [EMAIL PROTECTED] 02/11/04 02:32AM >>> Hi Steve and Gautam, you can try the following to see if your code works at all I did embed the scripting and CSS in the stylesheet, because I wanted a quick solution and hadn't any knowledge of how to use the sitemap. http://www.w3.org/1999/xlink"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"> http://www.w3.org/2000/svg"; width="1000" heigth="120">
RE: Embedded JavaScript file inside dynamic SVG isn't working
hi Steve, This is the same mail that i sent to your mail box directly.. i am extremely sorry for that.These mail is to the cocoon users group to rectify that mistake of mine. and wrt ur mail ,these is what i found: I tried accesing the MoveCircle.js file from the client machine using these (url = http://localhost/cocoon/SvgApps/scripts/MoveCircle.js) and it works fine from there.So i think that sitemap seems to pick it up fine. I tried removing the mime-type for .JS files and still got the same error Message Box which says "Microsoft JScript runtime error:Object expected line:1,column:0" I am not using the .js file from inside the html page which gets generated but from inside the .svg file...bcos the in the future, i would like the dynamically generated svg to just work as the main svg container which internally is built up of other svg image layers using the svg:image tag so that the final svg image created have there own user event handling based on what layer is currently active. Since you said you have been using .JS from the html container page,have you been able to get hold of the handle to the svg doc element ? regards Gautam >>> "Steve Schwarz" <[EMAIL PROTECTED]> 02/10/04 02:36PM >>> I'm serving JS files without setting the mime-type and it just works. Are you sure the file is being served to your client? See if you get it when you request that file directly you get it. Compare the path in the HTML file that loads the JS file too. HTH, Steve >From: "Gautam Ganguly" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >Subject: Embedded JavaScript file inside dynamic SVG isn't working >Date: Tue, 10 Feb 2004 13:05:00 -0600 > >hi all, > I am trying to make these dynamic svg which i create using xsp to >also use the javascript file but it somehow doesn't seem to find it. > The basic system setup is: > JDK-1.4.1 > Win2k Professional > Cocoon-2.1.2 > Tomcat-4.1.27 > >These is what my sitemap looks like: > > > > > > > > > > > > > > > mime-type="text/javascript"/> > > > > mime-type="application/x-javascript"/> > > >- >And the files looks like these: > >[Result.xsp] >- > >http://apache.org/xsp";> > > > NO DATA > > > > >[fragment-extractor.xsl] >--- > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > xmlns:fe="http://apache.org/cocoon/fragmentextractor/2.0";> > > >src="svgimages/[EMAIL PROTECTED]" name="svgmap" >type="image/svg+xml" > > pluginspage="http::/www.adobe.com/svg/viewer/install/"/> > > priority="-1"> > >select="@*|*|text()|processing-instruction()"/> > > > > > > >[GenDynsSvg.xsl] >--- > >xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >xmlns:svg="http://www.w3.org/2000/svg"; >xmlns:xlink="http://www.w3.org/1999/xlink";> > > > width="400" height="200" onload="init(evt)" >xmlns="http://www.w3.org/2000/svg"; >xmlns:xlink="http://www.w3.org/1999/xlink";> > type="text/javascript"/> r="30" > style="stroke-width:2;stroke:black;fill:white; >fill-opacity:0.5" > onmouseup="mouseup(evt)" onmousemove="move(evt)" >onmousedown="click(evt)"/> > > > > >[GenDynHtmlTemplate.xsl] >-- > >xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> > > > > Embedding SVG Image using Javascript > > > > > > > > > > > > >MoveCircle.js >- > var track=false; > var SVGDoc; > function init(evt) { > // Get the Document > SVGDoc = evt.getTarget().getOwnerDocument(); > // Get the circle you'll be dragging around > nodeCircle = SVGDoc.getElementById("Circle1"); > } > function click(evt){ > track=true; > } > function mouseup(evt){ > track=false; > } > function move(evt){ > // get window values > var x = evt.getClientX(); >
Embedded JavaScript file inside dynamic SVG isn't working
hi all, I am trying to make these dynamic svg which i create using xsp to also use the javascript file but it somehow doesn't seem to find it. The basic system setup is: JDK-1.4.1 Win2k Professional Cocoon-2.1.2 Tomcat-4.1.27 These is what my sitemap looks like: - And the files looks like these: [Result.xsp] - http://apache.org/xsp";> NO DATA [fragment-extractor.xsl] --- http://www.w3.org/1999/XSL/Transform"; xmlns:fe="http://apache.org/cocoon/fragmentextractor/2.0";> [GenDynsSvg.xsl] --- http://www.w3.org/1999/XSL/Transform"; xmlns:svg="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";> http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";> [GenDynHtmlTemplate.xsl] -- http://www.w3.org/1999/XSL/Transform";> Embedding SVG Image using Javascript MoveCircle.js - var track=false; var SVGDoc; function init(evt) { // Get the Document SVGDoc = evt.getTarget().getOwnerDocument(); // Get the circle you'll be dragging around nodeCircle = SVGDoc.getElementById("Circle1"); } function click(evt){ track=true; } function mouseup(evt){ track=false; } function move(evt){ // get window values var x = evt.getClientX(); var y = evt.getClientY(); if (track==true) { // set the center point of the circle to the new values nodeCircle.setAttributeNS(null,"cx",x); nodeCircle.setAttributeNS(null,"cy",y); } } - Main Task is just not to show the SVG images dynamically but also to let the user edit them on the web-page. The dynamic generation of the svg image and embedding them into the HTML page and displaying it works just great...thanks to you all out there who helped me!! The next task of make the displayed SVG image using the Javascript file is where i am getting struck at:(. I have tried to put the javascript file in every available location that i could think of,but still cocoon doesn't seem to find it..and as a matter of fact even tried to force the pipeline to use only the one javascript file as you can see in the sitemap..but that too didnot help. I even placed the java script code into the svg file by using the tags didn't help it either. Any clues ..any suggesttion would be of lot of help. Thanks to you all ..again. regards Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
401 error code for HttpProxyGenerator
hi all, I am using cocoon-2.1.2 running under Tomcat-4.1.27 server on Win2k . I am trying to make use of the OracleXSQL servlet running on the same machine to fetch XML and do the next part of the processing using HttpProxyGenerator The error that i get when i call the test pipeline as set up in my sitemap is as follows: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.IOException: Unable to access HTTP resource at "http://localhost/xsql/"; (status=401) This is what my pipeline in the sitemap looks like: http://localhost/xsql/";> http://localhost/xsql/"/> But when i use these same url (http://localhost/xsql/fetch-layer.xsql?layer-id=12) from the browser,i do see the xml being returned. Any ideas as to whats causing these to happen?any suggestions as to what i might me missing would also be of help. regards Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon-2.1rc1 build error
hi bhargavi, Thanks for the clue!!! I was using PowerArchiver which generally handles these type of uses.As i go on with the build , i would just download the source from CVS as and when any error occurs. regards, Gautam >>> [EMAIL PROTECTED] 08/11/03 12:23PM >>> Hi, This problem arises when you use Winzip. Winzip does not seem to extract all the empty lib folders. Use WinRAR to extract the zip file for example, and you should be good to go. Good luck. Bhargavi Atchutuni --- Gautam Ganguly <[EMAIL PROTECTED]> wrote: > hi all, >I just now downloaded the cocoon-2.1rc1-src.zip > from the release > candidates download area for windows and when i try > to build it using > the build war option i get these error,which goes > something like > these... > > session-fw-prepare: > Created dir: > C:\cocoon\cocoon-2.1\cocoon-2.1rc1\build\cocoon-2.1 > rc1\blocks\session-fw\dest > Created dir: > C:\cocoon\cocoon-2.1\cocoon-2.1rc1\build\cocoon-2.1 > rc1\blocks\session-fw\conf > Copying 5 files to > C:\cocoon\cocoon-2.1\cocoon-2.1rc1\build\coco > on-2.1rc1\blocks\session-fw\conf > Caught exception > (org.apache.tools.ant.BuildException) while > expanding > session-fw.classpath: > C:\cocoon\cocoon-2.1\cocoon-2.1rc1\src\blocks\session-fw\lib > not found. > > session-fw-compile: > Copied 6 empty directories to > C:\cocoon\cocoon-2.1\cocoon-2.1rc1 > \build\cocoon-2.1rc1\blocks\session-fw\dest > Compiling 26 source files to > C:\cocoon\cocoon-2.1\cocoon-2.1rc1\ > build\cocoon-2.1rc1\blocks\session-fw\dest > > BUILD FAILED > file:C:/cocoon/cocoon-2.1/cocoon-2.1rc1/build/cocoon-2.1rc1/temp > /blocks-build.xml:1347: > C:\cocoon\cocoon-2.1\cocoon-2.1rc1\src\b > locks\session-fw\lib not found. > > Total time: 49 seconds > > Any clues as to what might be wrong?? > > regards > Gautam > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon-2.1rc1 build error
hi all, I just now downloaded the cocoon-2.1rc1-src.zip from the release candidates download area for windows and when i try to build it using the build war option i get these error,which goes something like these... session-fw-prepare: Created dir: C:\cocoon\cocoon-2.1\cocoon-2.1rc1\build\cocoon-2.1 rc1\blocks\session-fw\dest Created dir: C:\cocoon\cocoon-2.1\cocoon-2.1rc1\build\cocoon-2.1 rc1\blocks\session-fw\conf Copying 5 files to C:\cocoon\cocoon-2.1\cocoon-2.1rc1\build\coco on-2.1rc1\blocks\session-fw\conf Caught exception (org.apache.tools.ant.BuildException) while expanding session-fw.classpath: C:\cocoon\cocoon-2.1\cocoon-2.1rc1\src\blocks\session-fw\lib not found. session-fw-compile: Copied 6 empty directories to C:\cocoon\cocoon-2.1\cocoon-2.1rc1 \build\cocoon-2.1rc1\blocks\session-fw\dest Compiling 26 source files to C:\cocoon\cocoon-2.1\cocoon-2.1rc1\ build\cocoon-2.1rc1\blocks\session-fw\dest BUILD FAILED file:C:/cocoon/cocoon-2.1/cocoon-2.1rc1/build/cocoon-2.1rc1/temp /blocks-build.xml:1347: C:\cocoon\cocoon-2.1\cocoon-2.1rc1\src\b locks\session-fw\lib not found. Total time: 49 seconds Any clues as to what might be wrong?? regards Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Intranet Security on Win2000 Active Directory setup query
hi there, I have these requirement that has been placed on my plate for the intranet website that has already been developed using Cocoon-2.0.4 on Win2000 IIS server running inside Tomcat-4.1.18 servlet container.The network uses Win2000 Active Directory Setup.Everything worked fine till now(..unless something else shows up!!). Currently i am using the LDAP transformer for authentication based on the login form information entered and from which i get the roles he/she has been assigned and show the user the role-based view of the website.The login screen uses XSP and i am using the Sunshine Authentication block for handling various pipelines. The security requirement that has been raised is: Any domain user who wants to use the intranet doesn't need to go through the login page on the intranet website,since the logged on user is already a valid user on the domain.So the logon screen doesn't help much - Well its fine with these requirement because i can make the IIS server to restrict usage based on Windows Integerated Authentication.When i say the 'logged-onn' i mean the network login. But the the next phase is where i am getting stuck at,which is getting the network logon user details based on which i have to generate the customized view to restrict access to specific resources on the website. its because the request object doesn't give me the network details of the user like the logon-name.If i could even get that,i can go ahead with finding the rest of the information like his group access rights. Has anybody come across such issues?Is there any better way to go about the whole authentication that i have described here.Any kind of help would be highly appreciated and thanks for your time. regards, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]