Re: configuring tomcat with apache and eclipse.
On Mon, Mar 30, 2009 at 9:16 PM, Gregor Schneider wrote: > > Maybe the he's too lazy to login every time? Who knows... > Thats pretty much it :) Seriously though when doing HTML work just making small incremental changes to the markup thats being served, It can be a real pain. But yes I'm lazy about it.
Re: configuring tomcat with apache and eclipse.
On Mon, Mar 30, 2009 at 8:52 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Gregor Schneider [mailto:rc4...@googlemail.com] > > Subject: Re: configuring tomcat with apache and eclipse. > > > > I'm understanding this scenario in such a way that there's a > > test/dev-environment that being a 1:1-copy of the > > production-environment. Makes sense, IMHO. > > Perhaps, but then why would the OP be concerned about losing session > information when updating with Eclipse, if this were only for > test/development? Just because its a pain. We have an encrypted login and everything else depends on it. Loosing session means needing to do the entire authentication with a remote service again. Anyway yes I want it to be a fairly close mirror of the live enviornment. I want to be able to control what should be secure and insecure just like in production. I wan't to be able to test my mappings so that I know that apache is serving the correct content and tomcat is serving the correct content. I'd like to be able to have a fairly good idea everything is working as it should. Too often in work (this is a private project) I've seen problems where apache won't understand filenames with ;jsessionid attached. Or where the entire functioning depends on a rewrite. Or even worse if the other developers end up writing code like request.getRequestUrl().indexOf("localhost") or where they end up hard coding port 8080 if localhost is in the url for absolue links. Suddenly I need to debug two seperate apps and I can't run either of them on another port because they only work on ports 80 or 443 or 8080. Its for all the above reason I want apache in right in at the beginning. If I can't then I'd pefer to serve all content from tomcat in production also. That opens a can of worms for scalibilty though. On Mon, Mar 30, 2009 at 7:43 PM, Gregor Schneider wrote: > > > There's an interesting thread here on the list regarding the loss of > sessions during re-deployment which some consider a bug, and there's > even a workaround for that bug: > > http://www.nabble.com/Session-lost-when-app.-is-redeployed-td22660549.html Thanks I'll check it out. > > > My personal oppinion: > > When I re-deploy a webapp (and the webapp is changed!), a session > /must/ be lost, otherwise serialization / de-serialization of > session-data might end up somewhere in Nirvana. > I don't agree if nothing in the session has its serial number changed then it should remain. But thats just my opinion.
Re: configuring tomcat with apache and eclipse.
Chuck, On Mon, Mar 30, 2009 at 8:52 PM, Caldarale, Charles R wrote: > > Perhaps, but then why would the OP be concerned about losing session > information when updating with Eclipse, if this were only for > test/development? > Maybe the he's too lazy to login every time? Who knows... >> So calm down, think of your heart > > Heart's fine, and I just spent a day instructing a student in an RS4, so I'm > quite calm; now if I could only figure out how to afford one (and pay for the > gas). > Calm? I guess I'd be a piece of dead meat if somebody else but me was driving =8) And since we're having a multi-nationale-multi-universal-car-financial-you-name-it-crises, I'm pretty sure care-prices are going to drop. And for the gas: Ever thought of solar-cells on the hood? ;) I'll call it a day now, see you guys tomorrow! Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: configuring tomcat with apache and eclipse.
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: configuring tomcat with apache and eclipse. > > I'm understanding this scenario in such a way that there's a > test/dev-environment that being a 1:1-copy of the > production-environment. Makes sense, IMHO. Perhaps, but then why would the OP be concerned about losing session information when updating with Eclipse, if this were only for test/development? > So calm down, think of your heart Heart's fine, and I just spent a day instructing a student in an RS4, so I'm quite calm; now if I could only figure out how to afford one (and pay for the gas). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
Chuck, actually Nirvana is a pretty good place but for serialized / de-serialized sessions ;) Anyway: On Mon, Mar 30, 2009 at 8:38 PM, Caldarale, Charles R wrote: > > Are you saying you run a production Tomcat under Eclipse? That's insane. > I'm understanding this scenario in such a way that there's a test/dev-environment that being a 1:1-copy of the production-environment. Makes sense, IMHO. However, what doesn't make sense is to use all the SSL-stuff when developing apps - unless you develop a SSL-aware-app. So calm down, think of your heart, I believbe the OP is just having an unusual development-environment. Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: configuring tomcat with apache and eclipse.
> From: Wesley Acheson [mailto:wesley.ache...@gmail.com] > Subject: Re: configuring tomcat with apache and eclipse. > > Okay but as far as I know when you make any trivial change > in eclipse, It builds an entire WAR file and restarts its > tomcat instance Are you saying you run a production Tomcat under Eclipse? That's insane. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: configuring tomcat with apache and eclipse.
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: configuring tomcat with apache and eclipse. > > otherwise serialization / de-serialization of > session-data might end up somewhere in Nirvana. But wait, nirvana is a good place - where we'd all like to end up. Perhaps you mean limbo? (Not to be confused with dancing under a bar...) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
Wes, On Mon, Mar 30, 2009 at 7:23 PM, Wesley Acheson wrote: > > It was because of the SSL stuff I haven't learnt how to set up SSL with > tomcat. > I'm curious: What's the benefit having Tomcat run in SSL-mode for Servlet / JDP-development? > Okay but as far as I know when you make any trivial change in eclipse, It > builds an entire WAR file and restarts its tomcat instance which means lost > sessions really annoying if your working on the forth step of a 4 step > process. and also it means Its slow to develop. That's definately wrong. Eclipse won't restart Tomcat but will re-deploy the war-file. I'm not too sure about the next one. I remeber that here's a discussion going on here about losing sessions during re-deplyment: AFAIK a session is only lost after you stop an application - not during redeployment. However, there's a small catch: If you change the class which is added to a session as a sesson-attribute, I'm pretty much sure that the session will be lost, since deserializing the session-data might not work any more. Maybe one of the guys here can shed some more light how it's /supposed/ to be. There's an interesting thread here on the list regarding the loss of sessions during re-deployment which some consider a bug, and there's even a workaround for that bug: http://www.nabble.com/Session-lost-when-app.-is-redeployed-td22660549.html My personal oppinion: When I re-deploy a webapp (and the webapp is changed!), a session /must/ be lost, otherwise serialization / de-serialization of session-data might end up somewhere in Nirvana. Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
Hi Yassine, Gregor, mailing list readers. It was because of the SSL stuff I haven't learnt how to set up SSL with tomcat. Okay but as far as I know when you make any trivial change in eclipse, It builds an entire WAR file and restarts its tomcat instance which means lost sessions really annoying if your working on the forth step of a 4 step process. and also it means Its slow to develop. Maybe its just because thats the way I was used to working with Resin in work. I guess I'll give it a go. Thanks for your replies. Regards, Wes On Mon, Mar 30, 2009 at 7:10 PM, Gregor Schneider wrote: > On Mon, Mar 30, 2009 at 6:35 PM, Yassine > wrote: > > if i were you i would use only eclipse + tomcat for my development and > > when ever i want to > > test some Apache related configurations i will then do the > > configurations manually. > > > > afaik there is nothing (plug in) that takes care of Apache web server > > configurations in eclipse. > +1 > > Rgds > > Gregor > -- > just because your paranoid, doesn't mean they're not after you... > gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 > gpgp-key available > @ http://pgpkeys.pca.dfn.de:11371 > @ http://pgp.mit.edu:11371/ > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: configuring tomcat with apache and eclipse.
On Mon, Mar 30, 2009 at 6:35 PM, Yassine wrote: > if i were you i would use only eclipse + tomcat for my development and > when ever i want to > test some Apache related configurations i will then do the > configurations manually. > > afaik there is nothing (plug in) that takes care of Apache web server > configurations in eclipse. +1 Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
I'm not sure why you would want to have Apache configured in eclipse? if i were you i would use only eclipse + tomcat for my development and when ever i want to test some Apache related configurations i will then do the configurations manually. afaik there is nothing (plug in) that takes care of Apache web server configurations in eclipse. Yassine On Mon, Mar 30, 2009 at 6:27 PM, Wesley Acheson wrote: > Can anyone tell me if they know of another list where I can ask my > questions. I thought tomcat would be most appropiate as its 2/4 tomcat 1/4 > apache and 1/4 eclipse. > > > > On Fri, Mar 27, 2009 at 11:54 PM, Wesley Acheson > wrote: > >> Hi all, >> >> I wish to launch tomcat from eclipse either using the conf files in my >> tomcat installation directory or with a similar configuration through >> eclipse on apache. >> >> The steps that I've already got working are as follows. >> >> I've installed XAMPP for apache and ssl support. >> >> I've installed tomcat. >> >> I've got apache forwarding requests to tomcat on both ports 443 and 80. >> (https and http). >> >> I've set up the root application with reloadable="true" and a path to >> within my workspace. >> >> So far so good. Changing a file in this directory appears immediatly >> through tomcat started with the start bat file. >> >> However if I define the server in eclipse and start it, navigating to >> localhost:8080 gives a 404 error. Now I guess this is expected as eclipse >> is managing tomcat. >> >> I don't know however to do three things. >> >> >> 1. Start apache + tomcat through eclipse. (Necessary for SSL) >> 2. Start a root application through eclipse. >> 3. Have autocompile on in an eclipse project. (I don't like the >> rebuilding and deploying a WAR file as you loose session infomation and >> its >> quite unnecessary near the start of a development cycle when trivial JSP >> changes are involved) >> >> >> >> I hope that someone can help me with any or all of the above points. >> >> One last question is it possible for launching apache to launch tomcat? >> >> Regards, >> >> Wesley Acheson >> > -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
Can anyone tell me if they know of another list where I can ask my questions. I thought tomcat would be most appropiate as its 2/4 tomcat 1/4 apache and 1/4 eclipse. On Fri, Mar 27, 2009 at 11:54 PM, Wesley Acheson wrote: > Hi all, > > I wish to launch tomcat from eclipse either using the conf files in my > tomcat installation directory or with a similar configuration through > eclipse on apache. > > The steps that I've already got working are as follows. > > I've installed XAMPP for apache and ssl support. > > I've installed tomcat. > > I've got apache forwarding requests to tomcat on both ports 443 and 80. > (https and http). > > I've set up the root application with reloadable="true" and a path to > within my workspace. > > So far so good. Changing a file in this directory appears immediatly > through tomcat started with the start bat file. > > However if I define the server in eclipse and start it, navigating to > localhost:8080 gives a 404 error. Now I guess this is expected as eclipse > is managing tomcat. > > I don't know however to do three things. > > >1. Start apache + tomcat through eclipse. (Necessary for SSL) >2. Start a root application through eclipse. >3. Have autocompile on in an eclipse project. (I don't like the >rebuilding and deploying a WAR file as you loose session infomation and its >quite unnecessary near the start of a development cycle when trivial JSP >changes are involved) > > > > I hope that someone can help me with any or all of the above points. > > One last question is it possible for launching apache to launch tomcat? > > Regards, > > Wesley Acheson >
configuring tomcat with apache and eclipse.
Hi all, I wish to launch tomcat from eclipse either using the conf files in my tomcat installation directory or with a similar configuration through eclipse on apache. The steps that I've already got working are as follows. I've installed XAMPP for apache and ssl support. I've installed tomcat. I've got apache forwarding requests to tomcat on both ports 443 and 80. (https and http). I've set up the root application with reloadable="true" and a path to within my workspace. So far so good. Changing a file in this directory appears immediatly through tomcat started with the start bat file. However if I define the server in eclipse and start it, navigating to localhost:8080 gives a 404 error. Now I guess this is expected as eclipse is managing tomcat. I don't know however to do three things. 1. Start apache + tomcat through eclipse. (Necessary for SSL) 2. Start a root application through eclipse. 3. Have autocompile on in an eclipse project. (I don't like the rebuilding and deploying a WAR file as you loose session infomation and its quite unnecessary near the start of a development cycle when trivial JSP changes are involved) I hope that someone can help me with any or all of the above points. One last question is it possible for launching apache to launch tomcat? Regards, Wesley Acheson