From SSL back to unsecured channel

2006-08-19 Thread WU T.L.
Hi, I've set up a SSL on the page /secure/login.jsp It works fine. However, the links after this page are all SSL-enabled Can I just make /secure/login.jsp SSL-enabled while others aren't. The setting in web.xml (extract) is security-constraint display-nameteacherPassW/display-name

Parsing keyvalue pairs in POST data

2006-08-19 Thread Santosh Puranshettiwar
Hello, How does tomcat parse the key-value pairs sent in a Http Request as POST data? I am unable to read the parameters using the HttpServletRequest.getParameter() method. Parameters are being sent by a J2ME application. Tell me if more details are required. Thanks alot. Santosh.

Re: Parsing keyvalue pairs in POST data

2006-08-19 Thread Santosh Puranshettiwar
Managed to digg it. Had to set Content-Type=application/x-www-form-urlencoded Santosh Puranshettiwar wrote: Hello, How does tomcat parse the key-value pairs sent in a Http Request as POST data? I am unable to read the parameters using the HttpServletRequest.getParameter() method. Parameters

Re: Parsing keyvalue pairs in POST data

2006-08-19 Thread Santosh Puranshettiwar
Well, there's another problem. HttpServletRequest.getParameter() is unable to parse the key-value pairs in the http message body if the the total content-length is greater that 2016. Any ideas? Please. Santosh. Santosh Puranshettiwar wrote: Managed to digg it. Had to set

Re: Creating /WEB-INF folders for virtualhosts

2006-08-19 Thread Edoardo Causarano
The host appbase attribute specifies the directory where the wars (exploded or left intact) are stored and is not a documentroot in the apache httpd sense. The latter would be the ROOT.war webapp to which root relative paths unmatched by any other war prefix resolve. Distribution of object

Re: UndeployTask did not delete webapps directory

2006-08-19 Thread Veit Guna
Hi. I guess you're using Tomcat under Windows. There's a problem with freeing resoures unter Windows. Add antiResourceLocking=true to your global Context.xml like: Context reloadable=true antiResourceLocking=true That worked for me. regards Veit wolverine my schrieb: Hi! What could be

Re: Upgrade problem (useBean)

2006-08-19 Thread charly
Is this issue still current? If yes I have seen more emails on the list about such problems and it was because a configuration error: In TC 5.5.17 you will have troubles when host appBase=path .. and context docBase=path .. having identical paths or the context docBase attribute ist empty:

Re: Parsing keyvalue pairs in POST data

2006-08-19 Thread Martin Gainty
I assume you are front-ending with Apache..? I would use HTTP 1.1 instead of (HTTP 1.0 where length must be specified beforehand) Here are some keyword values in httpd.conf that will help you overcome your current limitations You can adjust the limit on the size of any field via

maxPostSize in Tomcat

2006-08-19 Thread Krish B
hi, I am trying to use maxPostSize of tomcat in 5.5.15. I edited the server.xml and added maxPostSize = 4MB Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443

Re: Tomcat BUILD FAILED, error=2

2006-08-19 Thread Mark Thomas
Martin Gainty wrote: The message was truncated ..What is the root cause ? error=2 is usually because an executable specified in an exec can not be found. In this case it was svn as was clear from further down the output. quote BUILD FAILED C:\Program Files\Apache Software

Re: Parsing keyvalue pairs in POST data

2006-08-19 Thread Mark Thomas
Santosh Puranshettiwar wrote: Well, there's another problem. HttpServletRequest.getParameter() is unable to parse the key-value pairs in the http message body if the the total content-length is greater that 2016. Any ideas? Please. Santosh. maxPostSize on the connector? Mark

Re: maxPostSize in Tomcat

2006-08-19 Thread Mark Thomas
Krish B wrote: hi, I am trying to use maxPostSize of tomcat in 5.5.15. I edited the server.xml and added maxPostSize = 4MB Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false

Re: maxPostSize in Tomcat

2006-08-19 Thread Krish B
hi Mark, Yes. I used apache httpclient to POST a large file to a servlet in Tomcat. I expected tomcat to throw a error as size was cet to 4 MB. Any thoughts where i am wrong... Regards KK On 8/19/06, Mark Thomas [EMAIL PROTECTED] wrote: Krish B wrote: hi, I am trying to use maxPostSize

Re: maxPostSize in Tomcat

2006-08-19 Thread Krish B
Hi Mark, I restarted Tomcat after making the change i am using port 8080. Regards KK On 8/19/06, Krish B [EMAIL PROTECTED] wrote: hi Mark, Yes. I used apache httpclient to POST a large file to a servlet in Tomcat. I expected tomcat to throw a error as size was cet to 4 MB. Any thoughts

Re: maxPostSize in Tomcat

2006-08-19 Thread Krish B
Hi, I tried doing the same using a FORM input input type=file name=file-upload This also works and i dont get an error for large file sizes more than the limit. Regards KK On 8/19/06, Krish B [EMAIL PROTECTED] wrote: Hi Mark, I restarted Tomcat after making the change i am using port

Apache module?

2006-08-19 Thread Oliver Block
Hi, I am not really familiar with tomcat. I understand tomcat as server for JSP and servlets. Or in other words, a server that is capable to host web applications. I also know, that tomcat colaborates with apache. Now I am wondering, if there is also an apache module which has the

What is mcastBindAddr for??

2006-08-19 Thread Patrick Wang
Hi, I am currently setting up 2 linux server and enabled the clustering and multicast for these 2 servers. I verified using the cat /proc/net/igmp command and found out once I started the tomcat, machine will subscribe to the 228.0.0.4 group, multicast address. I also used the ethereal

Not getting error for posting large data

2006-08-19 Thread Krish B
hi, I am not getting a error when i POST large amounts of data in tomcat 5.5.15 I started the server after changing server.xml Connector port=8080 maxPostSize=1 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false

Valve Connectors Request-Objects

2006-08-19 Thread Alexander Lazic
Hi, today i have try to get some Infos from tomcat 4.1.x similar like --- 5.5.x =container/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/StatusTransformer.java . . . mBeanServer.getAttribute(grpName, requestCount)); . . --- My main target is as follow: currentUsersSessions

Re: maxPostSize in Tomcat

2006-08-19 Thread Mark Thomas
Krish B wrote: Hi, I tried doing the same using a FORM input input type=file name=file-upload This also works and i dont get an error for large file sizes more than the limit. Regards KK On 8/19/06, Krish B [EMAIL PROTECTED] wrote: Hi Mark, I restarted Tomcat after making

JkMount and Context path

2006-08-19 Thread Evan J
I've a question regarding the way jk_mod relays requests to Tomcat servlets. If I have set my virtualhost to supposedly send requests with such JkMount directive URL prefix, /serve/* and /serve/*.jsp, then I take it, the only way for jk_mod relays requests for this virtualhost to Tomcat web

Re: JkMount and Context path

2006-08-19 Thread Martin Gainty
/*httpd.conf JkMount maps all JSP (*.jsp) to ajp13 */ e.g. httpd.conf JkMount /*.jsp ajp13 /*map ajp13 to your webapp docRoot /var/tomcat4/webapps/domain1 VirtualHost * ServerName domain1.com ServerAlias www.domain1.com DocumentRoot /var/tomcat4/webapps/domain1 JkMount /* ajp13

do I need Apache httpd?

2006-08-19 Thread Nolan Johnson
I've got a webapp that's entirely dynamic. That is, all of the content is produced by servlets through Tomcat. The only static content for the site is a .css file and a small error page. Is there any reason for me to have Apache httpd listening on port 80 and have that connected to Tomcat

Re: do I need Apache httpd?

2006-08-19 Thread Steven Bell
The answer mainly depends on your plans for the future. If the machine currently serving up your web app is not going to do anything else web related (requiring a web server such as Apache) then you are probably ok with shutting down Apache and changing Tomcat over to port 80. However, if you

Re: Writing Web.xml Context.xml at Runtime

2006-08-19 Thread Renaud Waldura
I believe this is just what the Administration webapp does. Available at /admin on your default Tomcat install. - Original Message - From: Feris Thia [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, August 18, 2006 9:56 PM Subject: Writing Web.xml