Re: Enabling HTTP Put
Hi, I was wondering if there was a way to enable HTTP Put via the API's. I've tried using ServletContext.setAttribute(readonly, false) without any success. -- Stacy
unable to start Tomcat in Windows 7 prof - 64 bit
Hi, I am unable to start Tomcat in Windows 7 professional edition - 64 bit. I recently installed JDK, Tomcat and configured it to the following:- JDK installation dir - C:\Installs\Java\jdk1.6.0_18 JRE installation dir - C:\Installs\Java\jre6 Tomcat installation dir - C:\Installs\Apache Software Foundation\Tomcat 6.0 Tomcat version - Apache Tomcat 6.0.26 ENVIRONMENT VARIABLES - CATALINA_HOME - C:\Installs\Apache Software Foundation\Tomcat 6.0 JAVA_HOME- C:\Installs\Java\jdk1.6.0_18\ JRE_HOME - C:\Installs\Java\jre6\ path %systemroot%\system32; %systemroot%; %systemroot%\system32\wbem; %systemroot%\system32\windowspowershell\v1.0\; c:\program files\dell\dell wireless wlan card; c:\program files\widcomm\bluetooth software\; c:\program files\widcomm\bluetooth software\syswow64; c:\program files (x86)\common files\roxio shared\dllshared\; %java_home%\bin; %catalina_home%\bin; c:\program files (x86)\ibm\gsk8\lib; C:\Installs\IBM\SQLLIB\BIN; C:\Installs\IBM\SQLLIB\FUNCTION; C:\Installs\IBM\SQLLIB\SAMPLES\REPL classpath - C:\Installs\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar; C:\Installs\Apache Software Foundation\Tomcat 6.0\lib\jsp-api.jar; C:\Installs\Apache Software Foundation\Tomcat 6.0\lib\el-api.jar; .; C:\Installs\IBM\SQLLIB\java\db2java.zip; C:\Installs\IBM\SQLLIB\java\db2jcc.jar; C:\Installs\IBM\SQLLIB\java\sqlj.zip; C:\Installs\IBM\SQLLIB\java\db2jcc_license_cu.jar; C:\Installs\IBM\SQLLIB\bin; C:\Installs\IBM\SQLLIB\java\common.jar - following below are the logs obtained when i try to start Tomcat:- jakarta_service_*.log - [2010-04-02 12:55:41] [info] Commons Daemon procrun (1.0.2.0) started [2010-04-02 12:55:41] [info] Running Service... [2010-04-02 12:55:41] [info] Starting service... [2010-04-02 12:55:41] [206 javajni.c] [error] %1 is not a valid Win32 application. [2010-04-02 12:55:41] [985 prunsrv.c] [error] Failed creating java C:\Installs\Java\jdk1.6.0_18\jre\bin\server\jvm.dll [2010-04-02 12:55:41] [1280 prunsrv.c] [error] ServiceStart returned 1 [2010-04-02 12:55:41] [info] Run service finished. [2010-04-02 12:55:41] [info] Commons Daemon procrun finished. stderr_*.log and stdout_*.log contains no information - Further, i opened the OS services window and tried to start the Tomcat service It reported with error message which i've attached as an attachment. Please help me to resolve this,, regards karthick _ Bollywood This Decade http://entertainment.in.msn.com/bollywoodthisdecade/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Enabling HTTP Put
Stacy Mobley wrote: Hi, I was wondering if there was a way to enable HTTP Put via the API's. What makes you think it is not enabled ? (at least, presuming you are talking about Tomcat) I've tried using ServletContext.setAttribute(readonly, false) without any success. What would that have to do with enabling HTTP PUT requests ? Tomcat itself does not forbid or disable any type of valid HTTP request, PUT included. Now, it is your responsibility to provide an application, within Tomcat, which can handle PUT requests. For an example, look at the DAV application usually distributed along with Tomcat. That one allows appropriate clients to upload files to a server, and this works among other things via PUT requests. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unable to start Tomcat in Windows 7 prof - 64 bit
Karthick Ragunath wrote: Hi, I am unable to start Tomcat in Windows 7 professional edition - 64 bit. http://www.lmgtfy.com/?q=tomcat+%2Bwindows+%2B64bit which (thanks to TGSMITS) is back to its usual self. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Would like to extract every request to servelt except index.html
I would like every request to be redirected to a central servlet EXCEPT if the request is simply index.html, but at the moment everything gets redirected to the servlet, how could I do what I want This is extract from my web.xml servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list thanks Paul - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Would like to extract every request to servelt except index.html
On 02/04/2010 09:51, Paul Taylor wrote: I would like every request to be redirected to a central servlet EXCEPT if the request is simply index.html, but at the moment everything gets redirected to the servlet, how could I do what I want This is extract from my web.xml servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping The above makes your servlet the default servlet, so it'll handle all requests that aren't handled by more specific url-patterns. The welcome files won't be processed. You could employ a Servlet Filter which analyses the requestURI and forwards to your servlet, but that calls chain.doFilter(hreq, hres) otherwise. p welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list thanks Paul - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Would like to extract every request to servelt except index.html
Pid wrote: On 02/04/2010 09:51, Paul Taylor wrote: I would like every request to be redirected to a central servlet EXCEPT if the request is simply index.html, but at the moment everything gets redirected to the servlet, how could I do what I want This is extract from my web.xml servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping The above makes your servlet the default servlet, so it'll handle all requests that aren't handled by more specific url-patterns. The welcome files won't be processed. You could employ a Servlet Filter which analyses the requestURI and forwards to your servlet, but that calls chain.doFilter(hreq, hres) otherwise. Hmm, I know why it doesnt work but i was hoping I could add something to this file so that the servlet doesnt pickup index.html, is that not possible. Paul - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Would like to extract every request to servelt except index.html
Paul Taylor wrote: Pid wrote: On 02/04/2010 09:51, Paul Taylor wrote: I would like every request to be redirected to a central servlet EXCEPT if the request is simply index.html, but at the moment everything gets redirected to the servlet, how could I do what I want This is extract from my web.xml servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping The above makes your servlet the default servlet, so it'll handle all requests that aren't handled by more specific url-patterns. The welcome files won't be processed. You could employ a Servlet Filter which analyses the requestURI and forwards to your servlet, but that calls chain.doFilter(hreq, hres) otherwise. Hmm, I know why it doesnt work but i was hoping I could add something to this file so that the servlet doesnt pickup index.html, is that not possible. If you want to avoid any specific programming in your servlet, then have a look at urlrewritefilter, at www.tuckey.org. It is a big hammer to hit a small nail, but it may come handy if your requirements become more elaborate as time goes on. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where is org.apache.catalina.startup.Tomcat in the 6.0.x branch??
Thank you Mark, then I'll wait to tomcat 7 to upgrade my app, right now my current version works pretty fine and I'm not in a hurry. On Fri, Apr 2, 2010 at 12:18 AM, Mark Thomas ma...@apache.org wrote: On 01/04/2010 18:39, Caldarale, Charles R wrote: From: David Calavera [mailto:david.calav...@gmail.com] Subject: Where is org.apache.catalina.startup.Tomcat in the 6.0.x branch?? I've been using a custom version of Tomcat 6.0.18 that included that class but I can't find any extra jar that contained it for 6.0.x version and I'd like to migrate to 6.0.26 and continuing using it. Let's look at the comments in the source: * Minimal tomcat starter for embedding/unit tests. * * This class provides a main() and few simple CLI arguments, * see setters for doc. It can be used for simple tests and * demo. Doesn't look like it will ever be part of any real Tomcat distribution; trunk appears to be the only place to get it. It will be included in Tomcat 7. There are no plans to back-port it to Tomcat 6. From what I recall from doing this for an internal Tomcat fork at work, it required some API changes that would be a no-no for 6.0.x. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- David Calavera http://www.thinkincode.net
Re: Would like to extract every request to servelt except index.html
On 02/04/2010 11:09, Paul Taylor wrote: Pid wrote: On 02/04/2010 09:51, Paul Taylor wrote: I would like every request to be redirected to a central servlet EXCEPT if the request is simply index.html, but at the moment everything gets redirected to the servlet, how could I do what I want This is extract from my web.xml servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping The above makes your servlet the default servlet, so it'll handle all requests that aren't handled by more specific url-patterns. The welcome files won't be processed. You could employ a Servlet Filter which analyses the requestURI and forwards to your servlet, but that calls chain.doFilter(hreq, hres) otherwise. Hmm, I know why it doesnt work but i was hoping I could add something to this file so that the servlet doesnt pickup index.html, is that not possible. Have you found any clues in the Servlet Spec, or the Tomcat docs that indicate that it _is_ possible? p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Would like to extract every request to servelt except index.html
Pid wrote: On 02/04/2010 11:09, Paul Taylor wrote: Pid wrote: On 02/04/2010 09:51, Paul Taylor wrote: I would like every request to be redirected to a central servlet EXCEPT if the request is simply index.html, but at the moment everything gets redirected to the servlet, how could I do what I want This is extract from my web.xml servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping The above makes your servlet the default servlet, so it'll handle all requests that aren't handled by more specific url-patterns. The welcome files won't be processed. You could employ a Servlet Filter which analyses the requestURI and forwards to your servlet, but that calls chain.doFilter(hreq, hres) otherwise. Hmm, I know why it doesnt work but i was hoping I could add something to this file so that the servlet doesnt pickup index.html, is that not possible. Have you found any clues in the Servlet Spec, or the Tomcat docs that indicate that it _is_ possible? p No, I try and stay away from config files as much as possible so Ive just let the servlet hande it as follows: //If they have entered nothing, redirect to them a home page (which is on another server, my index.html just contained a redirect) if(request.getParameterMap().size()==0) { response.sendRedirect(HOME_PAGE); return; } The idea is that if they go this server without specifying any of the reuired options they have probably gone to the wrong server so just send them to the correct server Paul - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Enabling HTTP Put
since doPut disallows request processing if readOnly is true as seen here protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (readOnly) { resp.sendError(HttpServletResponse.SC_FORBIDDEN); return; } you will need to implement setting readOnly to 'false' (as specified in Servlet's init-params of web.xml) servlet servlet-nameComminterface2Servlet/servlet-name servlet-classgov.fmcsa.wribosservice.client.CommInterface2Servlet/servlet-class init-param param-namereadonly/param-name param-valuefalse/param-value /init-param /servlet setting at command line as you had suggested would affect ALL servlets (which load from that JVM) Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. From: mo...@adelphia.net To: users@tomcat.apache.org Subject: Re: Enabling HTTP Put Date: Thu, 1 Apr 2010 23:22:32 -0700 Hi, I was wondering if there was a way to enable HTTP Put via the API's. I've tried using ServletContext.setAttribute(readonly, false) without any success. -- Stacy _ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
RE: unable to start Tomcat in Windows 7 prof - 64 bit
From: Karthick Ragunath [mailto:karthick.ragun...@live.com] Subject: unable to start Tomcat in Windows 7 prof - 64 bit classpath Remove the CLASSPATH environment variable; you should never, ever use it, especially not with Tomcat. jakarta_service_*.log - [2010-04-02 12:55:41] [206 javajni.c] [error] %1 is not a valid Win32 application. [2010-04-02 12:55:41] [985 prunsrv.c] [error] Failed creating java C:\Installs\Java\jdk1.6.0_18\jre\bin\server\jvm.dll You likely have a 32-bit version of tomcat6.exe with a 64-bit JVM (or vice versa). It reported with error message which i've attached as an attachment. Attachments are usually stripped out, such as in this case. - 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: Enabling HTTP Put
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: Enabling HTTP Put since doPut disallows request processing if readOnly is true as seen here protected void doPut(HttpServletRequest req, HttpServletResponseresp) throws ServletException, IOException { if (readOnly) { resp.sendError(HttpServletResponse.SC_FORBIDDEN); return; } you will need to implement setting readOnly to 'false' (as specified in Servlet's init-params of web.xml) servlet servlet-nameComminterface2Servlet/servlet-name servlet- classgov.fmcsa.wribosservice.client.CommInterface2Servlet/servlet-class init-param param-namereadonly/param-name param-valuefalse/param-value /init-param /servlet setting at command line as you had suggested would affect ALL servlets (which load from that JVM) Absolutely none of the above is accurate or has any bearing on the OP's somewhat misguided question, which André already answered correctly. I think you forgot this is 2 April - no longer April Fool's day... - 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: unable to start Tomcat in Windows 7 prof - 64 bit
also the dlls located in %JRE_HOME%\bin\server need to be 64bit determine if %JRE_HOME%\bin\server\jvm.dll is a 64bit dll hth Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 2 Apr 2010 09:49:29 +0200 From: a...@ice-sa.com To: users@tomcat.apache.org Subject: Re: unable to start Tomcat in Windows 7 prof - 64 bit Karthick Ragunath wrote: Hi, I am unable to start Tomcat in Windows 7 professional edition - 64 bit. http://www.lmgtfy.com/?q=tomcat+%2Bwindows+%2B64bit which (thanks to TGSMITS) is back to its usual self. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
RE: unable to start Tomcat in Windows 7 prof - 64 bit
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: unable to start Tomcat in Windows 7 prof - 64 bit also the dlls located in %JRE_HOME%\bin\server need to be 64bit No, they don't *need* to be 64-bit; rather, they must match the mode of the tomcat6.exe launcher being used. - 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: Would like to extract every request to servelt except index.html
Paul and Pid i would suggest directing all requests to SearchServerServlet e.g. default servlet url-pattern//url-pattern then the SearchServerServlet will do a request.getRequestURI and then do regex on the Request URI and SearchServerServlet will redirect or forward from there allowing reg expressions in url-pattern is a much needed upgrade request for the next TC version https://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%207 (expect blowback if this feature is not specifically addressed in Servlet 3.0 spec) Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 2 Apr 2010 11:26:36 +0100 From: p...@pidster.com To: paul_t...@fastmail.fm CC: users@tomcat.apache.org Subject: Re: Would like to extract every request to servelt except index.html On 02/04/2010 11:09, Paul Taylor wrote: Pid wrote: On 02/04/2010 09:51, Paul Taylor wrote: I would like every request to be redirected to a central servlet EXCEPT if the request is simply index.html, but at the moment everything gets redirected to the servlet, how could I do what I want This is extract from my web.xml servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping The above makes your servlet the default servlet, so it'll handle all requests that aren't handled by more specific url-patterns. The welcome files won't be processed. You could employ a Servlet Filter which analyses the requestURI and forwards to your servlet, but that calls chain.doFilter(hreq, hres) otherwise. Hmm, I know why it doesnt work but i was hoping I could add something to this file so that the servlet doesnt pickup index.html, is that not possible. Have you found any clues in the Servlet Spec, or the Tomcat docs that indicate that it _is_ possible? p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
Re: Cyclos application install(s)
On 02/04/2010 14:04, Rick Bragg wrote: On Thu, 2010-04-01 at 22:46 +0100, Pid wrote: On 01/04/2010 20:17, Rick Bragg wrote: On Thu, 2010-04-01 at 18:55 +0100, Pid wrote: On 01/04/2010 18:04, Rick Bragg wrote: On Wed, 2010-03-31 at 23:37 +0400, Konstantin Kolinko wrote: 2010/3/31 Rick Braggli...@gmnet.net: What am I missing? Cyclos support forum is here: http://project.cyclos.org/forum/ From Tomcat point of view, there is nothing wrong in what you did. Just speculating here (as I am not a Cyclos user), you might have a) updated not all configuration files, b) screwed when copying a database. I can suggest to start with installing a new copy of cyclos next to the existing one. (Do they support installation with a non-default name?) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks, I do have a posting in that forum as well, but they seem to think it is more of a tomcat problem. I tried to install a new copy along side my existing one, and I get the same problem. The new copy DOES make the new database fine when I restart tomcat, but tomcat dies after that. Can you define dies in slightly more technical terms? What is in the logs? p Hi, Sorry, it seems there are no errors in the logs, but after I copy (cp -Rp ...) then restart it on the command line (/etc/init.d/tomcat6 restart) I see stopping... OK then starting ... OK. I go to visit any site on the system http://xxx.xx:8080/manager for example, and there is no service running on 8080. It just hangs waiting to connect. If I now restart again, it only says starting ... OK not stopping - then starting. It seems that as long as I have a second copy of cyclos in webapps dir, the service running on 8080 is no longer running after any restarts until I remove that directory and restart. All permissions are identical. and the database does get populated correctly. Very Puzzling. You are copying a live application to a location where it will create another live application? Or are you stopping first, then copying, then starting again? What happens if you start up using the scripts in tomcat/bin? What is in actually in catalina.out? (Please include real log data.) Is Tomcat actually running when you have two applications deployed? What is the output of ps -aef | grep tomcat when run after starting tomcat with both apps? p Hi, Thanks so much for all the help! Here is some more info. Tomcat is no longer running after starting with both apps. (ps aux shows no tomcat...) Or java? It seems that the logs just stop whey they get to Initializing Spring root WebApplicationContext for the second app. So it actually kills the whole server? That sound like a pretty epic fail. Here are the logs after starting with both apps: localhost log: Apr 2, 2010 8:36:52 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:54 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Apr 2, 2010 8:37:17 AM org.apache.catalina.core.ApplicationContext log INFO: Farm Stand initialized Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: No Configuration for this context. Initializing. Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: configuring cewolf app.. Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: using storage class de.laures.cewolf.storage.ClusterableSessionStorage Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: using overlibURL /pages/scripts/overlib.js Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: debugging is turned off Apr 2, 2010 8:37:18 AM
Re: Tomcat NIO : CometProcessor
you're wrong, I believe it is chunk-header:blablaCRLF chunk-dataCRLF The spec says chunk = chunk-size [ chunk-extension ] CRLF chunk-data CRLF Hence, the request that was posted here, should have been 16bytes header, not 18 Filip On 04/01/2010 11:23 AM, Michael Wojcik wrote: Filip Hanik - Dev Lists wrote: I just skimmed this through, but from what I remember, the CRLF after /xml should not be counted into your chunk header No, the chunk-size is the entire length of the chunk. Since a chunked content-body can include any sort of data, it wouldn't make sense to exclude trailing whitespace characters - the content might not be of a type where whitespace characters were defined. See RFC 2616 3.6.1: chunk-data = chunk-size(OCTET) There must be exactly as many octets as specified in chunk-size. What I don't see in the trace are the zero-size chunks that terminate the chunked content-bodies. In frame 12, the client closes the connection (sends a FIN); that would appear to be why Tomcat is reporting the client closed the connection. Of course this is only a half-close, and the server *could* still send a response, but RFC 2616 doesn't acknowledge the half-close mechanism in TCP. From 4.4: 5.By the server closing the connection. (Closing the connection cannot be used to indicate the end of a request body, since that would leave no possibility for the server to send back a response.) This is, depending on your viewpoint, an error, oversight, or restriction in HTTP; but in effect it means that if the client closes its end of the conversation after sending a request but before receiving a response, the the server is free to consider the connection closed (even though it isn't) and discard the request. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk behaviour during failure
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 4/1/2010 5:04 PM, Mohit Anchlia wrote: On Thu, Apr 1, 2010 at 11:43 AM, Christopher Schultz ch...@christopherschultz.net wrote: The default is printed in the documentation: http://tomcat.apache.org/connectors-doc/reference/workers.html Sorry but I don't see the option listed for default behaviour when recovery_option is not specified. I do know that I set to 7 so that I get the benefit of bit 1, 2 and 4. The default is 0: no bits set. That would imply that you get the benefits of none of the options. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku2DFwACgkQ9CaO5/Lv0PCklgCaA+b/ywkvxdxyHrNHw/j6/Dh/ fYAAoLcGiNTU3Jk8wIv378ngronAGwuZ =Rdn0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Would like to extract every request to servelt except index.html
On 02/04/2010 14:36, Martin Gainty wrote: Paul and Pid i would suggest directing all requests to SearchServerServlet e.g. default servleturl-pattern//url-pattern It's fairly clear tha... Sorry lost the will to continue. p then the SearchServerServlet will do a request.getRequestURI and then do regex on the Request URI and SearchServerServlet will redirect or forward from there allowing reg expressions in url-pattern is a much needed upgrade request for the next TC version https://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%207 (expect blowback if this feature is not specifically addressed in Servlet 3.0 spec) __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 2 Apr 2010 11:26:36 +0100 From: p...@pidster.com To: paul_t...@fastmail.fm CC: users@tomcat.apache.org Subject: Re: Would like to extract every request to servelt except index.html On 02/04/2010 11:09, Paul Taylor wrote: Pid wrote: On 02/04/2010 09:51, Paul Taylor wrote: I would like every request to be redirected to a central servlet EXCEPT if the request is simply index.html, but at the moment everything gets redirected to the servlet, how could I do what I want This is extract from my web.xml servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping The above makes your servlet the default servlet, so it'll handle all requests that aren't handled by more specific url-patterns. The welcome files won't be processed. You could employ a Servlet Filter which analyses the requestURI and forwards to your servlet, but that calls chain.doFilter(hreq, hres) otherwise. Hmm, I know why it doesnt work but i was hoping I could add something to this file so that the servlet doesnt pickup index.html, is that not possible. Have you found any clues in the Servlet Spec, or the Tomcat docs that indicate that it _is_ possible? p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Cyclos application install(s)
On Fri, 2010-04-02 at 14:52 +0100, Pid wrote: On 02/04/2010 14:04, Rick Bragg wrote: On Thu, 2010-04-01 at 22:46 +0100, Pid wrote: On 01/04/2010 20:17, Rick Bragg wrote: On Thu, 2010-04-01 at 18:55 +0100, Pid wrote: On 01/04/2010 18:04, Rick Bragg wrote: On Wed, 2010-03-31 at 23:37 +0400, Konstantin Kolinko wrote: 2010/3/31 Rick Braggli...@gmnet.net: What am I missing? Cyclos support forum is here: http://project.cyclos.org/forum/ From Tomcat point of view, there is nothing wrong in what you did. Just speculating here (as I am not a Cyclos user), you might have a) updated not all configuration files, b) screwed when copying a database. I can suggest to start with installing a new copy of cyclos next to the existing one. (Do they support installation with a non-default name?) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks, I do have a posting in that forum as well, but they seem to think it is more of a tomcat problem. I tried to install a new copy along side my existing one, and I get the same problem. The new copy DOES make the new database fine when I restart tomcat, but tomcat dies after that. Can you define dies in slightly more technical terms? What is in the logs? p Hi, Sorry, it seems there are no errors in the logs, but after I copy (cp -Rp ...) then restart it on the command line (/etc/init.d/tomcat6 restart) I see stopping... OK then starting ... OK. I go to visit any site on the system http://xxx.xx:8080/manager for example, and there is no service running on 8080. It just hangs waiting to connect. If I now restart again, it only says starting ... OK not stopping - then starting. It seems that as long as I have a second copy of cyclos in webapps dir, the service running on 8080 is no longer running after any restarts until I remove that directory and restart. All permissions are identical. and the database does get populated correctly. Very Puzzling. You are copying a live application to a location where it will create another live application? Or are you stopping first, then copying, then starting again? What happens if you start up using the scripts in tomcat/bin? What is in actually in catalina.out? (Please include real log data.) Is Tomcat actually running when you have two applications deployed? What is the output of ps -aef | grep tomcat when run after starting tomcat with both apps? p Hi, Thanks so much for all the help! Here is some more info. Tomcat is no longer running after starting with both apps. (ps aux shows no tomcat...) Or java? It seems that the logs just stop whey they get to Initializing Spring root WebApplicationContext for the second app. So it actually kills the whole server? That sound like a pretty epic fail. Here are the logs after starting with both apps: localhost log: Apr 2, 2010 8:36:52 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:54 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Apr 2, 2010 8:37:17 AM org.apache.catalina.core.ApplicationContext log INFO: Farm Stand initialized Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: No Configuration for this context. Initializing. Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: configuring cewolf app.. Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: using storage class de.laures.cewolf.storage.ClusterableSessionStorage Apr 2, 2010
Re: Cyclos application install(s)
On 02/04/2010 20:03, Rick Bragg wrote: On Fri, 2010-04-02 at 14:52 +0100, Pid wrote: On 02/04/2010 14:04, Rick Bragg wrote: On Thu, 2010-04-01 at 22:46 +0100, Pid wrote: On 01/04/2010 20:17, Rick Bragg wrote: On Thu, 2010-04-01 at 18:55 +0100, Pid wrote: On 01/04/2010 18:04, Rick Bragg wrote: On Wed, 2010-03-31 at 23:37 +0400, Konstantin Kolinko wrote: 2010/3/31 Rick Braggli...@gmnet.net: What am I missing? Cyclos support forum is here: http://project.cyclos.org/forum/ From Tomcat point of view, there is nothing wrong in what you did. Just speculating here (as I am not a Cyclos user), you might have a) updated not all configuration files, b) screwed when copying a database. I can suggest to start with installing a new copy of cyclos next to the existing one. (Do they support installation with a non-default name?) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks, I do have a posting in that forum as well, but they seem to think it is more of a tomcat problem. I tried to install a new copy along side my existing one, and I get the same problem. The new copy DOES make the new database fine when I restart tomcat, but tomcat dies after that. Can you define dies in slightly more technical terms? What is in the logs? p Hi, Sorry, it seems there are no errors in the logs, but after I copy (cp -Rp ...) then restart it on the command line (/etc/init.d/tomcat6 restart) I see stopping... OK then starting ... OK. I go to visit any site on the system http://xxx.xx:8080/manager for example, and there is no service running on 8080. It just hangs waiting to connect. If I now restart again, it only says starting ... OK not stopping - then starting. It seems that as long as I have a second copy of cyclos in webapps dir, the service running on 8080 is no longer running after any restarts until I remove that directory and restart. All permissions are identical. and the database does get populated correctly. Very Puzzling. You are copying a live application to a location where it will create another live application? Or are you stopping first, then copying, then starting again? What happens if you start up using the scripts in tomcat/bin? What is in actually in catalina.out? (Please include real log data.) Is Tomcat actually running when you have two applications deployed? What is the output of ps -aef | grep tomcat when run after starting tomcat with both apps? p Hi, Thanks so much for all the help! Here is some more info. Tomcat is no longer running after starting with both apps. (ps aux shows no tomcat...) Or java? It seems that the logs just stop whey they get to Initializing Spring root WebApplicationContext for the second app. So it actually kills the whole server? That sound like a pretty epic fail. Here are the logs after starting with both apps: localhost log: Apr 2, 2010 8:36:52 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:36:54 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Apr 2, 2010 8:37:17 AM org.apache.catalina.core.ApplicationContext log INFO: Farm Stand initialized Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: No Configuration for this context. Initializing. Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: configuring cewolf app.. Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: using storage class de.laures.cewolf.storage.ClusterableSessionStorage Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log INFO: using overlibURL /pages/scripts/overlib.js Apr 2, 2010 8:37:18 AM
isapi_redirect 1.2.30
Hello! I'm attempting to debug a cookie problem with the IIS7, using a default document, and the Tomcat connector. I can see where firefox is sending cookie information in the request headers to IIS, and I can see where the isapi_connector is passing the request off to Tomcat *without* cookie information, but is there any way to see what IIS is passing to the isapi_redirect DLL? Knowing what's being passed to the connector would tell me if it's an IIS7 problem or a connector problem. Thanks for any help you can offer! -JM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Enabling HTTP Put
André Warnier a...@ice-sa.com wrote in message news:4bb5a06e.4080...@ice-sa.com... Stacy Mobley wrote: Hi, I was wondering if there was a way to enable HTTP Put via the API's. What makes you think it is not enabled ? (at least, presuming you are talking about Tomcat) I've tried using ServletContext.setAttribute(readonly, false) without any success. What would that have to do with enabling HTTP PUT requests ? I think that the OP wants to enable PUT in the DefaultServlet in an embedded configuration. If my psychic powers are even close, then the OP needs to override the settings for DefaultServlet in his own web.xml to enable it. It looks like it would be possible from the Embedding API, using a totally obscene combination of JMX and reflection ;). Tomcat itself does not forbid or disable any type of valid HTTP request, PUT included. Now, it is your responsibility to provide an application, within Tomcat, which can handle PUT requests. For an example, look at the DAV application usually distributed along with Tomcat. That one allows appropriate clients to upload files to a server, and this works among other things via PUT requests. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connectors in Tomcat
Hi, Thanks Rajeev, i hadn't initialized the factory properly, now i don't get a null pointer exception, and it shows in the console that http connector is initialized and started at the port i'v given say 9002, but http is still not enabled in the sense that an html page does not run on http://localhost:90002/welcome.html I have initialized the factory as: factory = new MBeanFactory(); and then called the createHttpConnector( Catalina:type=Service,serviceName=Catalina, 127.0.0.1, 9002);
Re: Connectors in Tomcat
Hi, I would like to know how to link this new factory with the service Catalina. Because on checking with the JConsole, the attributes of this factory do not match with the existing one. Hence the connector is not created with the same factory and the code doesn't work. -Hemali