Re[2]: Exchange Language
Do you have MSN? My MSN is :[EMAIL PROTECTED] On Fri, 22 Jun 2007 12:39:47 +0800 "Tony Winslow" <[EMAIL PROTECTED]> wrote: > I'm also willing to. > > 2007/6/21, Johnny Kewl <[EMAIL PROTECTED]>: > > > > Take my email, and ask me anytime. > > If you ask me a question, also write it in pinyin, then I can learn also. > > > > Your english is very good already. > > 我不喜欢VWP > > > > > > > > - Original Message - > > From: "吴熊敏" <[EMAIL PROTECTED]> > > To: "Tomcat Users List" > > Sent: Thursday, June 21, 2007 7:15 AM > > Subject: Exchange Language > > > > > > > Dear All, > > > > > > I'm learning English,is there anyone want to lean Chinese. > > > > > > I wish to find one who can exchange language with me. > > > > > > > > > 吴熊敏 <[EMAIL PROTECTED]> > > > > > > > > > - > > > To start a new topic, e-mail: users@tomcat.apache.org > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > 吴熊敏 <[EMAIL PROTECTED]> - 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: Is it possible to run multiple instances of Jboss Server on a single Windows 2k box
Hi Shravan, Yes it is possible, but you've to change the ports in the second instance. -regards Vinu shravan kumar wrote: Is it possible to run multiple instances of Jboss Server on a single Windows 2k box -- Vinu Varghese [EMAIL PROTECTED] www.x-minds.org (Success always occurs in private, and failure in full view.) \/ ._ _ o .__| _ /\ ~~ | | | | | | (_| _\
Is it possible to run multiple instances of Jboss Server on a single Windows 2k box
Is it possible to run multiple instances of Jboss Server on a single Windows 2k box -- Shravan kumar
Re: Exchange Language
I'm also willing to. 2007/6/21, Johnny Kewl <[EMAIL PROTECTED]>: Take my email, and ask me anytime. If you ask me a question, also write it in pinyin, then I can learn also. Your english is very good already. 我不喜欢VWP - Original Message - From: "吴熊敏" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 21, 2007 7:15 AM Subject: Exchange Language > Dear All, > > I'm learning English,is there anyone want to lean Chinese. > > I wish to find one who can exchange language with me. > > > 吴熊敏 <[EMAIL PROTECTED]> > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - 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: Comet example Tomcat 6 not working.
Could anybody make it detailed about the ChatServer sample? I even don't know how to run it! Thank you! 2007/6/22, Reich, Matthias <[EMAIL PROTECTED]>: There have been a lot of things fixed and enhanced in the Comet area since version 6.0.10. You should better try with version 6.0.13. Regards, Matthias > -Original Message- > From: Ritesh Kumar [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 21, 2007 11:43 AM > To: users@tomcat.apache.org > Subject: Comet example Tomcat 6 not working. > > > Hi, > > I am trying to run the comet sample given along with tomcat. > The sample is > not working correctly most of the time. I am using NIO > connectors and Tomcat > version is 6.0.10. > I have some doubts also: > > 1) In the ChatServer example, a thread (using a Runnable > MessageSender) is > sending responses the clients. Is it possible to write > multiple times to the > same response. Because when we do writer.flush() then that > response is sent > to the client. > > 2) The READ event is never invoked in my example. whenever I > send a request > only BEGIN event is getting called. I thought, for the first > time only BEGIN > event should get called, and for further requests by the same > client, READ > event should get called. > > 3) I am getting exception at the line where the thread which > is trying to > write to response stream is calling the flush method. > The code (from tomcat example) is: > > for (int i = 0; i < connections.size(); i++) { > try { > PrintWriter writer = > connections.get(i).getWriter(); > String toBeFlushed = ""; > for (int j = 0; j < > pendingMessages.length; j++) > { > // FIXME: Add HTML filtering > writer.println(pendingMessages[j] + > ""); > } > writer.println("Random message 1" > + ""); > writer.println("Random message 2" > + ""); > System.out.println("writer will flush now. > writer is null?=" + writer == null); > writer.flush(); > } catch (IOException e) { > log("IOExeption sending message", e); > } > } > > And the error message I am getting is: > > Exception in thread "MessageSender[/CometTestApp]" > java.lang.NullPointerException > at > org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(Inter > nalNioOutputBuffer.java:607) > at > org.apache.coyote.http11.InternalNioOutputBuffer.commit(Intern > alNioOutputBuffer.java:600) > at > org.apache.coyote.http11.Http11NioProcessor.action(Http11NioPr > ocessor.java:1010) > at org.apache.coyote.Response.action(Response.java:183) > at org.apache.coyote.Response.sendHeaders(Response.java:379) > at > org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffe > r.java:305) > at > org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer. > java:288) > at > org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95) > at > com.headstrong.test.ChatServlet$MessageSender.run(ChatServlet. > java:276) > at java.lang.Thread.run(Thread.java:595) > > > -- > View this message in context: > http://www.nabble.com/Comet-example-Tomcat-6-not-working.-tf39 > 57585.html#a11229741 > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - 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: No X509Certificate Attribute In IIS Redirected Request
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > I'm using: > >IIS V6.0 >JK 1.2.23 >Tomcat 6.0.13 > > No X509Certificate attribute is present in the request header received by > my servlet when using Client Authenticated SLL with IIS6 and JK1. > > If I use Apache 2.2 with the mod_proxy modules it works fine. > > Is this a bug? If so, in what... IIS or JK1? > Don't know, and I don't have access to an IIS machine to look myself. If you are using the JK/Java Connector (default if APR isn't installed), then configuring DEBUG logging for the category 'org.apache.jk' should give you a request dump that may show if the cert is being sent. Configuring DEBUG logging on the native JK side should also help see what IIS is giving back for the cert. > Does anyone know of a workaround? Will JK2 fix my problem? > > My customer must use IIS... so replacing with Apache is not an option. > :-( > > > TIA > > > Simon Temple > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - 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: The Apache Tomcat Native library which allows [yadda yadda yadda...]
> From: MAHAINDRA Ketut [mailto:[EMAIL PROTECTED] > Subject: RE: The Apache Tomcat Native library which allows > [yadda yadda yadda...] > > You may download the Tomcat Native library from the following > location: > http://www.apache.org/dist/tomcat/tomcat-connectors/native/ That's just the source; if you want pre-compiled binaries for Win32 or Win64, visit Ireland: http://tomcat.heanet.ie/native/1.1.10/binaries/ - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The Apache Tomcat Native library which allows [yadda yadda yadda...]
Hello, You may download the Tomcat Native library from the following location: http://www.apache.org/dist/tomcat/tomcat-connectors/native/ Since your platform is Win32, get the Win32 distribution. The last version is 1.10 if I'm not mistaken. It is advised that you download from the mirror closest to you. Use the following to determine your closest mirror. http://www.apache.org/dyn/closer.cgi Once chosen go to tomcat -> tomcat-connectors -> native -- Best regards, Ketut Mahaindra (Ito) -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Friday, June 22, 2007 6:07 AM To: Tomcat Users List Subject: Re: The Apache Tomcat Native library which allows [yadda yadda yadda...] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Søren, Søren Blidorf wrote: > I have just upgraded to Tomcat 6 and get the following error: > > INFO: The Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: [snip] > > Can anybody tell me what is wrong? Nothing is wrong. Tomcat is telling you that it can't find the APR library and so it won't be used. Note that this is an INFO message, not an ERROR. The APR library is a native library that Tomcat can use to do some of its work in native code instead of Java, which usually performs a little better or allows platform-specific capabilities. Not having APR available is not a big deal, so you can ignore this message. If you want to install APR, there is documentation available on the Tomcat website covering that topic. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGevaO9CaO5/Lv0PARAuZMAKCicdCVeeP7SklO3tvxZso7VdxEVgCeLdGw /geWJodzED+2fMtRQER6EE4= =MVR6 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: domain sockets with mod_jk and apache
"Dirk Koehler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm looking for some documentation how unix domain sockets can be used > with apache/tomcat/mod_jk...anybody who uses this environment? > The current mod_jk doesn't currently support domain sockets. You would have to use the deprecated mod_jk2 for this functionality. There is no reason it couldn't be ported to mod_jk, but it just hasn't been anybody's itch to do it. > thx, dirk > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - 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: Multiple Contexts from single WAR
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple Contexts from single WAR > > OK... you cant do it from a WAR, the tomcat WAR deployment > seems to ignore contexts and always default to the name of > the WAR file. Not true. When the .war is located someplace other than the appBase, the name of the .xml file in conf/Catalina/[host] supplies the webapp name, and the docBase attribute specifies the location - completely independent of the app name. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Contexts from single WAR
Apologies OK... you cant do it from a WAR, the tomcat WAR deployment seems to ignore contexts and always default to the name of the WAR file. Try it with just one context and you'll see the behaviour. But you can do it from the standalone deployer... ie deploy the war file to any context you want it will require a little ant script. Why didnt you just say so ;) ... bed time for me. - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, June 22, 2007 2:08 AM Subject: RE: Multiple Contexts from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple Contexts from single WAR Chris, dont think you can... just so I understand it you thinking http://localhost:8080/A http://localhost:8080/B http://localhost:8080/C must all map to one web-app, say WebApp A that I dont think is possible No, that's not what he's asking for. The original question was about multiple webapps deployed from the same .war file. Each would run independently, once loaded. Nothing to do with URL mappings, and throwing httpd in front would only add complexity and have no effect on the original issue. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Multiple Contexts from single WAR
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple Contexts from single WAR > > Chris, dont think you can... just so I understand it you thinking > http://localhost:8080/A > http://localhost:8080/B > http://localhost:8080/C > must all map to one web-app, say WebApp A that I dont > think is possible No, that's not what he's asking for. The original question was about multiple webapps deployed from the same .war file. Each would run independently, once loaded. Nothing to do with URL mappings, and throwing httpd in front would only add complexity and have no effect on the original issue. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Contexts from single WAR
Chris, to get an idea of how you can map with Apache in front of Tomcat, look at this link. http://tomcat.apache.org/connectors-doc-archive/jk2/jk/aphowto.html Its worth a read because often when the site gets bigger, you end up wanting to load balance, or use Apache to serve images so may be useful. Remember the ROOT idea (see other post) eats up space for other web apps. ie if you call the servlet A then a Web app called A is no longer a possibility. If you own the server ROOT is ures, but if you hosting, they probably wont give it to you. have fun - Original Message - From: "Chris Hall" <[EMAIL PROTECTED]> To: Sent: Thursday, June 21, 2007 11:51 PM Subject: Multiple Contexts from single WAR Hi, I'm experiencing some issues with getting correct behaviour on deploying multiple Contexts based on a single WAR. I need to do this because whilst my application is common to multiple contexts, I need to control RemoteAddress access to some of them via the relevant context Valve. I have defined multiple contexts in conf/catalina/localhost/*.xml each of which use a common docBase and this appears to create each of the webapps on start-up. However the servlet-mapping entries that are defined in the common web-inf/web.xml do not appear to be applied in accessing the copied context. For example the url-pattern which redirects to a servlet does not take effect on the copied context definition, whereas it does apply on the webapp that is named after the originating WAR. I guess I could deploy multiple WARs each named differently, but that seems to defeat what the common docBase is trying to achieve? Is this behaviour expected? All comments gratefully received. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Multiple Contexts from single WAR
Chris, dont think you can... just so I understand it you thinking http://localhost:8080/A http://localhost:8080/B http://localhost:8080/C must all map to one web-app, say WebApp A that I dont think is possible But if you not using ROOT for anything else other than Welcome to Tomcat, then you can try this... You rename your WebApp to ROOT Make the context path "" (nothing) And then those A,B and C's no longer represent Web Apps, they represent servlets. You can MAP away merrily in web.xml ie /C to servlet A /B to servlet A /C/doSomething to servlet E etc etc etc. maybe depends wot you doing I guess, and if ROOT is yours to take. otherwise little webapps that redirect is another possibility. Apache in front could probably also map any URI to just about anything. Anyway hope more ideas come forward for you... - Original Message - From: "Chris Hall" <[EMAIL PROTECTED]> To: Sent: Thursday, June 21, 2007 11:51 PM Subject: Multiple Contexts from single WAR Hi, I'm experiencing some issues with getting correct behaviour on deploying multiple Contexts based on a single WAR. I need to do this because whilst my application is common to multiple contexts, I need to control RemoteAddress access to some of them via the relevant context Valve. I have defined multiple contexts in conf/catalina/localhost/*.xml each of which use a common docBase and this appears to create each of the webapps on start-up. However the servlet-mapping entries that are defined in the common web-inf/web.xml do not appear to be applied in accessing the copied context. For example the url-pattern which redirects to a servlet does not take effect on the copied context definition, whereas it does apply on the webapp that is named after the originating WAR. I guess I could deploy multiple WARs each named differently, but that seems to defeat what the common docBase is trying to achieve? Is this behaviour expected? All comments gratefully received. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Multiple Contexts from single WAR
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Hall wrote: > Hi, I'm experiencing some issues with getting correct behaviour on deploying > multiple Contexts based on a single WAR. I need to do this because whilst my > application is common to multiple contexts, I need to control RemoteAddress > access to some of them via the relevant context Valve. I don't buy it. What is stopping you from using one WAR file per webapp? > I have defined multiple contexts in conf/catalina/localhost/*.xml each of > which use a common docBase and this appears to create each of the webapps on > start-up. I don't see why this wouldn't work, but I also don't understand why it would ever be desirable. > However the servlet-mapping entries that are defined in the common > web-inf/web.xml do not appear to be applied in accessing the copied context. What do you mean, the "common" web.xml? Also, you're sure you have that as "WEB-INF", not "web-inf", right? > For example the url-pattern which redirects to a servlet does not take > effect on the copied context definition, whereas it does apply on the webapp > that is named after the originating WAR. So you're basically saying that these "extra" contexts don't appear to deploy at all? Or do they not deploy properly? If you can't use your servlets, why do you think that anything is working at all? > I guess I could deploy multiple WARs each named differently, but that seems > to defeat what the common docBase is trying to achieve? Since it doesn't appear to be working, you should try the multiple-WARs approach and see if /that/ works. If multiple WAR files don't work, then you have something else wrong in your configuration, and your multiply-deployed-WAR strategy might still be viable. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGevgJ9CaO5/Lv0PARAnMvAKCEWbUSj9IPRvtux8zUZ6NVtzYZsQCgkop+ cn+smsqQ8UYMHZmajuQH9sQ= =5g7s -END PGP SIGNATURE- - 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: The Apache Tomcat Native library which allows [yadda yadda yadda...]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Søren, Søren Blidorf wrote: > I have just upgraded to Tomcat 6 and get the following error: > > INFO: The Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: [snip] > > Can anybody tell me what is wrong? Nothing is wrong. Tomcat is telling you that it can't find the APR library and so it won't be used. Note that this is an INFO message, not an ERROR. The APR library is a native library that Tomcat can use to do some of its work in native code instead of Java, which usually performs a little better or allows platform-specific capabilities. Not having APR available is not a big deal, so you can ignore this message. If you want to install APR, there is documentation available on the Tomcat website covering that topic. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGevaO9CaO5/Lv0PARAuZMAKCicdCVeeP7SklO3tvxZso7VdxEVgCeLdGw /geWJodzED+2fMtRQER6EE4= =MVR6 -END PGP SIGNATURE- - 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: Multiple Contexts from single WAR
> From: Chris Hall [mailto:[EMAIL PROTECTED] > Subject: Multiple Contexts from single WAR > > I have defined multiple contexts in > conf/catalina/localhost/*.xml each of which use > a common docBase and this appears to create each > of the webapps on start-up. If you're going to play this game, make sure the webapp is not installed under the appBase directory - doing so may cause a bit of confusion. > the servlet-mapping entries that are defined in > the common web-inf/web.xml I hope you mean WEB-INF/web.xml, since case matters. > the url-pattern which redirects to a servlet does > not take effect on the copied context definition Is the app using hard-coded URLs anywhere? You didn't bother to mention what version of Tomcat you're using. Assuming you're on a reasonably current one, you could try enabling the AccessLogValve for the . - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Contexts from single WAR
Hi, I'm experiencing some issues with getting correct behaviour on deploying multiple Contexts based on a single WAR. I need to do this because whilst my application is common to multiple contexts, I need to control RemoteAddress access to some of them via the relevant context Valve. I have defined multiple contexts in conf/catalina/localhost/*.xml each of which use a common docBase and this appears to create each of the webapps on start-up. However the servlet-mapping entries that are defined in the common web-inf/web.xml do not appear to be applied in accessing the copied context. For example the url-pattern which redirects to a servlet does not take effect on the copied context definition, whereas it does apply on the webapp that is named after the originating WAR. I guess I could deploy multiple WARs each named differently, but that seems to defeat what the common docBase is trying to achieve? Is this behaviour expected? All comments gratefully received. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:
I have just upgraded to Tomcat 6 and get the following error: INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programmer\Apache Software Foundation\Tomcat 6.0\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Programmer\Fælles filer\Adaptec Shared\System;C:\Programmer\ATI Technologies\ATI Control Panel;C:\Programmer\Microsoft SQL Server\80\Tools\BINN Can anybody tell me what is wrong? Soren
Re: Configuring Tomcat 5.5 to use unicast membership discovery
not in 5.5, in Tomcat 6 you can supply static members Filip Andrew R Feller wrote: Hello everyone, Is it possible to configuring Tomcat 5.5 to use unicast for the membership discovery mechanism rather than multicast? I have read through both the Tomcat Clustering/Session Replication (http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html) and Configuration Reference (http://tomcat.apache.org/tomcat-5.5-doc/config/index.html), but the only examples presented use multicasting. The reason I ask is because we need to replicate between three sites where one of the sites isn't within the campus network making multicasting difficult. Thank you for the assistance, Andrew R Feller, Analyst Subversion Administrator University Information Systems Louisiana State University [EMAIL PROTECTED] (office) 225.578.3737 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.9.1/857 - Release Date: 6/20/2007 2:18 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
domain sockets with mod_jk and apache
Hi, I'm looking for some documentation how unix domain sockets can be used with apache/tomcat/mod_jk...anybody who uses this environment? thx, dirk - 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: using mod_jk: how to set content-type
- Original Message - From: "Gregor Schneider" <[EMAIL PROTECTED]> On 6/21/07, Johnny Kewl <[EMAIL PROTECTED]> wrote: You know I just had another thought yes it happens sometimes. Wrong. It does ALWAYS happen: Ha ha... no its my warped sense of humor... sometimes I have thoughts... you know little eurika's ;)... ok, only I get it ;) I'm agreeing with you, but just wondering why Richard wants to take a 3rd party servlet that is clearly pumping out html, and make it look like XML and then concluding that it will probably be badly formed XML (or XHTML)... because HTML is close, but not XML. And therefore... yes you right, a filter is a better bet, because if parsing headers is already difficult in JK, and as you say, impossible, then how they going to create well formed XML, before it gets to whereever its going and I'm guessing it will be input to an XSLT engine, so they can present another HTML page, with the extracted data from the original page. Think my reply was to Richard Apache httpd (2.x) in conjunction with mod_jk does not touch any headers passed from mod_jk, thus there's no possibility to change them, not with mod_headers or any other module, I've tried them all. A filter in Tomcat is the only option I found. The reason is definately not any issue with XHTML-parsing. Gregor --- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: using mod_jk: how to set content-type
On 6/21/07, Johnny Kewl <[EMAIL PROTECTED]> wrote: You know I just had another thought yes it happens sometimes. Wrong. It does ALWAYS happen: Apache httpd (2.x) in conjunction with mod_jk does not touch any headers passed from mod_jk, thus there's no possibility to change them, not with mod_headers or any other module, I've tried them all. A filter in Tomcat is the only option I found. The reason is definately not any issue with XHTML-parsing. Gregor --- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - 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: Comet example Tomcat 6 not working.
There have been a lot of things fixed and enhanced in the Comet area since version 6.0.10. You should better try with version 6.0.13. Regards, Matthias > -Original Message- > From: Ritesh Kumar [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 21, 2007 11:43 AM > To: users@tomcat.apache.org > Subject: Comet example Tomcat 6 not working. > > > Hi, > > I am trying to run the comet sample given along with tomcat. > The sample is > not working correctly most of the time. I am using NIO > connectors and Tomcat > version is 6.0.10. > I have some doubts also: > > 1) In the ChatServer example, a thread (using a Runnable > MessageSender) is > sending responses the clients. Is it possible to write > multiple times to the > same response. Because when we do writer.flush() then that > response is sent > to the client. > > 2) The READ event is never invoked in my example. whenever I > send a request > only BEGIN event is getting called. I thought, for the first > time only BEGIN > event should get called, and for further requests by the same > client, READ > event should get called. > > 3) I am getting exception at the line where the thread which > is trying to > write to response stream is calling the flush method. > The code (from tomcat example) is: > > for (int i = 0; i < connections.size(); i++) { > try { > PrintWriter writer = > connections.get(i).getWriter(); > String toBeFlushed = ""; > for (int j = 0; j < > pendingMessages.length; j++) > { > // FIXME: Add HTML filtering > writer.println(pendingMessages[j] + > ""); > } > writer.println("Random message 1" > + ""); > writer.println("Random message 2" > + ""); > System.out.println("writer will flush now. > writer is null?=" + writer == null); > writer.flush(); > } catch (IOException e) { > log("IOExeption sending message", e); > } > } > > And the error message I am getting is: > > Exception in thread "MessageSender[/CometTestApp]" > java.lang.NullPointerException > at > org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(Inter > nalNioOutputBuffer.java:607) > at > org.apache.coyote.http11.InternalNioOutputBuffer.commit(Intern > alNioOutputBuffer.java:600) > at > org.apache.coyote.http11.Http11NioProcessor.action(Http11NioPr > ocessor.java:1010) > at org.apache.coyote.Response.action(Response.java:183) > at org.apache.coyote.Response.sendHeaders(Response.java:379) > at > org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffe > r.java:305) > at > org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer. > java:288) > at > org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95) > at > com.headstrong.test.ChatServlet$MessageSender.run(ChatServlet. > java:276) > at java.lang.Thread.run(Thread.java:595) > > > -- > View this message in context: > http://www.nabble.com/Comet-example-Tomcat-6-not-working.-tf39 > 57585.html#a11229741 > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - 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: using mod_jk: how to set content-type
You know I just had another thought yes it happens sometimes. I have a feeling you doing html parsing, and just wanted to say that it depends very much on how well that 3rd party servlet does XHTML... probably badly ie little all over the place which will make the XML parser you using throw it out. If you use a filter you can even fix that, ie make sure its perfect XML. - Original Message - From: "Richard Kaye" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 21, 2007 5:04 PM Subject: using mod_jk: how to set content-type Hi I am using Tomcat5.5, Apache2.2 and mod_jk1.2 and a third-part servlet which I can't re-program or configure. I need to sniff the HTTP "User-Agent" and/or "Accept" fields and change the content-type (currently "text/html;charset=UTF-8") that the servlet returns based on these. using mod_headers and mod_setenvif, I currently have (in my apache2 config) something like: SetEnvIf User-Agent Whatever DETECTED1 SetEnvIf Accept Somethingelse DETECTED2 JkMount /servletname/* ajp13_worker Header set Content-Type "text/xml" env=DETECTED1 Header set Content-Type "application/xml" env=DETECTED2 Unfortunately, it doesn't work. Specifically, I always get the document served as "Content-Type: text/html;charset=UTF-8" and not "Content-Type: text/xml" as expected. From googling a bit I have learnt that the mod_headers module won't set the Content-Type header, because this one is set internally by apache at a later stage. But I couldn't find a workaround or alternative that does what I want. Help please! And many thanks... Richard - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: using mod_jk: how to set content-type
Had a smiliar problem here. When using mod_jk, apache does not touch the headers created by Tomcat. Solution: I wrote a filter that changed the headers after returning from Tomcat and installed this filter into Tomcat. Servlets and filtering (Servlet-Spec 2.3): http://java.sun.com/products/servlet/Filters.html My sample-code (setting an Expires-Header): =[snip]=== package com.cr.manuals.filter; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Servlet implementation class for Servlet: HeaderFilter * */ public class HeaderFilter implements javax.servlet.Filter { private static String PARAM_ADD_TO_CURRENT_MONTH = "ADD_TO_CURRENT_MONTH"; private FilterConfig filterConfig = null; private int months2Add = 0; /* (non-Java-doc) * @see javax.servlet.http.HttpServlet#HttpServlet() */ public HeaderFilter() { super(); } /** * init() : init() method called when the filter is instantiated. * This filter is instantiated the first time j_security_check is * invoked for the application (When a protected servlet in the * application is accessed). */ public void init(FilterConfig aFilterConfig) throws ServletException { filterConfig = aFilterConfig; months2Add = Integer.parseInt(filterConfig.getInitParameter(PARAM_ADD_TO_CURRENT_MONTH)); } /** * destroy() : destroy() method called when the filter is taken * out of service. */ public void destroy() { filterConfig = null; } /** * doFilter() : doFilter() method called before the servlet to * which this filteris mapped is invoked. Since this filter is * mapped to j_security_check,this method is called before * j_security_check action is posted. */ public void doFilter(ServletRequest aRequest, ServletResponse aResponse, FilterChain chain) throws java.io.IOException, ServletException { //System.out.println (" filter ***"); HttpServletRequest request = (HttpServletRequest)aRequest; HttpServletResponse response = (HttpServletResponse)aResponse; // call next filter in the chain : let j_security_check authenticate // user response.setHeader("Expires", createExpiresHeader(months2Add)); chain.doFilter(request, response); } /** * Create a String in the format EEE, d MMM HH:mm:ss z" * Example: Fri, 4 Aug 2006 09:07:44 CEST * The value of the init-parama ADD_TO_CURRENT_MONTH is added to the * month-field of the current date * @return */ private String createExpiresHeader(int someMonths2Add) { SimpleDateFormat sdf = new SimpleDateFormat("EEE, d MMM HH:mm:ss z", Locale.US); Calendar cal = Calendar.getInstance(); cal.add(Calendar.MONTH, someMonths2Add); long millis = cal.getTimeInMillis(); Date d = new Date(millis); return sdf.format(d); } } =[snap]=== HTH Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - 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: using mod_jk: how to set content-type
Thanks for the quick reply, Rainer. Yes a servlet filter makes sense, though not as easy as a one-liner httpd directive. I guess my immediate response is surprise that (since this must be a common problem with so many poorly written web-clients doing content-negotiation so badly out in the big-wide-web) that there aren't any stock servlet filters already written that I can use "out of the box". Does anyone know of any? I will try the experiment of writing a servlet filter (it will do me good to learn all this, and I can imagine other useful things I might do) and if I get something that might be useful for others I will let you know. Richard On Thu, 2007-06-21 at 17:14 +0200, Rainer Jung wrote: > I had a similar problem with mod_prox and mod_headers for Apache httpd > 2.2 today, and I would expect, that changing the headers with mod_header > does not work. > > I see no easy way (but maybe others out there). You could hack > > ajp_unmarshal_response() in common/jk_ajp_common.c. > > Alternative: experiment with a servlet filter for Tomcat. You can always > add filters to webapps without changing or even having the webapp code > itself. > > Regards, > > Rainer > > Richard Kaye wrote: > > Hi > > > > I am using Tomcat5.5, Apache2.2 and mod_jk1.2 > > and a third-part servlet which I can't re-program or > > configure. > > > > I need to sniff the HTTP "User-Agent" and/or "Accept" > > fields and change the content-type > > (currently "text/html;charset=UTF-8") that the > > servlet returns based on these. > > > > using mod_headers and mod_setenvif, I currently > > have (in my apache2 config) something like: > > > > SetEnvIf User-Agent Whatever DETECTED1 > > SetEnvIf Accept Somethingelse DETECTED2 > > JkMount /servletname/* ajp13_worker > > > > Header set Content-Type "text/xml" env=DETECTED1 > > Header set Content-Type "application/xml" env=DETECTED2 > > > > > > Unfortunately, it doesn't work. Specifically, I always get the > > document served as "Content-Type: text/html;charset=UTF-8" > > and not "Content-Type: text/xml" as expected. From googling a bit > > I have learnt that the mod_headers module won't set the Content-Type > > header, because this one is set internally by apache at a later stage. > > But I couldn't find a workaround or alternative that does what I want. > > > > Help please! > > > > And many thanks... > > > > Richard > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - 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: using mod_jk: how to set content-type
Dont know Apache in that detail, possibly a guru maybe able to fix the way you attempting, but I think it should be relatively easy to add a filter to tomcat to do that there you can intercept both request and response. ie intercept the request, if browser let it go, if XSLT engine, pretent to be XML. Very easy I think. - Original Message - From: "Richard Kaye" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 21, 2007 5:04 PM Subject: using mod_jk: how to set content-type Hi I am using Tomcat5.5, Apache2.2 and mod_jk1.2 and a third-part servlet which I can't re-program or configure. I need to sniff the HTTP "User-Agent" and/or "Accept" fields and change the content-type (currently "text/html;charset=UTF-8") that the servlet returns based on these. using mod_headers and mod_setenvif, I currently have (in my apache2 config) something like: SetEnvIf User-Agent Whatever DETECTED1 SetEnvIf Accept Somethingelse DETECTED2 JkMount /servletname/* ajp13_worker Header set Content-Type "text/xml" env=DETECTED1 Header set Content-Type "application/xml" env=DETECTED2 Unfortunately, it doesn't work. Specifically, I always get the document served as "Content-Type: text/html;charset=UTF-8" and not "Content-Type: text/xml" as expected. From googling a bit I have learnt that the mod_headers module won't set the Content-Type header, because this one is set internally by apache at a later stage. But I couldn't find a workaround or alternative that does what I want. Help please! And many thanks... Richard - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: using mod_jk: how to set content-type
I had a similar problem with mod_prox and mod_headers for Apache httpd 2.2 today, and I would expect, that changing the headers with mod_header does not work. I see no easy way (but maybe others out there). You could hack ajp_unmarshal_response() in common/jk_ajp_common.c. Alternative: experiment with a servlet filter for Tomcat. You can always add filters to webapps without changing or even having the webapp code itself. Regards, Rainer Richard Kaye wrote: Hi I am using Tomcat5.5, Apache2.2 and mod_jk1.2 and a third-part servlet which I can't re-program or configure. I need to sniff the HTTP "User-Agent" and/or "Accept" fields and change the content-type (currently "text/html;charset=UTF-8") that the servlet returns based on these. using mod_headers and mod_setenvif, I currently have (in my apache2 config) something like: SetEnvIf User-Agent Whatever DETECTED1 SetEnvIf Accept Somethingelse DETECTED2 JkMount /servletname/* ajp13_worker Header set Content-Type "text/xml" env=DETECTED1 Header set Content-Type "application/xml" env=DETECTED2 Unfortunately, it doesn't work. Specifically, I always get the document served as "Content-Type: text/html;charset=UTF-8" and not "Content-Type: text/xml" as expected. From googling a bit I have learnt that the mod_headers module won't set the Content-Type header, because this one is set internally by apache at a later stage. But I couldn't find a workaround or alternative that does what I want. Help please! And many thanks... Richard - 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: No X509Certificate Attribute In IIS Redirected Request
OK, then you should be able to retrieve them on the tomcat side with request.getAttribute(). [EMAIL PROTECTED] wrote: OK I enabled JK1 debug level logging and can see that IIS6 *is* relaying the client authenticated SSL details in the AJP stream. I see attributes called: CERT_ISSUER CERT_SUBJECT CERT_COOKIE HTTPS_SERVER_SUBJECT CERT_FLAGS HTTPS_SECRETKEYSIZE CERT_SERIALNUMBER HTTPS_SERVER_ISSUER HTTPS_KEYSIZE JK1 appears to ignore them! So is this a defect in JK 1.2.23 or something I need to 'switch-on'? - Simon Temple - 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: No X509Certificate Attribute In IIS Redirected Request
I never used it. If you have a test system, you could switch you switch the log level of the isapi plugin to debug and check, if your plugin log file shows messages containing Client Certificate encoding Then you would at least find out, if the plugin detected a client certificate. Regards, Rainer [EMAIL PROTECTED] wrote: Hi, I'm using: IIS V6.0 JK 1.2.23 Tomcat 6.0.13 No X509Certificate attribute is present in the request header received by my servlet when using Client Authenticated SLL with IIS6 and JK1. If I use Apache 2.2 with the mod_proxy modules it works fine. Is this a bug? If so, in what... IIS or JK1? Does anyone know of a workaround? Will JK2 fix my problem? My customer must use IIS... so replacing with Apache is not an option. :-( TIA Simon Temple - 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: Tomcat UploadServlet Error
On 6/21/07, Fletcher, Nita Ms. OTC/Contractor <[EMAIL PROTECTED]> wrote: Yes it is a new install, Apache Tomcat/4.1.31 bundled with CA Unicenter SD. Logs show connector started successfully. GET command works . The upload is the only thing that is failing as far as I can tell. Which logs should I be looking at? Depends on the app, but there can't be that many :-) Try an upload, look at the most recently changed log(s). You may have to crank up the log level to get anything useful, but I'd expect an error to at least log /something/... -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using mod_jk: how to set content-type
Hi I am using Tomcat5.5, Apache2.2 and mod_jk1.2 and a third-part servlet which I can't re-program or configure. I need to sniff the HTTP "User-Agent" and/or "Accept" fields and change the content-type (currently "text/html;charset=UTF-8") that the servlet returns based on these. using mod_headers and mod_setenvif, I currently have (in my apache2 config) something like: SetEnvIf User-Agent Whatever DETECTED1 SetEnvIf Accept Somethingelse DETECTED2 JkMount /servletname/* ajp13_worker Header set Content-Type "text/xml" env=DETECTED1 Header set Content-Type "application/xml" env=DETECTED2 Unfortunately, it doesn't work. Specifically, I always get the document served as "Content-Type: text/html;charset=UTF-8" and not "Content-Type: text/xml" as expected. From googling a bit I have learnt that the mod_headers module won't set the Content-Type header, because this one is set internally by apache at a later stage. But I couldn't find a workaround or alternative that does what I want. Help please! And many thanks... Richard - 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: No X509Certificate Attribute In IIS Redirected Request
OK I enabled JK1 debug level logging and can see that IIS6 *is* relaying the client authenticated SSL details in the AJP stream. I see attributes called: CERT_ISSUER CERT_SUBJECT CERT_COOKIE HTTPS_SERVER_SUBJECT CERT_FLAGS HTTPS_SECRETKEYSIZE CERT_SERIALNUMBER HTTPS_SERVER_ISSUER HTTPS_KEYSIZE JK1 appears to ignore them! So is this a defect in JK 1.2.23 or something I need to 'switch-on'? - Simon Temple 21 June 2007 15:38 To: users@tomcat.apache.org cc: From: [EMAIL PROTECTED] Subject: No X509Certificate Attribute In IIS Redirected Request Hi, I'm using: IIS V6.0 JK 1.2.23 Tomcat 6.0.13 No X509Certificate attribute is present in the request header received by my servlet when using Client Authenticated SLL with IIS6 and JK1. If I use Apache 2.2 with the mod_proxy modules it works fine. Is this a bug? If so, in what... IIS or JK1? Does anyone know of a workaround? Will JK2 fix my problem? My customer must use IIS... so replacing with Apache is not an option. :-( TIA Simon Temple - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Tomcat UploadServlet Error
Yes it is a new install, Apache Tomcat/4.1.31 bundled with CA Unicenter SD. Logs show connector started successfully. GET command works . The upload is the only thing that is failing as far as I can tell. Which logs should I be looking at? Thanks Nita Fletcher LAN/WAN Engineer III STG, Inc. ITSS Contract, WFH -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 9:33 AM To: Tomcat Users List Subject: Re: Tomcat UploadServlet Error On 6/21/07, Fletcher, Nita Ms. OTC/Contractor <[EMAIL PROTECTED]> wrote: > Thank you, but I have already done that. I am new to tomcat Without knowing what version of Tomcat you're using, it's hard to say whether your config snippet is correct. In any case -- Is this a new installation, or one that's worked before and has broken? Do your logs show that the Connector started successfully? If yes to the above, can you successfully GET https://server:8443/? (eliminating firewall issues) If yes to the above, is it only file upload that's failing? If so, what's in the logs when you try? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: classpath and public_html directories
> From: Nathan S. Haigh [mailto:[EMAIL PROTECTED] > Subject: Re: classpath and public_html directories > > Now, the next question is, does that mean that each user can only have > one webapp!? That appears to be the case; effectively, each user *is* a webapp. Shouldn't be too hard to write your own userClass for the Listener to implement whatever scheme you want. The existing code looks pretty simple, so extending it doesn't look difficult. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Two IIS web servers
Great info Rainer - thanks very much. Ian > -Original Message- > From: Rainer Jung [mailto:[EMAIL PROTECTED] > Sent: 21 June 2007 16:53 > To: Tomcat Users List > Subject: Re: Two IIS web servers > > Phi-Long LE wrote: > > Ian, > > > > reading optional directives you should probably use the > > worker.xxx.method, its value is Request, session, traffic or busyness > > Default is request. For most use cases this should work best. > > How does it work? > > 1) Multiple Web server instances do not share any information about > load. So they decide completely independently. > > 2) request method: mod_jk counts the requests going to each worker and > whenever a request has no session associated it chooses the worker with > the smallest number. The first request after every 60 seconds will > trigger a maintenance cycle, which divides all counters by 2, such that > historic data gets less important. If you use load factors, the > counters > get adjusted by the load factors. Bigger load factors will result in > bigger load (and smaller increments to the counters). > > 3) If a worker comes back after error, it will start with the biggest > of > the actual counters, to prevent it from getting a request storm. > > 4) busyness method: this looks at the number of request which are > actually in the middle of processing. Could be OK for download sites, > but usually does not work that well. Especially bad, if your side is > not > high traffic. > > 5) traffic: the same as request method, but counts bytes transferred > instead of requests done. The bytes are only added after the requests > have finished, so if you have long running downloads, the byte counters > will ot change for a long time and then change a lot. > > Having multiple instances work independently should be no problem, if > statistics count: this means: you have a lot of traffic, and the > percentage of requests without sessions is not too small. In other > words: you have a lot of users and the sessions are not taking to long. > > Load balancing might run into asymmetries, if you have very long > lasting > in house sessions and very different types of users. Then some heavily > used sessions might produce the most load. > > On the other hand: as long as you only operate two backends, the > quality > of the load balancing might not be very important, because out of > availybility considerations usually one of the two nodes should be able > to handle the maximum load. :) > > Regards, > > Rainer > > > > > Le 21/06/2007 16:00, Ian Buzer a écrit : > >> Thanks for that Rainer. > >> > >> How about when a new session comes in? Does mod_jk obtain > information > >> from > >> each Tomcat about its current load, or does it base it on the number > of > >> requests that that particular instance of mod_jk has forwarded to > >> Tomcat? If > >> it's the latter, is this likely to cause problems? > >> > >> Thanks > >> Ian > >> > >> > >> > >> > >>> -Original Message- > >>> From: Rainer Jung [mailto:[EMAIL PROTECTED] > >>> Sent: 21 June 2007 15:50 > >>> To: Tomcat Users List > >>> Subject: Re: Two IIS web servers > >>> > >>> Yes, this will work. The only bad thing will be, that the requests > >>> belonging to one session will be logged partially on both of the > IIS > >>> instances, so if you try to debug a problem, you always need to > look at > >>> both IIS servers. > >>> > >>> Stickyness works like this: > >>> > >>> - you set a unique jvmRoute in the engine element of server.xml > >>> - Tomcat appends the jvmRoute to each sessionid it generated, with > a > >>> dot > >>> as a separator > >>> - mod_jk load balancer looks for a session id whenever it receives > a > >>> request and strips of the routing string behind the dot > >>> - if mod_jk finds such a routing strings, the load balancer > searches > >>> for > >>> a worker with the same name or with a route attribute with the same > >>> value and sends it there > >>> > >>> So mod_jk does not hold any state information about where which > session > >>> lies. Every request carries the information with it. > >>> > >>> Regards, > >>> > >>> Rainer > >>> > >>> Ian Buzer wrote: > >>> > Hi, > > I currently have one IIS server balancing requests to two Tomcats > > >>> using JK > >>> > 1.2. I am using JK to provide sticky sessions and all is working > > >>> well. > >>> > I would like to be able share requests across a second IIS server, > > >>> however I > >>> > am unable to create sticky sessions at the web server level so > > >>> requests > >>> > could go to either web server. > > My question is, if I point both IIS servers to both Tomcats, will > > >>> this work > >>> > correctly? Will the sessions still get directed to the correct > > >>> Tomcat, and > >>> > will the two JKs still be able to choose the best worker for new > > >>> sessions? > >>> > Many thanks > Ian > > -
Re: Two IIS web servers
Phi-Long LE wrote: Ian, reading optional directives you should probably use the worker.xxx.method, its value is Request, session, traffic or busyness Default is request. For most use cases this should work best. How does it work? 1) Multiple Web server instances do not share any information about load. So they decide completely independently. 2) request method: mod_jk counts the requests going to each worker and whenever a request has no session associated it chooses the worker with the smallest number. The first request after every 60 seconds will trigger a maintenance cycle, which divides all counters by 2, such that historic data gets less important. If you use load factors, the counters get adjusted by the load factors. Bigger load factors will result in bigger load (and smaller increments to the counters). 3) If a worker comes back after error, it will start with the biggest of the actual counters, to prevent it from getting a request storm. 4) busyness method: this looks at the number of request which are actually in the middle of processing. Could be OK for download sites, but usually does not work that well. Especially bad, if your side is not high traffic. 5) traffic: the same as request method, but counts bytes transferred instead of requests done. The bytes are only added after the requests have finished, so if you have long running downloads, the byte counters will ot change for a long time and then change a lot. Having multiple instances work independently should be no problem, if statistics count: this means: you have a lot of traffic, and the percentage of requests without sessions is not too small. In other words: you have a lot of users and the sessions are not taking to long. Load balancing might run into asymmetries, if you have very long lasting in house sessions and very different types of users. Then some heavily used sessions might produce the most load. On the other hand: as long as you only operate two backends, the quality of the load balancing might not be very important, because out of availybility considerations usually one of the two nodes should be able to handle the maximum load. :) Regards, Rainer Le 21/06/2007 16:00, Ian Buzer a écrit : Thanks for that Rainer. How about when a new session comes in? Does mod_jk obtain information from each Tomcat about its current load, or does it base it on the number of requests that that particular instance of mod_jk has forwarded to Tomcat? If it's the latter, is this likely to cause problems? Thanks Ian -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: 21 June 2007 15:50 To: Tomcat Users List Subject: Re: Two IIS web servers Yes, this will work. The only bad thing will be, that the requests belonging to one session will be logged partially on both of the IIS instances, so if you try to debug a problem, you always need to look at both IIS servers. Stickyness works like this: - you set a unique jvmRoute in the engine element of server.xml - Tomcat appends the jvmRoute to each sessionid it generated, with a dot as a separator - mod_jk load balancer looks for a session id whenever it receives a request and strips of the routing string behind the dot - if mod_jk finds such a routing strings, the load balancer searches for a worker with the same name or with a route attribute with the same value and sends it there So mod_jk does not hold any state information about where which session lies. Every request carries the information with it. Regards, Rainer Ian Buzer wrote: Hi, I currently have one IIS server balancing requests to two Tomcats using JK 1.2. I am using JK to provide sticky sessions and all is working well. I would like to be able share requests across a second IIS server, however I am unable to create sticky sessions at the web server level so requests could go to either web server. My question is, if I point both IIS servers to both Tomcats, will this work correctly? Will the sessions still get directed to the correct Tomcat, and will the two JKs still be able to choose the best worker for new sessions? Many thanks Ian - 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: Null
> options: > define null as empty string e.g. > String null = ""; null is a reserved word in java, you can't redfine it. > OR > change compare to == "" > ?? if (null == rs.getString("col_foo")) works just fine. http://java.sun.com/j2se/1.5.0/docs/api/java/sql/ResultSet.html#getString(int) Returns: the column value; if the value is SQL NULL, the value returned is null > HTH > M-- > This email message and any files transmitted with it contain > confidential information intended only for the person(s) to whom this > email message is addressed. If you have received this email message > in error, please notify the sender immediately by telephone or email > and destroy the original message without making a copy. Thank you. > > - Original Message - > From: "Tim Funk" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Thursday, June 21, 2007 7:24 AM > Subject: Re: Null > > > > The syntax below is correct. There must be something else > > syntactically incorrect in your jsp causing your woes. > > > > -Tim > > > > Mohammed Zabin wrote: > >> I tried it the other way, if( rs.getString("field") == null ) but > >> the compiler plames that null can't be compared to string > >> > >> On 6/21/07, Tim Funk <[EMAIL PROTECTED]> wrote: > >>> > >>> > >>> if (null == rs.getString("col_foo")) { > >>>out.println(" "); > >>> } else { > >>>// Evil since this doesn't escape the xml - for edutainment > >>>only out.println("" + rs.getString("col_foo") + ""); > >>> } > >>> > >>> -Tim > >>> > >>> Mohammed Zabin wrote: > >>> > Hi All > >>> > > >>> > Anyone knows how to deal with null values in JDBC ResultSet?? > >>> > > >>> > I am trying to render a table in jsp page that read its value > >>> > from the database, sometimes, the database returns null values, > >>> > and so, the > >>> whole > >>> > table couldn't be rendered. Is there any way to deal with null > >>> > values. > >>> > > > > > > > - To start a new topic, e-mail: users@tomcat.apache.org To > > unsubscribe, e-mail: [EMAIL PROTECTED] For > > additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, > e-mail: [EMAIL PROTECTED] For additional commands, > e-mail: [EMAIL PROTECTED] > - 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: Null
On 6/21/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote: I am trying to render a table in jsp page that read its value from the database, sometimes, the database returns null values, and so, the whole table couldn't be rendered. Is there any way to deal with null values. Pass your ResultSet into the request, and use JSTL to display -- that handles null values as empty strings by default, not to mention giving you a much cleaner presentation layer overall... FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - 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: classpath and public_html directories
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Caldarale, Charles R wrote: - -- snip -- > > I haven't tried this yet, but I think the CIMMS_user directory shouldn't > be there. My understanding of the doc is that the HomesUserDatabase > Listener creates one webapp (docBase) per user - not an appBase per > user. Try moving everything under CIMMS_user to public_html - eliminate > the CIMMS_user level. Yeah! This worked!! Now, the next question is, does that mean that each user can only have one webapp!? I would have thought it should be possible to have: ~/public_html/webapp1 ~/public_html/webapp2 etc without having to explicitly define this in the tomcat config files. For my current setup - this isn't much of a problem, but it would be nice to know if this can be setup. > >> I have no conf/Catalina dir at all. > > Tomcat doesn't create it unless needed. > >> Could you point me to a step-by-step install of tomcat 6 >> and how to setup users public_html areas and I can check >> if I have done this correctly. > > I think you're already aware of this: > http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#User%20Web%20Ap > plications > > [Note to Mark T: the above still contains a reference to > DefaultContext.] > >> It just seems odd that it works from the tomcat >> home but not the users public_html area! > > One problem might be the element you've added to your > - that has not been valid for some time. The proper location for > such parameters is in: > $CATALINA_HOME/conf/context.xml Thanks, I've moved this also. > or > $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default > as documented in: > http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Introduction > > However, I doubt that it's causing the results you're seeing. > > - Chuck > > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGeo8E2PljpJuieWURAvxOAKCCDrIkB8/jhacPhIcY0uftoQV4jgCZAbdS AXrStuun/4egJyokaxHAAwQ= =ckoP -END PGP SIGNATURE- - 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: Null
options: define null as empty string e.g. String null = ""; OR change compare to == "" HTH M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Tim Funk" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 21, 2007 7:24 AM Subject: Re: Null The syntax below is correct. There must be something else syntactically incorrect in your jsp causing your woes. -Tim Mohammed Zabin wrote: I tried it the other way, if( rs.getString("field") == null ) but the compiler plames that null can't be compared to string On 6/21/07, Tim Funk <[EMAIL PROTECTED]> wrote: if (null == rs.getString("col_foo")) { out.println(" "); } else { // Evil since this doesn't escape the xml - for edutainment only out.println("" + rs.getString("col_foo") + ""); } -Tim Mohammed Zabin wrote: > Hi All > > Anyone knows how to deal with null values in JDBC ResultSet?? > > I am trying to render a table in jsp page that read its value from the > database, sometimes, the database returns null values, and so, the whole > table couldn't be rendered. Is there any way to deal with null values. > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No X509Certificate Attribute In IIS Redirected Request
Hi, I'm using: IIS V6.0 JK 1.2.23 Tomcat 6.0.13 No X509Certificate attribute is present in the request header received by my servlet when using Client Authenticated SLL with IIS6 and JK1. If I use Apache 2.2 with the mod_proxy modules it works fine. Is this a bug? If so, in what... IIS or JK1? Does anyone know of a workaround? Will JK2 fix my problem? My customer must use IIS... so replacing with Apache is not an option. :-( TIA Simon Temple - 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: Two IIS web servers
Ian, reading optional directives you should probably use the worker.xxx.method, its value is Request, session, traffic or busyness Le 21/06/2007 16:00, Ian Buzer a écrit : Thanks for that Rainer. How about when a new session comes in? Does mod_jk obtain information from each Tomcat about its current load, or does it base it on the number of requests that that particular instance of mod_jk has forwarded to Tomcat? If it's the latter, is this likely to cause problems? Thanks Ian -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: 21 June 2007 15:50 To: Tomcat Users List Subject: Re: Two IIS web servers Yes, this will work. The only bad thing will be, that the requests belonging to one session will be logged partially on both of the IIS instances, so if you try to debug a problem, you always need to look at both IIS servers. Stickyness works like this: - you set a unique jvmRoute in the engine element of server.xml - Tomcat appends the jvmRoute to each sessionid it generated, with a dot as a separator - mod_jk load balancer looks for a session id whenever it receives a request and strips of the routing string behind the dot - if mod_jk finds such a routing strings, the load balancer searches for a worker with the same name or with a route attribute with the same value and sends it there So mod_jk does not hold any state information about where which session lies. Every request carries the information with it. Regards, Rainer Ian Buzer wrote: Hi, I currently have one IIS server balancing requests to two Tomcats using JK 1.2. I am using JK to provide sticky sessions and all is working well. I would like to be able share requests across a second IIS server, however I am unable to create sticky sessions at the web server level so requests could go to either web server. My question is, if I point both IIS servers to both Tomcats, will this work correctly? Will the sessions still get directed to the correct Tomcat, and will the two JKs still be able to choose the best worker for new sessions? Many thanks Ian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Tomcat UploadServlet Error
On 6/21/07, Fletcher, Nita Ms. OTC/Contractor <[EMAIL PROTECTED]> wrote: Thank you, but I have already done that. I am new to tomcat Without knowing what version of Tomcat you're using, it's hard to say whether your config snippet is correct. In any case -- Is this a new installation, or one that's worked before and has broken? Do your logs show that the Connector started successfully? If yes to the above, can you successfully GET https://server:8443/? (eliminating firewall issues) If yes to the above, is it only file upload that's failing? If so, what's in the logs when you try? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Tomcat 5.5 to use unicast membership discovery
Hello everyone, Is it possible to configuring Tomcat 5.5 to use unicast for the membership discovery mechanism rather than multicast? I have read through both the Tomcat Clustering/Session Replication (http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html) and Configuration Reference (http://tomcat.apache.org/tomcat-5.5-doc/config/index.html), but the only examples presented use multicasting. The reason I ask is because we need to replicate between three sites where one of the sites isn't within the campus network making multicasting difficult. Thank you for the assistance, Andrew R Feller, Analyst Subversion Administrator University Information Systems Louisiana State University [EMAIL PROTECTED] (office) 225.578.3737
RE: Tomcat UploadServlet Error
Thank you, but I have already done that. I am new to tomcat so I am copying the text so that you can take a look at it. - Nita Fletcher LAN/WAN Engineer III STG, Inc. ITSS Contract, WFH -Original Message- From: Jason Lanpher [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 8:57 AM To: users Subject: RE: Tomcat UploadServlet Error Hi Nita, I am mobile right now so I don't have the server.xml file in front of me. But you should make sure to uncomment the connector for port 8443 in the server.xml file? You can get that error if it has not been uncommented. Jason Lanpher [EMAIL PROTECTED] http://www.stealthnetworking.com -Original Message- From: Fletcher, Nita Ms. OTC/Contractor [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 8:47 AM To: 'users@tomcat.apache.org' Subject: Tomcat UploadServlet Error We are receiving the following error when trying to upload documentation. Any assistance would be greatly appreciated. Unable to connect to 'https://server:8443/CAisd/UploadServlet' Please make sure that the servlet path is correct, and that Tomcat is up and running. Would you like to retry? Nita Fletcher LAN/WAN Engineer III STG, Inc. ITSS Contract, WFH - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Two IIS web servers
Thanks for that Rainer. How about when a new session comes in? Does mod_jk obtain information from each Tomcat about its current load, or does it base it on the number of requests that that particular instance of mod_jk has forwarded to Tomcat? If it's the latter, is this likely to cause problems? Thanks Ian > -Original Message- > From: Rainer Jung [mailto:[EMAIL PROTECTED] > Sent: 21 June 2007 15:50 > To: Tomcat Users List > Subject: Re: Two IIS web servers > > Yes, this will work. The only bad thing will be, that the requests > belonging to one session will be logged partially on both of the IIS > instances, so if you try to debug a problem, you always need to look at > both IIS servers. > > Stickyness works like this: > > - you set a unique jvmRoute in the engine element of server.xml > - Tomcat appends the jvmRoute to each sessionid it generated, with a > dot > as a separator > - mod_jk load balancer looks for a session id whenever it receives a > request and strips of the routing string behind the dot > - if mod_jk finds such a routing strings, the load balancer searches > for > a worker with the same name or with a route attribute with the same > value and sends it there > > So mod_jk does not hold any state information about where which session > lies. Every request carries the information with it. > > Regards, > > Rainer > > Ian Buzer wrote: > > Hi, > > > > I currently have one IIS server balancing requests to two Tomcats > using JK > > 1.2. I am using JK to provide sticky sessions and all is working > well. > > > > I would like to be able share requests across a second IIS server, > however I > > am unable to create sticky sessions at the web server level so > requests > > could go to either web server. > > > > My question is, if I point both IIS servers to both Tomcats, will > this work > > correctly? Will the sessions still get directed to the correct > Tomcat, and > > will the two JKs still be able to choose the best worker for new > sessions? > > > > Many thanks > > Ian > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - 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: Tomcat UploadServlet Error
Hi Nita, I am mobile right now so I don't have the server.xml file in front of me. But you should make sure to uncomment the connector for port 8443 in the server.xml file? You can get that error if it has not been uncommented. Jason Lanpher [EMAIL PROTECTED] http://www.stealthnetworking.com -Original Message- From: Fletcher, Nita Ms. OTC/Contractor [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 8:47 AM To: 'users@tomcat.apache.org' Subject: Tomcat UploadServlet Error We are receiving the following error when trying to upload documentation. Any assistance would be greatly appreciated. Unable to connect to 'https://server:8443/CAisd/UploadServlet' Please make sure that the servlet path is correct, and that Tomcat is up and running. Would you like to retry? Nita Fletcher LAN/WAN Engineer III STG, Inc. ITSS Contract, WFH - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: classpath and public_html directories
> From: Nathan S. Haigh [mailto:[EMAIL PROTECTED] > Subject: Re: classpath and public_html directories > > Surely, each webapp directory should e totally independent!? Yes, they are. Each webapp uses a separate classloader. > Could the jar files in > /home/user/public_html/CIMMS_user/WEB-INF/lib > be conflicting with > /usr/local/tomcat/webapps/CIMMS/WEB-INF/lib No, they wouldn't conflic. I haven't tried this yet, but I think the CIMMS_user directory shouldn't be there. My understanding of the doc is that the HomesUserDatabase Listener creates one webapp (docBase) per user - not an appBase per user. Try moving everything under CIMMS_user to public_html - eliminate the CIMMS_user level. > I have no conf/Catalina dir at all. Tomcat doesn't create it unless needed. > Could you point me to a step-by-step install of tomcat 6 > and how to setup users public_html areas and I can check > if I have done this correctly. I think you're already aware of this: http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#User%20Web%20Ap plications [Note to Mark T: the above still contains a reference to DefaultContext.] > It just seems odd that it works from the tomcat > home but not the users public_html area! One problem might be the element you've added to your - that has not been valid for some time. The proper location for such parameters is in: $CATALINA_HOME/conf/context.xml or $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default as documented in: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Introduction However, I doubt that it's causing the results you're seeing. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two IIS web servers
Yes, this will work. The only bad thing will be, that the requests belonging to one session will be logged partially on both of the IIS instances, so if you try to debug a problem, you always need to look at both IIS servers. Stickyness works like this: - you set a unique jvmRoute in the engine element of server.xml - Tomcat appends the jvmRoute to each sessionid it generated, with a dot as a separator - mod_jk load balancer looks for a session id whenever it receives a request and strips of the routing string behind the dot - if mod_jk finds such a routing strings, the load balancer searches for a worker with the same name or with a route attribute with the same value and sends it there So mod_jk does not hold any state information about where which session lies. Every request carries the information with it. Regards, Rainer Ian Buzer wrote: Hi, I currently have one IIS server balancing requests to two Tomcats using JK 1.2. I am using JK to provide sticky sessions and all is working well. I would like to be able share requests across a second IIS server, however I am unable to create sticky sessions at the web server level so requests could go to either web server. My question is, if I point both IIS servers to both Tomcats, will this work correctly? Will the sessions still get directed to the correct Tomcat, and will the two JKs still be able to choose the best worker for new sessions? Many thanks Ian - 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 UploadServlet Error
We are receiving the following error when trying to upload documentation. Any assistance would be greatly appreciated. Unable to connect to 'https://server:8443/CAisd/UploadServlet' Please make sure that the servlet path is correct, and that Tomcat is up and running. Would you like to retry? Nita Fletcher LAN/WAN Engineer III STG, Inc. ITSS Contract, WFH - 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: Configuring Tomcat 5.5 and IIS 6
404's indicate that the file can't be found. IIS needs to be able to "see" the tomcat files/folders in order to know to invoke tomcat.. IIS can't magically see Tomcat's folders, so you may need to define a virtual folder in IIS to the Tomcat JSP files. Have a look at http://www.innotechcg.com/downloads/IntegrateTomcatIIS.zip, which is a step-by-step discussion of integrating IIS 6 and Tomcat. It may not suit your specific need, but if you follow the steps, it should illustrate the concepts required for IIS and Tomcat to work together. My how-to will work with both the default and specific IIS instances. Regards, Glenn rcgeorge23 wrote: > > Hi All, > > I'm having trouble getting Tomcat to serve pages through IIS. I have tried > to follow several step-by-step guides online but haven't really had much > luck! I've searched through this forum but again, I haven't been able to > find anything that's fixed my problem. > > I downloaded jakarta-tomcat-connectors-jk2.0.4-win32-IIS.zip, and followed > the setup instructions on the jakarta site. I made a slight modification > to the setup script (so that it created the jakarta virtual folder in > mydomain.com rather than IIS's "Default Website"), but other than that I > believe I've done precisely as instructed! > > Tomcat is running on port 8080 and when I hit > http://www.mydomain.com:8080/context/main.jsp, Tomcat faithfully serves up > the page. However when I attempt to hit http://www.mydomain.com/main.jsp, > IIS serves up a 404. > > If I look in the IIS log, I can see that IIS is attempting to push the > request towards the isapi_redirector dll: > > #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query > s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) > sc-status sc-win32-status sc-bytes cs-bytes time-taken > 2007-05-27 11:48:19 W3SVC10769 XXX.XXX.220.132 GET > /jakarta/isapi_redirector2.dll - 80 - XXX.XXX.56.247 HTTP/1.1 > Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-GB;+rv:1.8.1.3)+Gecko/20070309+Firefox/2.0.0.3 > s_pers=%20s_vsn_paypalglobal%3D4757241787590%7C1473537542953%3B - 404 1260 > 1814 525 31 > > ...so I'm guessing it's a problem with the way the dll has been > configured. > > Here is my workers2.properties: > > == > [shm] > info=Scoreboard. Requried for reconfiguration and status with multiprocess > servers. > file=D:\Tomcat 5.5\work\jk2.shm > > # Example socket channel, override port and host. > [channel.socket:XXX.XXX.220.132:8009] > info=Ajp13 port forwarding over socket > tomcatId=XXX.XXX.220.132:8009 > > [logger] > level=DEBUG > > [logger.file:0] > level=DEBUG > file=D:\Tomcat 5.5\logs\jk2.log > > [workerEnv:] > info=Global server options > timing=1 > debug=0 > logger=logger.file:0 > > # define the worker > [ajp13:XXX.XXX.220.132:8009] > channel=channel.socket:XXX.XXX.220.132:8009 > > # Map the Tomcat examples webapp to the Web server uri space > [uri:88.208.220.132/*] > context=/ols-web > worker=ajp13:XXX.XXX.220.132:8009 > = > > I attempted to enable logging to see whether this would give me any clues, > but the file I specified (D:\Tomcat 5.5\logs\jk2.log) doesn't get created. > > Here's Tomcat's context.xml > > == > >verbosity="4" timestamp="true"/> > > == > > ...and here's the bit in server.xml where the AJP connector port is > configured: > > == > enableLookups="false" redirectPort="8443" > protocol="AJP/1.3" /> > == > > If anyone can offer any advice, I'd be really grateful. > > Cheers, > Richard. > -- View this message in context: http://www.nabble.com/Configuring-Tomcat-5.5-and-IIS-6-tf3823529.html#a1126 Sent from the Tomcat - User mailing list archive at Nabble.com. - 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: Null
- Original Message - From: "Mohammed Zabin" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 21, 2007 6:45 AM Subject: Null Hi All Anyone knows how to deal with null values in JDBC ResultSet?? I am trying to render a table in jsp page that read its value from the database, sometimes, the database returns null values, and so, the whole table couldn't be rendered. Is there any way to deal with null values. The correct way to detect nulls in a JDBC ResultSet is rather different from the replies you've had so far. You should detect the presence of nulls in a given result set row by using the ResultSet.isNull() method. So, let's say that we have a result set called 'rs' (you will probably have used a Statement or PreparedStatement or some other technique to get your result set from the database): Statement stmt = ; //an arbitrary Statement object ResultSet rs = stmt.executeQuery("select employee_number, last_name, first_name, middle_initial from employee_table"); Now, on to the matter of nulls. Let's say that you are working your way through your ResultSet. As you know, you get the rows of the ResultSet one row at a time, using the next() method, as follows: while (rs.next()) { //as long as there are rows in the result set //handle one row of the result set } Within the while loop, each iteration of the loop will handle one complete row of the result set. Let's assume you don't know which columns of the result set are null and you want to display the values in each column of the result set exactly as they appear in the result set, except that when the value is null, you want to display the word "unknown". Here's what you would need to do: String empno = null; String lastname = null; String firstname = null; String midinit = null; while (rs.next()) { empno = rs.getString("employee_number"); //get the employee number from this row of the result set if (rs.wasNull()) { //if the employee number is null System.out.println("Employee Number is unknown"); } else { System.out.println("Employee Number is " + empno); } lastname = rs.getString("last_name"); //get the last name from this row of the result set if (rs.wasNull()) { //if the last name is null System.out.println("Last Name is unknown"); } else { System.out.println("Last Name is " + lastname); } firstname = rs.getString("first_name"); //get the first name from this row of the result set if (rs.wasNull()) { //if the first name is null System.out.println("First Name is unknown"); } else { System.out.println("First Name is " + firstname); } midinit = rs.getString("middle_initial"); //get the middle initial from this row of the result set if (rs.wasNull()) { //if the middle initial is null System.out.println("Middle Initial is unknown"); } else { System.out.println("Middle Initial is " + midinit); } } Although this example uses only result set columns that are being stored in Strings, the technique differs very little for non-text data. Let's say that we had a column called annual_salary in our result set, where the annual_salary was an integer containing the number of dollars that the person earned per year. Let's assume that some people are still negotiating their salaries so that the salary is stored as null for those people until the salary has been fully agreed.. The technique to handle the salary would look like this: int salary = null; while (rs.next()) { salary = getInt("annual_salary"); //get the salary from this row of the result set if (rs.isNull()) { //if the salary is null System.out.println("Annual Salary is unknown"); } else { System.out.println("Annual Salary is " + salary); } I hope this helps you with your null handling! -- Rhino - 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: Null
There is an ISNULL function in Transact SQL and a NVL function in PL/SQL that will return a default value if the data is null. That is if you don't mind writing separate SQL for each database. On 6/21/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote: Hi All Anyone knows how to deal with null values in JDBC ResultSet?? I am trying to render a table in jsp page that read its value from the database, sometimes, the database returns null values, and so, the whole table couldn't be rendered. Is there any way to deal with null values. Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Two IIS web servers
Hi, I currently have one IIS server balancing requests to two Tomcats using JK 1.2. I am using JK to provide sticky sessions and all is working well. I would like to be able share requests across a second IIS server, however I am unable to create sticky sessions at the web server level so requests could go to either web server. My question is, if I point both IIS servers to both Tomcats, will this work correctly? Will the sessions still get directed to the correct Tomcat, and will the two JKs still be able to choose the best worker for new sessions? Many thanks Ian - 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: Null
Mohammed, While it may not work in all browsers, you can try the "empty-cells" CSS property in the table's style. Render the table tag thusly: ... An alternative is what the other guy said; simply check for nulls before rendering, and render a non-breaking space if you have a null. I'd shoot for using EL rather than pure java for that though. Good luck! Brantley Mohammed Zabin wrote: Hi All Anyone knows how to deal with null values in JDBC ResultSet?? I am trying to render a table in jsp page that read its value from the database, sometimes, the database returns null values, and so, the whole table couldn't be rendered. Is there any way to deal with null values. Thanks - 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: Null
The syntax below is correct. There must be something else syntactically incorrect in your jsp causing your woes. -Tim Mohammed Zabin wrote: I tried it the other way, if( rs.getString("field") == null ) but the compiler plames that null can't be compared to string On 6/21/07, Tim Funk <[EMAIL PROTECTED]> wrote: if (null == rs.getString("col_foo")) { out.println(" "); } else { // Evil since this doesn't escape the xml - for edutainment only out.println("" + rs.getString("col_foo") + ""); } -Tim Mohammed Zabin wrote: > Hi All > > Anyone knows how to deal with null values in JDBC ResultSet?? > > I am trying to render a table in jsp page that read its value from the > database, sometimes, the database returns null values, and so, the whole > table couldn't be rendered. Is there any way to deal with null values. > - 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: Error while starting the Tomcat
WEB-INF\lib\servlet-api.jar The Tomcat Libs are getting into your web-app they must not. When you make a servlet, you will see that it adds a folder to your libs Tomcat5.5 or whatever. Its special, because it allows you do write code and debug, but it actually never puts them into the web/libs. Its kinda like, the servlet app just borrows a piece of Tomcat, so you can write your code. I think whats happened is somewhere, you may have deleted that special folder and then, it complained, and you added the class in. But now Tomcat is effectively trying to load itself from your web app You need to take those libs out of your lib, and I have no idea how, but I think if you just swap from say the external tomcat to the internal tomcat, in right click->properties->run it may put that special folder back. Anyway when you get that many errors, good new its normally a stupid little thing ;) I think - Original Message - From: "Soumya" <[EMAIL PROTECTED]> To: Sent: Thursday, June 21, 2007 8:38 AM Subject: Error while starting the Tomcat Hi all, I get the following error message when i try to start the Tomcat. Due to which i cannot run my application My application includes struts , hibernate and Tomcat 6 as the application server Please help me out in fixing this issue Jun 20, 2007 11:54:39 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\My Eclipse 5.5\bin;E:\Program Files\Apache Software Foundation\Tomcat 6.0\bin Jun 20, 2007 11:54:39 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jun 20, 2007 11:54:39 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3409 ms Jun 20, 2007 11:54:40 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jun 20, 2007 11:54:40 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Jun 20, 2007 11:54:40 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive srs.war Jun 20, 2007 11:54:56 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(E:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\srs\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender. log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender. Initializing filter... Obtaining SessionFactory from static HibernateUtil singleton [SRS] INFO [main] Environment.(479) | Hibernate 3.1.3 [SRS] INFO [main] Environment.(509) | hibernate.properties not found [SRS] INFO [main] Environment.(525) | using CGLIB reflection optimizer [SRS] INFO [main] Environment.(555) | using JDK 1.4 java.sql.Timestamp handling [SRS] INFO [main] Configuration.configure(1308) | configuring from resource: /ca/systemarchitects/srs/HibernateSession/hibernate.cfg.xml [SRS] INFO [main] Configuration.getConfigurationInputStream(1285) | Configuration resource: /ca/systemarchitects/srs/HibernateSession/hibernate.cfg.xml [SRS] INFO [main] Configuration.addResource(469) | Reading mappings from resource: ca/systemarchitects/srs/entity/Faculties.hbm.xml [SRS] INFO [main] HbmBinder.bindRootPersistentClassCommonValues(309) | Mapping class: ca.systemarchitects.srs.entity.Faculties -> faculties [SRS] INFO [main] Configuration.addResource(469) | Reading mappings from resource: ca/systemarchitects/srs/entity/Programs.hbm.xml [SRS] INFO [main] HbmBinder.bindRootPersistentClassCommonValues(309) | Mapping class: ca.systemarchitects.srs.entity.Programs -> programs [SRS] INFO [main] Configuration.addResource(469) | Reading mappings from resource: ca/systemarchitects/srs/entity/ProgramNotes.hbm.xml [SRS] INFO [main] HbmBinder.bindRootPersistentClassCommonValues(309) | Mapping class: ca.systemarchitects.srs.entity.ProgramNotes -> program_notes [SRS] INFO [main] Configuration.addResource(469) | Reading mappings from resource: ca/systemarchitects/srs/entity/ProgramFiles.hbm.xml [SRS] INFO [main] HbmBinder.bindRootPersistentClassCommonValues(309) | Mapping class: ca.systemarchitects.srs.entity.ProgramFiles -> program_files [SRS] INFO [main] Configuration.addResource(469) | Reading mappings from resource: ca/systemarchitects/srs/entity/GradeScale.hbm.xml [SRS] INFO [main] HbmBinder.bindRootPersistentClassCommonValues(309) | Mapping class: ca.systemarchitects.srs.entity.GradeScale -> grade_scale [SRS] INFO [main] Configuration.addResource(469) | Reading mappings from resource: ca/systemarchitects/srs/entity/Exams.hbm.xml [SRS] INFO [main] HbmBinder.bindRootPersistentClassCommonValues(309) | Mapping class: ca.systemarchitects.srs.entity.Exams -> exams [SRS] INFO [
Re: Null
I tried it the other way, if( rs.getString("field") == null ) but the compiler plames that null can't be compared to string On 6/21/07, Tim Funk <[EMAIL PROTECTED]> wrote: if (null == rs.getString("col_foo")) { out.println(" "); } else { // Evil since this doesn't escape the xml - for edutainment only out.println("" + rs.getString("col_foo") + ""); } -Tim Mohammed Zabin wrote: > Hi All > > Anyone knows how to deal with null values in JDBC ResultSet?? > > I am trying to render a table in jsp page that read its value from the > database, sometimes, the database returns null values, and so, the whole > table couldn't be rendered. Is there any way to deal with null values. > > Thanks > - 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: Null
Hi Mohammed This isn't the best forum to ask this kind of question : try something like http://www.javaranch.com/, you'll get good answers from there. As an interim, check for null values before attempting to display any value. Something like Jakarta commons StringUtils package is a big help in keeping your code tidy : <%= StringUtils.isBlank(master.getHeatLog()) ? " " : aster.getHeatLog() %> <%= master.getInstallDate() == null ? " " : DateUtil.getStringFromDate(master.getInstallDate()) %> Scott -Original Message- From: Mohammed Zabin [mailto:[EMAIL PROTECTED] Sent: 21 June 2007 11:45 To: Tomcat Users List Subject: Null Hi All Anyone knows how to deal with null values in JDBC ResultSet?? I am trying to render a table in jsp page that read its value from the database, sometimes, the database returns null values, and so, the whole table couldn't be rendered. Is there any way to deal with null values. Thanks This e-mail has been scanned for all viruses by Blackspider MailControl. www.blackspider.com Click https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== JNS1v5bGZbuTOPjIK+2ENjxq3GMhUlWAT0V2POnxNmQ!mcB82Xcwh!NYn5lY+uLw2btsQAFi OFwXAj3mv3hPbgITlWZBZeAOn!r2!uDTWf9m+80cFPk6TLolz63Uk5fl8441EIT7BrwR+97B 5FK!iH3++kwNDPfbSRlqx1x!CIPJdMhExsGfFrC to report this email as spam. - 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: Null
if (null == rs.getString("col_foo")) { out.println(" "); } else { // Evil since this doesn't escape the xml - for edutainment only out.println("" + rs.getString("col_foo") + ""); } -Tim Mohammed Zabin wrote: Hi All Anyone knows how to deal with null values in JDBC ResultSet?? I am trying to render a table in jsp page that read its value from the database, sometimes, the database returns null values, and so, the whole table couldn't be rendered. Is there any way to deal with null values. Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Null
Hi All Anyone knows how to deal with null values in JDBC ResultSet?? I am trying to render a table in jsp page that read its value from the database, sometimes, the database returns null values, and so, the whole table couldn't be rendered. Is there any way to deal with null values. Thanks
Re: Exchange Language
Take my email, and ask me anytime. If you ask me a question, also write it in pinyin, then I can learn also. Your english is very good already. 我不喜欢VWP - Original Message - From: "吴熊敏" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 21, 2007 7:15 AM Subject: Exchange Language Dear All, I'm learning English,is there anyone want to lean Chinese. I wish to find one who can exchange language with me. 吴熊敏 <[EMAIL PROTECTED]> - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Comet feature in Tomcat
I'm very interested in Comet features added in Tomcat 6. But I don't know how to use it. Could anybody give me a HelloWorld example of it? Thank you!
Comet example Tomcat 6 not working.
Hi, I am trying to run the comet sample given along with tomcat. The sample is not working correctly most of the time. I am using NIO connectors and Tomcat version is 6.0.10. I have some doubts also: 1) In the ChatServer example, a thread (using a Runnable MessageSender) is sending responses the clients. Is it possible to write multiple times to the same response. Because when we do writer.flush() then that response is sent to the client. 2) The READ event is never invoked in my example. whenever I send a request only BEGIN event is getting called. I thought, for the first time only BEGIN event should get called, and for further requests by the same client, READ event should get called. 3) I am getting exception at the line where the thread which is trying to write to response stream is calling the flush method. The code (from tomcat example) is: for (int i = 0; i < connections.size(); i++) { try { PrintWriter writer = connections.get(i).getWriter(); String toBeFlushed = ""; for (int j = 0; j < pendingMessages.length; j++) { // FIXME: Add HTML filtering writer.println(pendingMessages[j] + ""); } writer.println("Random message 1" + ""); writer.println("Random message 2" + ""); System.out.println("writer will flush now. writer is null?=" + writer == null); writer.flush(); } catch (IOException e) { log("IOExeption sending message", e); } } And the error message I am getting is: Exception in thread "MessageSender[/CometTestApp]" java.lang.NullPointerException at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:607) at org.apache.coyote.http11.InternalNioOutputBuffer.commit(InternalNioOutputBuffer.java:600) at org.apache.coyote.http11.Http11NioProcessor.action(Http11NioProcessor.java:1010) at org.apache.coyote.Response.action(Response.java:183) at org.apache.coyote.Response.sendHeaders(Response.java:379) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305) at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288) at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95) at com.headstrong.test.ChatServlet$MessageSender.run(ChatServlet.java:276) at java.lang.Thread.run(Thread.java:595) -- View this message in context: http://www.nabble.com/Comet-example-Tomcat-6-not-working.-tf3957585.html#a11229741 Sent from the Tomcat - User mailing list archive at Nabble.com. - 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: classpath and public_html directories
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Smith wrote: -- snip -- > Also your log indicates you have packages declared the same name as some of your classes. Modify, MassList, Mass, Adducts, and AdductList should be declared to be of package db, not db.Modify for example. Same goes for masIO.FileHandler -- should be declared of package massIO, not massIO.FileHandler. > > I think you may be incorrect with this. I have double checked, and they > are all declared as the correct package and not as package.class as you > suggest (unless I misunderstand). e.g. at the top of my > massIO.FileHandler class I have: > "package massIO;" > > Is this what you mean? > >> Well.. yes. The error about trying to use a package name as a type has >> to come from somewhere. I've never seen it show up unless the jvm is >> really finding a package name matching the declared type. Not knowing >> more about your setup, I'll let you explore that one. I think this is the root of all my prolems - it would be good if you could help me to find this problem - I'm happy to post any info you need in order to help me find the problem. > > Also, one thing that puzzles me, is that this works fine in the tomcat > installation webapp dir at /usr/local/tomcat/webapps/appname > > But not under public_html in a user's directory. > > >> Well... my last thought is there is another webapp of the same name >> visible to tomcat and there's some confusion about which one is active. >> Make sure the one you had in tomcat's webapps directory is really gone >> and you have restarted tomcat. Also make sure you don't have a >> appname.xml file in the conf/Catalina/localhost directory of tomcat >> conflicting with your webapp in public_html. This app is from my svn repository and I have a few other similarly named apps in the tomcat home webapps dir and in my own user space. Surely, each webapp directory should e totally independent!? Could the jar files in /home/user/public_html/CIMMS_user/WEB-INF/lib be conflicting with /usr/local/tomcat/webapps/CIMMS/WEB-INF/lib I have no conf/Catalina dir at all. Could you point me to a step-by-step install of tomcat 6 and how to setup users public_html areas and I can check if I have done this correctly. It just seems odd that it works from the tomcat home but not the users public_html area! Cheers Nathan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGeic1czuW2jkwy2gRAp5DAJ9RU18MxTLO/AdYtC7lXyYxI+qMsACguxo7 2azLundpAVUFv8YNxIHP5n0= =g1wr -END PGP SIGNATURE- - 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: how to generate java heap dump from tomcat 5.0.27
but after setting options, how to generate heap dump? i found "D:/java.hprof". but i encountered error when i analyze it using HAT. Started HTTP server on port 7000Reading from d:/java.hprof...Dump file created Thu Jun 21 15:01:28 SGT 2007java.io.EOFExceptionat java.io.DataInputStream.readFully(Unknown Source)at java.io.DataInputStream.readFully(Unknown Source)at hat.parser.HprofReader.read(HprofReader.java:202)at hat.parser.Reader.readFile(Reader.java:90)at hat.Main.main(Main.java:149) > Date: Thu, 21 Jun 2007 07:42:27 +0200> From: [EMAIL PROTECTED]> To: > users@tomcat.apache.org> Subject: Re: how to generate java heap dump from > tomcat 5.0.27> > I use the same method as you except the fact that all java > options are> within a file and I set the JAVA_OPTS to -Xoptionsfile=> > > Le 21/06/2007 05:48, Guan Yu a écrit :> > i need to generate java heap dump > to trace memory leak in our web application. We are using tomcat 5.0.27.> > I > added "-agentlib:hprof=heap=dump,format=b,file=D:/java.hprof" to Java Options > using "Configure Tomcat". Is this the correct method? How do I continue from > here? > > _> > > Check out some new online services that are so new they haven’t even been > officially released yet.> > http://get.live.com/beta> > > > > -> To > start a new topic, e-mail: users@tomcat.apache.org> To unsubscribe, e-mail: > users- [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]> _ Did you know you can now customize your mailbox with different colours to suit your mood with Windows Live Hotmail? http://get.live.com/mail/features