RE: JDK is not enough. SDK is needed
I couldn't disagree with you more Yoav. The very reason there are so many users how to's up on the web, and being used, tells you that the web site for Jakarta is poorly planned. You must put on the shoes of the beginner who is seeking information to understand. Sure now that I've been dealing with it for awhile I can find what I need at the Jakarta site, but I still remember my first impression as being one of total confusion to which the web site added. I was amazed myself at the time. Thinking that if the main web site for Jakarta was this jumbled then possibly the code was no better. You probably have forgotten your early daze. rls Shapira, Yoav [EMAIL PROTECTED] 11/25/2002 06:05 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: JDK is not enough. SDK is needed Howdy, Whoa there skippy ;) Venting is good sometimes... According to this page, it references j2se which is the JRE, the runtime. If you're using Tomcat binaries and not compiling any Java, you would think you only need the runtime libraries and not the whole SDK. http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#1 This page above is some user's howto guide. I wouldn't count on it as the definitive reference for anything. The Jakarta site says you need the JDK, not the JRE. These definitions are uniform in their use across java.sun.com, the various apache.org sites, theserverside, jguru, many vendor sites, etc. so there is very little confusion as to which one is which. The JDK is the bigger one, containing various development tools including Javac and its tools.jar packaging required for runtime compilation of JSPs. The JRE is the smaller one. Also Jakarta's site is one of the worst sites I visited. The home page says nothing about Jakarta upfront. No intro about jakarta and what it's about. I find the Jakarta home page EXCELLENT. I've used it as a model in telling my developers, contractors, etc, how to structure their product web sites. If you scroll a bit down past the news, on the front page there is a section that explains what Jakarta is quite well: Welcome The Jakarta Project creates and maintains open source solutions on the Java platform for distribution to the public at no charge. Jakarta products are developed by and distributed through various subprojects, which are listed the SubProjects menu the left, or in the section below. Each subproject has its own team of developers and committers, and its own mailing list. All product support is provided through the subproject mailing lists. All work at Jakarta is provided a volunteer basis. There is no paid staff. Please considerate and do your homework before asking our volunteers to donate additional time and energy to your project. All active products from the Java Apache Project have been merged into the Jakarta website. A few retired projects (like JServ) are still available through the Java Apache website. nothing about Tomcat. There's no 'requirements' section. Therefore I can't find out what I need to run Tomcat. For someone who just wants to use it, The documentation for tomcat is easily accessible. The READ-ME tells you that the install and run document has requirements. The install and run document has clear, complete, and concise requirements. Every tomcat distribution also includes this documentation in the top level directory when you unpack it. the resources are hidden in the site. There's no search function and the site is not easy to navigate. I hope it wasn't developed by a developer. Web developers do not necessarily design good web pages. Not necessarily is correct. There guys, IMHO, do design excellent web pages. I've found them easy to navigate and to find what I need. There's a Search Jakarta link at the top left of the home page. I hope you've installed it all, and chilled out a bit, over the weekend. As a future reference, I would point out that historically, calm and well thought-out questions to this list tend to get more and better responses. There's a good reason most people (and believe me, a lot of people read it) chose to ignore your message. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is there a secureCookie type of paramater for Tomcat 4.1.12?
Raiden [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Anyone have any ideas if there is a solution to this problem in 4.1.12, or are we better off reverting back to Tomcat 3.3.2 to restore the old behavior of not making the sessionId cookie a secure cookie if the session was created under https? Certainly in 4.1.12, there is no way to turn this off. If you care enough to submit a patch, this may change in 4.1.17+ (i.e. I'll seriously look at it). Thanks in advance! -Raiden On Mon, 25 Nov 2002, Raiden wrote: Hello, Tomcat 3.3.2 has a secureCookie paramater that restores the old behavior of not making the sessionId cookie a secure cookie if it was created under https. Is there such a parameter in 4.1.12? I know there has been a thread debating the reasons as to why a session that is created under https is not available to http pages. However, I have an application that was designed for the old spec, in which a session was available to both http and https pages, regardless of which protocol the session was created under. I have avoided the security problem of hijacked sessions by making sure that sensitive pages are ALWAYS require https, and I drop a secure cookie of my own when someone logs in (the login page is under https of course), so that even if someone hijacks the http pages, they cannot hijack the https pages without passing back that cookie (whose contents I store in the session for verification). However, since upgrading to 4.1.12, I have realized that my application can no longer function, because I rely on people creating a session under https... and then accessing non-sensitive pages under http. But, in 4.1.12, the session is not available to subsequently accessed http pages... and I really don't want to start encrypting these non-sensitive pages. (But, I do want the user logged in before they can access these pages.) Does something like the secureCookie parameter exist in 4.1.12? Thanks, Raiden -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDK is not enough. SDK is needed
I must admit that I find the Jakata web-site a little difficult to navigate. I am a developer, so I am somewhat used to moving through websites to find what I need, but I would imagine that someone with less experience would be a bit confused. It's a great site in general, and I am a big fan of Apache and the Jakarta project. Perhaps some work needs to be done to make information about this project more easily accessible? -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 November 2002 4:03 PM To: Tomcat Users List Subject: RE: JDK is not enough. SDK is needed I couldn't disagree with you more Yoav. The very reason there are so many users how to's up on the web, and being used, tells you that the web site for Jakarta is poorly planned. You must put on the shoes of the beginner who is seeking information to understand. Sure now that I've been dealing with it for awhile I can find what I need at the Jakarta site, but I still remember my first impression as being one of total confusion to which the web site added. I was amazed myself at the time. Thinking that if the main web site for Jakarta was this jumbled then possibly the code was no better. You probably have forgotten your early daze. rls Shapira, Yoav [EMAIL PROTECTED] 11/25/2002 06:05 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: JDK is not enough. SDK is needed Howdy, Whoa there skippy ;) Venting is good sometimes... According to this page, it references j2se which is the JRE, the runtime. If you're using Tomcat binaries and not compiling any Java, you would think you only need the runtime libraries and not the whole SDK. http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#1 This page above is some user's howto guide. I wouldn't count on it as the definitive reference for anything. The Jakarta site says you need the JDK, not the JRE. These definitions are uniform in their use across java.sun.com, the various apache.org sites, theserverside, jguru, many vendor sites, etc. so there is very little confusion as to which one is which. The JDK is the bigger one, containing various development tools including Javac and its tools.jar packaging required for runtime compilation of JSPs. The JRE is the smaller one. Also Jakarta's site is one of the worst sites I visited. The home page says nothing about Jakarta upfront. No intro about jakarta and what it's about. I find the Jakarta home page EXCELLENT. I've used it as a model in telling my developers, contractors, etc, how to structure their product web sites. If you scroll a bit down past the news, on the front page there is a section that explains what Jakarta is quite well: Welcome The Jakarta Project creates and maintains open source solutions on the Java platform for distribution to the public at no charge. Jakarta products are developed by and distributed through various subprojects, which are listed the SubProjects menu the left, or in the section below. Each subproject has its own team of developers and committers, and its own mailing list. All product support is provided through the subproject mailing lists. All work at Jakarta is provided a volunteer basis. There is no paid staff. Please considerate and do your homework before asking our volunteers to donate additional time and energy to your project. All active products from the Java Apache Project have been merged into the Jakarta website. A few retired projects (like JServ) are still available through the Java Apache website. nothing about Tomcat. There's no 'requirements' section. Therefore I can't find out what I need to run Tomcat. For someone who just wants to use it, The documentation for tomcat is easily accessible. The READ-ME tells you that the install and run document has requirements. The install and run document has clear, complete, and concise requirements. Every tomcat distribution also includes this documentation in the top level directory when you unpack it. the resources are hidden in the site. There's no search function and the site is not easy to navigate. I hope it wasn't developed by a developer. Web developers do not necessarily design good web pages. Not necessarily is correct. There guys, IMHO, do design excellent web pages. I've found them easy to navigate and to find what I need. There's a Search Jakarta link at the top left of the home page. I hope you've installed it all, and chilled out a bit, over the weekend. As a future reference, I would point out that historically, calm and well thought-out questions to this list tend to get more and better responses. There's a good reason most people (and believe me, a lot of people read it) chose to ignore your message. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To
Is there a plug-in for JSP support in Eclipse
hi all, Is there a plug-in in Eclipse for JSP Support available for free as in Sun One..?? Thx in advance Sathya -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 7:39 AM To: Tomcat Users List Subject: [OT] Re: is there a free ide that gets along well with tomcat? eclipse does have a different model for the UI, but once I got over the difference, I found it better. Those who are used to Borland's style of UI will find eclipse a bit un-intuitive at first, but having used it quite a bit the last month I find it is actually much more productive. until I really sat down and tried it out, it was a bit weird at first. Once you get over the visual differences, the under lying framework is much more powerful and flexible than other java IDE's. the plugin architecture allows one to write plugins for tomcat fairly easily. there seems to be a lot of momentum with eclipse and I personally prefer it to swing. The widget API seems better to me and is much more appealing than swing. there are several server plugins in the work for eclipse including websphere and couple other popular containers. peter Kwok Peng Tuck [EMAIL PROTECTED] wrote:eclipse needs a lot of work, but it looks like they are making progress. Some of their stuff seems counter intuitive at the moment. So I'll take a rain check on that ide. I'm suprised that Sun One Studio would need 512 mb of memory. Have you done some module tuning yet? That might help you reduce memory usage. Tref Gare wrote: I'd be voting more like 512meg memory for Sun One Studio... but similarly.. it's pretty effective once you're up at that level of hardware. I've heard really good things about eclipse though.. when I get a chance I'm going to give it a try. T -- Tref Gare Development Consultant Areeba Level 19/114 William St, Melbourne VIC 3000 email: [EMAIL PROTECTED] phone: +61 3 9642 5553 fax: +61 3 9642 1335 website: http://www.areeba.com.au -- This email is intended only for the use of the individual or entity named above and contains information that is confidential. No confidentiality is waived or lost by any mis-transmission. If you received this correspondence in error, please notify the sender and immediately delete it from your system. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any communication directed to clients via this message is subject to our Agreement and relevant Project Schedule. Any information that is transmitted via email which may offend may have been sent without knowledge or the consent of Areeba. -- -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED]] Sent: Friday, 22 November 2002 9:23 AM To: Tomcat Users List Subject: RE: is there a free ide that gets along well with tomcat? Sun One Studio needs 256Mb of memory. If you haven't got that much, forget it. If you have, it rocks. Andy -Original Message- From: Steve R Burrus [mailto:[EMAIL PROTECTED]] Sent: 21 November 2002 21:29 To: Tomcat Users List Subject: Re: is there a free ide that gets along well with tomcat? Hi Jennifer, this is steve burrus, and I am most curious about u apparently stating that the Sun One Studio (aka Forte) is irritating so you chose/decided to uninstall it unceremoniously :)!! How do you find it to be irritating because I also have certain issues with it, namely that I have to WAIT FOREVER for my PC's processor to be able to do the next operation in the application!!! I await breathlessly for your response. S.R.B. __ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Response.ContentType - not always setting contentType in Header
I think you cannot set contenttype after putting out any response body - so double check that you set the content type as the very first thing before sending any response body. HTH -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 November 2002 8:18 a.m. To: Tomcat Users List Subject: Response.ContentType - not always setting contentType in Header Does anyone know of a reason why response.setContentType() would only sometimes set my content type? I have a single control servlet which sets content type explicitly response.setContentType(text/html); just before it opens an outputStream and writes an XSLT transformation to out. For 70% of my pages the contentType is correct. For 30% of them (even the pages otherwise work perfectly fine) the header info is messed up. There is no contentType specified and contentLenght is 0. Very strange. In these pages (their control classes I do not do anything specific to the response object that is any different from the other pages. In the XsLTs I specify output as HTML on all the pages. Very confusing. Any thoughts as to why this might happen or how to correct it? I think it may be causing me search engine indexing problems. Thanks. Neal attachment: winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat setup
Mark Walker wrote: I have 4.1.12 installed on a Wallstreet G3 Powerbook and it is running great! There's a document in Apple's Developer Forum (http://developer.apple.com/internet/java/tomcat1.html) that covers installing Tomcat on the Mac. It refers to 4.0.1 but should work fine for you. Actually, it sounds like you may be past that part already. The one hurdle I had in the whole process (not in the article) was caused by StuffIt! when it unzipped the download. The filename for the class SetCharacterEncodingFilter.class is too long for StuffIt! so it drops the ss off the end. Now the JVM doesn't find it and you get an error page instead. I believe the file is in two directories (I'm not near the Mac right now). Look in $CATALINA_HOME/webapps/examples/WEB-INF/classes/filters and $CATALINA_HOME/server/webapps/admin/WEB-INF/classes/filters. Just fix the file extension and you should be good to go. The manager and admin applications should only require the following element in your tomcat-users.xml file: user username=your_user_id password=your_password roles=admin,manager/ You should get GNU tar - Stuffit, and Mac OS X tar have a path-length limitation which results in name truncation. Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSP Bean in Tomcat - Urgent
Where does your bean live relative to your webapp? I have no problems if put them under .../webapps/myapp/WEB-INF/classes/beans The JSP should have a tag that looks like: jsp:useBean id=fundProfileToDB class=beans.fundProfileToDB scope=session / On Tuesday, November 26, 2002, at 11:21 PM, Laxmikanth M.S. wrote: Hi , we are facing a problem with using bean in JSP. we are able to compile and run the Bean from the command promt where as the same thing callled from JSP shows compilation error as show below.The classpath is set properly. Any views in this regard highly appreciated. thanks in advance laxmikanth javax.servlet.ServletException: Cannot create bean of class beans.fundProfileToDB at jsp.update_0002dfunds_5._jspService(update_0002dfunds_5.java:182) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:5 74) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485 ) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.ja va:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp 12Int erceptor.java:221) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4 94) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.jav a:516) at java.lang.Thread.run(Thread.java:479) Root cause: java.lang.ClassNotFoundException: class beans.fundProfileToDB : java.lang.IllegalAccessException: beans.fundProfileToDB at java.beans.Beans.instantiate(Beans.java:206) at java.beans.Beans.instantiate(Beans.java:46) at jsp.update_0002dfunds_5._jspService(update_0002dfunds_5.java:180) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:5 74) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485 ) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.ja va:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp 12Int erceptor.java:221) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4 94) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.jav a:516) at java.lang.Thread.run(Thread.java:479) * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP Bean in Tomcat - Urgent
Hi bido. the problem is solved.already barker replied .the constructors were not public so couldn't load the beananyways thanks for the concern Regards Laxmikanth M S Off* : 6610330 extn 1256 Res* : 5267150 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 11:11 AM To: Tomcat Users List Subject: Re: JSP Bean in Tomcat - Urgent Where does your bean live relative to your webapp? I have no problems if put them under .../webapps/myapp/WEB-INF/classes/beans The JSP should have a tag that looks like: jsp:useBean id=fundProfileToDB class=beans.fundProfileToDB scope=session / On Tuesday, November 26, 2002, at 11:21 PM, Laxmikanth M.S. wrote: Hi , we are facing a problem with using bean in JSP. we are able to compile and run the Bean from the command promt where as the same thing callled from JSP shows compilation error as show below.The classpath is set properly. Any views in this regard highly appreciated. thanks in advance laxmikanth javax.servlet.ServletException: Cannot create bean of class beans.fundProfileToDB at jsp.update_0002dfunds_5._jspService(update_0002dfunds_5.java:182) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:5 74) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485 ) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.ja va:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp 12Int erceptor.java:221) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4 94) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.jav a:516) at java.lang.Thread.run(Thread.java:479) Root cause: java.lang.ClassNotFoundException: class beans.fundProfileToDB : java.lang.IllegalAccessException: beans.fundProfileToDB at java.beans.Beans.instantiate(Beans.java:206) at java.beans.Beans.instantiate(Beans.java:46) at jsp.update_0002dfunds_5._jspService(update_0002dfunds_5.java:180) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:5 74) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485 ) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.ja va:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp 12Int erceptor.java:221) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4 94) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.jav a:516) at java.lang.Thread.run(Thread.java:479) * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you
Integrate Tomcat 4.1.12 to Apache 1.3.22 on ASPLinux
Hello everybody I work on ASPLinux 7.2. I installed: - Apache/1.3.22 (Unix) - mod_jk-ap13-1.2.0-1 - tomcat4-4.1.12 and configured: - worker.property: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 - server.xml: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ When I tried to start Tomcat, I received the following catalina.out: Starting service Tomcat-Standalone Nov 26, 2002 7:52:31 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Nov 26, 2002 7:52:31 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=20/295 config=/var/tomcat4/conf/jk2.properties StandardServer.await: Invalid command '' received Nov 26, 2002 7:53:09 PM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) When I try to request http://localhost/index.jsp I see NullPointerException in the catalina.out like this: java.lang.NullPointerException at org.apache.coyote.tomcat4.CoyoteAdapter.log(CoyoteAdapter.java:624) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:230) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSo cket.java:535) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Where did I make a mistake? Help me, please. -- Truly yours Shcherbinko ô.á. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError
Ok, after further investigating, I realize I must have screwed up my Tomcat installation somewhere along the line because a Request Dispatcher that worked several months ago no longer works and give the same errors below. Based on this, I can rule out the Filter code being wrong and turn my attention to stuff I recently added. The prime suspect as always is the xml libraries. Would this affect it ? I hate the fact that adding JAXP to my system breaks some Tomcat things. Recently I added JAXP which means that I now have in tomcat/common/lib, - activation.jar - dom.jar - jaxp-api.jar - jdbc2_0_stdext.jar - jndi.jar - jta.jar - ldap.jar - mail.jar - mysql.jar - naming-common.jar - naming-resources.jar - sax.jar - servlet.jar - tools.jar - tyrex-0.9.7.0.jar - xalan.jar - xercesImpl.jar - xsltc.jar and in tomcat/jasper I have, - crimson.jar - jasper-compiler.jar - jaxp.jar In order to install JAXP I had to remove 'jaxp-api.jar' from tomcat/jasper Could any of this be the cause, or should I really look at just reinstalling the latest stable version of Tomcat4 ? If it helps, my classpath includes, commons-beanutils.jar; (jakarta) commons-collections.jar; (jakarta) jakarta-oro-2.0.6.jar; (jakarta) commons-digester.jar;(jakarta) commons-logging.jar; (jakarta) velocity-J2EE-dep-1.3-rc1.jar; activation.jar; (javamail) mail.jar;(javamail) tomcat_home\common\lib\servlet.jar; dom.jar; (jaxp) jaxp-api.jar; (jaxp) sax.jar; (jaxp) xalan.jar;(jaxp) xercesImpl.jar; (jaxp) xsltc.jar;(jaxp) turbine-2.2-b2-dev.jar; (jetspeed) jetspeed-1.4b1.jar; (jetspeed) ecs-1.4.1.jar;(jetspeed) but things in the classpath shouldn't affect Tomcat, I think. Stephen Stephen Riek [EMAIL PROTECTED] wrote: Thanks for the reply, Craig. Error Trace --- java.lang.IncompatibleClassChangeError This exception normally means you have made a change in a superclass and recompiled it, but not recompiled a subclass that depends on the old APIs. m, I have no idea which class this could be referring to then, unless it means one of Tomcat's distribution classes. To further debug, I removed ALL other classes under WEB-INF/classes, so that I only have my one Filter there. I also removed all jars from WEB-INF/lib, then restarted Tomcat. Therefore, the only superclass involved is the Filter class. I recompiled my LanguageFilter.java and yet the error still occured. at mas.TestFilter.doFilter(Store/LanguageFilter.java:35) What is Store? Is that supposed to be the package name? Sorry, yes, I copied an earlier/older trace. You should recompile *all* your classes to catch any cases where you've made incompatible changes. I've done exactly that now (basically due to the fact that I only have the ONE class - the LanguageFilter.java) I have even deleted the entire contents of the /work directory and restarted Tomcat again to ensure that it is not an old class being cached in memory. Interestingly, the very first time that I make a request to the Filter, I get the following error message: java.lang.LinkageError: Class javax/servlet/RequestDispatcher violates loader constraints at test.LanguageFilter.doFilter(test/LanguageFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) Yet when I hit reload the error message changes to: java.lang.IncompatibleClassChangeError at test.LanguageFilter.doFilter(test/LanguageFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at
Re: Is there a secureCookie type of paramater for Tomcat 4.1.12?
Hello, I will see what I can do, after I get a bit more familiar with the Tomcat architecture. It appears that this may involve modifications to the connectors. As a quick fix for anyone that is interested, and if you are using mod_jk to connect to Apache like myself, you can comment out the lines in apache.ajp.tomcat4.Ajp13Response.java that say: if (hreq.isSecure()) cookie.setSecure(true); This will prevent the Ajp13 connector from marking the sessionId cookie as secure if the request came in under HTTPS. Again, though, you should only do this if you're following similar security precautions as to those that I outlined below, or you may end up the victim of session hijacking, which this code was meant to prevent in the first place. -Raiden On Wed, 27 Nov 2002, Bill Barker wrote: Raiden [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Anyone have any ideas if there is a solution to this problem in 4.1.12, or are we better off reverting back to Tomcat 3.3.2 to restore the old behavior of not making the sessionId cookie a secure cookie if the session was created under https? Certainly in 4.1.12, there is no way to turn this off. If you care enough to submit a patch, this may change in 4.1.17+ (i.e. I'll seriously look at it). Thanks in advance! -Raiden On Mon, 25 Nov 2002, Raiden wrote: Hello, Tomcat 3.3.2 has a secureCookie paramater that restores the old behavior of not making the sessionId cookie a secure cookie if it was created under https. Is there such a parameter in 4.1.12? I know there has been a thread debating the reasons as to why a session that is created under https is not available to http pages. However, I have an application that was designed for the old spec, in which a session was available to both http and https pages, regardless of which protocol the session was created under. I have avoided the security problem of hijacked sessions by making sure that sensitive pages are ALWAYS require https, and I drop a secure cookie of my own when someone logs in (the login page is under https of course), so that even if someone hijacks the http pages, they cannot hijack the https pages without passing back that cookie (whose contents I store in the session for verification). However, since upgrading to 4.1.12, I have realized that my application can no longer function, because I rely on people creating a session under https... and then accessing non-sensitive pages under http. But, in 4.1.12, the session is not available to subsequently accessed http pages... and I really don't want to start encrypting these non-sensitive pages. (But, I do want the user logged in before they can access these pages.) Does something like the secureCookie parameter exist in 4.1.12? Thanks, Raiden -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.12 not responding after few requests
After few requests my Tomcat server 4.1.12 is not responding and gives lots of null pointer exception and following message in the end: Nov 26, 2002 11:50:28 AM org.apache.tomcat.util.log.CommonLogHandler log INFO: All threads are busy, waiting. Please increase maxThreads or check the ser vlet status75 75 What do I do now? Sasi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Hi all .. licence issue ..
I did read the licence but .. can I use sdk or jre in a commercial environnment (not just research developpment but production environment .. ) ? Simple question .. and it was not clear to me in the licence .. Eriam Bill Barker a écrit: Craig R. McClanahan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 27 Nov 2002, Eriam Schaffter wrote: Date: Wed, 27 Nov 2002 02:08:47 + From: Eriam Schaffter [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Hi all .. licence issue .. I just did right now .. One question remains wich is a bit off-topic but maybe people hav experience with it .. Does tomcat includes code from sun (code not covered by Apache licence) and if yes what parts ? Tomcat binary distributions (other than the LE version for 1.4-based JVMs) include the following Sun packages that are redistributable according to the Sun binary license: * activation.jar (JavaBeans Activation Framework APIs) * jdbc2_0-stdext.jar (JDBC 2.0 Optional Package APIs) * jndi.jar (Java Naming and Directory Interface APIs) * jta.jar (Java Transaction Architecture APIs) * mail.jar (JavaMail APIs) * jaas.jar (Java Authencation and Authorization Service APIs) The LE version of Tomcat doesn't include these, because they have all been built in to a JDK 1.4 JVM. Nearly all the other code is from Apache, under the Apache Software License. Exceptions include: * mx4j-jmx.jar (Open source implementation of JMX - license included) Actually can I use the java sdk from sun in a business environment for free ? As with all software, you need to obey the terms of the license. In the case of a Sun JDK, the terms and conditions are in the license you had to click through to download it. You DID read that, didn't you? ;-) Does tomcat run with kaffe or another GPL JVM .. ? I don't know of anyone who has tested Tomcat under such JVMs -- it's possible but IMHO not real likely to run reliably. There is at least one of the developers who tests against kaffe and gcj. Unfortunately for you, he doesn't spend a lot of his time on the 4.x version. According to his reports, at least at one point, Tomcat 4 ran fine with kaffe and gcj (and commented that gcj didn't really beat HotSpot :). The only way to know for sure is to test your application against it. Eriam Craig Subir Sengupta a écrit: Have you looked here http://www.apache.org/foundation/licence-FAQ.html -Original Message- From: Eriam Schaffter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 5:54 PM To: [EMAIL PROTECTED] Subject: Hi all .. licence issue .. I would like to hack a little with tomcat .. I think it would be no problem but my question is if then I want to redistribute a product with tomcat stuff in it what are the requierements ? Does tomcat includes any sun proprietary code ? Is it GPL ? Can I just take tomcat sources, recompile it with added features and distribute back both to tomcat community and to public under my own or my company's brand ? If think it must just be as easier as it (stating in my softs that I use some code from apache fundation ..) as I believe the tomcat licence allows that kind of deals .. Am I right ? Thanks for any tips .. Eriam Schaffter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - Ce courrier a ete considere comme non infecte par les virus connu de notre outil de detection. Soyez cependant prudent avec les pieces jointes. Merci. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - Ce courrier a ete considere comme non infecte par les virus connu de notre outil de detection. Soyez cependant prudent avec les pieces jointes. Merci. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError
Dear Stephen, You got to remove your xerces.jar from the classpath. This one should be conflicting with your existing jaxp classes. I had this problem when i moved xerces.jar into the classpath and i couldnt able to run my files. Hope this helps. karthikeyan. - Original Message - From: Stephen Riek [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 2:54 PM Subject: Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError Ok, after further investigating, I realize I must have screwed up my Tomcat installation somewhere along the line because a Request Dispatcher that worked several months ago no longer works and give the same errors below. Based on this, I can rule out the Filter code being wrong and turn my attention to stuff I recently added. The prime suspect as always is the xml libraries. Would this affect it ? I hate the fact that adding JAXP to my system breaks some Tomcat things. Recently I added JAXP which means that I now have in tomcat/common/lib, - activation.jar - dom.jar - jaxp-api.jar - jdbc2_0_stdext.jar - jndi.jar - jta.jar - ldap.jar - mail.jar - mysql.jar - naming-common.jar - naming-resources.jar - sax.jar - servlet.jar - tools.jar - tyrex-0.9.7.0.jar - xalan.jar - xercesImpl.jar - xsltc.jar and in tomcat/jasper I have, - crimson.jar - jasper-compiler.jar - jaxp.jar In order to install JAXP I had to remove 'jaxp-api.jar' from tomcat/jasper Could any of this be the cause, or should I really look at just reinstalling the latest stable version of Tomcat4 ? If it helps, my classpath includes, commons-beanutils.jar; (jakarta) commons-collections.jar; (jakarta) jakarta-oro-2.0.6.jar; (jakarta) commons-digester.jar;(jakarta) commons-logging.jar; (jakarta) velocity-J2EE-dep-1.3-rc1.jar; activation.jar; (javamail) mail.jar;(javamail) tomcat_home\common\lib\servlet.jar; dom.jar; (jaxp) jaxp-api.jar; (jaxp) sax.jar; (jaxp) xalan.jar;(jaxp) xercesImpl.jar; (jaxp) xsltc.jar;(jaxp) turbine-2.2-b2-dev.jar; (jetspeed) jetspeed-1.4b1.jar; (jetspeed) ecs-1.4.1.jar;(jetspeed) but things in the classpath shouldn't affect Tomcat, I think. Stephen Stephen Riek [EMAIL PROTECTED] wrote: Thanks for the reply, Craig. Error Trace --- java.lang.IncompatibleClassChangeError This exception normally means you have made a change in a superclass and recompiled it, but not recompiled a subclass that depends on the old APIs. m, I have no idea which class this could be referring to then, unless it means one of Tomcat's distribution classes. To further debug, I removed ALL other classes under WEB-INF/classes, so that I only have my one Filter there. I also removed all jars from WEB-INF/lib, then restarted Tomcat. Therefore, the only superclass involved is the Filter class. I recompiled my LanguageFilter.java and yet the error still occured. at mas.TestFilter.doFilter(Store/LanguageFilter.java:35) What is Store? Is that supposed to be the package name? Sorry, yes, I copied an earlier/older trace. You should recompile *all* your classes to catch any cases where you've made incompatible changes. I've done exactly that now (basically due to the fact that I only have the ONE class - the LanguageFilter.java) I have even deleted the entire contents of the /work directory and restarted Tomcat again to ensure that it is not an old class being cached in memory. Interestingly, the very first time that I make a request to the Filter, I get the following error message: java.lang.LinkageError: Class javax/servlet/RequestDispatcher violates loader constraints at test.LanguageFilter.doFilter(test/LanguageFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) Yet when I hit reload the error message changes to:
Re: NoSuchMethodError
The reason *could* be an old version of servlet.jar in $JAVA_HOME/jre/lib Carsten Am Dienstag, 26.11.02, um 19:55 Uhr (Europe/Berlin) schrieb Abhijat Thakur: Hi, When i am trying to access a servlet through tomcat it gives me a java.lang.NoSuchMethodError. From the stack trace at LoginServlet.java:238(which is my servlet) all i am doing is that i have a handle to HttpSession object and i call the setAttribute method to bind an object with the session. Why do i get this error? thanks abhijat java.lang.NoSuchMethodError at org.apache.catalina.session.StandardSession.setAttribute(StandardSessio n.java:1262) at org.apache.catalina.session.StandardSessionFacade.setAttribute(Standard SessionFacade.java:191) at org.apache.catalina.session.StandardSessionFacade.setAttribute(Standard SessionFacade.java:191) at com.bdna.pl.servlet.LoginServlet.doPostMethod(LoginServlet.java:238) at com.bdna.pl.servlet.LoginServlet.service(LoginServlet.java:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic ationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 96) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:4 05) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Connection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 08) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.java:533) at java.lang.Thread.run(Thread.java:484) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Carsten Ziegert Hannover Medical School, Dept. of Hematology and Oncology Carl-Neuberg-Straße 1, 30625 Hannover University of Applied Sciences, Faculty of Information Sciences Ricklinger Stadtweg 120, 30459 Hannover http://summit-bmt.fh-hannover.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Hi all .. licence issue ..
The license states : 1. LICENSE TO USE. Sun grants you a non-exclusive and non-transferable license for the internal use only of the accompanying software... This seems to me to be all the permission you need to use the SDK within your company. In addition, there is language that allows you to Distribute within your company or with your product binarys as long as : (i) you distribute the Redistributables complete and unmodified... So, read it real close once again. --- Eriam Schaffter [EMAIL PROTECTED] wrote: I did read the licence but .. can I use sdk or jre in a commercial environnment (not just research developpment but production environment .. ) ? Simple question .. and it was not clear to me in the licence .. Eriam Bill Barker a écrit: Craig R. McClanahan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 27 Nov 2002, Eriam Schaffter wrote: Date: Wed, 27 Nov 2002 02:08:47 + From: Eriam Schaffter [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Hi all .. licence issue .. I just did right now .. One question remains wich is a bit off-topic but maybe people hav experience with it .. Does tomcat includes code from sun (code not covered by Apache licence) and if yes what parts ? Tomcat binary distributions (other than the LE version for 1.4-based JVMs) include the following Sun packages that are redistributable according to the Sun binary license: * activation.jar (JavaBeans Activation Framework APIs) * jdbc2_0-stdext.jar (JDBC 2.0 Optional Package APIs) * jndi.jar (Java Naming and Directory Interface APIs) * jta.jar (Java Transaction Architecture APIs) * mail.jar (JavaMail APIs) * jaas.jar (Java Authencation and Authorization Service APIs) The LE version of Tomcat doesn't include these, because they have all been built in to a JDK 1.4 JVM. Nearly all the other code is from Apache, under the Apache Software License. Exceptions include: * mx4j-jmx.jar (Open source implementation of JMX - license included) Actually can I use the java sdk from sun in a business environment for free ? As with all software, you need to obey the terms of the license. In the case of a Sun JDK, the terms and conditions are in the license you had to click through to download it. You DID read that, didn't you? ;-) Does tomcat run with kaffe or another GPL JVM .. ? I don't know of anyone who has tested Tomcat under such JVMs -- it's possible but IMHO not real likely to run reliably. There is at least one of the developers who tests against kaffe and gcj. Unfortunately for you, he doesn't spend a lot of his time on the 4.x version. According to his reports, at least at one point, Tomcat 4 ran fine with kaffe and gcj (and commented that gcj didn't really beat HotSpot :). The only way to know for sure is to test your application against it. Eriam Craig Subir Sengupta a écrit: Have you looked here http://www.apache.org/foundation/licence-FAQ.html -Original Message- From: Eriam Schaffter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 5:54 PM To: [EMAIL PROTECTED] Subject: Hi all .. licence issue .. I would like to hack a little with tomcat .. I think it would be no problem but my question is if then I want to redistribute a product with tomcat stuff in it what are the requierements ? Does tomcat includes any sun proprietary code ? Is it GPL ? Can I just take tomcat sources, recompile it with added features and distribute back both to tomcat community and to public under my own or my company's brand ? If think it must just be as easier as it (stating in my softs that I use some code from apache fundation ..) as I believe the tomcat licence allows that kind of deals .. Am I right ? Thanks for any tips .. Eriam Schaffter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] === message truncated === __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Load on Tomcat 4.1.12
Hi All, I need urgent help! I have installed my small webapp on Tomcat 4.1.12 on Windows NT machine but after few requests it is getting hung. Is there any load factor to be configured? What is the maximum no of users it can take? I had downloaded this Tomcat form Jakarta.apache.org site. Where I may be going wrong? Please help, Thanks, Sasi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Unexpected excpetion... error message with web.xml file
Hello, I am using Tomcat 4.1 under Windows NT (with service pack 2 installed) and jdk1.3. I have configured a JDBC realm in my server.xml file (to connect to a MSAccess database through JDBC:ODBC bridge) by doing the following for my web app: Context path=/dasreiseportal docBase=dasreiseportal debug=0 Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=sun.jdbc.odbc.JdbcOdbcDriver connectionURL=jdbc:odbc:LoginDBTest userTable=Users userNameCol=UserName userCredCol=UserPassword userRoleTable=UserRoles roleNameCol=RoleName / /Context (I have also tried the Realm tag outside the Context tag). I also have a web.xml file under the daseriseportal webapplication folder which is: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; !-- - Deployment descriptor for an authenticated - section of the web site. -- web-app display-nameDasreiseportal/display-name descriptionConfiguration for dasreiseportal realm./description security-constraint web-resource-collection web-resource-namedasreiseportal/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-namedasreiseportal/role-name /auth-constraint /security-constraint login-config !-- BASIC authentication, i.e. the authentication resets when the user closes his/her browser -- auth-methodBASIC/auth-method realm-nameDasreiseportal/realm-name /login-config /web-app Everytime I startup Tomcat it throws a An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x1f90f56c Function name=SQLFetch Library=C:\WINNT\System32\ODBCJT32.DLL Current Java thread: at sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native Method) and goes on with several pages of error messages. If I do not put the web.xml file under the dasreiseportal folder then everything works fine (but I have no realm). I have set up the tables and roles properly in the database (according to Tomcat Realm documentation). I have looked for known bugs in apache's web site but I could not find anything relevant. I have looked through the Tomcat archives and some more people had the same error (though not with Tomcat 4.1 buit with 3.2.2). They suggested that a MSACCESS db might not be suitable for commercial use, but this is the only solution I can go with at the moment. Any help/thoughts are appreciated. Regards Panos __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Load on Tomcat 4.1.12
Hi, If you are connecting to the database make sure it closes the connection. I had a similar problem before when the database pooling failed to work leaving behind several abandon connections. As time goes the number of open connections increased and applications becomes very slow. Hope this helps Deepa -Original Message- From: P Sasidhar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 10:54 AM To: Tomcat Users List Subject: Load on Tomcat 4.1.12 Hi All, I need urgent help! I have installed my small webapp on Tomcat 4.1.12 on Windows NT machine but after few requests it is getting hung. Is there any load factor to be configured? What is the maximum no of users it can take? I had downloaded this Tomcat form Jakarta.apache.org site. Where I may be going wrong? Please help, Thanks, Sasi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Load on Tomcat 4.1.12
Hi Deepa, Thanks for your suggestion.But infact i am closing all the connections.But still it is throwing exception saying that Increase the mex threads in pool.even I did that.but the problem is still there.. Thanks sasi -Original Message- From: Deepa Raja [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 4:29 PM To: Tomcat Users List Subject: RE: Load on Tomcat 4.1.12 Hi, If you are connecting to the database make sure it closes the connection. I had a similar problem before when the database pooling failed to work leaving behind several abandon connections. As time goes the number of open connections increased and applications becomes very slow. Hope this helps Deepa -Original Message- From: P Sasidhar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 10:54 AM To: Tomcat Users List Subject: Load on Tomcat 4.1.12 Hi All, I need urgent help! I have installed my small webapp on Tomcat 4.1.12 on Windows NT machine but after few requests it is getting hung. Is there any load factor to be configured? What is the maximum no of users it can take? I had downloaded this Tomcat form Jakarta.apache.org site. Where I may be going wrong? Please help, Thanks, Sasi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Server failure
Hi all. I have installed Apache 2.0.43 + Tomcat 4.1.12 + jk2 connector. All works fine but sometimes the server don't work and when i make top i find a process java or javac with a 98% CPU and in memory a lot of minutes (200 min) or others with 0% CPU in memory for hours. I made a script to capture this and reiniciate the services and then all work well, but this isn't a solution. Can anybody help me? I supose that this isn't only an error in web design. Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Host Context - Unpacking of WARs
Hello, I have two configurations: 1st one works 2nd doesn't. I want to get the 2nd to work though as it stops .war files unpacking. Can anyone tell me how to make the 2nd one work? The error I get is: Forbidden You don't have permission to access / on this server. But I think that's coming from the Apache server so it isn't even getting to tomcat? Thanks, Andoni. Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo unpackWARs=true Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo.war unpackWARs=false Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Coyote:: ArrayIndexOutOfBoundsException
Hi, When using version tc. 4.1.14 this exception sometimes occures : java.lang.ArrayIndexOutOfBoundsException at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:615) at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:407) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:901) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471) at org.apache.coyote.Response.action(Response.java:214) at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:371) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:428) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) What should I bee looking at ? -reynir
Failed JK connection
Hi, I have installed - Apache/1.3.22 (Unix) - mod_jk-ap13-1.2.0-1 - tomcat4-4.1.12 At start Tomcat4 gives out a mistake Starting service Tomcat-Standalone Nov 26, 2002 7:52:31 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Nov 26, 2002 7:52:31 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=20/295 config=/var/tomcat4/conf/jk2.properties StandardServer.await: Invalid command '' received Nov 26, 2002 7:53:09 PM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) How to solve this problem? Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Unexpected excpetion... error message with web.xml file
Further information, I just figured out that the exception is thrown in the following lines of my web.xml file: auth-constraint role-namedasreiseportal/role-name /auth-constraint If I completely take out the role-name tag then the web application works fine (but I do not have the Realm, at least I can see it running). If I have it there- even if it is empty- an unexpected exception occurs. Any thoughts/suggestions? __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Load on Tomcat 4.1.12
Hi, I found a similar problem using connections poolling. When I executed a close() method, the connection wasn't returned to the pool. When i reached the maximum limit, I cannot do more connections. I tried the following and it worked: (..) Connection conn = null; conn = ds.getConnection(); conn.setAutoCommit(false); (...) conn.close(); conn = null; // Add this line after closing -Mensaje original- De: Deepa Raja [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 27 de noviembre de 2002 12:26 Para: Tomcat Users List Asunto: RE: Load on Tomcat 4.1.12 Hi Sasi Closing connections in a pool (within tomcat) doesn't return the connection back to the pool. I have not solved this problem yet. But restarting tomcat closes all the connections. I did test my connection pool with other applications that do not use tomcat. I did not have any problem at all. only when i try to close the connection within tomcat it is not returning the connection back to the pool. Does anyone have encountered similar problem? Please throw some light on this. (I'm not using tomcat's connection pooling) Deepa -Original Message- From: P Sasidhar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 11:17 AM To: Tomcat Users List Subject: RE: Load on Tomcat 4.1.12 Hi Deepa, Thanks for your suggestion.But infact i am closing all the connections.But still it is throwing exception saying that Increase the mex threads in pool.even I did that.but the problem is still there.. Thanks sasi -Original Message- From: Deepa Raja [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 4:29 PM To: Tomcat Users List Subject: RE: Load on Tomcat 4.1.12 Hi, If you are connecting to the database make sure it closes the connection. I had a similar problem before when the database pooling failed to work leaving behind several abandon connections. As time goes the number of open connections increased and applications becomes very slow. Hope this helps Deepa -Original Message- From: P Sasidhar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 10:54 AM To: Tomcat Users List Subject: Load on Tomcat 4.1.12 Hi All, I need urgent help! I have installed my small webapp on Tomcat 4.1.12 on Windows NT machine but after few requests it is getting hung. Is there any load factor to be configured? What is the maximum no of users it can take? I had downloaded this Tomcat form Jakarta.apache.org site. Where I may be going wrong? Please help, Thanks, Sasi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Response.ContentType - not always setting contentType in Header
Yes you are correct I believe - you must set the contentType prior to writing to out. But ... I am. And, still 2 of my more important pages are not showing the contentType as being defined...those same two pages show a contentLength of 0, and yet those same two pages seem to work perfectly fine. Well, the real reason I am worried about this is that I heard a rumor that this could affect search engine crawling - that is may prevent some engines from crawling the content. Does anyone know if this is true? Thanks. Neal -Original Message- From: David Tildesley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 12:20 AM To: Tomcat Users List Subject: RE: Response.ContentType - not always setting contentType in Header I think you cannot set contenttype after putting out any response body - so double check that you set the content type as the very first thing before sending any response body. HTH -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 November 2002 8:18 a.m. To: Tomcat Users List Subject: Response.ContentType - not always setting contentType in Header Does anyone know of a reason why response.setContentType() would only sometimes set my content type? I have a single control servlet which sets content type explicitly response.setContentType(text/html); just before it opens an outputStream and writes an XSLT transformation to out. For 70% of my pages the contentType is correct. For 30% of them (even the pages otherwise work perfectly fine) the header info is messed up. There is no contentType specified and contentLenght is 0. Very strange. In these pages (their control classes I do not do anything specific to the response object that is any different from the other pages. In the XsLTs I specify output as HTML on all the pages. Very confusing. Any thoughts as to why this might happen or how to correct it? I think it may be causing me search engine indexing problems. Thanks. Neal attachment: winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Unexpected excpetion... error message with web.xml file
Hi, Create the role name which you have mentioned in your web.xml in tomcat_users.xml under TOMCAT-HOME/conf directory. I think this should solve the problem sasi -Original Message- From: Panos Konstantinidis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 5:25 PM To: Tomcat Users List Subject: Re: Unexpected excpetion... error message with web.xml file Further information, I just figured out that the exception is thrown in the following lines of my web.xml file: auth-constraint role-namedasreiseportal/role-name /auth-constraint If I completely take out the role-name tag then the web application works fine (but I do not have the Realm, at least I can see it running). If I have it there- even if it is empty- an unexpected exception occurs. Any thoughts/suggestions? __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Unexpected excpetion... error message with web.xml file
Hello Sasi, thank you for your reply. I am using the JDBC realm in order to configure a pay site. As we already have setup a database (in which we add all the new users that register) using the memory realm would not do. The thing is that I have set up all the roles and the usernames in the database but unexpected exception is thrown everytime the role-name tag in the web.xml file is encountered by Tomcat. Any more help? Regards Panos --- P Sasidhar [EMAIL PROTECTED] wrote: Hi, Create the role name which you have mentioned in your web.xml in tomcat_users.xml under TOMCAT-HOME/conf directory. I think this should solve the problem sasi -Original Message- From: Panos Konstantinidis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 5:25 PM To: Tomcat Users List Subject: Re: Unexpected excpetion... error message with web.xml file Further information, I just figured out that the exception is thrown in the following lines of my web.xml file: auth-constraint role-namedasreiseportal/role-name /auth-constraint If I completely take out the role-name tag then the web application works fine (but I do not have the Realm, at least I can see it running). If I have it there- even if it is empty- an unexpected exception occurs. Any thoughts/suggestions? __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HTTP to HTTPS redirect
It works fine when I put in BASIC Authentication (which I really don't want to do) where I have to use a username and password to get to the Login Page; however, as soon as I remove this, I get the error mentioned about access control. Joel Werginz -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 6:19 PM To: 'Tomcat Users List' Subject: RE: HTTP to HTTPS redirect Does the form login work at all? Did you try without user-auth-constraintconfidential/...? The error message doesn't sound like a redirect problem. Rather sounds to me like if there are no security roles set or something wrong with the configuration. Double check with the examples webapp and it's web.xml, the tomcat-user.xml and the jsp/security/protected/ directory to see if everything is okay. Guess something in the chain security-constraintauth-constraintrole-name and/or security-rolerole-name in web.xml config is missing. Try if you get /examples/jsp/security/protected working without SSL first. Then add confidential. -Original Message- From: Joel Werginz [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 23:20 To: [EMAIL PROTECTED] Subject: HTTP to HTTPS redirect All, Been reading posts about this. Changed to HTTP port 80 and HTTPS to port 443. I am using Win2K, IE6. When I type in an http page that is supposed to redirect, I get the following: HTTP Status 500 - Configuration error: Cannot perform access control without an authenticated principle. Note: The page does get re-directed; however shows me an error page instead of my login page. This also happened when I was using 8080 and 8443. Using simple keytool verification based on the user's guide. Joel Werginz sends. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat setup
-Original Message- From: Mark Walker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 6:33 PM To: [EMAIL PROTECTED] Subject: Re: tomcat setup I have 4.1.12 installed on a Wallstreet G3 Powerbook and it is running great! There's a document in Apple's Developer Forum (http://developer.apple.com/internet/java/tomcat1.html) that covers installing Tomcat on the Mac. It refers to 4.0.1 but should work fine for you. Actually, it sounds like you may be past that part already. The one hurdle I had in the whole process (not in the article) was caused by StuffIt! when it unzipped the download. The filename for the class SetCharacterEncodingFilter.class is too long for StuffIt! so it drops the ss off the end. Just an FYI, I have heard that there are sometimes other difficulties encountered when using Stuffit Expander's ZIP and GZIP unpacking. The gnutar and gunzip utilities in Terminal are a safer bet. Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Coyote:: ArrayIndexOutOfBoundsException
Reynir Hübner writes: Hi, When using version tc. 4.1.14 this exception sometimes occures : java.lang.ArrayIndexOutOfBoundsException at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:615) at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:407) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:901) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471) at org.apache.coyote.Response.action(Response.java:214) at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:371) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:428) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) What should I bee looking at ? -reynir Hello Reynir, difficult to get people to answer questions like these. it would be prudent to add: app type running (jsp, servlet, applet, cgi, html etc.) what were u trying to do w/ the application? what defines: platform, os, environment, config (apache, tomcat, other servlet container, j2ee container), network (firewall, proxies, public, private, etc.)? anything that may tip off an experienced developer as to what ur probem is and how to solve it. david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache and Tomcat port mapping
I have recently installed Tomcat 3.3.1 along with Apache. The two are working well together, and I have no complaints except that my Apache pages all have the xxx.mydomain.org/ structure while my Tomcat pages are isolated and appear under the xxx.mydomain.org:8080/ structure. Is there a way to get Tomcat to respond to port 80 requests or some other mechanism for removing the port number from appearing to users??? Thanks, Brian Brian Dixon Regenstrief Institute, Inc. Indiana University Medical Center 1050 Wishard Blvd. Indianapolis, IN 46202 (317) 630-8822 Web: www.regenstrief.org Email: [EMAIL PROTECTED] Human creativity multiplied by the computing power of super-recursive devices and algorithms will cause the real revolution in information technology and in our lives. - Mark Burgin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Load on Tomcat 4.1.12
P Sasidhar writes: Hi All, I need urgent help! I have installed my small webapp on Tomcat 4.1.12 on Windows NT machine but after few requests it is getting hung. Is there any load factor to be configured? What is the maximum no of users it can take? I had downloaded this Tomcat form Jakarta.apache.org site. Where I may be going wrong? Please help, Thanks, Sasi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Sasi, what small app? (jsp, servlet)? did u try the out-of-the-box /examples or demos first? e.g. http://localhost:8080 ? did u change any config? if so, what did u change? (build.xml, web.xml, server.xml)? since this is a windoz box what other services r u running that may conflict? how is ur environment setup? (CLASSPATH, PATH)? david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Failed JK connection
It looks like you have mod_jk 1.2 installed in Apache but have JK2 configured in Tomcat. These two are not compatible. Posting your apache mod_jk config and the connector portion of your tomcat server.xml would make it much easier to answer your question. I would also recommend upgrading apache to the latest 1.3.27 release. This won't solve your problem but their have been security patches to apache since 1.3.22. Regards, Glenn Scherbinko Timur wrote: Hi, I have installed - Apache/1.3.22 (Unix) - mod_jk-ap13-1.2.0-1 - tomcat4-4.1.12 At start Tomcat4 gives out a mistake Starting service Tomcat-Standalone Nov 26, 2002 7:52:31 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Nov 26, 2002 7:52:31 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=20/295 config=/var/tomcat4/conf/jk2.properties StandardServer.await: Invalid command '' received Nov 26, 2002 7:53:09 PM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) How to solve this problem? Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
REPOST: Coyote:: ArrayIndexOutOfBoundsException
Hello, Sorry I probably did not provide enough information in the first request, so this is my second attempt: Well it looks as if it's an exception being thrown from coyote http connector, that I am using, in a tomcat-standalone setup (no apache/IIS isntl) As this is a server running more than 20 different applications in more than 20 different virtual hosts (yet not much load), I am unable to point out what kind of action causes the error, if it's a servlet, jsp or even perl cgi apps, or something else (there for I asked where I should look). When this exception happenes, the server uses a lot of it's processing power (60%-70%) for some time (1-2 minutes) and then caughes up this exception, on the System.out : 2002-11-27 11:41:33 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.ArrayIndexOutOfBoundsException at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:615) at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:407) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:901) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471) at org.apache.coyote.Response.action(Response.java:214) at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:371) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:509) at org.apache.coyote.Response.action(Response.java:216) at org.apache.coyote.Response.finish(Response.java:336) at org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:504) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) I'm running WindowsXP pro, tomcat 4.1.14 in a DMZ. So, do you know which arrays index is going out of bounds... Should I move to tc.4.1.12 (as it's stable release but 4.1.14 is not). Thanx [EMAIL PROTECTED] Hello Reynir, difficult to get people to answer questions like these. it would be prudent to add: app type running (jsp, servlet, applet, cgi, html etc.) what were u trying to do w/ the application? what defines: platform, os, environment, config (apache, tomcat, other servlet container, j2ee container), network (firewall, proxies, public, private, etc.)? anything that may tip off an experienced developer as to what ur probem is and how to solve it. david. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Host Context - Unpacking of WARs
unpackwars=false should only mean that the app runs from the packed .war file, or so the Tomcat documentation seems to say. I do also have a web.xml but I don't see where this comes in to the configuration of the Host elements? Andoni. - Original Message - From: David Brown [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 11:47 AM Subject: Re: Host Context - Unpacking of WARs Andoni writes: Hello, I have two configurations: 1st one works 2nd doesn't. I want to get the 2nd to work though as it stops .war files unpacking. Can anyone tell me how to make the 2nd one work? The error I get is: Forbidden You don't have permission to access / on this server. But I think that's coming from the Apache server so it isn't even getting to tomcat? Thanks, Andoni. Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo unpackWARs=true Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo.war unpackWARs=false Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Andoni, so did u look at ur httpd.conf directives: directory..., alias... etc? but tc is a web server too when requests r handed off from apache. tc looks at / as docbase or appbase root so what u have in ur war file becomes /application_context where application_context is the web app u have defined 4 tc to unpack. i don't see how the web app can execute if unpackWARS=false. r u defining a web.xml at all or r u only interested in configuring server.xml? thanx, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Coyote:: ArrayIndexOutOfBoundsException
Reynir Hübner wrote: Hi, When using version tc. 4.1.14 this exception sometimes occures : java.lang.ArrayIndexOutOfBoundsException at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:615) at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:407) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:901) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471) at org.apache.coyote.Response.action(Response.java:214) at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:371) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:428) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) What should I bee looking at ? The exception can be ignored (it might happen only in the case of a client disconnect, so at this point, what happens doesn't really matter anymore; this also only causes a very small performance drop). The problem has been fixed in 4.1.16. Remy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.12 not responding after few requests
P Sasidhar writes: After few requests my Tomcat server 4.1.12 is not responding and gives lots of null pointer exception and following message in the end: Nov 26, 2002 11:50:28 AM org.apache.tomcat.util.log.CommonLogHandler log INFO: All threads are busy, waiting. Please increase maxThreads or check the ser vlet status75 75 What do I do now? Sasi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Sasi, again what r u trying to do? what requests? i must assume browser requests. what is ur url? have u tried to re-install tc and run only a simple test or tomcat supplied example or demo? david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Host Context - Unpacking of WARs
Your second Host config sets the appBase to a war file, this is not valid, it has to be a directory. Glenn Andoni wrote: Hello, I have two configurations: 1st one works 2nd doesn't. I want to get the 2nd to work though as it stops .war files unpacking. Can anyone tell me how to make the 2nd one work? The error I get is: Forbidden You don't have permission to access / on this server. But I think that's coming from the Apache server so it isn't even getting to tomcat? Thanks, Andoni. Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo unpackWARs=true Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo.war unpackWARs=false Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache and Tomcat port mapping
use connector mod_jk Regards Laxmikanth M S Off* : 6610330 extn 1256 Res* : 5267150 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson -Original Message- From: Brian Dixon [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 6:30 PM To: [EMAIL PROTECTED] Subject: Apache and Tomcat port mapping I have recently installed Tomcat 3.3.1 along with Apache. The two are working well together, and I have no complaints except that my Apache pages all have the xxx.mydomain.org/ structure while my Tomcat pages are isolated and appear under the xxx.mydomain.org:8080/ structure. Is there a way to get Tomcat to respond to port 80 requests or some other mechanism for removing the port number from appearing to users??? Thanks, Brian Brian Dixon Regenstrief Institute, Inc. Indiana University Medical Center 1050 Wishard Blvd. Indianapolis, IN 46202 (317) 630-8822 Web: www.regenstrief.org Email: [EMAIL PROTECTED] Human creativity multiplied by the computing power of super-recursive devices and algorithms will cause the real revolution in information technology and in our lives. - Mark Burgin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Coyote:: ArrayIndexOutOfBoundsException
Thanx remy! -reynir -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED]] Sent: 27. nóvember 2002 13:11 To: Tomcat Users List Subject: Re: Coyote:: ArrayIndexOutOfBoundsException Reynir Hübner wrote: Hi, When using version tc. 4.1.14 this exception sometimes occures : java.lang.ArrayIndexOutOfBoundsException at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOu tputBuffer.java:615) at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(Inter nalOutputBuffer.java:407) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http1 1Processor.java:901) at org.apache.coyote.http11.Http11Processor.action(Http11Processo r.java:471) at org.apache.coyote.Response.action(Response.java:214) at org.apache.coyote.http11.InternalOutputBuffer.endRequest(Inter nalOutputBuffer.java:371) at org.apache.coyote.http11.Http11Processor.process(Http11Process or.java:428) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) What should I bee looking at ? The exception can be ignored (it might happen only in the case of a client disconnect, so at this point, what happens doesn't really matter anymore; this also only causes a very small performance drop). The problem has been fixed in 4.1.16. Remy -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Integrate Tomcat 4.1.12 to Apache 1.3.22 on ASPLinux
If you are using mod_jk 1.2 for Apache your Connector on the Tomcat side needs to be Ajp13 instead of Coyote. Here is an example: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 connectionTimeout=0 debug=0/ Regards, Glenn ýÅÒÂÉÎËÏ ôÉÍÕÒ áÌÅËÓÁÎÄÒÏ×ÉÞ wrote: Hello everybody I work on ASPLinux 7.2. I installed: - Apache/1.3.22 (Unix) - mod_jk-ap13-1.2.0-1 - tomcat4-4.1.12 and configured: - worker.property: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 - server.xml: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ When I tried to start Tomcat, I received the following catalina.out: Starting service Tomcat-Standalone Nov 26, 2002 7:52:31 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Nov 26, 2002 7:52:31 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=20/295 config=/var/tomcat4/conf/jk2.properties StandardServer.await: Invalid command '' received Nov 26, 2002 7:53:09 PM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) When I try to request http://localhost/index.jsp I see NullPointerException in the catalina.out like this: java.lang.NullPointerException at org.apache.coyote.tomcat4.CoyoteAdapter.log(CoyoteAdapter.java:624) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:230) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSo cket.java:535) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Where did I make a mistake? Help me, please. -- Truly yours Shcherbinko ô.á. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem downloading binary files, why no one helped me?
-- Forwarded message -- Date: Tue, 26 Nov 2002 21:30:36 -0500 (EST) From: Vy Ho [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Weird error using file download I got a very weird error and here is the situation: The app I used: tomcat 4.06, phoenix web browser 0.3, ie6.0 Here is the problem: When I set up an application in tomcat (with BASIC AUTHEN), phoenix could download all binary files (.exe, .pdf, etc...) fine from Tomcat server. Then I tested with IE6.0, and I got error (server could not find the file or something). However, IE6.0 could download text file ok without any problem. Ok, so I came back and delete the file index.html in the application, and I can download the file fine. Isn't this strange? But that's not all yet. I want to serve files using a servlet wraper. Basically send back the binary with the right content type. Mozilla/phoenix can download without any problem. But IE6.0 complain with the same error before. So, somehow the index.html file and the servlet have something in common that make IE not working while it works without the index.html and statically. Well, want another strange thing? I could not find anyone complain about this, or even ask any question about this in newsgroup or apache site. And I can produce consistently using different machine. Anyone have any idea? Is it Apache Tomcat or IE error? Or both? Or it's me? I am sure Tomcat can be changed to work, since statically served page works. And I am sure IE can be changed to work, since Mozilla works all the time. Actually, I found any article in the newsgroup on Google with a similar error, but very different situation (IIS server). And the problem is in the expiration of a page. If some page has instant expiration, then IE6 has problem getting it. It could be the same problem. Coudl someone help me out here since IE has 95% of the market share? Thank you very much in advance. Vy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Search engine for the tomcat-user mailing list
Hello everybody! Is there a search engine for the tomcat-user and tomcat-dev mailing list? I would like to find and read old posts using key-words. Thanks to everybody in advance! Luca
Re: Pb with HEAD request
Hi Kristján, in fact, i've first check the RFC of HTTP 1.1 (see after the mail what it says about HEAD command). So i've look to the servlet specification .And haven't seen the doHead method. Next to your reply , i've checked again, and discover that i MISSED it :-( So i've coded the doHead method , but it never seems to be called by my servlet. I can't manage to know if this is a client or a server issue. Anyone gets an idea. ? Anynyway, i think i will have to implement a cache , because some of my Get actions need many calculation, and doing this twice for the same request will decrease the application performance. Thanks for help, regards, Cédric From RFC 2616 about HTTP 1.1 9.4 HEAD The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. This method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification. The response to a HEAD request MAY be cacheable in the sense that the information contained in the response MAY be used to update a previously cached entity from that resource. If the new field values indicate that the cached entity differs from the current entity (as would be indicated by a change in Content-Length, Content-MD5, ETag or Last-Modified), then the cache MUST treat the cache entry as stale. - Original Message - From: Kristján Bjarni Guðmundsson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 4:40 PM Subject: Re: Pb with HEAD request You really should look into the servlet specification. I think if you override doHead for your servlet doHead(HttpServletRequest req, HttpServletResponse resp) Receives an HTTP HEAD request from the protected service method and handles the request. Default action for doHead is to simply call doGet Cédric Viaud [EMAIL PROTECTED] wrote on 26.11.2002 15:32:45: Hi, I have Tomcat server 4.0.4 on NT 4 that contains a servlets in charge to create SVG content. The client is Internet Explorer 5.5. It loads the following simple HTML page : html body embed width=200 height=200 src=http://localhost:8080/myContext/MyServlet /body /html The problem is that my servlet is invoked twice. My supposition is that IE is sending a HEAD (or GET) request to know the content type of the URL and then run the Adobe SVG plugin. When started the plugin connects also the servlet to get SVG content. HTTP spec says that HEAD request must return the same headers as GET request. What is sure is that my code is executed twice, not only the part that concerns response headers. But how can I do to know with the servlet if the request is a GET or a HEAD. I test the HttpRequest.getMethod() but it always return GET. Does someone know how to configure tomcat or anything else to avoid the two executions ? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache/Tomcat Security
Run Tomcat with the Java SecurityManager (-security startup option) and only grant the minimum permissions necessary to your webapp. See the Security Manager HOWTO in the Tomcat docs. Glenn Anderson, M. Paul wrote: I am preparing to launch my first web site utilizing an Apache/Tomcat configuration. The server will host a single web site, at least for now that uses servlets and jsp with a database backend. I have set up the Apache and Tomcat as discussed in the documentation with much help from people on this list. Now my question concerns whether or not I need to do anything in Apache or Tomcat to protect my site beyond what Apache and Tomcat are already set up to do. How secure can I truly expect my site to be using Apache and Tomcat as is? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem downloading binary files, why no one helped me?
enable http 1.1 in ie Vy Ho wrote: -- Forwarded message -- Date: Tue, 26 Nov 2002 21:30:36 -0500 (EST) From: Vy Ho [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Weird error using file download I got a very weird error and here is the situation: The app I used: tomcat 4.06, phoenix web browser 0.3, ie6.0 Here is the problem: When I set up an application in tomcat (with BASIC AUTHEN), phoenix could download all binary files (.exe, .pdf, etc...) fine from Tomcat server. Then I tested with IE6.0, and I got error (server could not find the file or something). However, IE6.0 could download text file ok without any problem. Ok, so I came back and delete the file index.html in the application, and I can download the file fine. Isn't this strange? But that's not all yet. I want to serve files using a servlet wraper. Basically send back the binary with the right content type. Mozilla/phoenix can download without any problem. But IE6.0 complain with the same error before. So, somehow the index.html file and the servlet have something in common that make IE not working while it works without the index.html and statically. Well, want another strange thing? I could not find anyone complain about this, or even ask any question about this in newsgroup or apache site. And I can produce consistently using different machine. Anyone have any idea? Is it Apache Tomcat or IE error? Or both? Or it's me? I am sure Tomcat can be changed to work, since statically served page works. And I am sure IE can be changed to work, since Mozilla works all the time. Actually, I found any article in the newsgroup on Google with a similar error, but very different situation (IIS server). And the problem is in the expiration of a page. If some page has instant expiration, then IE6 has problem getting it. It could be the same problem. Coudl someone help me out here since IE has 95% of the market share? Thank you very much in advance. Vy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Granting security permissions not working
In Tomcat 4.0 the URL used for the codeBase for jar files located in /WEB-INF/lib starts with jar:file:..., your grant below starts with file: Those are two different codeBases! The SecurityManager is very picky about where code comes from when granting permissions, the URL must start with the exact same text. Regards, Glenn [EMAIL PROTECTED] wrote: I am not able to grant security permissions on individual jar files. Can someone tell me what I'm doing wrong? In my policy file (CATALINA_HOME/conf/catalina.policy) I have the following setting: grant codeBase file:${catalina.home}/- { permission java.security.AllPermission; }; I would think this would grant all permissions to all jar files, classes, etc under the catalina directory, including webapps' classes/jars. However, I keep getting the following (I set security debug output according to the following -- java.security.debug=access,failure): access: access denied (java.util.PropertyPermission log4j.defaultInitOverride read) java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1071) at java.security.AccessControlContext.checkPermission(AccessControlContext. java:259) at java.security.AccessController.checkPermission(AccessController.java:401 ) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291) at java.lang.System.getProperty(System.java:611) at org.apache.log4j.helpers.OptionConverter.getSystemProperty(OptionConvert er.java:92) at org.apache.log4j.LogManager.clinit(LogManager.java:117) at org.apache.log4j.Logger.getLogger(Logger.java:85) at com.cssc.security.CognisecAuthFilter$1.run(CognisecAuthFilter.java:85) at java.security.AccessController.doPrivileged(Native Method) at com.cssc.security.CognisecAuthFilter.clinit(CognisecAuthFilter.java:83 ) ... access: domain that failed ProtectionDomain (jar:file:C:/tomcat/webapps/cssc/WEB-INF/lib/log4j-1.2.6.jar!/org/apache /log4j/helpers/OptionConverter.class no certificates) WebappClassLoader available: Extension[Struts Framework, implementationVendor=Apache Software Foundation, implementationVendorId=org.apache, implementationVersion=1.0.2, specificationVendor=Apache Software Foundation, specificationVersion=1.0] delegate: false repositories: /WEB-INF/classes/ required: -- Parent Classloader: + other stuff. What gives? I don't understand why this is not working. Please help! Running Tomcat 4.0.4, J2SDK 1.4.0, on a winxp box Thanks, John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
OFF-TOPIC: creating classes
Hi all, I know this is off-topic, but I just had a crazy idea and couldn't find about it anywhere... There is a way to modify/create java classes at runtime? I mean, create plain new classes, or add attributes/methods to an existing, etc? Maybe I'm asking for Java++? :-) -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Why does Tomcat 4 suspend itself?
Luca Ventura writes: Hello! I have Tomcat 4.0.4-b3 as Servlet Container (I use it as a plug-in of IIS 5, using the ISAPI filter isapi_redirector.dll )and I have seen that sometimes the following strange thing happens When Tomcat doesn't receive user's requests (forwarded from IIS) for a period of time (that can take minutes or hours) it suspends itself and I must restart the service manually because Tomcat doesn't answer to the users' requests any more. In fact when this happens and the user tries to connect to Tomcat he waits for an answer forever without success until the connection is closed by the Web Browser because it is timed out. Is there some setting in Tomcat to avoid this? Has someone already had such problem? If yes, how did he solve it? Is this a bug of the version of Tomcat (or of the ISAPI filter) I am using? I hope someone can help me Thanks in advance. Luca -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Luca, try running tc as standalone and not as a service to test. thanx, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError
what you compile against and what tomcat is using *could* be two different things if your classpath is not identical to /common/lib(and WEB-INF/lib), which it looks like yours is very different. Therefore if your class was compiled against some library that contains a different version of any classes(i.e. older/newer xerces) than tomcat is running then you could have an incompatibility like that. Tomcat ignores the classpath, so apparently you did compile against an newer version of xerces. If you need this newer version, replace the one in /tomcat/lib. Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 6:02 AM To: Tomcat Users List Subject: Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError Dear Karthikeyan, I would have been willing to bet almost anything that your suggestion would not work. And I would have lost badly. Thank you indeed, I removed all the JAXP stuff (including Xerces.jar) from my classpath and now the Filters work fine. Why on earth this should work is beyond me. I thought that Tomcat had its own classloader and would use its own packages instead of those on the classpath. This also leaves me wondering how I'm supposed to go about compiling all of my classes that use XML/JAXP on my machine, now that I've removed it all. If only everybody used the same XML libraries it would be much easier. Thanks again, you've made my day. Stephen. karthikeyan.balasubramanian [EMAIL PROTECTED] wrote:Dear Stephen, You got to remove your xerces.jar from the classpath. This one should be conflicting with your existing jaxp classes. I had this problem when i moved xerces.jar into the classpath and i couldnt able to run my files. Hope this helps. karthikeyan. - Original Message - From: Stephen Riek To: Tomcat Users List Sent: Wednesday, November 27, 2002 2:54 PM Subject: Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError Ok, after further investigating, I realize I must have screwed up my Tomcat installation somewhere along the line because a Request Dispatcher that worked several months ago no longer works and give the same errors below. Based on this, I can rule out the Filter code being wrong and turn my attention to stuff I recently added. The prime suspect as always is the xml libraries. Would this affect it ? I hate the fact that adding JAXP to my system breaks some Tomcat things. Recently I added JAXP which means that I now have in /common/lib, - activation.jar - dom.jar - jaxp-api.jar - jdbc2_0_stdext.jar - jndi.jar - jta.jar - ldap.jar - mail.jar - mysql.jar - naming-common.jar - naming-resources.jar - sax.jar - servlet.jar - tools.jar - tyrex-0.9.7.0.jar - xalan.jar - xercesImpl.jar - xsltc.jar and in /jasper I have, - crimson.jar - jasper-compiler.jar - jaxp.jar In order to install JAXP I had to remove 'jaxp-api.jar' from /jasper Could any of this be the cause, or should I really look at just reinstalling the latest stable version of Tomcat4 ? If it helps, my classpath includes, commons-beanutils.jar; (jakarta) commons-collections.jar; (jakarta) jakarta-oro-2.0.6.jar; (jakarta) commons-digester.jar; (jakarta) commons-logging.jar; (jakarta) velocity-J2EE-dep-1.3-rc1.jar; activation.jar; (javamail) mail.jar; (javamail) \common\lib\servlet.jar; dom.jar; (jaxp) jaxp-api.jar; (jaxp) sax.jar; (jaxp) xalan.jar; (jaxp) xercesImpl.jar; (jaxp) xsltc.jar; (jaxp) turbine-2.2-b2-dev.jar; (jetspeed) jetspeed-1.4b1.jar; (jetspeed) ecs-1.4.1.jar; (jetspeed) but things in the classpath shouldn't affect Tomcat, I think. Stephen Stephen Riek wrote: Thanks for the reply, Craig. Error Trace --- java.lang.IncompatibleClassChangeError This exception normally means you have made a change in a superclass and recompiled it, but not recompiled a subclass that depends on the old APIs. m, I have no idea which class this could be referring to then, unless it means one of Tomcat's distribution classes. To further debug, I removed ALL other classes under WEB-INF/classes, so that I only have my one Filter there. I also removed all jars from WEB-INF/lib, then restarted Tomcat. Therefore, the only superclass involved is the Filter class. I recompiled my LanguageFilter.java and yet the error still occured. at mas.TestFilter.doFilter(Store/LanguageFilter.java:35) What is Store? Is that supposed to be the package name? Sorry, yes, I copied an earlier/older trace. You should recompile *all* your classes to catch any cases where you've made incompatible changes. I've done exactly that now (basically due to the fact that I only have the ONE class - the LanguageFilter.java) I have even deleted the entire contents of
Re: security manager problem
Start tomcat with the property javax.security.debug=access,failure so that you can capture debug information for the SecurityManager. Also read the SecurityManager-HOWTO that comes with tomcat. Glenn Mok Swee Loong wrote: Dear all, Just started with tomcat 4.1.2, i am trying to run things a little bit more secure, and try to figure out a good way to start and stop the server. Pls do comment if you have any opinion or good reference regarding this. Thanks a million. - I plan to run the tomcat server as user tomcat - I have changed everything under $CATALINA_HOME owned by tomcat user (is this necessary at all? or we'll just need to change the logging directory to be writable by user tomcat?) and start tomcat using su -c $CATALICA_HOME/bin/startup.sh tomcat - Does tomcat have similar setting like apache httpd server, where u can set user and group permission to run as, you start the server as root to initialize everything that needed root, then the server will change and run as your desired credential? With the above setup it is running fine, but when i try to run it with the security manager using the default catalina.policy # export CATALINA_OPTS=-Djava.security.debug=access,failure # su -c $CATALICA_HOME/bin/startup.sh tomcat -security i got the following exception: Exception during startup processing java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader) at java.security.AccessControlContext.checkPermission(AccessControlContext.java :270) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1031) at org.apache.catalina.startup.Catalina.init(Catalina.java:127) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179) what could be wrong? any comments are appreciated. Thanks. regards, mok -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: OFF-TOPIC: creating classes
You could check out BCEL. http://jakarta.apache.org/bcel/index.html Felipe Schnack [EMAIL PROTECTED] wrote on 27.11.2002 13:40:59: Hi all, I know this is off-topic, but I just had a crazy idea and couldn't find about it anywhere... There is a way to modify/create java classes at runtime? I mean, create plain new classes, or add attributes/methods to an existing, etc? Maybe I'm asking for Java++? :-) -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache + tomcat - request.getRemoteUser() = null?
So, I'm working in an University setting, where someone else has set up Tomcat 4.03 and Apache 1.3 together, with the Apache SSL module and the Apache Kerberos 3rd party module installed. The Kerberos module sets the authenication header w/ a basic attribute and a representation of the kerberos key. It should, in theory, set the request.getRemoteUser() as well, but it is always null. So, the question: Shouldn't Apache set the RemoteUser variable with basic authentication? Shouldn't it be passed in the header to tomcat? Why me? (ok, so that's rhetorical...) Any suggestions? Everything else works fine... Thanks in advance... Mike
Re: OFF-TOPIC: creating classes
Kristján Bjarni Guðmundsson writes: You could check out BCEL. http://jakarta.apache.org/bcel/index.html Felipe Schnack [EMAIL PROTECTED] wrote on 27.11.2002 13:40:59: Hi all, I know this is off-topic, but I just had a crazy idea and couldn't find about it anywhere... There is a way to modify/create java classes at runtime? I mean, create plain new classes, or add attributes/methods to an existing, etc? Maybe I'm asking for Java++? :-) -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Felipe, when java classes r executed w/ java... ur classes become part of one big program called the JVM. study closer and u will see why this is not possible or desirable. one of the reasons java is so popular (reference c language) is when classes r designed and implemented properly the application never crashes or disrupts the os. dig deeper. hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Pb with HEAD request
this is a similar thread - see if helps at all: http://marc.theaimsgroup.com/?l=tomcat-userw=2r=1s=filters+running+twice; q=b Charlie -Original Message- From: Cédric Viaud [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 8:31 AM To: Tomcat Users List Subject: Re: Pb with HEAD request Hi Kristján, in fact, i've first check the RFC of HTTP 1.1 (see after the mail what it says about HEAD command). So i've look to the servlet specification .And haven't seen the doHead method. Next to your reply , i've checked again, and discover that i MISSED it :-( So i've coded the doHead method , but it never seems to be called by my servlet. I can't manage to know if this is a client or a server issue. Anyone gets an idea. ? Anynyway, i think i will have to implement a cache , because some of my Get actions need many calculation, and doing this twice for the same request will decrease the application performance. Thanks for help, regards, Cédric -- -- From RFC 2616 about HTTP 1.1 9.4 HEAD The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. This method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification. The response to a HEAD request MAY be cacheable in the sense that the information contained in the response MAY be used to update a previously cached entity from that resource. If the new field values indicate that the cached entity differs from the current entity (as would be indicated by a change in Content-Length, Content-MD5, ETag or Last-Modified), then the cache MUST treat the cache entry as stale. - Original Message - From: Kristján Bjarni Guðmundsson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 4:40 PM Subject: Re: Pb with HEAD request You really should look into the servlet specification. I think if you override doHead for your servlet doHead(HttpServletRequest req, HttpServletResponse resp) Receives an HTTP HEAD request from the protected service method and handles the request. Default action for doHead is to simply call doGet Cédric Viaud [EMAIL PROTECTED] wrote on 26.11.2002 15:32:45: Hi, I have Tomcat server 4.0.4 on NT 4 that contains a servlets in charge to create SVG content. The client is Internet Explorer 5.5. It loads the following simple HTML page : html body embed width=200 height=200 src=http://localhost:8080/myContext/MyServlet /body /html The problem is that my servlet is invoked twice. My supposition is that IE is sending a HEAD (or GET) request to know the content type of the URL and then run the Adobe SVG plugin. When started the plugin connects also the servlet to get SVG content. HTTP spec says that HEAD request must return the same headers as GET request. What is sure is that my code is executed twice, not only the part that concerns response headers. But how can I do to know with the servlet if the request is a GET or a HEAD. I test the HttpRequest.getMethod() but it always return GET. Does someone know how to configure tomcat or anything else to avoid the two executions ? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Search engine for the tomcat-user mailing list
Luca Ventura writes: Hello everybody! Is there a search engine for the tomcat-user and tomcat-dev mailing list? I would like to find and read old posts using key-words. Thanks to everybody in advance! Luca Hello Luca, try this: http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/ thanx, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
R: Search engine for the tomcat-user mailing list
Ok, thanks a lot! :-) Luca -Messaggio originale- Da: Carsten Ziegert [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 27 novembre 2002 14.57 A: Tomcat Users List Oggetto: Re: Search engine for the tomcat-user mailing list See: http://nagoya.apache.org/eyebrowse/ http://nagoya.apache.org/eyebrowse/SearchList?listName=tomcat- [EMAIL PROTECTED] Carsten Am Mittwoch, 27.11.02, um 14:29 Uhr (Europe/Berlin) schrieb Luca Ventura: Hello everybody! Is there a search engine for the tomcat-user and tomcat-dev mailing list? I would like to find and read old posts using key-words. Thanks to everybody in advance! Luca -- Carsten Ziegert Hannover Medical School, Dept. of Hematology and Oncology Carl-Neuberg-Straße 1, 30625 Hannover University of Applied Sciences, Faculty of Information Sciences Ricklinger Stadtweg 120, 30459 Hannover http://summit-bmt.fh-hannover.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Pb with HEAD request
Cedric, The servlet container automatically handles head requests by calling doGet but then only returns the headers. This can be very inefficient in cases such as yours. The O'Reilly Java Servlet Programming book suggests at the top of doGet() do: request.setContentType(correctContentTypeForThisRequest); if (request.getMothod().equals(HEAD)) return; I've never tried this though. Andy -Original Message- From: Cédric Viaud [mailto:[EMAIL PROTECTED]] Sent: 27 November 2002 13:31 To: Tomcat Users List Subject: Re: Pb with HEAD request Hi Kristján, in fact, i've first check the RFC of HTTP 1.1 (see after the mail what it says about HEAD command). So i've look to the servlet specification .And haven't seen the doHead method. Next to your reply , i've checked again, and discover that i MISSED it :-( So i've coded the doHead method , but it never seems to be called by my servlet. I can't manage to know if this is a client or a server issue. Anyone gets an idea. ? Anynyway, i think i will have to implement a cache , because some of my Get actions need many calculation, and doing this twice for the same request will decrease the application performance. Thanks for help, regards, Cédric -- -- From RFC 2616 about HTTP 1.1 9.4 HEAD The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. This method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification. The response to a HEAD request MAY be cacheable in the sense that the information contained in the response MAY be used to update a previously cached entity from that resource. If the new field values indicate that the cached entity differs from the current entity (as would be indicated by a change in Content-Length, Content-MD5, ETag or Last-Modified), then the cache MUST treat the cache entry as stale. - Original Message - From: Kristján Bjarni Guðmundsson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 4:40 PM Subject: Re: Pb with HEAD request You really should look into the servlet specification. I think if you override doHead for your servlet doHead(HttpServletRequest req, HttpServletResponse resp) Receives an HTTP HEAD request from the protected service method and handles the request. Default action for doHead is to simply call doGet Cédric Viaud [EMAIL PROTECTED] wrote on 26.11.2002 15:32:45: Hi, I have Tomcat server 4.0.4 on NT 4 that contains a servlets in charge to create SVG content. The client is Internet Explorer 5.5. It loads the following simple HTML page : html body embed width=200 height=200 src=http://localhost:8080/myContext/MyServlet /body /html The problem is that my servlet is invoked twice. My supposition is that IE is sending a HEAD (or GET) request to know the content type of the URL and then run the Adobe SVG plugin. When started the plugin connects also the servlet to get SVG content. HTTP spec says that HEAD request must return the same headers as GET request. What is sure is that my code is executed twice, not only the part that concerns response headers. But how can I do to know with the servlet if the request is a GET or a HEAD. I test the HttpRequest.getMethod() but it always return GET. Does someone know how to configure tomcat or anything else to avoid the two executions ? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Tomcat 4.1 and RMI
Howdy, have a servlet which serves up a page that contains an applet. Tomcat 4.1 is my application server and I have it installed on my machine Terminology caution: usually application server refers to a J2EE (or .Not) server. Most people prefer to call tomcat a servlet/JSP container. A full-fledged application server would probably have a full, native, administrabale RMI component. method in the applet's init() method. I gather that I have not set up my Java plug-in/Tomcat security policy files correctly. I tried adding this to the catalina.plicy file, but with no luck: grant codeBase= file:${catalina.home}/webapps/salerio/- { permission java.net.SocketPermission localhost:1099, accept,connect,listen; }; You're on the right track. It's the applet throwing the exception, and the applet that needs the permission. Grant the above to the applet by modifying the .policy file on the client as well. Yes, that means every PC that runs your applet needs to have the .policy file adjusted -- the applet security model is very restrictive. One reason I stay away from applets ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Coyote:: ArrayIndexOutOfBoundsException
Hi, java.lang.ArrayIndexOutOfBoundsException at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe r.ja snip The exception can be ignored (it might happen only in the case of a client disconnect, so at this point, what happens doesn't really matter anymore; this also only causes a very small performance drop). The problem has been fixed in 4.1.16. Thanks Remy ;) May I ask as to the manner of the fix? Was it a simple buffer size increase, or something more? If you remember, I reported this exception a while ago against 4.1.10-LE, and the buffer size increase from 32K to 48K has made the problem go away for us. But I was worried that was just a band-aid ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Failed JK connection
Hello, GN It looks like you have mod_jk 1.2 installed in Apache but have GN JK2 configured in Tomcat. These two are not compatible. GN Posting your apache mod_jk config and the connector portion of your GN tomcat server.xml would make it much easier to answer your question. GN I would also recommend upgrading apache to the latest 1.3.27 release. GN This won't solve your problem but their have been security patches GN to apache since 1.3.22. GN Regards, GN Glenn GN Scherbinko Timur wrote: Hi, I have installed - Apache/1.3.22 (Unix) - mod_jk-ap13-1.2.0-1 - tomcat4-4.1.12 At start Tomcat4 gives out a mistake Starting service Tomcat-Standalone Nov 26, 2002 7:52:31 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Nov 26, 2002 7:52:31 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=20/295 config=/var/tomcat4/conf/jk2.properties StandardServer.await: Invalid command '' received Nov 26, 2002 7:53:09 PM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) How to solve this problem? Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] server.xml:: Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 !-- Valve className=org.apache.catalina.valves.RequestDumperValve/ -- !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ !-- Comment out the old realm but leave here for now in case we need to go back quickly -- !-- Realm className=org.apache.catalina.realm.MemoryRealm / -- !-- Replace the above Realm with one of the following to get a Realm stored in a database and accessed via JDBC -- !-- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority connectionName=test connectionPassword=test userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / -- !-- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@ntserver:1521:ORCL connectionName=scott connectionPassword=tiger userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / -- !-- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=sun.jdbc.odbc.JdbcOdbcDriver connectionURL=jdbc:odbc:CATALINA userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / -- Host name=java debug=0 Logger className=org.apache.catalina.logger.FileLogger
Re: Apache + tomcat - request.getRemoteUser() = null?
Oh yes, I left out relevent information... using the modwebapp (warp) connector. Don't know if that changes anything... Mike - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 9:24 PM Subject: Re: Apache + tomcat - request.getRemoteUser() = null? you need to put tomcatAuthentication=false on your jk connector. Jake At 08:51 AM 11/27/2002 -0500, you wrote: So, I'm working in an University setting, where someone else has set up Tomcat 4.03 and Apache 1.3 together, with the Apache SSL module and the Apache Kerberos 3rd party module installed. The Kerberos module sets the authenication header w/ a basic attribute and a representation of the kerberos key. It should, in theory, set the request.getRemoteUser() as well, but it is always null. So, the question: Shouldn't Apache set the RemoteUser variable with basic authentication? Shouldn't it be passed in the header to tomcat? Why me? (ok, so that's rhetorical...) Any suggestions? Everything else works fine... Thanks in advance... Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDK is not enough. SDK is needed
Howdy, The very reason there are so many users how to's up on the web, and being used, tells you that the web site for Jakarta is poorly planned. You I disagree with that interpretation. It means the web site doesn't have all the information people want, that the documentation isn't as extensive as it could be, but not that the web site is poorly planned. I was amazed myself at the time. Thinking that if the main web site for Jakarta was this jumbled then possibly the code was no better. You probably have forgotten your early daze. Daze? ;) But you're right, it's been a long long time since I started using various Jakarta projects and the site, so it's second nature for me. It would be helpful to have some people who complained about the site layout create an alternative site implementing their suggestions, and then posting it to the list. We could then take element from it and incorporate them into the main site... Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Search engine for the tomcat-user mailing list
Hi, My fav is AIMS, http://marc.theaimsgroup.com/?w=2 Yoav Shapira Millennium ChemInformatics -Original Message- From: Luca Ventura [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 8:29 AM To: tomcat-user Subject: Search engine for the tomcat-user mailing list Hello everybody! Is there a search engine for the tomcat-user and tomcat-dev mailing list? I would like to find and read old posts using key-words. Thanks to everybody in advance! Luca -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Coyote:: ArrayIndexOutOfBoundsException
You can see the fix in CVS - it was just a case of moving a few lines of code within the commit() method. Thanks to Remy for that! Neil. -- Neil MilneHippo IT Consultants Ltd -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to get user:password from page header?
Hi all, I am porting an old CGI application to JSP/servlets. I need to port user authentication code also. But getHeader(authorization) returns encoded string like Basic YW5kcmV3Og==. How to get original value like USER:PASSWORD ? Thanks ahead Andrew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: servlet compilation
Howdy, That's strange. As a matter of practice, I would not install tomcat, or have on my classpath, any directory with a space in it, e.g. c:\...\tomcat 4.1\ It's been a long time since I compiled on the command-line, not using Ant or another tool, especially on windows. Did you try using Ant to build? At least then you could run it with verbose mode and clearly see the compilation classpath... Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 12:46 AM To: Tomcat Users List Subject: Re: servlet compilation Thanks, that worked, however when I implement an interafce thus: public class LoadAtStartup implements ServletContextListener { I get the errors: LoadAtStartup.java:9: cannot resolve symbol symbol : class ServletContextListener location: class LoadAtStartup public class LoadAtStartup implements ServletContextListener { ^ LoadAtStartup.java:11: cannot resolve symbol symbol : class ServletContextEvent location: class LoadAtStartup public void contextInitialized(ServletContextEvent sce) { } ^ LoadAtStartup.java:13: cannot resolve symbol symbol : class ServletContextEvent location: class LoadAtStartup public void contextDestroyed(ServletContextEvent sce) { } ^ 3 errors Not too intuitive. Servlet below: LoadAtStartup servlet: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class LoadAtStartup implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { } public void contextDestroyed(ServletContextEvent sce) { } } What is the problem here? I am using JVM 1.4.1_01. It looks like it has a problem with the ServletContextListener interface? thanks Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache + tomcat - request.getRemoteUser() = null?
hmm As I understand it, mod_webapp is not being worked on anymore. If it doesn't support the same kind of functionality that mod_jk provides with tomcatAuthentication=false then it probably never will. My recommendation is to move to mod_jk or mod_jk2. I know next to nothing about mod_webapp configuration so I can't help you much there. Jake At 09:31 AM 11/27/2002 -0500, you wrote: Oh yes, I left out relevent information... using the modwebapp (warp) connector. Don't know if that changes anything... Mike - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 9:24 PM Subject: Re: Apache + tomcat - request.getRemoteUser() = null? you need to put tomcatAuthentication=false on your jk connector. Jake At 08:51 AM 11/27/2002 -0500, you wrote: So, I'm working in an University setting, where someone else has set up Tomcat 4.03 and Apache 1.3 together, with the Apache SSL module and the Apache Kerberos 3rd party module installed. The Kerberos module sets the authenication header w/ a basic attribute and a representation of the kerberos key. It should, in theory, set the request.getRemoteUser() as well, but it is always null. So, the question: Shouldn't Apache set the RemoteUser variable with basic authentication? Shouldn't it be passed in the header to tomcat? Why me? (ok, so that's rhetorical...) Any suggestions? Everything else works fine... Thanks in advance... Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache + tomcat - request.getRemoteUser() = null?
Thanks for the advice... maybe I can talk our guy into switching... until then, it's time to digest the authorization header... woohoo... what a system! :) Mike - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 9:56 PM Subject: Re: Apache + tomcat - request.getRemoteUser() = null? hmm As I understand it, mod_webapp is not being worked on anymore. If it doesn't support the same kind of functionality that mod_jk provides with tomcatAuthentication=false then it probably never will. My recommendation is to move to mod_jk or mod_jk2. I know next to nothing about mod_webapp configuration so I can't help you much there. Jake At 09:31 AM 11/27/2002 -0500, you wrote: Oh yes, I left out relevent information... using the modwebapp (warp) connector. Don't know if that changes anything... Mike - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 9:24 PM Subject: Re: Apache + tomcat - request.getRemoteUser() = null? you need to put tomcatAuthentication=false on your jk connector. Jake At 08:51 AM 11/27/2002 -0500, you wrote: So, I'm working in an University setting, where someone else has set up Tomcat 4.03 and Apache 1.3 together, with the Apache SSL module and the Apache Kerberos 3rd party module installed. The Kerberos module sets the authenication header w/ a basic attribute and a representation of the kerberos key. It should, in theory, set the request.getRemoteUser() as well, but it is always null. So, the question: Shouldn't Apache set the RemoteUser variable with basic authentication? Shouldn't it be passed in the header to tomcat? Why me? (ok, so that's rhetorical...) Any suggestions? Everything else works fine... Thanks in advance... Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Host Context - Unpacking of WARs
Andoni writes: unpackwars=false should only mean that the app runs from the packed .war file, or so the Tomcat documentation seems to say. I do also have a web.xml but I don't see where this comes in to the configuration of the Host elements? Andoni. - Original Message - From: David Brown [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 11:47 AM Subject: Re: Host Context - Unpacking of WARs Andoni writes: Hello, I have two configurations: 1st one works 2nd doesn't. I want to get the 2nd to work though as it stops .war files unpacking. Can anyone tell me how to make the 2nd one work? The error I get is: Forbidden You don't have permission to access / on this server. But I think that's coming from the Apache server so it isn't even getting to tomcat? Thanks, Andoni. Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo unpackWARs=true Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo.war unpackWARs=false Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Andoni, so did u look at ur httpd.conf directives: directory..., alias... etc? but tc is a web server too when requests r handed off from apache. tc looks at / as docbase or appbase root so what u have in ur war file becomes /application_context where application_context is the web app u have defined 4 tc to unpack. i don't see how the web app can execute if unpackWARS=false. r u defining a web.xml at all or r u only interested in configuring server.xml? thanx, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Andoni, for sake of experimentation or argument try a minimally uncommented server.xml and go w/ ur web.xml (below WEB-INF not $CATALINE_HOME/conf/web.xml). in fact this begs the question: WEB-INF is created when the .war file is unpacked. this is the whole beauty of .ear, .war, .jar techonoly namely one word: deployment. i have 4 domains running and a lot of servlets and jsp running over the range of tc services running both http and https. i can make any number of reasonable changes, update and redeploy w/o a user so much as noticing a hiccup. all of dev is more or less directly from tc docs reflected in books, online how-to's and ml's such as this one. follow the instructions of these resource and u should succeed. that's my $0.02, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Configuration Question
Hi All, I have this question. One of my friend is running a web hosting business and i m helping him to configure tomcat with apache using warp as connecter. I have sucessfully integrated it and i am also able to run my application inside webapps with calling tomcat with port number but by just calling http://www.somename.com. My question is my friend as some nearly 100 websites running under him and he need to provide jsp and servlet to all of them with out creating folders inside webpps[appbase]. How do i do this in quick time with minimal coding. I would like most of the stuff done in httpd.conf rather than server.xml. If somebody here can share there httpd.conf and server.xml would be of great help. Also if they can point of some thing to improve performance that would be really great. Any help regarding this would be greatly appreciated. Note : I found very little documentation on integrating warp connecter with apache tomcat with real time example rather than localhost. Have a great day. karthikeyan. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RMI and Tomcat
You don't want your remote application's classes to be resident in the access webapp. I'd suggest we go back to the original problem and try to solve that; take the application classes out of examples/WEB-IF/classes. (Aside-- While you're at it, it's worth taking an hour or two to download Ant, look at the Application Developer docs and sample build.xml included in the Tomcat distribution, and set up your own webapp to get out of /examples. It's not that hard, and it makes development much smoother!) The original problem looks like the RMIClassLoader can't find the code for MyAppStarter. Are you passing or returning an instance of MyAppStarter as an argument in the RMI call to the server app, or is the server object an instance of MyAppStarter? In either case, do you have the codebase property set on the RMI server JVM? The system property java.rmi.server.codebase needs to refer to a set of URLs from which classes used in the RMI call can be downloaded. By extension, you need to have those classes available on some sort of a server, typically ftp or http. Tomcat'll do it! If the codebase is set properly and the download files are available, a webapp in Tomcat can execute RMI calls on a remote object. There's one not-so-small detail left, though; the class loader (RMIClassLoader) that wants to load the remote bytecode will refuse to work if there's no security manager, so you need to run Tomcat with the security manager enabled, which will also require setting up the security.properties file to allow whatever permissions your application needs. See the Security Manager HOWTO in the Tomcat docs. In your case, you didn't get RMIClassLoader's exception, so I suspect the codebase problem. Note that it's a little awkward to set the codebase on a webapp, so it's difficult (i.e. possible, but not elegant and not portable) to export remote objects from a webapp. I'd say this isn't a Tomcat limitation, so much as a case of the servlet spec not being written with RMI in mind. If you need to support callbacks from the remote application, you need to employ a proxy strategy. You might want to look at jini.org for more information on the proxy concept. Greg Trasuk, President StratusCom Manufacturing Systems Inc. - We use information technology to solve business problems on your plant floor. http://stratuscom.ca -Original Message- From: news [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Barker Sent: November 27, 2002 00:47 To: [EMAIL PROTECTED] Subject: Re: RMI and Tomcat This is starting to look like a classic case of bad design. But to get your app working, try adding servlet.jar to the CLASSPATH of rmiregistry. Sarah L. Moore [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well, I just moved the application classes over to the examples/WEB-INF/classes directory and re-ran my servlet. I get a slightly different message: java.rmi.ServerError: Error occurred in server thread; nested exception is: java.lang.NoClassDefFoundError: javax/servlet/ServletRequest From the output of my application, it looks as though the application begins to run, but it is the servlet that is throwing the above exception upon the call to the RMI application. I did a search for servlet.jar, and it looks as though it is where it should be in the Tomcat directory structure (i.e. catalina_home/common/lib). Any other advice? I'm at a total loss. Thanks again! Sarah At 11:30 AM 11/27/2002 +0800, you wrote: Sorry, did not correctly see which class it was complaining about. Try and move MyApplicationStarter to the said directories. Sarah L. Moore wrote: Thanks for your reply. My servlet class is in examples/WEB-INF/classes. If I comment out the RMI step, the servlet runs fine, so I'm left to think that the servlet location, etc. are OK, but something relating to RMI is the culprit. At 11:01 AM 11/27/2002 +0800, you wrote: Cannot allocate servlet instance for path /examples/servlet/MyServlet means that it can't find the requested servlet for that web app which implies that your servlet class isn't where it should be. Servlets classes go in /examples/WEB-INF/classes or /examples/WEB-INF/lib for jar packages. Sarah L. Moore wrote: Hello all. I am new to Tomcat, and am having a problem with RMI. I have a Java application that basically just sits on my server waiting for a data vector to be passed to it from my servlet. However, when I run the servlet and try to have it pass the data to the application through RMI, I get: javax.servlet.ServletException: Cannot allocate servlet instance for path /examples/servlet/MyServlet java.lang.NoClassDefFoundError: MyApplicationStarter The application resides in a directory on the root of the c drive (i.e. c:\MyApplication), and the servlet I am working with is in catalina_home/webapps/examples. Could it be that my problem is due to the fact that Tomcat
RE: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError
This also leaves me wondering how I'm supposed to go about compiling all of my classes that use XML/JAXP on my machine, now that I've removed it all. I've been learning about Ant recently. Perhaps it can help you in this respect. Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Howto specify servlets directory
Hi, I want to configure tomcat to handle servlets in the URL /servlet and in /some_dir/servlet, is it necesary to indicate something in the config files? or change anything? I'm using tomcat 3.2.4 Thanks in advance, -- Rafael Angarita -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How do I integrate my CLASSPATH on Tomcat?
Hi! I'm wondering how I should do to make tomcat use the paths that are in my CLASSPATH? Regards, / Emma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Host Context - Unpacking of WARs
Unfortunately I have followed all the instructions to the letter and things are not well. I can get my whole config to work but I can't get the perks I was really looking forward to having. 1. I have to manually unzip .war files into the webapps directory 2. I can't have webapps work directly from the unpacked war files. Ah well, I'll plod along the inconvenient way. It must at this stage be a bug in the porting of Tomcat to OpenVMS as I cannot see any config that works. Later, Andoni. - Original Message - From: David Brown [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 1:58 PM Subject: Re: Host Context - Unpacking of WARs Andoni writes: unpackwars=false should only mean that the app runs from the packed .war file, or so the Tomcat documentation seems to say. I do also have a web.xml but I don't see where this comes in to the configuration of the Host elements? Andoni. - Original Message - From: David Brown [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 11:47 AM Subject: Re: Host Context - Unpacking of WARs Andoni writes: Hello, I have two configurations: 1st one works 2nd doesn't. I want to get the 2nd to work though as it stops .war files unpacking. Can anyone tell me how to make the 2nd one work? The error I get is: Forbidden You don't have permission to access / on this server. But I think that's coming from the Apache server so it isn't even getting to tomcat? Thanks, Andoni. Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo unpackWARs=true Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host Host name=animo.andoni.[mydomain].ie debug=0 appBase=webapps/animo.war unpackWARs=false Aliasandoni.[mydomain].ie/Alias Context path= docBase= debug=0 workDir=[disk_name]/apache/jakarta/tomcat/work/animo reloadable=false /Context /Host -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Andoni, so did u look at ur httpd.conf directives: directory..., alias... etc? but tc is a web server too when requests r handed off from apache. tc looks at / as docbase or appbase root so what u have in ur war file becomes /application_context where application_context is the web app u have defined 4 tc to unpack. i don't see how the web app can execute if unpackWARS=false. r u defining a web.xml at all or r u only interested in configuring server.xml? thanx, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Andoni, for sake of experimentation or argument try a minimally uncommented server.xml and go w/ ur web.xml (below WEB-INF not $CATALINE_HOME/conf/web.xml). in fact this begs the question: WEB-INF is created when the .war file is unpacked. this is the whole beauty of .ear, .war, .jar techonoly namely one word: deployment. i have 4 domains running and a lot of servlets and jsp running over the range of tc services running both http and https. i can make any number of reasonable changes, update and redeploy w/o a user so much as noticing a hiccup. all of dev is more or less directly from tc docs reflected in books, online how-to's and ml's such as this one. follow the instructions of these resource and u should succeed. that's my $0.02, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How do I integrate my CLASSPATH on Tomcat?
Howdy, I'm wondering how I should do to make tomcat use the paths that are in my CLASSPATH? Put everything on your classpath (that's not already in tomcat's common/lib directory) in your webapp's /WEB-INF/lib directory. You may want to read: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to get user:password from page header?
Hi Andrew, there's the class org.apache.util.Base64 to encode from user input to encoded: Base64 base64 = new Base64(); String base64Encoded = new String(base64.encode(userPass.getBytes())); What you want is to decode. I suppose method decode would do. Regards, Andreas On 27 Nov 2002 at 6:43, ContestAdmin wrote: Andrew Guts wrote: Hi all, I am porting an old CGI application to JSP/servlets. I need to port user authentication code also. But getHeader(authorization) returns encoded string like Basic YW5kcmV3Og==. How to get original value like USER:PASSWORD ? Thanks ahead Andrew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hmm... If I remember right (and I probably don't ;-) this information is encoded in Base64. All you need to do is run the 'YW5kcmV3Og==' stuff through a decoder. -CA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How do I integrate my CLASSPATH on Tomcat?
Howdy, Use a script or TC catalina script to include your CLASSPATH. While this may be simpler, it violates the spirit of the design of tomcat's classloader. In the long run, this will only lead to more problems. The app will be less container-independent, and less portable. I really think the above is not good advice... Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoSuchMethodError
The compiled tomcat code (class org.apache.catalina.session.StandardSession) is calling a method not available at runtime. That probably means that the tomcat code was compiled with a later version of either the jdk or the servlet jars than the version you are running tomcat with. I've just browsed the online CVS repository for the above mentioned class and found that the method called at line 1262 is specific to the 2.3 version of the servlet spec. The previous post is correct. You are running the Servlet spec 2.2 (or earlier) version of servlet.jar FYI: http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/catalina/src/share/org/apac he/catalina/session/ -Original Message- From: Carsten Ziegert [mailto:[EMAIL PROTECTED]] Sent: 27 November 2002 10:39 To: Tomcat Users List Subject: Re: NoSuchMethodError The reason *could* be an old version of servlet.jar in $JAVA_HOME/jre/lib Carsten Am Dienstag, 26.11.02, um 19:55 Uhr (Europe/Berlin) schrieb Abhijat Thakur: Hi, When i am trying to access a servlet through tomcat it gives me a java.lang.NoSuchMethodError. From the stack trace at LoginServlet.java:238(which is my servlet) all i am doing is that i have a handle to HttpSession object and i call the setAttribute method to bind an object with the session. Why do i get this error? thanks abhijat java.lang.NoSuchMethodError at org.apache.catalina.session.StandardSession.setAttribute(StandardSessio n.java:1262) at org.apache.catalina.session.StandardSessionFacade.setAttribute(Standard SessionFacade.java:191) at org.apache.catalina.session.StandardSessionFacade.setAttribute(Standard SessionFacade.java:191) at com.bdna.pl.servlet.LoginServlet.doPostMethod(LoginServlet.java:238) at com.bdna.pl.servlet.LoginServlet.service(LoginServlet.java:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic ationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 96) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:4 05) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Connection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 08) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.java:533) at java.lang.Thread.run(Thread.java:484) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Carsten Ziegert Hannover Medical School,
intercept jsp:include (InstanceEvent.BEFORE_DISPATCH_EVENT ?)
I'm trying to intercept a jsp:include so that I can adjust the requested file (ie: /include.html) to a different directory/file (ie: /otherdir/otherfile.html). If there is an easy way (Filter, Valve, Listener, ...) just let me know. NOTE: I've already created and installed a request filter in my web.xml to filter the initial request, but this doesn't get invoked for jsp:include references. Current idea: I want to change the javax.servlet.include.servlet_path request attribute so the DefaultServlet.getRelativePath() finds the new file. I can see that the ApplicationDispatcher fires off a list of InstanceEvent's before the DefaultServlet.service() is called. After days of exploration, I can't figure out how to add to get my InstanceEvent into the InstanceSupport's list (ie: cause a call to the support.addInstanceListener). Is there a configuration that will add my class to my application Context? Thanks, -AAron ([EMAIL PROTECTED]) -Code snippits- NOTE: Globals.SERVLET_PATH_ATTR = javax.servlet.include.servlet_path org/apache/catalina/core/ApplicationDispatcher.java: private void doInclude(ServletRequest request, ServletResponse response) throws ServletException, IOException { ... wrequest.setAttribute(Globals.SERVLET_PATH_ATTR, servletPath); ... invoke(outerRequest, outerResponse); ... } ... private void invoke(ServletRequest request, ServletResponse response) throws IOException, ServletException { support.fireInstanceEvent(InstanceEvent.BEFORE_DISPATCH_EVENT, servlet, request, response); servlet.service(request, response); support.fireInstanceEvent(InstanceEvent.AFTER_DISPATCH_EVENT, servlet, request, response); _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How do I integrate my CLASSPATH on Tomcat?
As I said, that's a simpler way. That did not meant that's the only way. Long run? I've been watching TC a long enough and have changed a number of times the scheme of including the CLASSPTH. In the long run, are you absolutely sure what is going right now will be stay same ... say in next 5 years? What's the time frame for the long run mean? More than 5 years? Pae - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 7:40 AM Subject: RE: How do I integrate my CLASSPATH on Tomcat? Howdy, Use a script or TC catalina script to include your CLASSPATH. While this may be simpler, it violates the spirit of the design of tomcat's classloader. In the long run, this will only lead to more problems. The app will be less container-independent, and less portable. I really think the above is not good advice... Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SV: Problems running VeriSign trial sertificate in Tomcat.
Any ideas? Please help me with this problem! Morten Tollefsen -Opprinnelig melding- Fra: Morten Tollefsen [mailto:[EMAIL PROTECTED]] Sendt: 25. november 2002 12:03 Til: '[EMAIL PROTECTED]' Emne: Problems running VeriSign trial sertificate in Tomcat. Problem with running Tomcat using VeriSign trial certificate. Can anyone please help me with this problem? Have searched for hours, but can't find any sollutions... I'm running: Windows 2000 JDK 1.3 JSSE 1.0.3 Tomcat 3.2.3 Have done: - Created self-signed certificate using keytool, OK. - Tomcat SSL setup, running with self-signed certificate, OK. - Created the CSR and sent it to VeriSign, OK. - Imported the trial certificate from VeriSign using 'keytool -import -alias tomcat -keystore verisign -file tomcat.cer' Have also tried to change keystore name and password. Tomcat error message: javax.net.ssl.SSLException: Unrecognized SSL handshake. My connector parameters in server.xml: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=c:/documents and settings/localhost/verisign / Parameter name=keypass value=changeit / Parameter name=secure value=true / Parameter name=clientauth value=true / /Connector Have tried to change secure and clientauth parameters without success. Any ideas??? Greetings Morten Tollefsen Integrasjonssystemer AS [EMAIL PROTECTED] 33036066 / 97178250
RE: How do I integrate my CLASSPATH on Tomcat?
What's the recommendation for Oracle JDBC drivers? I've opted to include this in the Tomcat service startup: %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\hotspot\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.j ar;%ORACLE_HOME%\jdbc\lib\classes12.zip -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log Should I turn classes12 from a zip to a jar and put this under the common or app's /WEB-INF/lib? I think I prefer the first way. Regards, Mark -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: 27 November 2002 15:40 To: Tomcat Users List Subject: RE: How do I integrate my CLASSPATH on Tomcat? Howdy, Use a script or TC catalina script to include your CLASSPATH. While this may be simpler, it violates the spirit of the design of tomcat's classloader. In the long run, this will only lead to more problems. The app will be less container-independent, and less portable. I really think the above is not good advice... Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache and Tomcat port mapping
Brian Dixon writes: I have recently installed Tomcat 3.3.1 along with Apache. The two are working well together, and I have no complaints except that my Apache pages all have the xxx.mydomain.org/ structure while my Tomcat pages are isolated and appear under the xxx.mydomain.org:8080/ structure. Is there a way to get Tomcat to respond to port 80 requests or some other mechanism for removing the port number from appearing to users??? Thanks, Brian Brian Dixon Regenstrief Institute, Inc. Indiana University Medical Center 1050 Wishard Blvd. Indianapolis, IN 46202 (317) 630-8822 Web: www.regenstrief.org Email: [EMAIL PROTECTED] Human creativity multiplied by the computing power of super-recursive devices and algorithms will cause the real revolution in information technology and in our lives. - Mark Burgin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Brian, the port 80 that apache uses is a tcp socket that apache listens to. the same w/ tomcat. apache has directives to define the ports it listens to for different schemes: (http, https). typically, apache does not display port 80 in the url because apache is a web or http static content server so the default port 80 is not required to be displayed. and, port 80 is a so-called priviledged port on 'nix systems ( 1023). when apache fires up it does so as root or the super-user allowing use of port 80 but forks a new child process for the actual http request/resonse processing. also, when apache executes cgi-bin it can hide some of the url to execute cgi-programs by using apache alias or scriptalias directives. tomcat is not a static http web server but is a dynamic content servlet/jsp server (and other objects) and therefore needs to listen to the non-standard port of: 8080. this port can be redefined to be any non-priviledged port ( 1023). displaying port numbers in the url r not a problem if u restrict who sees the urls. as a suggestion u can authenticate ur users through encryption, user/password logins using ssl or read this about url obfuscation: http://www.n3dst4.com/articles/urlobfus . thanx, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How do I integrate my CLASSPATH on Tomcat?
Howdy, What's the recommendation for Oracle JDBC drivers? Everyone I know turns the .zip into a jar (there's a reason the newer drivers are distributed as ojdbc14.jar, not ojdbc14.zip) and puts in their /WEB-INF/lib directory. That's because everyone I know wants their app to be container-independent, just spec compliant. Should I turn classes12 from a zip to a jar and put this under the common or app's /WEB-INF/lib? I think I prefer the first way. It's your app, your call, obviously ;) But I'm curious as to your reasoning: why do you prefer the first way? Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
setting Context attributes in web.xml/server.xml?
Hi folks, I'm porting a servlet-based reporting system from iPlanet to TOmcat 4.1.12, and it initialises itself based on a context attribute 'baseDir'. iPlanet lets you set initial context attributes through the server. How do I set these in Tomcat4? Is it even possible? If iPlanet 4 has a feature tomcat doesn't, I'd be amazed. NB: I've tried context parameters, which tomcat does support, but they're no good. To clarify, I need an attribute I can retrieve via ServletContext con = getServletContext(); String dirname = (String) con.getAttribute(baseDir); to return the value. Being able to do this in web.xml would be extremely useful... (Worst case scenario, I can write a new servlet and init-on-startup it to explicitly set the attribute, but that's clankier than a bicycle made of saucepans) -- Rasputin :: Jack of All Trades - Master of Nuns -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How do I integrate my CLASSPATH on Tomcat?
Emma Johansson writes: Hi! I'm wondering how I should do to make tomcat use the paths that are in my CLASSPATH? Regards, / Emma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Emma, it should not be necessary to make tomcat use anything in the CLASSPATH. is there some question about whether tomcat is using ur CLASSPATH or not? if tomcat is not using ur CLASSPATH how do u know? more info is required: tomcat version, what r u trying to do? what application have u defined using what implementation?: servlets, jsp, what? david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: setting Context attributes in web.xml/server.xml?
Howdy, You can do this in your app's web.xml: context-param param-namebaseDir/param-name param-value/foo/bar/param-value /context-param And then in your servlet: String baseDir = getServletContext().getInitParameter(baseDir); If iPlanet 4 has a feature tomcat doesn't, I'd be amazed. If it were a spec-mandated feature, like context-params, then I'd be more than amazed: I'd be fairly angry ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 3.3.1 vs Tomcat 4.0.x vs Tomcat 4.1.x
I'm investigating the different versions of Tomcat to see which will better suit our needs. Which ever version we go with, we will be committed to for a while, so I want to make an educated decision. Since we will make a long term commitment to the version, I would be inclined to go with the latest Tomcat possible. I had heard that Tomcat 4.x is not as quick as 3.3.1. Does anyone know if that is the case? I have used all three versions in my single user environment and not noticed a performance difference. Has anyone used any in a multi user environment? Any input on the pluses and/or minuses of various Tomcat versions would be greatly appreciated. Thanks in advance. , Josh. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Howto specify servlets directory
Rafael Angarita writes: Hi, I want to configure tomcat to handle servlets in the URL /servlet and in /some_dir/servlet, is it necesary to indicate something in the config files? or change anything? I'm using tomcat 3.2.4 Thanks in advance, -- Rafael Angarita -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Rafael, yes must define an application context and define the servlets url path and mapping in web.xml that is created under WEB-INF when the .war file u create gets expand below webapps (NOT in $CATALINA_HOME/conf/web.xml). hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How do I integrate my CLASSPATH on Tomcat?
Hi David, I thought I had to integrate my classpath on Tomcat so that Tomcat is able to use the jar files in my classpath. My web service on tomcat should be able to send an ldap message to another server. When I try to do this I get the following root cause: javax.servlet.ServletException: connectToMur/ConnectToMurService at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497) at org.apache.jsp.processAdd_jsp._jspService(processAdd_jsp.java:96) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) ... ... ... I tried to add the two jar files belonging to ldap to tomcat_home/common/lib, but I still get the same error message. Maybe I need some more paths from my classpath. While I have everything in my classpath I don't want to move everything to tomcat, I want tomcat to read from the classpath and this way find the files. Is this possible? Regards, Emma David Brown wrote: Emma Johansson writes: Hi! I'm wondering how I should do to make tomcat use the paths that are in my CLASSPATH? Regards, / Emma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Emma, it should not be necessary to make tomcat use anything in the CLASSPATH. is there some question about whether tomcat is using ur CLASSPATH or not? if tomcat is not using ur CLASSPATH how do u know? more info is required: tomcat version, what r u trying to do? what application have u defined using what implementation?: servlets, jsp, what? david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How do I integrate my CLASSPATH on Tomcat?
First, let me copy the initial inquriy to refresh your memory. I'm wondering how I should do to make tomcat use the paths that are in my CLASSPATH? Does it say or imply to move JARs or packages to a specific location? The question was simple and the my reply included a simple suggestion according to the inquiry. And back to your comments. Look back about 5 years ago. Did you envisoned all the technologies and standards what's going on now? What make so sure what's going on will stay same in next 5 to 10 years later? Also, not every user of TC develop the app to sell and consider all the factors you mentioned. A matter fact, most of products from your company, Millennium ChemInformatics, do no even have the basic concept of n-tier architecture nor grid-level, distributed computing. If you are so well-planned and -built the outstanding product(if there is any) let me know, I will not mind given you some lessons of well structured architecture and success characteristics in marketability as well as other factors. Last, AFAIK, your compnay is losing the money than making it. Perhaps, you contributed that too? Pae - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 8:17 AM Subject: RE: How do I integrate my CLASSPATH on Tomcat? Howdy, Long run? I've been watching TC a long enough and have changed a number of times the scheme of including the CLASSPTH. In the long run, are you absolutely sure what is going right now will be stay same ... say in next 5 years? I'm sure tomcat will implement the servlet specification standard, yes. I'm sure the servlet specification standard will not mention anything about $CLASSPATH in server-specific startup scripts, yes. /WEB-INF/lib is the standard way to go. It's the only way to go if you don't want to change scripts when changing servers. If you had put the libs there when using tomcat 3.x, you wouldn't have had to move them when moving to 4.x, etc. What's the time frame for the long run mean? More than 5 years? Any time other than the initial beginner setup. You want to be able to setup from scratch automatically, e.g. using an ant script. You want a 3rd party person to be able to deploy your app. That's why the spec is there. That's why the idea of a .war file exists. Sure, you could write detailed instructions and require a specific version of tomcat with your modifications to tomcat's startup script, but good luck getting people to use (much less buy) your app then ;) Obviously it's your app, your company (or university or whatever), so it's your call. In my personal experience, every place I've worked and every boss I've had always insisted on portability and standards-compliance as much as reasonably possible. It's saved us many times. Now I insist on the same with all the developers that work for me, all the projects I'm responsible for, etc. And if I had a dollar for every time it's paid off, I'd be rich ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How do I integrate my CLASSPATH on Tomcat?
Howdy, I won't comment on the personal attack parts, although they are amusing. ;) I'm wondering how I should do to make tomcat use the paths that are in my CLASSPATH? Does it say or imply to move JARs or packages to a specific location? The question was simple and the my reply included a simple suggestion according to the inquiry. That's true. A suggestion that probably even works. But not the best answer to the question. And back to your comments. Look back about 5 years ago. Did you envisoned all the technologies and standards what's going on now? What make so sure what's going on will stay same in next 5 to 10 years later? No, I didn't envision them, nor did I claim to. I don't claim to envision what will be going on even a few months from now. I do envision the existence of a standard in the Java language that will allow you to develop container-independent solutions. That's a major part of the language. Also, not every user of TC develop the app to sell and consider all the factors you mentioned. True. But I think most people who develop in the java language do want platform independence. An experienced developer suggesting to a less experienced one a solution that compromises platform independence is doing a disservice. A matter fact, most of products from your company, Millennium ChemInformatics, do no even have the basic concept of n-tier architecture nor grid-level, distributed computing. False. Completely and amusingly ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem downloading binary files, why no one helped me?
Hi xyber, Thank you very much for helping me out. I checked my IE setting, under Option-Advanced-HTTP 1.1 settings, the box Use HTTP1.1 was checked, and the box Use Http1.1 through proxy connections was not. However, I don't think I use any proxy or anything, just connect through my own machine using local host. Do you have any idea? (This problems show in 3 machines (as servers), and many machines as IE clients). I am sure that anyone has binary download (.exe, .pdf) and an index.html file would have problem. Again, thank you very much, Vy Ho On Wed, 27 Nov 2002, xyber wrote: enable http 1.1 in ie Vy Ho wrote: -- Forwarded message -- Date: Tue, 26 Nov 2002 21:30:36 -0500 (EST) From: Vy Ho [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Weird error using file download I got a very weird error and here is the situation: The app I used: tomcat 4.06, phoenix web browser 0.3, ie6.0 Here is the problem: When I set up an application in tomcat (with BASIC AUTHEN), phoenix could download all binary files (.exe, .pdf, etc...) fine from Tomcat server. Then I tested with IE6.0, and I got error (server could not find the file or something). However, IE6.0 could download text file ok without any problem. Ok, so I came back and delete the file index.html in the application, and I can download the file fine. Isn't this strange? But that's not all yet. I want to serve files using a servlet wraper. Basically send back the binary with the right content type. Mozilla/phoenix can download without any problem. But IE6.0 complain with the same error before. So, somehow the index.html file and the servlet have something in common that make IE not working while it works without the index.html and statically. Well, want another strange thing? I could not find anyone complain about this, or even ask any question about this in newsgroup or apache site. And I can produce consistently using different machine. Anyone have any idea? Is it Apache Tomcat or IE error? Or both? Or it's me? I am sure Tomcat can be changed to work, since statically served page works. And I am sure IE can be changed to work, since Mozilla works all the time. Actually, I found any article in the newsgroup on Google with a similar error, but very different situation (IIS server). And the problem is in the expiration of a page. If some page has instant expiration, then IE6 has problem getting it. It could be the same problem. Coudl someone help me out here since IE has 95% of the market share? Thank you very much in advance. Vy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: setting Context attributes in web.xml/server.xml?
* Andy Eastham [EMAIL PROTECTED] [1140 16:40]: Rasputin, It's in web.xml Sorry, I can't see it. There's a context-param element, but I need a context *attribute*, and I don't think they can be set in tomcat. See sample chapter on www.moreservlets.com for more info. Actually, I bought the book :) -- Rasputin :: Jack of All Trades - Master of Nuns -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi all .. compilation with NetBeans ..
Hi there .. I'm trying to compile tomcat with NetBeans and it seems thats the transaction api to which refers tomcat is depreciated .. The error log is below: catalina/src/share/org/apache/naming/factory/TyrexTransactionFactory.java [75:1] cannot resolve symbol symbol : class UserTransaction location: package transaction import javax.transaction.UserTransaction; ^ catalina/src/share/org/apache/naming/factory/TyrexTransactionFactory.java [126:1] incompatible types found : javax.transaction.UserTransaction required: java.lang.Object return getTransactionDomain().getUserTransaction(); I'm had a look at the monted jars I'm using but I didn't found any references to javax.transaction, I suppose that this class is a part of the java sdk because when I try to mount the jta package I've downloaded from java.sun.com I get an error message explaining that the class is already present in the ide .. Any tips welcome .. :) Eriam -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How do I integrate my CLASSPATH on Tomcat?
Hi Emma, don't move everything to Tomcat, copy it. Keep your system %classpath% as you have and want it. BUT, put (copy) all the resources you need in your webapp in the appropriate directory, i.e. WEB-INF/lib or if they are classes to WEB-INF/classes. Maybe the Application Developers' Guide pathToTomcat/webapps/tomcat-docs/appdev/index.html will help you understanding the source organization and the process of webapps development including Ant and so on better. Regards. Andreas On 27 Nov 2002 at 17:39, Emma Johansson wrote: Hi David, I thought I had to integrate my classpath on Tomcat so that Tomcat is able to use the jar files in my classpath. My web service on tomcat should be able to send an ldap message to another server. When I try to do this I get the following root cause: javax.servlet.ServletException: connectToMur/ConnectToMurService at org.apache.jasper.runtime.PageContextImpl.handlePageException(Pag eContextImpl.java:497) at org.apache.jsp.processAdd_jsp._jspService(processAdd_jsp. java:96) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase .java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:8 53) ... ... ... I tried to add the two jar files belonging to ldap to tomcat_home/common/lib, but I still get the same error message. Maybe I need some more paths from my classpath. While I have everything in my classpath I don't want to move everything to tomcat, I want tomcat to read from the classpath and this way find the files. Is this possible? Regards, Emma David Brown wrote: Emma Johansson writes: Hi! I'm wondering how I should do to make tomcat use the paths that are in my CLASSPATH? Regards, / Emma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Emma, it should not be necessary to make tomcat use anything in the CLASSPATH. is there some question about whether tomcat is using ur CLASSPATH or not? if tomcat is not using ur CLASSPATH how do u know? more info is required: tomcat version, what r u trying to do? what application have u defined using what implementation?: servlets, jsp, what? david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]