Duplicate jsessionid in cookies
Hi, I trace the request between client and server and I see that the jsessionid is set twice. Here is the trace : Request : POST /appli/server/servlet/appliservlet HTTP/1.1 Content-Type: text/xml; charset=ISO-8859-1 connection: keep-alive Cache-Control: no-cache Pragma: no-cache User-Agent: Java/1.5.0_09 Host: neptune:8084 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-Length: 86 Response : HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Connection: Keep-Alive Cache-Control: no-cache Cache-Control: no-store Cache-Control: private Expires: 0 pragma: no-cache HTTP-Version: HTTP/1.1 Set-Cookie: JSESSIONID=6B5EA29A87F6D84C44BA15FCD307BF2E.MIDDLEWARE1; Path=/appli/server Set-Cookie: JSESSIONID=6B5EA29A87F6D84C44BA15FCD307BF2E.MIDDLEWARE1 Content-Type: text/xml;charset=ISO-8859-1 Transfer-Encoding: chunked Date: Tue, 10 Jul 2007 08:37:37 GMT Request : POST /appli/server/servlet/appliservlet HTTP/1.1 Content-Type: text/xml; charset=ISO-8859-1 connection: keep-alive Cache-Control: no-cache Pragma: no-cache User-Agent: Java/1.5.0_09 Host: localhost:8084 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-Length: 76 Cookie: JSESSIONID=6B5EA29A87F6D84C44BA15FCD307BF2E.MIDDLEWARE1; JSESSIONID=6B5EA29A87F6D84C44BA15FCD307BF2E.MIDDLEWARE1 Anybody have ideas about this problem and how to solve it ? CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you CONFIDENTIALITE: Ce courrier electronique (pieces jointes incluses) peut contenir des informations confidentielles, proprietaires et privilegiees, dont la divulgation ou l'utilisation non-autorisee est interdite. Si vous avez recu ce courrier electronique par erreur, nous vous remercions de bien vouloir avertir l'expediteur et detruire ce courrier electronique de votre systeme. Merci.
RE : Problems configuring a Context path=xx using Apache/Tomcat
In tomcat 5.5.17, you can't use path in context (See bug http://issues.apache.org/bugzilla/show_bug.cgi?id=39120) But you can modify the name of your context file : servlets#application.xml, it should work. hugo -Message d'origine- De : René Schade [mailto:[EMAIL PROTECTED] Envoyé : mardi 24 octobre 2006 10:18 À : users@tomcat.apache.org Objet : Problems configuring a Context path=xx using Apache/Tomcat Hi List, I'm running Apache 2.0, Tomcat 5.5.17, jdk 1.5 I'm upgrading from Apache 1.3 Tomcat 3.* jdk 1.4 In my Apache log file I have the following: JkMount /manager* foo JkMount /servlets/* foo The manager application works fine, when typing the URL http://website/manager/html Everything is ok, the manager application is launched. Now I'm trying to install an application on the path /servlets/myapplication. The Context file looks like this: Context reloadable=true path=/servlets/myapplication/ docBase=${catalina.home}/home/schade/myapplication/ debug=5 allowoverride=true Valve className=org.apache.catalina.valves.AccessLogValve prefix=kvisremote_by_schade. suffix=.txt pattern=common/ /Context Typing a URL like http://website/servlets/myapplication/testfile.html does not trigger this context. I've made a similar Valve for the manager-application, and here every request to the manager Context is logged. Logging the host verifies that requests sent to http://website/servlets/kvisremote are sent to the host, but it does not seam to know which context to forward the request to. I guess it has something to do with the path-attribute. A similar solution worked fine on the old server... I've been struggling with this for a while now, so any kinds of suggestions are appreciated. Regards, René CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you CONFIDENTIALITÉ: Ce courrier électronique (pièces jointes incluses) peut contenir des informations confidentielles, propriétaires et privilégiées, dont la divulgation ou l'utilisation non-autorisée est interdite. Si vous avez reçu ce courrier électronique par erreur, nous vous remercions de bien vouloir avertir l'expéditeur et détruire ce courrier électronique de votre système. Merci. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context file and path
Hi, I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I have some problems in context.xml file. Previous to migration, I had a context path=/myapp/mymodule .../ in a console.xml file (in Catalina/localhost). I reach my page through http://localhost:8080/myapp/mymodule. In 5.5.17, path is not read anymore and I reach my page throuh http://localhost:8080/console/ (console is the name of the context file). Is it possible to have this kind of url : myapp/mymodule ? And how ? Best regards, Hugo CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you CONFIDENTIALITE: Ce courrier electronique (pieces jointes incluses) peut contenir des informations confidentielles, proprietaires et privilegiees, dont la divulgation ou l'utilisation non-autorisee est interdite. Si vous avez recu ce courrier electronique par erreur, nous vous remercions de bien vouloir avertir l'expediteur et detruire ce courrier electronique de votre systeme. Merci. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Context file and path
Thanks for this quick answer. Hugo -Message d'origine- De : Markus Schönhaber [mailto:[EMAIL PROTECTED] Envoyé : vendredi 22 septembre 2006 15:30 À : Tomcat Users List Objet : Re: Context file and path LASSIEGE Hugo wrote: I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I have some problems in context.xml file. Previous to migration, I had a context path=/myapp/mymodule .../ in a console.xml file (in Catalina/localhost). I reach my page through http://localhost:8080/myapp/mymodule. In 5.5.17, path is not read anymore and I reach my page throuh http://localhost:8080/console/ (console is the name of the context file). Is it possible to have this kind of url : myapp/mymodule ? And how ? Yes. Name the context file myapp#mymodule.xml instead of console.xml. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you CONFIDENTIALITÉ: Ce courrier électronique (pièces jointes incluses) peut contenir des informations confidentielles, propriétaires et privilégiées, dont la divulgation ou l'utilisation non-autorisée est interdite. Si vous avez reçu ce courrier électronique par erreur, nous vous remercions de bien vouloir avertir l'expéditeur et détruire ce courrier électronique de votre système. Merci. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[tomcat 5.5] Migrating from tomcat 5.0.x : context file
Hi, I'm currently migrating from tomcat 5.0.x. My old applications works but I still have a problem. In my old context file (mywebapp.xml in Catalina/localhost), I gave a path like this context path=/myapp/module ... But with tomcat 5.5.x, path is ignored and I can access to my app only on http://localhost:8080/mywebapp/ (the name of my xml file) In the documentation : http://tomcat.apache.org/tomcat-5.5-doc/config/context.html, it is said that : The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered from the filenames used for either the .xml context file or the docBase. I'm not sure to understand. It is not possible to precise the path of my application in tomcat 5.5.x except if I define my context statically in server.xml ? (Although it is not recommended to do that : http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#A%20word%20o n%20Contexts) Any idea to define dynamically the path of my app ? Best regards Hugo CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you CONFIDENTIALITE: Ce courrier electronique (pieces jointes incluses) peut contenir des informations confidentielles, proprietaires et privilegiees, dont la divulgation ou l'utilisation non-autorisee est interdite. Si vous avez recu ce courrier electronique par erreur, nous vous remercions de bien vouloir avertir l'expediteur et detruire ce courrier electronique de votre systeme. Merci.