tomcat with IIS on NT4
hi, i installed tomcat for IIS on an NT4 machine. i can't access tomcat without writing it's port number (8080) http://localhost:8080/examples/servlet/HelloWorldExample i do not want to write the port number to access tomcat. I wanna be able to do this http://localhost/examples/servlet/HelloWorldExample i added the file "isapi_redirect.dll" to C:\Inetpub\wwwroot\tomcat\bin\iis\i386. could anyone tell me what should i do to stop writing the tomcat Port number and be able to access it anyways. the problem appears only on NT4 and not Windows 2000 thanks, Georges
IIS - Tomcat Caching problems
hi, it seems like tomcat-IIS does some caching (not client side). even if i have in my headers the no-cache specifications, the server seems to display the page from the cache. does anyone have any idea how to bypass this problem. i wan't the server to always check for new pages but without specifying it in the IE browser options. thanks Georges
URL vs. cookies
hi, i'd like to know where can i set tomcat to send the JSESSIONID on the URL instead of using the cookies? thanks Georges
find the NT account name with tomcat for IIS
hi, i would like to get the NT account name of the person browsing the web page. i'm using jsp pages with tomcat for IIS. does anyone know how can i do it? thanks Georges
JDBC Bad handshake error
hi, I'm trying to use mysql with tomcat IIS i downloaded and installed the mm.mysql.jdbc-1.2c driver i have this error when i try to access the database: java.sql.exception: Communication link failure : Bad handshake can anyone tell me what did i do wrong??? thanks Georges
tomcat.log
hi, i'm testing the durability of tomcat under a heavy attack of users , i got a problem with the tomcat.log and jasper.log , those 2 files got so big they took all the available space on my harddisk which have failed my test. does anyone know how to manage the log files not to get so big. thanks Georges
inputstream
hi everyone, i'm trying to use a form to upload a file from the webpage to my server. i don't want to store the file on myserver, i just want to receive the file data and send it somewhere else right away. i know that i have to parse the received data to eliminate the boundaries and th content type,etc. do you know the max size that i can receive on the standardInputStream thanks for any suggestions Georges
tomcat webapps/examples
hi all, i'm a new user to tomcat, i'd would like to access ma pages with this command : http://myServer/myweb/jsp/myjsppages/example.jsp instead of http://myServer/examples/jsp/myjsppages/example.jsp i just want to change the examples to myweb can anyone tell me how can i do it ??? i tried to add a context in my server.xml but it didn't work!! thanks, Georges
tomcat configuration
Title: Property file location in tomcat? hi, I have added a context for my project in server.xml docBase="/user/local/myWeb" crossContext="true" debug="0" reloadable="true" trusted="false" > but it seems like tomcat always loks under webapps/examples to find the jsp pages what else should i change so tomcat will go look in the new project directory??? thanks -Original Message-From: Srinivasan, Radha [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 19, 2001 11:42 AMTo: '[EMAIL PROTECTED]'Subject: Property file location in tomcat? Hi all, Thanks in advance. tomcat version - 3.2.1 OS : Windows 2000 I have created a separate project directory (not under webapps) and I have modified the server.xml in conf directory. docBase="H:/myproj" crossContext="true" debug="0" reloadable="true" trusted="false" > I have some servlets and everything seems to work fine except when I access property file. Tomcat looks for the property file under tomcat/bin directory. Why is it not looking at my project root directory? Is there any way to set it? Radha Srinivasan Software Engineer Email : [EMAIL PROTECTED] 303.417.7329 office 303.417.7416 fax
getInputStream
hi, I'm trying to submit a file to a servlet. I'm wanna use the request.getInputStream() to get the data of the file and request.getContentType() to get the content type I'd like to know if it's possible to get the pure content of the file without any headers of the multipart/form-data thanks Georges
RE: to many tomcat processes!! AAH!!
does anyone know how can i force java to use green threads? thanks -Original Message- From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 8:31 PM To: [EMAIL PROTECTED] Subject: Re: to many tomcat processes!! AAH!! Hi, maybe the many processes are because jdk1.2 and up use native threads (AFAIK, 1.1 used "green" threads, i. e. a threading package implemented in java itself). With 1.2+, every java thread is a native OS thread and therefor gets listed by ps. Have you tried forcing java to use green threads? I'm quite sure that it is possible (RTFM). -- Best regards, Ansgar W. Konermann eMail: [EMAIL PROTECTED] --- Hello, I am a message footer. -
ServletOutputStream
hi, i want to use the ServletOutputStream to send the data of a JPG image to the browser. ServletOutputStream ServletOut = response.getOutputStream(); it's working good but i can't write any text before or after the image. if i set response.setContentType("text/html"); i see the text that i wrote and the data of the image as text (which is normal) and if i set response.setContentType("image/jpeg"); i don't see the text neither the Image i use ServletOut.Print("hello"); to write my text if i include a file with: request.getRequestDispatcher("/jsp/web/test.jsp").include(request, response); i got an error that OutputStream is already being used for this request can anyone help me thanks Georges
RE: include a file in a servlet
-Original Message- From: Georges Boutros [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 10:11 AM To: '[EMAIL PROTECTED]' Subject: RE: include a file in a servlet hi, i wanna know how can i include a jsp or html file in a servlet thanks Georges hi again, the error i get seems like the file is not found here's how i do it: request.getRequestDispatcher("/examples/jsp/web/test.jsp").include(request, response); my jsp files are under /webapps/examples/jsp/web/ thanks again
RE: include a file in a servlet
hi, i wanna know how can i include a jsp or html file in a servlet thanks Georges hi again, the error i get seems like the file is not found here's how i do it: request.getRequestDispatcher("/examples/jsp/web/test.jsp").include(request, response); my jsp files are under /webapps/examples/jsp/web/ thanks again
include a file in a servlet
hi, i wanna know how can i include a jsp or html file in a servlet thanks Georges
tomcat configuration
hi, I'm new to tomcat and i'm trying to change the configuration of tomcat to be able to put my jsp pages in another folder. in server.xml i changed the home to home="/usr/local/mypages" and i added the following context: when i start tomcat the directory mypages is created and it got the logs an work directory in it. but tomcat is still looking for a webapps/examples directory. can anyone tell me how to do the new configuration and what files should i have to change thanks, Georges
RE: to many tomcat processes!! AAH!!
hi, how can you configure server.xml ?? Do you have an example about the configuration of PoolTCPConnectors for ajp12 and ajp13 thanks, Georges -Original Message-From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 12, 2001 10:10 PMTo: [EMAIL PROTECTED]Subject: Re: to many tomcat processes!! AAH!! Go to the Tomcat User's Guide: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html and do a search for "max_threads". You can configure your PoolTCPConnectors for ajp12 and ajp13 via the server.xml file. BE CAREFUL. If you set these values too low, you will undoubtedly hamper performance. However, you shouldn't leave these at the default values once you understand what they do. In my case, I am using ajp13 in all of my code. ajp12, as far as I know, is only being used for startup/shutdown of Tomcat itself. So, I cut the values way back for ajp12 and increased the defaults for ajp13. Thanks, --jeff - Original Message - From: Brendon M. Maragia To: [EMAIL PROTECTED] Sent: Thursday, April 12, 2001 5:14 PM Subject: to many tomcat processes!! AAH!! Dear Readers, I finally!!! Got Jakarta Tomcat vhosting with Cocoon and it was so so beautiful and sweet, I jumped around the room screaming in joy. Don’t try an tell me you’ve never done that. Anyways, I was using jdk1.1.3 ;] ewww, I know. So I upgraded to j2sdk1.3 and fired everything back up. Low and behold when running ps –aux, I was confronted with this…. root 2806 44.5 4.1 76632 10580 pts/1 S 20:01 0:01 /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l root 2844 0.0 4.1 76632 10580 pts/1 S 20:01 0:00 /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l root 2845 0.0 4.1 76632 10580 pts/1 S 20:01 0:00 /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l root 2846 0.0 4.1 76632 10580 pts/1 S 20:01 0:00 /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l Not just that about 50 more. In total about 54 Jakarta Tomcat processes, all this right after I upgraded to j2sdk1.3. I tried downgrading again to jdk1.2.2, no dice same error. I searched through the mail archives and noticed a guy buy the name of Pete Wright had posted a similar error. I emailed him and he told me the list hadn’t been much help. So in posting the same error again I hope to raise user sympathy ;] please help! Sincerely, Brendon Maragia
RE: Good book
what is this web site do you have the address -Original Message- From: Kenneth Westelinck [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 11:33 AM To: [EMAIL PROTECTED] Subject: Re: Good book Hi, I'm not sure if there's a good book yet about Tomcat. I think some dudes on this mailing list are working on that. There is however a good website which is being updated frequently and describes everything you need to administer a Tomcat web site. hope this helps. Kenneth Westelinck >From: <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Good book >Date: Thu, 12 Apr 01 11:08:00 EDT > >Hi, > > Being a newbie to TOMCAT and Java. Is there a good book or some other >type of reading material for TOMCAT. I work as a system administrator and >will not be developing JAVA servlet applications. But, I do need to >understand the ins and outs of TOMCAT for installation, configurations and >security. I don't understand the information in the various files, like >server.xml, web.xml, etc and their releationships. > >Dave > _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
tomcat HANDLER THREAD PROBLEM
hi, i'm using tomcat with apache on RedHat 7.0 i'm using a WebPerformance software to test my webpage with multiple users (100 users) in the beginning it all works good but after about 15 minutes of stress test i start getting this error with tomcat . *** HANDLER THREAD PROBLEM: java.lang.NullPointerException java.lang.NullPointerException at org.apache.tomcat.service.connector.AJP12ResponseAdapter.sendStatus(Ajp12Con nectionHandler.java:439) at org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAd apter.java(Compiled Code)) at org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServl etOutputStream.java:127) at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServl etOutputStream.java(Compiled Code)) at org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java(Compiled Code)) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:158) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java(Com piled Code)) *** Does anyone know what may have caused this error and is there anyway to fix it ? thanks Georges
tomcat start error
hi everyone, when i shutdown tomcat i get this error message ./tomcat.sh: line 164: 770 Segmentation fault (core dumped) $JAVACMD $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME} org.apache.tomcat.startup.Tomcat -stop "$@" does anyone know why??? thanks Georges
RE: Servlets do not run under Apache-tomcat
hi, i don't know if anyone could help but i have the inverse problem of Animesh. my servlet works well like https://server-name/examples/servlet/HelloWorldExample but when i try to call it from a jsp page it doesn't work to submit a form or forward and it works when i include the servlet in my jsp page. Georges -Original Message- From: Animesh Chaturvedi - US [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 2:53 PM To: '[EMAIL PROTECTED]' Subject: RE: Servlets do not run under Apache-tomcat Yeah Filip I agree but why is it not serving my servlet. The HelloWorldExample Servlet's .class file is placed in /myroot/jakarta-tomcat/webapps/examples/WEB-INF/classes folder So if I point my browser to https://server-name/examples/servlet/HelloWorldExample it should run the HelloWorldExample servlet. The jsps in examples context are running fine without problem. Also if in a jsp in the examples context i put and refernce the jsp it works. So whats going wrong. Any idea??? Animesh -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: RE: Servlets do not run under Apache-tomcat > Alias /examples /myroot/jakarta-tomcat/webapps/examples > > Options Indexes FollowSymLinks > > > ApJServMount /examples/servlet /examples > >AllowOverride None >deny from all > this looks like anything that goes to /examples/servlet is being sent /examples which is being aliased to /myroot/jakarta-tomcat/webapps/examples file system agree? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net > -Original Message- > From: Animesh Chaturvedi - US [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 29, 2001 9:58 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Servlets do not run under Apache-tomcat > > > Thanks Filip!! > > I have the followinfg entry in my tomcat.conf file. > > Alias /examples /myroot/jakarta-tomcat/webapps/examples > > Options Indexes FollowSymLinks > > > ApJServMount /examples/servlet /examples > >AllowOverride None >deny from all > > > the same is repeated for other contexts. And this file has been > included in > Apache httpd.conf file. > > Please let me know where I am going wrong or what do I need to do. > > Regards > > Animesh > > -Original Message- > From: Filip Hanik [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 29, 2001 11:40 AM > To: [EMAIL PROTECTED] > Subject: RE: Servlets do not run under Apache-tomcat > > > I would recommend switching to mod_jk > but from your problem, it does't look like you have set up the context > mapping of the /servlet context to go through mod_jserv. > > Filip > > ~ > Namaste - I bow to the divine in you > ~ > Filip Hanik > Software Architect > [EMAIL PROTECTED] > www.filip.net > > > -Original Message- > > From: Animesh Chaturvedi - US [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, March 29, 2001 9:35 AM > > To: '[EMAIL PROTECTED]' > > Subject: Servlets do not run under Apache-tomcat > > > > > > > > Hi > > > > I am running Apache 3.1.17 and Tomcat3.2.1 on a unix box and > > using mod_jserv > > as connector. and using SSL. > > > > The jsp are working perfectly, but servlets do not run at all. > > You get HTTP > > 404 document not found error. I have tried every possible way, but none > > works. > > > > for e.g if I reference a servlet HelloWorldExample in the context of > > examples > > > > through https://server-name/examples/servlet/HelloWorldExample > > > > i get HTTP 404 page not found > > > > and in apache error_log I see: > > > > File does not exist: > > /myroot/jakarta-tomcat/webapps/examples/servlet/HelloWorldExample > > > > However if I refernce a servlet through jsp (i forward the request to a > > servlet) it gets resolved. > > > > I will really appreciate if someone can point me how to correct this > > behaviour. > > > > All my web.xml and server.xml files are as they should be. > > > > > > > > thanks > > > > Animesh > > >
RE: Change path of the jakarta-tomcat on Windows NT
Hello Everyone, i have another question about the same subject i could access my jsp pages in http://localhost/examples/jsp/myFolder (No Problem) i could access my servlet in http://localhost/examples/servlet (No Problem) but if i want to access a servlet from a jsp page i could only do it by including my servlet in my jsp page .I can't forward or submit a form to a servlet. does anyone know why? or what should i change in the configuration file thanks -Original Message- From: Tom Horn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 2:54 PM To: [EMAIL PROTECTED] Subject: RE: Change path of the jakarta-tomcat on Windows NT see Server.xml: --- Arif Tayebali <[EMAIL PROTECTED]> wrote: > I m having the same problem...look into the threads > that have my name: "Arif > Tayebali" for more info! > > -Original Message- > From: Fabricio Costa > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 20, 2001 8:56 AM > To: [EMAIL PROTECTED] > Subject: Change path of the jakarta-tomcat on > Windows NT > > > I installed jakarta-tomcat in my windows NT server > and i run the .JSP pages > with the path http://localhost/examples/ > I want to know how to i can run .JSP pages with > another path, for example > http://localhost/otherpath. > > Thanks > Fabricio Costa > Brazil. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: Servlet path configuration in Tomcat/Apache
i've been having the same problem. i didn't find a solution yet thanks -Original Message- From: Zhengan Cai [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 11:51 PM To: [EMAIL PROTECTED] Subject: Servlet path configuration in Tomcat/Apache Dear Sir/Madam: I have installed Apache 1.3.19 and Tomcat 3.2.1 to my Win2000. I configured both Apache and Tomcat, set the path and classpath to the system. Apache can run JSP and Servlets for the system provided test examples only. Now I would like to add my own servlet files(in .class) to Tomcat. I created a folder " mytest" at the same level of "examples" in the tomcat, ie: c:\tomcat\webapps\examples c:\tomcat\webapps\mytest I added "mytest" in the "Server.xml" to let the system create new context. In the "examples" test HTML file, the servlet path has been set up to " ../servlet/HelloWorldExample"... Comparing to that, I setup my servlet path to "../servlet/x" Now my problem is: I create a test HTML file with test button on it. When I click the button, it says the page can't be found. If you have time, Could you tell me: 1. How to put my own file(jsp, servlet, HTML) in the Tomcat or Apache? 2. How to configure the Tomcat or Apache for the Servlet path? Thanks very much. Have a nice day! Terry
servlet and tomcat configuration
hi, i'm working with jsp pages as long as some servlets i could access my jsp pages-- no problem -- at: http://www.domain.com/examples/jsp/webclient/MYPAGE.jsp i could access my servlet -- no problem -- at: http://www.domain.com/examples/servlet/CookieExample but when i try to call my servlet from my jsp page i could only do it by including my servlet to my jsp page but i can not forward or submit informtion to my servlet is there anything i have to change in my configuration to be able to do so thanks Georges - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
servlets and configuration
hi, i'm using Apache webserver with tomcat . i have jsp pages and servlets. my jsp pages are in tomcat/webapps/examples/jsp/mypages/ my servlets are in tomcat/webapps/examples/WEB-INF/classes my jsp pages works fine and my servlets works fine too but the only problem is that i can't access my servlets directly as http://[domain]/servlet/Hello but if i include my servlet in my jsp page it works . can anyone tell what should i have to change in my configuration to be able to do so. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Unreachable servlets
--> How did you do to reach your servlet with tomcat??? thanks OK I have found it Gerard BORREILL wrote: > Hello, > There is probably something I do not understand, but I can't manage > making my servlets reachable with tomcat . > I am using Tomcat 3.2.1 with apache on Solaris. So I have generated the > mod_jk module. > > I have set in the web.xml file of my servlet : > > MyServlet > /Test > > > So I presume that the URL to my servlet should end with"/Test" > > My .war file (myweb.war) is under > ../dist/tomcat/webapps/ > and is uncompressed when I start Tomcat. > > The servlet is started (the init() method is called). So it means it is > installed in the right place and Tomcat knows where to find it, and the > servlet does not crash when being started. > > What URL should I type to call my servlet ? I am using a little java > client that sends data to the servlet. > > I have tried > > http:///myweb/Test > http:///myweb/servlet/Test > ans so many others... > > But my client still fails to reach the servlet. (Error 404 file not > found) What's wrong ? > > In advance, thank you, > > Gérard > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Servlet error
hi i'm trying to send a picture to the browser but i keep getting this error public class GetTiff extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { res.setContentType("image/jpeg"); // image/jpeg OutputStream out=res.getOutputStream(); FileInputStream file=new FileInputStream("d:/matrix.jpg"); int databyte; while((databyte=file.read())>=0) { out.write(databyte); } } } here's the error: java.lang.IllegalStateException: Writer is already being used for this request does anyone have a clue how can i fix this problem thanks for any advice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
how to forward to a newpage in Java
hello, i just wanna know how to forward to a New Page in java and not jsp. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]