Re: Tomcat refusing jsessionid's
Cool, after I wrote it I thought that might be what you meant. Maybe you should just turn off cookies and _only_ use url rewriting? That's what I'd try, but maybe you have a reason not to do that? fillup On 5/25/02 8:24 PM, Jiger Java [EMAIL PROTECTED] wrote: Philip, I did try using url re-writing using jsessionid'd that is why I wrote this mail. TOmcat seems to use jsessionid in cookies first if not there only then take jsessionid from url. This is my guess coz that is what is happening. Does anyone have any idea how to force using jsessionid in such situations to make user jump between two domains(though they are in reality same machine same tomcat) without his knowlege. -Jiger From: Phillip Morelock [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat refusing jsessionid's Date: Sat, 25 May 2002 09:14:27 -0700 MIME-Version: 1.0 Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id MHotMailBEB9037700594004310EC0123183C6C00; Sat, 25 May 2002 09:14:47 -0700 Received: (qmail 2532 invoked by uid 97); 25 May 2002 16:14:29 - Received: (qmail 2516 invoked by uid 98); 25 May 2002 16:14:29 - From tomcat-user-return-20632-jigerjava Sat, 25 May 2002 09:16:15 -0700 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] X-Antivirus: nagoya (v4198 created Apr 24 2002) User-Agent: Microsoft-Entourage/10.0.0.1309 Message-ID: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N HTTP sessionsbrowsers are configured to associate cookies with domain names. They will not transmit a cookie to a domain other than the originating domain (at least they shouldn't). It has nothing to do with IP address, only domain name. I am not sure I understand your question, but if I am reading it correctly, the only thing you can do is some manual persistence scheme, such as using a database and url rewriting or some similar scheme. does this help? fillup On 5/25/02 3:43 AM, Jiger Java [EMAIL PROTECTED] wrote: Hi, I have checked the archives already but did not come across similar problems so I would like to ask it. My Platform: Tomcat 4.0. JDK 1.4 RHT Linux We have this application hosted on an generic server say http://www.server.com now our reseller's can map their DNS such that www.reseller.com points to www.server.com this will be dynamic( since reseller's will be doing it themselves) so I can't use virtual host feature of tomcat. The idea is that customer of that reseller should not come to know that they are actually buying stuff from us so the customer *always* sees the reseller's website url in his browser. All pages post to http://www.reseller.com/customer/xyz , which would post to us due to DNS mapping. So far so good. But in many critical places like Login, customer signup, we have hardcoded url's to our https:// server (same machine same tomcat) becoz reseller need not buy Secure Certificates. This is the problem. Inspite of my adding jsessionid to all such pages right from posting to https:// to META refreshes, I still can't seem to get back the session. Logically, if I pass in the right sessionid, tomcat should pick up the correct session but it is still picking up pre-login session refusing the new sessionid got in the Authenticationservlet. I attach the jsessionid something like this http://www.reseller.com:10001/anacreon/servlet/CustomerIndexServlet?jsessioni d =A4A0314540585318A4F5E327F1457375 Does anyone have any idea how to solve it. Please ask me if you need more clarifications. I need to get this thing out. Thanks Awaiting your replies, Jiger _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how does tomcat store session objects?
Have you built the Tomcat source javadoc tree? Maybe you don't want to wade knee-deep in source...understandable, I guess. But at least build yourself the javadoc from the sources and read that stuff. Also see the high-level architecture image (or maybe pdf?) on the jakarta site. fillup Can someone tell me how tomcat stores session objects or at least where I could find out this info without looking at the src? without looking at the source? why not? it's Free, and it's the most authoritative answer you can get. Hi, Maybe I just feel like getting someone else's opinion. Because, where reading the src is excellent excercise, you may not find what the general policies are regarding any particular feature. What you will get is a precise picture of what the product does at that specific point in time(or for that specific version). I am trying to establish the broad policies of a servlet engine implementation - the reference implementation. If one was going to produce a document which introduced the product's features I would expect to find this kind of information in it. So if the servlet spec is a bit vague perhaps the document might mention a few implementation details. Not an all-out volume of commentry - just the general approach taken. Seeing as tomcat has undergone a fair bit of development and has been subjected to some structural changes between recent releases(i.e. 3.x vs 4.0), I thought my first port of call might be to find a long suffering fellow tomcat-user who may have passed on a few helpful hints or his/her take on the big picture (or part thereof, even) - just because he can. Can someone point me to a reference / tech article or discussion? Does anyone know whether or not the way the session management is handled by tomcat has changed in any major way? Are there any caveats to accessing session objects from multiple simultaneous requests? The way this is implementated in the reference implementation (between specs) I would have thought would be documented somewhere other than in the src code. Regards Joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how does tomcat store session objects?
I just quickly checked the site and there are also a couple of tomcat internals articles and the full javadoc for Tomcat 4 is already posted there as well. /f/ -- Have you built the Tomcat source javadoc tree? Maybe you don't want to wade knee-deep in source...understandable, I guess. But at least build yourself the javadoc from the sources and read that stuff. Also see the high-level architecture image (or maybe pdf?) on the jakarta site. fillup Can someone tell me how tomcat stores session objects or at least where I could find out this info without looking at the src? without looking at the source? why not? it's Free, and it's the most authoritative answer you can get. Hi, Maybe I just feel like getting someone else's opinion. Because, where reading the src is excellent excercise, you may not find what the general policies are regarding any particular feature. What you will get is a precise picture of what the product does at that specific point in time(or for that specific version). I am trying to establish the broad policies of a servlet engine implementation - the reference implementation. If one was going to produce a document which introduced the product's features I would expect to find this kind of information in it. So if the servlet spec is a bit vague perhaps the document might mention a few implementation details. Not an all-out volume of commentry - just the general approach taken. Seeing as tomcat has undergone a fair bit of development and has been subjected to some structural changes between recent releases(i.e. 3.x vs 4.0), I thought my first port of call might be to find a long suffering fellow tomcat-user who may have passed on a few helpful hints or his/her take on the big picture (or part thereof, even) - just because he can. Can someone point me to a reference / tech article or discussion? Does anyone know whether or not the way the session management is handled by tomcat has changed in any major way? Are there any caveats to accessing session objects from multiple simultaneous requests? The way this is implementated in the reference implementation (between specs) I would have thought would be documented somewhere other than in the src code. Regards Joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
security resources
Dear All Is there any Docs or links includes security checklist for tomcat4 on windows2000 and IIS5 ? Thanks
1 IP
Dear all If i run tomcat as standalone , How do I set tomcat to accept connections from only one specific IP adress? Thanks in advance
Re: How to create dynamic graphs on web pages?
Try KavaChart from VW. See www.ve.com. It provides nice features generating charts through servlets, applets or in Swing Java Programs. No Royalties. 300$ per developer seat. - Original Message - From: Alvin Wang [EMAIL PROTECTED] To: SERVLET-INTEREST [EMAIL PROTECTED] Cc: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 06, 2002 8:23 PM Subject: How to create dynamic graphs on web pages? We need to display graphs on our web pages based on our data reports. We guess we need a set of API to create the GIF/JPEG files dynamically in servlets. I read http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html already. But I feel it is not sophisticate enough. Does anyone know how to create complex dynamic graphs on web? for example, 3D graph, XML-graph, curve, pie. Any good vendor APIs? Thanks! Alvin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how does tomcat store session objects?
Phillip Morelock wrote: I just quickly checked the site and there are also a couple of tomcat internals articles and the full javadoc for Tomcat 4 is already posted there as well. /f/ -- Have you built the Tomcat source javadoc tree? Maybe you don't want to wade knee-deep in source...understandable, I guess. But at least build yourself the javadoc from the sources and read that stuff. Also see the high-level architecture image (or maybe pdf?) on the jakarta site. fillup Can someone tell me how tomcat stores session objects or at least where I could find out this info without looking at the src? without looking at the source? why not? it's Free, and it's the most authoritative answer you can get. Hi, Maybe I just feel like getting someone else's opinion. Because, where reading the src is excellent excercise, you may not find what the general policies are regarding any particular feature. What you will get is a precise picture of what the product does at that specific point in time(or for that specific version). I am trying to establish the broad policies of a servlet engine implementation - the reference implementation. If one was going to produce a document which introduced the product's features I would expect to find this kind of information in it. So if the servlet spec is a bit vague perhaps the document might mention a few implementation details. Not an all-out volume of commentry - just the general approach taken. Seeing as tomcat has undergone a fair bit of development and has been subjected to some structural changes between recent releases(i.e. 3.x vs 4.0), I thought my first port of call might be to find a long suffering fellow tomcat-user who may have passed on a few helpful hints or his/her take on the big picture (or part thereof, even) - just because he can. Can someone point me to a reference / tech article or discussion? Does anyone know whether or not the way the session management is handled by tomcat has changed in any major way? Are there any caveats to accessing session objects from multiple simultaneous requests? The way this is implementated in the reference implementation (between specs) I would have thought would be documented somewhere other than in the src code. Regards Joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Thanks for that, Phillip. I have downloaded the src-dist for both 3 and 4 versions but have not yet genned the javadoc - I'll do that when I've looked at the catalina docs. I was hoping there may be docs prior to tc4 (we are currently on 3.3) but that is a big help nevertheless. I guess its likely I'll find out soon the extent of the rewrite. Cheers Joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Jasper JSPC packages
Hi, I'm trying to use Jasper's JSPC to precompile my JSPs, but, instead of getting a package for each directory in my docroot - which is what Jasper does on Tomcat 4 - , I get a package with all the JSPs inside it. It's easy to see that if you have an index.jsp file in each directory they will all collide in the same place. I'm using ant to call JSPC. Any suggestions ? Thanks in advance, LR
RE: Connection Pooling Solution
You probably only downloaded the source, try a nightly build http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-dbcp/ And could you keep your mails to the list instead of direct? That way (a) someone else might answer first and (b) the answer will end up in the mail archives. Thanks Les -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 18:37 To: [EMAIL PROTECTED] Subject: Re: Connection Pooling Solution Thanks a million Les, This is very helpful. Quick question: I didn't see a jar in th DBCP nightly build after I downloaded it, how do you build this thing? Thanks again, Rick - Original Message - Hi all, Having felt the pain in getting connection pooling to work with TC 4.0.3 I've knocked up a simple howto. This is for TC 4.0.3 JDK 1.4, mySQL 4.0 Alpha so YMMV. Enjoy, Les I Downloaded: Tomcat 4.0.3 LE JDK 1.4 Build mySQL4.0.1 alpha mm.mysql 2.0.14 Jakarta-Commons projects DBCP Nightly Build 20020523 collections 2.0 pool1.0 Install mm.mysql, DBCP, collections and pool jars into CATALINA_HOME/common/lib In mySQL, I created a simple DB call javatest with a single table (testdata) and a new user (javauser) with the password javadude. I created a new Context for my test web app, here's the full server.xml entry: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue3/value/parameter parameternamemaxWait/namevalue100/value/parameter parameternameusername/namevaluejavauser/value/parameter parameternamepassword/namevaluejavadude/value/parameter parameter namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/namevaluejdbc:mysql://localhost:3306/javatest/value /parameter /ResourceParams /Context And of course, you'll need this in your web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionmySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And a snippet of Java to use this:- try{ Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/TestDB); if (ds != null) { Connection conn = ds.getConnection(); if(conn != null) { foo = Got Connection +conn.toString(); Statement stmt = conn.createStatement(); ResultSet rst = stmt.executeQuery(select id, foo, bar from testdata); if(rst.next()) { foo=rst.getString(2); bar=rst.getInt(3); } conn.close(); } } }catch(Exception e) { e.printStackTrace(); } That's all folks.Hope this is of use to you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[Newbie]: Problem getting started with Tomcat
Hi all! I'm having some problems getting Tomcat up and running correctly. The problem is the following: When running startup.bat (I'm using a WinXP box, the IBM JVM and the latest Apache) I get the Message: -- snip -- Starting service Tomcat-Standalone Apache Tomcat/4.0.4-b3 Error unable to create jar cache in /tmp directory : java.util.zip.ZipException: error in opening zip file Error unable to create jar cache in /tmp directory : java.util.zip.ZipException: error in opening zip file Starting service Tomcat-Apache Apache Tomcat/4.0.4-b3 -- snip -- When I want to start the Tomcat service it is started and immediately halted. When manually starting Tomcat seems to be working since I'm getting the Tomcat page when opening http://localhost:8080/. What I tried so far was creating a /tmp folder in %catalina_home% (there's a /temp folder there), and I tried setting the system variable catalina_home to my install path. (I even tried setting the catalina_tmp variable, no effect). Anyway, would greatly appreciate any help I could get! TIA Holger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jsp:include page=%=page_name_string_variable% / fails!
Help. In Tomcat 4.0.3 The statement like this: %@ include file=rmenu.html % works, but jsp:include page=%=page_name_string_variable% / does not. Any idea what's wrong ? The statement seem to comply with the JSP spec (JSP 1.1 ?) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection Pooling Solution
See... http://marc.theaimsgroup.com/?l=tomcat-userm=102230335008606w=2 and http://marc.theaimsgroup.com/?l=tomcat-userm=102230398708809w=2 which both reference... http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 it provides a pretty definitive and working solution for using DBCP Jake At 11:38 AM 5/26/2002 +0100, you wrote: You probably only downloaded the source, try a nightly build http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-dbcp/ And could you keep your mails to the list instead of direct? That way (a) someone else might answer first and (b) the answer will end up in the mail archives. Thanks Les -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 18:37 To: [EMAIL PROTECTED] Subject: Re: Connection Pooling Solution Thanks a million Les, This is very helpful. Quick question: I didn't see a jar in th DBCP nightly build after I downloaded it, how do you build this thing? Thanks again, Rick - Original Message - Hi all, Having felt the pain in getting connection pooling to work with TC 4.0.3 I've knocked up a simple howto. This is for TC 4.0.3 JDK 1.4, mySQL 4.0 Alpha so YMMV. Enjoy, Les I Downloaded: Tomcat 4.0.3 LE JDK 1.4 Build mySQL4.0.1 alpha mm.mysql 2.0.14 Jakarta-Commons projects DBCP Nightly Build 20020523 collections 2.0 pool1.0 Install mm.mysql, DBCP, collections and pool jars into CATALINA_HOME/common/lib In mySQL, I created a simple DB call javatest with a single table (testdata) and a new user (javauser) with the password javadude. I created a new Context for my test web app, here's the full server.xml entry: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue3/value/parameter parameternamemaxWait/namevalue100/value/parameter parameternameusername/namevaluejavauser/value/parameter parameternamepassword/namevaluejavadude/value/parameter parameter namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/namevaluejdbc:mysql://localhost:3306/javatest/value /parameter /ResourceParams /Context And of course, you'll need this in your web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionmySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And a snippet of Java to use this:- try{ Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/TestDB); if (ds != null) { Connection conn = ds.getConnection(); if(conn != null) { foo = Got Connection +conn.toString(); Statement stmt = conn.createStatement(); ResultSet rst = stmt.executeQuery(select id, foo, bar from testdata); if(rst.next()) { foo=rst.getString(2); bar=rst.getInt(3); } conn.close(); } } }catch(Exception e) { e.printStackTrace(); } That's all folks.Hope this is of use to you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
web.xml
Hi could someone briefly explain to me how the web.xml parsing is done. i am particularly interested in servlet and its mapping elements Also how are they stored and how are the objects generated out of those. Is it all reflection ??? deneb __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how does tomcat store session objects?
Phillip Morelock wrote: On the TC 3 documentation page there is an excellent tomcat internals documentbut maybe you already saw that? I myself am a big TC 3 user as well, most of my stuff still runs on that. fillup On 5/26/02 4:11 AM, jfc100 [EMAIL PROTECTED] wrote: Phillip Morelock wrote: I just quickly checked the site and there are also a couple of tomcat internals articles and the full javadoc for Tomcat 4 is already posted there as well. /f/ -- Have you built the Tomcat source javadoc tree? Maybe you don't want to wade knee-deep in source...understandable, I guess. But at least build yourself the javadoc from the sources and read that stuff. Also see the high-level architecture image (or maybe pdf?) on the jakarta site. fillup Can someone tell me how tomcat stores session objects or at least where I could find out this info without looking at the src? without looking at the source? why not? it's Free, and it's the most authoritative answer you can get. Hi, Maybe I just feel like getting someone else's opinion. Because, where reading the src is excellent excercise, you may not find what the general policies are regarding any particular feature. What you will get is a precise picture of what the product does at that specific point in time(or for that specific version). I am trying to establish the broad policies of a servlet engine implementation - the reference implementation. If one was going to produce a document which introduced the product's features I would expect to find this kind of information in it. So if the servlet spec is a bit vague perhaps the document might mention a few implementation details. Not an all-out volume of commentry - just the general approach taken. Seeing as tomcat has undergone a fair bit of development and has been subjected to some structural changes between recent releases(i.e. 3.x vs 4.0), I thought my first port of call might be to find a long suffering fellow tomcat-user who may have passed on a few helpful hints or his/her take on the big picture (or part thereof, even) - just because he can. Can someone point me to a reference / tech article or discussion? Does anyone know whether or not the way the session management is handled by tomcat has changed in any major way? Are there any caveats to accessing session objects from multiple simultaneous requests? The way this is implementated in the reference implementation (between specs) I would have thought would be documented somewhere other than in the src code. Regards Joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Thanks for that, Phillip. I have downloaded the src-dist for both 3 and 4 versions but have not yet genned the javadoc - I'll do that when I've looked at the catalina docs. I was hoping there may be docs prior to tc4 (we are currently on 3.3) but that is a big help nevertheless. I guess its likely I'll find out soon the extent of the rewrite. Cheers Joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] yes I briefly looked at it but didn't on the initial parse find anything on session management. From what I can gather, there is no synchronization provided by tomcat when it comes to accessing sessions or session contents. Maybe accessing sessions is a bit of a red herring since we are talking about concurrent access within a single session. Whichever data structure tc uses for storing the session objects (or facades) would probably answer that one. Hastable is synced while HashMap anf the others are not. thanks for your input fillup! joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.0.3 an Apache 2.0 Warp
Ekkehard Gentz wrote: hi, who can tell me, how to configure the connection between apache 2.0 an Apache 4.0.3 using the warp connector the tomcat doc tells me something about the warp connector, but I think thats not all we want to build an environment with Tomcat 4.0.3 with one webapp about 500 users running this webapp (JSP-pages with OODB database FastObjects) we want to test if using the apache to serve all the gifs, images, pdfs, static html-files, is faster then tomcats built-in http Then you donæt want WARP, at this time. WARP, realised through mod_webapp for Apache, doesn't support separating static and dynamic content of a web application context. That was supported in mod_jk. You migh want to try building mod_jk2 for Apache2. One word of caution, use the latest Apache release, 2.0.36. I couldn't get mod_webapp to work on 2.0.35, some threading issues. Nix. thanks for any help -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how does tomcat store session objects?
All I really meant about getting started with the docs, etc., is that it might make any source-wading easier. When I first looked at Tomcat source I was quite lost, but when I went through all of the available architecture stuff, I was then able to very easily drill into the source and find answers to just exactly the type of question you're asking (is it a hash map or a hashtable, or some other type of data structure, etc., Oh, THAT's what they mean by interceptor...). As a side note, I have always believed (from available literature) that most web-app environments (java, asp, php, or otherwise) provide no synchronization/protection of any kind for global object scopes (session, application, etc.), and that it is assumed that you treat these entities as entirely thread-unsafe, unless you serialize your own behavior. Of course, I could be wrong, but that's the impression I have always gotten across all the environments I've worked in (which isn't everything under the sun, but it's plenty of stuff). That's also why it's generally a good idea to absolutely minimize the amount of stuff jammed into a session or application scope...gives you less undefined behavior to debug. Sounds like you are already familiar with all this, though. cheers and good luck fillup On 5/26/02 1:23 PM, jfc100 [EMAIL PROTECTED] wrote: Phillip Morelock wrote: On the TC 3 documentation page there is an excellent tomcat internals documentbut maybe you already saw that? I myself am a big TC 3 user as well, most of my stuff still runs on that. fillup On 5/26/02 4:11 AM, jfc100 [EMAIL PROTECTED] wrote: Phillip Morelock wrote: I just quickly checked the site and there are also a couple of tomcat internals articles and the full javadoc for Tomcat 4 is already posted there as well. /f/ -- Have you built the Tomcat source javadoc tree? Maybe you don't want to wade knee-deep in source...understandable, I guess. But at least build yourself the javadoc from the sources and read that stuff. Also see the high-level architecture image (or maybe pdf?) on the jakarta site. fillup Can someone tell me how tomcat stores session objects or at least where I could find out this info without looking at the src? without looking at the source? why not? it's Free, and it's the most authoritative answer you can get. Hi, Maybe I just feel like getting someone else's opinion. Because, where reading the src is excellent excercise, you may not find what the general policies are regarding any particular feature. What you will get is a precise picture of what the product does at that specific point in time(or for that specific version). I am trying to establish the broad policies of a servlet engine implementation - the reference implementation. If one was going to produce a document which introduced the product's features I would expect to find this kind of information in it. So if the servlet spec is a bit vague perhaps the document might mention a few implementation details. Not an all-out volume of commentry - just the general approach taken. Seeing as tomcat has undergone a fair bit of development and has been subjected to some structural changes between recent releases(i.e. 3.x vs 4.0), I thought my first port of call might be to find a long suffering fellow tomcat-user who may have passed on a few helpful hints or his/her take on the big picture (or part thereof, even) - just because he can. Can someone point me to a reference / tech article or discussion? Does anyone know whether or not the way the session management is handled by tomcat has changed in any major way? Are there any caveats to accessing session objects from multiple simultaneous requests? The way this is implementated in the reference implementation (between specs) I would have thought would be documented somewhere other than in the src code. Regards Joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Thanks for that, Phillip. I have downloaded the src-dist for both 3 and 4 versions but have not yet genned the javadoc - I'll do that when I've looked at the catalina docs. I was hoping there may be docs prior to tc4 (we are currently on 3.3) but that is a big help nevertheless. I guess its likely I'll find out soon the extent of the rewrite. Cheers Joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] yes I briefly looked at it but didn't on the initial parse find anything on session management. From what I can gather, there is no synchronization provided by tomcat when it comes to accessing sessions or session contents. Maybe accessing sessions is a bit of a red herring since we are talking about concurrent
Re: jsp:include page=%=page_name_string_variable% / fails!
From my experience (not looking at the spec): When you use the jsp:include tag, the page you include must be a real jsp page. That means that the file name must end with .jsp and the page must begin with a page directive of java as the page language (though I believe that the declaration is officially optional, but recommended). The include directive will take *anything* and insert it into the source before compiling. Good luck, Eric Everman At 10:19 AM 5/26/2002, you wrote: Help. In Tomcat 4.0.3 The statement like this: %@ include file=rmenu.html % works, but jsp:include page=%=page_name_string_variable% / does not. Any idea what's wrong ? The statement seem to comply with the JSP spec (JSP 1.1 ?) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: web.xml
The web.xml file is very completely documented in the Sevlet spec - check it out at www.java.sun.com. Also, I'd recommend O'Reilly's _Java Servlet Programming_ which should explain everything you need to know. No reflection involved, Eric Everman At 01:11 PM 5/26/2002, you wrote: Hi could someone briefly explain to me how the web.xml parsing is done. i am particularly interested in servlet and its mapping elements Also how are they stored and how are the objects generated out of those. Is it all reflection ??? deneb __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
wrong error msg when tomcat can't find filter
in my web.xml file for my webapp, the fully-qualified classname for a filter that i'm using was mispelled and unable to be loaded. however, when starting tomcat, tomcat said that it could find another (unrelated) .jar in WEB-INF/lib. wondering if this is a bug or other reason why tomcat didn't say, can't find filter filter-class? thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
wrong error msg when tomcat can't find filter (2)
forgot to mention that i'm using tomcat 404b1. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_webapp segmentation fault
Hello, I'm attempting to set up mod_webapp with Tomcat 4.0.3, but it segfaults. At least, I'm getting notifications of childern segfaulting in the error log, the webapp keeps restarting based on the initialization output, and submitting a request to Apache that is handled through the webapp yields a pre-mature disconnect. I'm assuming it is segfaulting when attempting to serv a request. The question is why. The only misconfiguration I can think of is that I have not defined any application by name in the server.xml configuration file. I've added a directory to webapps/ and specified the name of that directory as the application name in httpd.conf. Besides the load/addmodule stuff, this is that's in httpd.conf: WebAppConnection myWarp warp localhost:8003 WebAppDeploy myApp myWarp / Tomcat is configured to listen to 8003 and I've verified it does (connecting with telnet yields junk - I'm assuming that is the Warp protocol). But again, I have done nothing to define any application called myApp besides creating the directory. I'm not sure if this is enough. But even if it isn't, I doubt a segmentation fault is the intended result. The system is a Debian unstable:ish with Apache 1.3; Tomcat 4.0.3. I can provide any other info that may be needed upon request. As for the apache error log, firstly they are flooded with: JFC: wam_match request 0001 When making the first request, I get: [Sun May 26 22:19:32 2002] [notice] child pid 13620 exit signal Segmentation fault (11) [Sun May 26 22:19:32 2002] [notice] child pid 13606 exit signal Segmentation fault (11) [Sun May 26 22:19:32 2002] [notice] child pid 13605 exit signal Segmentation fault (11) [Sun May 26 22:19:32 2002] [notice] child pid 13604 exit signal Segmentation fault (11) And then on a subsequent request mod_webapp seems to restart: *a bunch of benign init data* [Sun May 26 22:19:32 2002] 13689 (pr_warp.c:85) WARP provider started [Sun May 26 22:19:32 2002] 13689 (wa_main.c:111) WebApp Library started Any ideas? Thanks! -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller [EMAIL PROTECTED]' Key retrival: Send an E-Mail to [EMAIL PROTECTED] E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how does tomcat store session objects?
Thanks! joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat newbie: multiuser installation
Hello, I have asked posted question before but got no responses so I will try this again: I have installed Tomcat 4.0.3 on Red Hat Linux 7.3 with Sun JDK 1.4 and J2EE 1.3.1 and everything runs smoothly but every time I recompile a servlet placed under the /usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/WEB-INF/classes/ directory I have to restart the Tomcat server as root in order for the changes to take effect. I need to set up Tomcat in such a way that each user can restart the server since no user is supposed to know the root passwod. In addition, each user should be able to keep their own servlets under their ~/public_html directory since each user can only write under ~ and /tmp. Also, they should able to have a URL involving ~username point to their servlets. All I am asking is, how do I configure Tomcat for use by multiple nonpriviledged servlet developers on a multiuser Unix like system? Thanks, Neil -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection Pooling Solution
What do you guys think of DBCP? Any specific comments on performance or functionality? Do you think it's ready for a production project? Should I use it over DbConnectionBroker (obviously not a JNDI solution, but it works pretty well). I'd love to hear a review from someone who's been using DBCP. Cindy On Sun, 26 May 2002, Jacob Kjome wrote: See... http://marc.theaimsgroup.com/?l=tomcat-userm=102230335008606w=2 and http://marc.theaimsgroup.com/?l=tomcat-userm=102230398708809w=2 which both reference... http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 it provides a pretty definitive and working solution for using DBCP Jake At 11:38 AM 5/26/2002 +0100, you wrote: You probably only downloaded the source, try a nightly build http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-dbcp/ And could you keep your mails to the list instead of direct? That way (a) someone else might answer first and (b) the answer will end up in the mail archives. Thanks Les -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 18:37 To: [EMAIL PROTECTED] Subject: Re: Connection Pooling Solution Thanks a million Les, This is very helpful. Quick question: I didn't see a jar in th DBCP nightly build after I downloaded it, how do you build this thing? Thanks again, Rick - Original Message - Hi all, Having felt the pain in getting connection pooling to work with TC 4.0.3 I've knocked up a simple howto. This is for TC 4.0.3 JDK 1.4, mySQL 4.0 Alpha so YMMV. Enjoy, Les I Downloaded: Tomcat 4.0.3 LE JDK 1.4 Build mySQL4.0.1 alpha mm.mysql 2.0.14 Jakarta-Commons projects DBCP Nightly Build 20020523 collections 2.0 pool1.0 Install mm.mysql, DBCP, collections and pool jars into CATALINA_HOME/common/lib In mySQL, I created a simple DB call javatest with a single table (testdata) and a new user (javauser) with the password javadude. I created a new Context for my test web app, here's the full server.xml entry: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue3/value/parameter parameternamemaxWait/namevalue100/value/parameter parameternameusername/namevaluejavauser/value/parameter parameternamepassword/namevaluejavadude/value/parameter parameter namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/namevaluejdbc:mysql://localhost:3306/javatest/value /parameter /ResourceParams /Context And of course, you'll need this in your web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionmySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And a snippet of Java to use this:- try{ Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/TestDB); if (ds != null) { Connection conn = ds.getConnection(); if(conn != null) { foo = Got Connection +conn.toString(); Statement stmt = conn.createStatement(); ResultSet rst = stmt.executeQuery(select id, foo, bar from testdata); if(rst.next()) { foo=rst.getString(2); bar=rst.getInt(3); } conn.close(); } } }catch(Exception e) { e.printStackTrace(); } That's all folks.Hope this is of use to you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For
How To: Setting up Virtual Folders
Hi, I want to set up a virtual folder how do I do it? I want it to point to c:\. This is a dev server so there is no need to say you shouldn't do that as it is not connected to the internet, it is just so I can use Tomcat with Namo Web Editor 5. Btw, I'm using Tomcat 4.0.3 Nick ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection Pooling Solution
http://sourceforge.net/project/showfiles.php?group_id=4899 is most popular I think. Cindy Ballreich wrote: What do you guys think of DBCP? Any specific comments on performance or functionality? Do you think it's ready for a production project? Should I use it over DbConnectionBroker (obviously not a JNDI solution, but it works pretty well). I'd love to hear a review from someone who's been using DBCP. Cindy On Sun, 26 May 2002, Jacob Kjome wrote: See... http://marc.theaimsgroup.com/?l=tomcat-userm=102230335008606w=2 and http://marc.theaimsgroup.com/?l=tomcat-userm=102230398708809w=2 which both reference... http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 it provides a pretty definitive and working solution for using DBCP Jake At 11:38 AM 5/26/2002 +0100, you wrote: You probably only downloaded the source, try a nightly build http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-dbcp/ And could you keep your mails to the list instead of direct? That way (a) someone else might answer first and (b) the answer will end up in the mail archives. Thanks Les -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 18:37 To: [EMAIL PROTECTED] Subject: Re: Connection Pooling Solution Thanks a million Les, This is very helpful. Quick question: I didn't see a jar in th DBCP nightly build after I downloaded it, how do you build this thing? Thanks again, Rick - Original Message - Hi all, Having felt the pain in getting connection pooling to work with TC 4.0.3 I've knocked up a simple howto. This is for TC 4.0.3 JDK 1.4, mySQL 4.0 Alpha so YMMV. Enjoy, Les I Downloaded: Tomcat 4.0.3 LE JDK 1.4 Build mySQL4.0.1 alpha mm.mysql 2.0.14 Jakarta-Commons projects DBCP Nightly Build 20020523 collections 2.0 pool1.0 Install mm.mysql, DBCP, collections and pool jars into CATALINA_HOME/common/lib In mySQL, I created a simple DB call javatest with a single table (testdata) and a new user (javauser) with the password javadude. I created a new Context for my test web app, here's the full server.xml entry: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue3/value/parameter parameternamemaxWait/namevalue100/value/parameter parameternameusername/namevaluejavauser/value/parameter parameternamepassword/namevaluejavadude/value/parameter parameter namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/namevaluejdbc:mysql://localhost:3306/javatest/value /parameter /ResourceParams /Context And of course, you'll need this in your web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionmySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And a snippet of Java to use this:- try{ Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/TestDB); if (ds != null) { Connection conn = ds.getConnection(); if(conn != null) { foo = Got Connection +conn.toString(); Statement stmt = conn.createStatement(); ResultSet rst = stmt.executeQuery(select id, foo, bar from testdata); if(rst.next()) { foo=rst.getString(2); bar=rst.getInt(3); } conn.close(); } } }catch(Exception e) { e.printStackTrace(); } That's all folks.Hope this is of use to you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail:
Re: Tomcat newbie: multiuser installation
I don't know about the ~ stuff but I do know the probable reason you have to be root to do what you're doing: To bind to a port 1024 on linux you must be root. If you've bound tomcat to a port lower than 1024, you'll have to be root to start it. As far as being able to load new classes, have you tried using reloadable contexts? search google for tomcat 4 reloadable contexts hit i'm feeling lucky or just search to find more results. cheers fillup On 5/26/02 3:06 PM, Neil Zanella [EMAIL PROTECTED] wrote: Hello, I have asked posted question before but got no responses so I will try this again: I have installed Tomcat 4.0.3 on Red Hat Linux 7.3 with Sun JDK 1.4 and J2EE 1.3.1 and everything runs smoothly but every time I recompile a servlet placed under the /usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/WEB-INF/classes/ directory I have to restart the Tomcat server as root in order for the changes to take effect. I need to set up Tomcat in such a way that each user can restart the server since no user is supposed to know the root passwod. In addition, each user should be able to keep their own servlets under their ~/public_html directory since each user can only write under ~ and /tmp. Also, they should able to have a URL involving ~username point to their servlets. All I am asking is, how do I configure Tomcat for use by multiple nonpriviledged servlet developers on a multiuser Unix like system? Thanks, Neil -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: web.xml
http://edocs.bea.com/wls/docs61/webapp/web_xml.html deneb shah wrote: Hi could someone briefly explain to me how the web.xml parsing is done. i am particularly interested in servlet and its mapping elements Also how are they stored and how are the objects generated out of those. Is it all reflection ??? deneb __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
PROPOSAL for Connectors
hi to all, since there seems to be a fairly wide need for Connectors between tomcat, apache, IIS and other webservers, and since jakarta seems to be unable to provide binary builds of the connectors for their newest products, let's help them out: anybody that's got a WORKING build of mod_jk / mod_jk2 or mod_webapp against apache 2.0.36 on ANY platform, send me an email with that attached. please supply the following information: - server versions (tomcat/apache/...) - operating system - compiler for the native build i'll collect them and hand them to jakarta, to finally get rid of the daily 'how to get tomcat and apache working' thread in this mailing list. thanks to anybody that's helping, thorsten frank http://www.liquidprotocol.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 2nd instance stopping when i log out - on Solaris.
Have you try nohup'ing the process? That might work (don't have a solaris box to test that on). -Tino On Fri, 2002-05-24 at 11:03, chas wrote: I have a second Tomcat instance (v 4.x) running on Solaris. I log in, set the environment variables for CATALINA_HOME, CATALINA_BASE and JAVA_HOME, start the 2nd Tomcat instance and all works well. But when I log out, the 2nd instance stops. :( I've tried running it as a background process () but that didn't work... didn't expect it to either. Anybody heard of this problem ? chas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat refusing jsessionid's
I am appending jsessionid to the url. Abt PoST OR GET I am doing a meta refesh so It is a get I believe. Jiger From: tek1 [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat refusing jsessionid's Date: Sat, 25 May 2002 23:45:12 +0900 MIME-Version: 1.0 Received: from nagoya.betaversion.org ([192.18.49.131]) by hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Sat, 25 May 2002 20:47:45 -0700 Received: (qmail 25827 invoked by uid 97); 26 May 2002 03:47:20 - Received: (qmail 25782 invoked by uid 98); 26 May 2002 03:47:20 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] X-Antivirus: nagoya (v4198 created Apr 24 2002) In-reply-to: [EMAIL PROTECTED] X-Sender: (Unverified) Message-id: [EMAIL PROTECTED] X-Mailer: QUALCOMM Windows Eudora Version 4.3.2-J X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 26 May 2002 03:47:45.0745 (UTC) FILETIME=[18B57410:01C20468] is it possible for a client to append JSESSIONID=sessionId to the url (i.e. http://theurl.com/theservlet?JSESSIONID=A4A0314540585318A4F5E327F1457375) and still use the POST method, or is the usage of GET mandatory? thanks. At 08:54 02/05/26 +0530, you wrote: Philip, I did try using url re-writing using jsessionid'd that is why I wrote this mail. TOmcat seems to use jsessionid in cookies first if not there only then take jsessionid from url. This is my guess coz that is what is happening. Does anyone have any idea how to force using jsessionid in such situations to make user jump between two domains(though they are in reality same machine same tomcat) without his knowlege. -Jiger From: Phillip Morelock [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat refusing jsessionid's Date: Sat, 25 May 2002 09:14:27 -0700 MIME-Version: 1.0 Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id MHotMailBEB9037700594004310EC0123183C6C00; Sat, 25 May 2002 09:14:47 -0700 Received: (qmail 2532 invoked by uid 97); 25 May 2002 16:14:29 - Received: (qmail 2516 invoked by uid 98); 25 May 2002 16:14:29 - From tomcat-user-return-20632-jigerjava Sat, 25 May 2002 09:16:15 -0700 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] X-Antivirus: nagoya (v4198 created Apr 24 2002) User-Agent: Microsoft-Entourage/10.0.0.1309 Message-ID: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N HTTP sessionsbrowsers are configured to associate cookies with domain names. They will not transmit a cookie to a domain other than the originating domain (at least they shouldn't). It has nothing to do with IP address, only domain name. I am not sure I understand your question, but if I am reading it correctly, the only thing you can do is some manual persistence scheme, such as using a database and url rewriting or some similar scheme. does this help? fillup On 5/25/02 3:43 AM, Jiger Java [EMAIL PROTECTED] wrote: Hi, I have checked the archives already but did not come across similar problems so I would like to ask it. My Platform: Tomcat 4.0. JDK 1.4 RHT Linux We have this application hosted on an generic server say http://www.server.com now our reseller's can map their DNS such that www.reseller.com points to www.server.com this will be dynamic( since reseller's will be doing it themselves) so I can't use virtual host feature of tomcat. The idea is that customer of that reseller should not come to know that they are actually buying stuff from us so the customer *always* sees the reseller's website url in his browser. All pages post to http://www.reseller.com/customer/xyz , which would post to us due to DNS mapping. So far so good. But in many critical places like Login, customer signup, we have hardcoded url's to our https:// server (same machine same tomcat) becoz reseller need not buy Secure Certificates. This is the problem. Inspite of my adding jsessionid to all such pages right from posting to https:// to META refreshes, I still can't seem to get back the session. Logically, if I pass in the right sessionid, tomcat should pick up the correct session but it is still picking up pre-login session refusing the new sessionid got in the Authenticationservlet.
how to enable -deprecation for jasper with Apache Tomcat/4.0.4-b3
Hi For jsp page compilation, I'd like to enable Jasper's compile flag '-deprecation'. I suppose that a parameter needs to be added to the $CATALINA_BASE/conf/web.xml file in the beneath block servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueWARNING/param-value /init-param load-on-startup2/load-on-startup /servlet but I couldn't get it running. Many thanks for your help Claudio -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]