[Fwd: Session expiration...]
Hi! I want to ask about sessions in tomcat. How do you change the elapsed time for the session to expire. Thanks! Merwin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: NullPointerException at java.io.Reader when WAR file expanded.
In list.tomcat-user you write: We have a web application distributed in a WAR file that consists of servlets that were compiled from JSPs, one index.jsp file and a number of JavaBeans and JAR files on Tomcat 3.2.1. When Tomcat is started, it unpacks the war file correctly with everything in its place. However, part of the initialization process contained in the index.jsp is to attempt to read a properties file to obtain the DB connection info. It is the attempt to read this properties file that causes the NullPointerException. This only happens when Tomcat has expanded the WAR file. If Tomcat is stopped and started again, everything works, the property files are found and read. I haven't tried this from a WAR file, but you could use the following instead: application.getResourceAsStream( "/WEB-INF/db.props" ); Where "application" is the ServletContext implicit object. -- `O O' | [EMAIL PROTECTED] // ^ \\ | http://www.pyrites.org.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: [Fwd: Session expiration...]
Merwin Yap typed the following on 04:27 PM 2/3/2001 +0800 Hi! I want to ask about sessions in tomcat. How do you change the elapsed time for the session to expire. In your web.xml put: session-config session-timeout30/session-timeout /session-config Change 30 to the number of minutes that must elapse before the server will expire an inactive session. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Custom error pages from servlets?
Les Hartzman typed the following on 04:36 PM 2/7/2001 -0800 Using Tomcat 3.2.1, is it possible to define/display custom error pages based on errors that occur within a servlet? No JSPs are used; this is a servlet/EJB environment. I've seen in the spec for web.xml that there is an error-page element for either a general error code or an exception type. But is final granularity possible based on some servlet action? I'm not sure what you mean by that last sentence. You can throw whatever exceptions you want in your servlet to force handling by a particular error page. Create custom exception subclasses and throw those in your servlet. error-page exception-typecom.myco.myproject.FooException/exception-type location/servlets/FooExceptionServlet)/location /error-page Section 9.8 of the 2.2 specification explains how to find the error conditions in your servlet. Note that there has been a bug which causes Tomcat to choke if you use a non JSP/servlet resource to handle error-pages, i.e. using a flat HTML page kills it. I'm not sure if this is still a bug. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat-iis trouble
Hi: I would like to run tomcat with iis and following the jakarta-tomcat-3.2.1\doc\tomcat-iis-howto.html. then Try http://localhost/examples/jsp/index.html always got the error HTTP 404 ifI try http://localhost:8080/examples/jsp/index.html then it's ok! can u help me ? thanks by Nick from Taiwan.
RE: tomcat-iis trouble
Hi nick in my opinion there couple of reasons to your error one of them is that in your uriworkermap file you should insert the entry : /examples/*=ajp12 the other on is that the isapi filter isn't place in the right place you should put your isapi filterin your new web site directory that you opened with the iis console and not in the root directory of the iis hope it will help you if it wont help you give me some more information does the isapi log file has been created ? what kind of operation system do you use ? shlomi -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: Thu, February 08, 2001 11:24 AMTo: [EMAIL PROTECTED]Subject: tomcat-iis trouble Hi: I would like to run tomcat with iis and following the jakarta-tomcat-3.2.1\doc\tomcat-iis-howto.html. then Try http://localhost/examples/jsp/index.html always got the error HTTP 404 ifI try http://localhost:8080/examples/jsp/index.html then it's ok! can u help me ? thanks by Nick from Taiwan.
Question about preference within classpath...
Question about preference within classpath... My question is purely théorical, If I have a jar in my $TOMCAT_HOME\lib and one into $TOMCAT_HOME\webapps\mywebapp\WEB-INF\lib and one is a newer version then the other, which of those two will be used ? I have the same question with classes? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
asp and jsp on IIS
Hello I want to use ASP and JSP on IIS is it possible ? I know that it is possible to install tomcat on IIS to develop in JSP , but in this case will ASP run ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
installing TomCat on FreeBsd
Hi, Is there a somewhat easier walk-through for installing TomCat ona FreeBSD unix environment? The documentation that comes with TomCat is just worthless, nothing works, everything is missing and I haven't been able to complete the first few steps of the manual. What do I need, where can I get it, how do I install it, and how do I configure it to run along with apache? I know it's in the manual, but the manual is no good to me, sorry. Is there anyone who can help me with this? Ajuus, Bop. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
The tomcat service could not be started
Hi I am trying to run the tomcat as a service on my win 2000 I am using jdk 1.2 and tomcat 3.2 after changing all the configuration in 'wrapper.properties' I tried to start the service like this : C:\tomcatC:\tomcat\bin\win32\i386\jk_nt_service.exe -i tomcat C:\tomcat\conf\wrapper.properties this is what I got : Asked (and given) Winsock 1.1 The service named tomcat was created. Now adding registry entries Registry values were added If you have already updated wrapper.properties you may start the tomcat service by executing "net start tomcat" from the command prompt trying to run the service : C:\tomcatnet start tomcat The tomcat service is starting. The tomcat service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. the log files that was suppose to be in the logs directory hasn't been created ! please if anyone can help Regards Shlomi Sarfati - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
HttpSession across virtual hosts
Hi all, I know that the HttpSession is only valid on the virtual host it was created on. This is more of a security question. We currently have our own session class that gets stored in an HttpSession 1:1 ratio. So we've coded a request that allows us to GetSessionID on the original host and then AttachSession on the new host. Which basically does a lookup of the session id in a static hashtable to find one of our sessions and then attaches it to the new HttpSession. This is used when switching from a non-secure to and from secure host. My question is while the user name and password goes to the secure host the session id will be sent on the unsecure host in the AttachSession request: 1. Can this be intercepted by a hacker and used as if they had logged on? 2. If I save the remote ip address and check it during the AttachSession, is that secure enough or can some hacker pretend to be the same ip address? 3. I am right in assuming there is no way of making an HttpSession valid across virtual hosts (Make my life a lot easier)? 4. How can I keep the HttpSession on the original host valid? Or is it easier to do an AttachSession every time the host is switched? Thanks. Dave. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Servlet URLs
I am using tomcat with Apache (on Solaris). The tomcat example servlets are at URLs such as: http://www.somedomain.com/examples/servlet/HelloWorldExample but the actual class file is at e.g. /usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes/HelloWorldExample The 'servlet' directory is not in the actual path, and it is not in the context path in jakarta's conf/server.xml file. This 'servlet' part of the URL seems to be used in mod_jk.conf-auto for a JKMount command, as a result of a JKMount command in mod_jk.conf. So: Is there any way to use servlets (not JSPs) with tomcat without using '/servlet/' in the URL. I am trying to set up a system which already uses fixed URLs. Murray Cumming [EMAIL PROTECTED] www.murrayc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Connection refused under hight load
Hi, I'm testing a servlet-application that is using Tomcat v 3.1 (standalone, without Apache) running on Win2K Workstation. The tool I'm using for testing starts a (configurable) number of threads, each of which connects to the server, sends a HTTP-request and waits for the response. It runs on the same machine as the server. When I start many threads simultaneously, the server sometimes refuses connections (I get a ConnectException on client side). The tomcat logfile shows nothing unusual. Does someone know a possible reason for this behaviour or even a solution ? (I suspect that the "connection request queue" (I don't know the correct term ) of the operating system is too short, but where can i adjust this ?) Thanks in advance, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Connection refused under hight load
I'd say that you've started too many threads; when there are no more threads available in the thread pool, Tomcat refuses connections. You should increase the number of threads in the pool. Sadly, I don't know how to do that; and would like to know :) Cheers, Alex. Markus Ebersberger wrote: Hi, I'm testing a servlet-application that is using Tomcat v 3.1 (standalone, without Apache) running on Win2K Workstation. The tool I'm using for testing starts a (configurable) number of threads, each of which connects to the server, sends a HTTP-request and waits for the response. It runs on the same machine as the server. When I start many threads simultaneously, the server sometimes refuses connections (I get a ConnectException on client side). The tomcat logfile shows nothing unusual. Does someone know a possible reason for this behaviour or even a solution ? (I suspect that the "connection request queue" (I don't know the correct term ) of the operating system is too short, but where can i adjust this ?) Thanks in advance, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problems getting Apache-Tomcat on the jk-module running!
At 05:03 7/2/01 +0100, [EMAIL PROTECTED] wrote: Hi everybody, could somebody please give me a hint, on how to get Apache-Tomcat on the jk-module running??? I've tried everything... You even tried posting to a completely innapropriate mailing list ! ;) Go reread http://jakarta.apache.org/site/mail.html and send mail to tomcat-users Cheers, Pete *-* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
WEB-INF/lib PLEASE URGENT !
Hi! I use Tomcat 3.2 with Win2k I deploy an web application under webapps/MyApp. I use a web.xml under webapps/MyApp/WEB-INF My main servlet is in webapps/MyApp/MyMainServlet. It needs some .jar files that I put in webapps/MyApp/WEB-INF/lib. BUT the jar files a not found !! it seems that TOmcat not automatically update the classpath !!! Thanks Joel ___ Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, Yahoo! Messenger : http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat 3.2 throwing a VerifyError at me
Hi all, I've been using Tomcat 3.1 for a quite a long time now, and I thought that I'd finally give 3.2.1 a try since it's (finally) out of beta. I've set up Tomcat on a Windows NT4 machine with Sun JDK 1.2 and added my webapp to the server.xml file as follows: !-- /ITEU context added by RAJ -- context path="/ITEU" docBase="webapps/ITEU" crossContext="true" trusted="true" debug="0" reloadable="false" /context I then went through my app to ensure that everything is still working, and although most of the JSPs are working fine, when it comes to one of them, I get a VerifyError exception: /ITEU/html/manager/displayquestions.jsp Internal Servlet Error: javax.servlet.ServletException: (class: html/manager/_0002fhtml_0002fmanager_0002fdisplayquestions_00 02ejspdisplayquestions_jsp_1, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServle tResponse;)V) Incompatible object argument for function snip Root cause: java.lang.VerifyError: (class: html/manager/_0002fhtml_0002fmanager_0002fdisplayquestions_00 02ejspdisplayquestions_jsp_1, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServle tResponse;)V) Incompatible object argument for function at java.lang.Class.newInstance0(Native Method) snip I've gone back and checked this against Tomcat 3.1 and it works fine. I'm guessing that this is some sort of security thing that is different between 3.1 and 3.2, or there's some setting that I've missed, but I can't see what it is. Can someone help? TIA, Raj. -- Rajnish Bhaskar [EMAIL PROTECTED], http://i.am/rajy IT Education Unit, University of Glasgow http://www.iteu.gla.ac.uk/ -- As far as Death was aware, the sole reason for any human association with pigs and lambs was as a prelude to sausages and chops. Quite why they should dress up for children's wallpaper as well was a mystery. -- (Terry Pratchett, Hogfather) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: WEB-INF/lib PLEASE URGENT !
Hi, From: Joel Cordonnier [mailto:[EMAIL PROTECTED]] I use Tomcat 3.2 with Win2k I deploy an web application under webapps/MyApp. I use a web.xml under webapps/MyApp/WEB-INF My main servlet is in webapps/MyApp/MyMainServlet. Is it a class file? I'd have thought you'd put it webapps/MyApp/WEB-INF/classes It needs some .jar files that I put in webapps/MyApp/WEB-INF/lib. BUT the jar files a not found !! it seems that TOmcat not automatically update the classpath !!! Have you restarted tomcat? What exact error are you getting? And why is it urgent? Chris This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
About Tomcat 4
Dear Sir The Tomcat4.0 is installed in windows2000 professional. And JSP programs run well. I wrote a servlet program and compiled ok.Where is the right place to place the XXX.class Andrew Lin JSP_ok.jpg Servlet.jpg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Load JSP page on start up
Hi Can I load jsp page on start-up the same way I load a Servlet (e.g: load-on-startup3/load-on-startup ( E-mail : [EMAIL PROTECTED] Web : http://www.mobilitec.com/ Mobilitec, Inc. P.O. Box 15049 Matam Haifa 31905, Israel Tel +972-4-855-1133 ext. 115 Fax +972-4-855-1112 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tomcat on win2k
Ya, I've slammed my head against the wall for a couple of days, searching for some kind of misterious bug in my beans/jsp/servlets/jdbc ... and so on ... while the reason of that "strange" behavior was so simple. Thanks again to this great list ... Sal. - Original Message - From: "Peter Alfors" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 4:46 PM Subject: Re: tomcat on win2k We have noticed this behaviour as well in NT. If you click in the tomcat window, you will notice the word "Select" appears at the top of the command window. This 'pauses' tomcat until you hit a key to release it. Pete "Etienne Baert (SPS Office)" wrote: Hi Salvatore, this happens when you click inside the command window in which the tomcat process is active. Microsoft sets the default behaviour in w2k for such actions to hanging the running application. Pressing on ENTER key simply releases this hanging. If you need to select the tomcat process window, don't click inside the window but on its title bar or via its icon in the taskbar to avoid this strange behaviour to happen. Etienne -Original Message- From: Salvatore Borrelli [mailto:[EMAIL PROTECTED]] Sent: mercredi 7 fvrier 2001 15:20 To: [EMAIL PROTECTED] Subject: Re: tomcat on win2k Hi everyone, I have installed the Tomcat Release version 3.2 on a Windows 2000 server, and integrated it with IIS 5.0 (as a standalone process) with almost no problems. I say "almost" because, though the system seems to work correctly, sometime it hangs (i.e. it doesn't serve my JSP pages anymore), and it restart to work properly only when i set the focus to the Tomcat window and press the ENTER key. Someone has an idea about the cause of this strange behavior? Thank a lot for your suggestions, Sal - Original Message - From: "CPC Livelink Admin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 1:35 AM Subject: RE: tomcat on win2k IE is pretty stupid that way. It does it to me and I am online all the time. The trick is to put the http:// in there explicitly, then it won't convert to local:8080 -Original Message- From: Peter Alfors [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 5:10 PM To: [EMAIL PROTECTED] Subject: Re: tomcat on win2k I have the Tomcat 4.0 Dev nightly build (? - i'd have to check which one) running on Windows 2000. I didn't come across any errors. The only thing I couldn't do was actually view the examples web app using IE (i believe 5.5). IE does not want to let me connect to 'localhost:8080' offline. It changes the address to 'local:8080'. Running the examples in Netscape 4.01 worked fine though. Pete Lakshmi Bhetanabhotla wrote: Hi , I wanted to know if this servlet engine..( TOMCAT) is supported on Win2K. I have installed it on Win2k, set up all the paths and classpaths, but when I startup the server, the process aborts giving a runtime exception. Has anyone had a similar problem regarding installation of tomcat on win2k. I greatly appreciate any feedback or help on this. Thank You, Lakshmi. _ Get your FREE download of MSN Explorer at http://explorer.msn.com - 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] - 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]
AW: HttpSession across virtual hosts
For any hacker it is quite easy to fake an IP address. If you do something like that it's more likely that you will punish several of your users, because everybody who is connected through a call by call provider can have several IP addresses during one session. -Ursprngliche Nachricht- Von: David Oxley [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 8. Februar 2001 11:38 An: [EMAIL PROTECTED] Betreff: HttpSession across virtual hosts snip/ 2. If I save the remote ip address and check it during the AttachSession, is that secure enough or can some hacker pretend to be the same ip address? snip/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: asp and jsp on IIS
Yes, they will run. I recently switched my web site dinamic pages from ASP to JSP and installed tomcat on IIS to serve the JSP pages. Actually I'm in a transition phase during which I'm converting all the ASP code to the new Java based architecture, so in this period I still have some ASP pages served by IIS while the JSP's are served by tomcat. And all seems to work fine. Hope this helps, Sal. - Original Message - From: "Erwan TROEL" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 11:26 AM Subject: asp and jsp on IIS Hello I want to use ASP and JSP on IIS is it possible ? I know that it is possible to install tomcat on IIS to develop in JSP , but in this case will ASP run ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: HttpSession across virtual hosts
David Oxley typed the following on 10:38 AM 2/8/2001 + I know that the HttpSession is only valid on the virtual host it was created on. This is more of a security question. We currently have our own session class that gets stored in an HttpSession 1:1 ratio. So we've coded a request that allows us to GetSessionID on the original host and then AttachSession on the new host. Which basically does a lookup of the session id in a static hashtable to find one of our sessions and then attaches it to the new HttpSession. I sort-of understand what you're doing, but I'm not clear on a couple of details. What do you mean when you say you've "coded a request"? How exactly is the session ID passed from the original host to the new host, is this by a form field embedded into the HTML, or is it all on the server side? This is used when switching from a non-secure to and from secure host. My question is while the user name and password goes to the secure host the session id will be sent on the unsecure host in the AttachSession request: 1. Can this be intercepted by a hacker and used as if they had logged on? If an attacker is snooping a non-SSL connection, they can see the session ID and potentially horn in on the non-SSL session. I haven't heard of any tools to exploit this, but then I haven't really looked. 2. If I save the remote ip address and check it during the AttachSession, is that secure enough or can some hacker pretend to be the same ip address? It depends on what "secure enough" means for your organization. It is possible to spoof an IP address, but it doesn't hurt to add an extra obstacle for crackers. The only drawback I can think of to doing this is that some legitimate users may be behind weird ISP proxies which give different IP addresses on different requests. But I don't know how many users do use such systems, it may be a small enough number to be acceptable to your needs. 3. I am right in assuming there is no way of making an HttpSession valid across virtual hosts (Make my life a lot easier)? Yes you are right: you can't. If your virtual servers are under a common domain (site1.foo.com, site2.foo.com, etc.) you can use your own cookie to index your "session" data object, basically implementing your own session system. But it sounds like you're doing that, or something similar, already. 4. How can I keep the HttpSession on the original host valid? Or is it easier to do an AttachSession every time the host is switched? I'm not sure the problem here: if the user returns to the original host before their session expires, their session should still be valid. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: asp and jsp on IIS
I think that the problem will be that the isapi_redirect dll will transfer all the request to the tomcat I haven't found documentation on it but if you can configure the isapi_redirect.dll to take only requests with unique extensions maybe you can do it in your iis console right click on your web site / properties choose the home directory tab and press on the "configuration" button you have a list of dll's try to define an extension to your servlets and configure the redirect to your isapi filter -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thu, February 08, 2001 12:27 PM To: [EMAIL PROTECTED] Subject: asp and jsp on IIS Hello I want to use ASP and JSP on IIS is it possible ? I know that it is possible to install tomcat on IIS to develop in JSP , but in this case will ASP run ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat und IIS
Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Dynamically created calendar
Is it possible to use JSP to dynamically create a calendar? Of course... You can create a new Calendar object then from that get the month and year(and current day) then generate an HTML table using the various methods in Calendar. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Stupid question - cannot load servlet name - mm.mysql related ??
Hello. I have two identical linux redhat 6.2 machines, both running TomCat standalone. On machine A, I've been testing out a system I'm developing. It runs okay on that machine. Now I want it on machine B instead. So, I move the sources to machine B (together with the build.sh script (which works fine on machine A) and all the other files). I compile without errors, Ant moves the classes and web.xml into the correct directories. BUT, when I start TomCat I get a whole bunch of "cannot load servlet name: whatever name" messages. Looking at the other logs, It seems to load and initialize the servlets okay. So, I try to connect to TomCat. Every servlet which does not use the mm.mysql db driver works ok. Those using it wont work. It just states "cannot load database driver". This message comes from a try clause around the driver loader in each servlet. Now, I've moved the mysql drivers to machine B and added the mm.mysql-2.0.2.bin.jar to the classpath. Why does it still fail? Any ideas? I'm stuck. *sigh* Regards, Christopher Cato Rational Software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Dynamically created calendar
Yes, I'd say it is possible. As long as you figure out the logics around creating the calendar, there are classes that handle dates and time. Regards, Christopher Cato -Original Message- From: Jason Teh [mailto:[EMAIL PROTECTED]] Sent: den 8 februari 2001 13:26 To: [EMAIL PROTECTED] Subject: Dynamically created calendar Hi guys Is it possible to use JSP to dynamically create a calendar? J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat und IIS
it is possible I am running it just fine double check the registry key extension_uri it suppose to have the value of the dll something like this "/jakarta/isapi_redirect.dll" shlomi -Original Message- From: Inga Schuetz [mailto:[EMAIL PROTECTED]] Sent: Thu, February 08, 2001 2:38 PM To: [EMAIL PROTECTED] Subject: tomcat und IIS Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat und IIS
Yes its possible. Check the registry entries (case and white space matters). Also, check that you have the full dll (downloading with Netscape will corrupt, I would recommend the zip file, just to be safe) Randy -Original Message- From: Inga Schuetz [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:38 AM To: [EMAIL PROTECTED] Subject: tomcat und IIS Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Question about preference within classpath...
Charles, The jar which is in $TOMCAT_HOME\lib takes precedence, because it is in the system CLASSPATH. For TOMCAT 3.2, the order in which classes are loaded is that bootstrap - ext - system classpath (CLASSPATH environment variable) - custom classloader (WEB-INF\classes or WEB-INF\lib). hope this helps, -Peiqiang Han Charles Sabourdin wrote: Question about preference within classpath... My question is purely thorical, If I have a jar in my $TOMCAT_HOME\lib and one into $TOMCAT_HOME\webapps\mywebapp\WEB-INF\lib and one is a newer version then the other, which of those two will be used ? I have the same question with classes? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat und IIS
In this case IIS will run only in JSP no longer in ASP? or will it be possible to develop in ASP and in JSP? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 13:16 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS Yes its possible. Check the registry entries (case and white space matters). Also, check that you have the full dll (downloading with Netscape will corrupt, I would recommend the zip file, just to be safe) Randy -Original Message- From: Inga Schuetz [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:38 AM To: [EMAIL PROTECTED] Subject: tomcat und IIS Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - 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]
RE: Connection refused under hight load
Title: RE: Connection refused under hight load I know that NT4 Workstation only allows 10 concurrent network connections. I didn't think that limit had changed for Win2k Workstation. Even though your app is running on the same machine, it is still making tcpip requests which would count against the limit. This is to force people to buy NT Server. Charlie -Original Message- From: Markus Ebersberger [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 6:13 AM To: [EMAIL PROTECTED] Subject: Connection refused under hight load Hi, I'm testing a servlet-application that is using Tomcat v 3.1 (standalone, without Apache) running on Win2K Workstation. The tool I'm using for testing starts a (configurable) number of threads, each of which connects to the server, sends a HTTP-request and waits for the response. It runs on the same machine as the server. When I start many threads simultaneously, the server sometimes refuses connections (I get a ConnectException on client side). The tomcat logfile shows nothing unusual. Does someone know a possible reason for this behaviour or even a solution ? (I suspect that the connection request queue (I don't know the correct term ) of the operating system is too short, but where can i adjust this ?) Thanks in advance, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat und IIS
As another current thread states, yes you can still run ASP and JSP, but you must be careful - if the pattern of the URL matches something in the config file then Tomcat will see it and not IIS's ASP engine. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:59 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS In this case IIS will run only in JSP no longer in ASP? or will it be possible to develop in ASP and in JSP? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 13:16 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS Yes its possible. Check the registry entries (case and white space matters). Also, check that you have the full dll (downloading with Netscape will corrupt, I would recommend the zip file, just to be safe) Randy -Original Message- From: Inga Schuetz [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:38 AM To: [EMAIL PROTECTED] Subject: tomcat und IIS Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: HttpSession across virtual hosts
What I've seen done, which doesn't necessarily make it secure, it to send some form of CartID. This ID identifies the Cart in some shared back end data store. Usually these are large numbers that contain enough information to determine if its a possible real value, or a number someone made up. If its something that someone made up, usually their IP is locked out for a certain amount of time or a session field is set that doesn't allow them in as long as that same session is valid. Randy -Original Message- From: David Oxley [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:08 AM To: '[EMAIL PROTECTED]' Subject: RE: HttpSession across virtual hosts I sort-of understand what you're doing, but I'm not clear on a couple of details. What do you mean when you say you've "coded a request"? How exactly is the session ID passed from the original host to the new host, is this by a form field embedded into the HTML, or is it all on the server side? Like URL-Encoded session management. The host passes our session id back to the server when changing hosts so that it can be connected to the new HttpSession. Doesn't normal session management have exactly the same problem. When writing an E-Commerce system the basket is normally chosen on an unsecure host and then the user is put on to a secure host to checkout their products. You need to be able to id the user between the two hosts. There has to be a 'secure' way of doing this?!?! Dave [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]
RE: Connection refused under hight load
AFAIK, this limit doesn't apply for TCP/IP connections, only netbios connections. Mark -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:17 AM To: '[EMAIL PROTECTED]' Subject: RE: Connection refused under hight load I know that NT4 Workstation only allows 10 concurrent network connections. I didn't think that limit had changed for Win2k Workstation. Even though your app is running on the same machine, it is still making tcpip requests which would count against the limit. This is to force people to buy NT Server. Charlie -Original Message- From: Markus Ebersberger [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 6:13 AM To: [EMAIL PROTECTED] Subject: Connection refused under hight load Hi, I'm testing a servlet-application that is using Tomcat v 3.1 (standalone, without Apache) running on Win2K Workstation. The tool I'm using for testing starts a (configurable) number of threads, each of which connects to the server, sends a HTTP-request and waits for the response. It runs on the same machine as the server. When I start many threads simultaneously, the server sometimes refuses connections (I get a ConnectException on client side). The tomcat logfile shows nothing unusual. Does someone know a possible reason for this behaviour or even a solution ? (I suspect that the "connection request queue" (I don't know the correct term ) of the operating system is too short, but where can i adjust this ?) Thanks in advance, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: HttpSession across virtual hosts
The http // https comparison doesn't work as cookies are sent or not depending on the host, not on the protocol. So if I have a valid session_id in a cookie in http, that will still be sent when I switch to https. So I can either have a common pool of current cookies if my https server is seperate from my http server (seems a hard way to do it) or I just access the software (eg Tomcat) via a webserver (eg apache) through either protocol and the session continues without complaint. Unless I did something complicated without noticing, of course... -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 1:13 PM To: [EMAIL PROTECTED] Subject: RE: HttpSession across virtual hosts What I've seen done, which doesn't necessarily make it secure, it to send some form of CartID. This ID identifies the Cart in some shared back end data store. Usually these are large numbers that contain enough information to determine if its a possible real value, or a number someone made up. If its something that someone made up, usually their IP is locked out for a certain amount of time or a session field is set that doesn't allow them in as long as that same session is valid. Randy -Original Message- From: David Oxley [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:08 AM To: '[EMAIL PROTECTED]' Subject: RE: HttpSession across virtual hosts I sort-of understand what you're doing, but I'm not clear on a couple of details. What do you mean when you say you've "coded a request"? How exactly is the session ID passed from the original host to the new host, is this by a form field embedded into the HTML, or is it all on the server side? Like URL-Encoded session management. The host passes our session id back to the server when changing hosts so that it can be connected to the new HttpSession. Doesn't normal session management have exactly the same problem. When writing an E-Commerce system the basket is normally chosen on an unsecure host and then the user is put on to a secure host to checkout their products. You need to be able to id the user between the two hosts. There has to be a 'secure' way of doing this?!?! Dave [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Dynamically created calendar
Go to one of the javascript sites, such as javascript.com. They have free code snippets of generating calendars dynamically for any month and year. scott. --- "Cato, Christopher" [EMAIL PROTECTED] wrote: Yes, I'd say it is possible. As long as you figure out the logics around creating the calendar, there are classes that handle dates and time. Regards, Christopher Cato -Original Message- From: Jason Teh [mailto:[EMAIL PROTECTED]] Sent: den 8 februari 2001 13:26 To: [EMAIL PROTECTED] Subject: Dynamically created calendar Hi guys Is it possible to use JSP to dynamically create a calendar? J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Load JSP page on start up
Yes, but instead of specifying the servlet-class tag, you will need to use the jsp-file tag. This will cause the jsp page to be compiled and loaded. scott. --- Amir Nuri [EMAIL PROTECTED] wrote: Hi Can I load jsp page on start-up the same way I load a Servlet (e.g: load-on-startup3/load-on-startup ( E-mail : [EMAIL PROTECTED] Web : http://www.mobilitec.com/ Mobilitec, Inc. P.O. Box 15049 Matam Haifa 31905, Israel Tel +972-4-855-1133 ext. 115 Fax +972-4-855-1112 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Servlet URLs
just specify the url mapping in the web.xml file. It does not have to have servlet in it. For example I have a servlet that processes a login from an html and the url to the servlet is: http://localhost/processlogin or http://localhost/myapp/processlogin cheers, scott. --- "Cumming, Murray" [EMAIL PROTECTED] wrote: I am using tomcat with Apache (on Solaris). The tomcat example servlets are at URLs such as: http://www.somedomain.com/examples/servlet/HelloWorldExample but the actual class file is at e.g. /usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes/HelloWorldExample The 'servlet' directory is not in the actual path, and it is not in the context path in jakarta's conf/server.xml file. This 'servlet' part of the URL seems to be used in mod_jk.conf-auto for a JKMount command, as a result of a JKMount command in mod_jk.conf. So: Is there any way to use servlets (not JSPs) with tomcat without using '/servlet/' in the URL. I am trying to set up a system which already uses fixed URLs. Murray Cumming [EMAIL PROTECTED] www.murrayc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat 3.2.1 + SSL direct problem
Hi there, I'm trying to install SSL directly into tomcat as per the tomcat-ssl-howto.html document, and I'm encountering a weird error in tomcat.log when I start up tomcat. (The port numbers are different from standard as we've each got out own tomcat server running for development purposes) 2001-02-08 12:28:56 - PoolTcpConnector: Starting HttpConnectionHandler on 8802 2001-02-08 12:29:01 - PoolTcpConnector: Starting HttpConnectionHandler on 8443 2001-02-08 12:29:02 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8012 java.lang.NullPointerException at com.sun.net.ssl.internal.ssl.OutputRecord.a([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Compiled Code) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.close([DashoPro-V1.2-120198]) I've copied the jsse jars to the /lib directory of tomcat, I've edited the java.security file accordingly, and I've run keytool -genkey -alias tomcat -keyalg RSA and have a .keytool file in my home directory. I know that the jsse is working correctly as I've been able to run the URLReader sample program and connect over https to verisign.com. Am I missing something? Any help would be greatly appreciated, Cheers, Alan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Stupid question - cannot load servlet name - mm.mysql related ??
Hello. I have two identical linux redhat 6.2 machines, both running TomCat standalone. On machine A, I've been testing out a system I'm developing. It runs okay on that machine. Now I want it on machine B instead. So, I move the sources to machine B (together with the build.sh script (which works fine on machine A) and all the other files). I compile without errors, Ant moves the classes and web.xml into the correct directories. BUT, when I start TomCat I get a whole bunch of "cannot load servlet name: whatever name" messages. Looking at the other logs, It seems to load and initialize the servlets okay. So, I try to connect to TomCat. Every servlet which does not use the mm.mysql db driver works ok. Those using it wont work. It just states "cannot load database driver". This message comes from a try clause around the driver loader in each servlet. Now, I've moved the mysql drivers to machine B and added the mm.mysql-2.0.2.bin.jar to the classpath. Why does it still fail? Any ideas? I'm stuck. *sigh* Regards, Christopher Cato - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: still having some trouble with mod_jk on SGI
David: The Indigo is one of the older SGI boxes. SGI uses 3 different levels of compiler options: -32 (also called O32 ABI--for older MIPS processors), -n32 (called N32 ABI--optimizations for newer versions of the MIPS processor) and -64 (64-bit optimizations for more recent 64-bit MIPS processors.) The following two lines are warnings: cc: unrecognized option `-n32' cc: unrecognized option `-KPIC' The first warning should not really affect you too much. The -KPIC option however *IS* important for the problem you are experiencing. The following is from the man page for 'cc': -KPIC Generates position-independent code (PIC). This is the default and is needed for programs linking with dynamic shared libraries. If you do not want to generate PIC code, specify -non_shared on the command line. Looks like you need to stick with the gcc compiler or find out what option your (older) version of the compiler is used for creating shared libraries. As to the error messages after those warnings, the earlier IRIX compilers have less compliance with some of the ANSI standards. I would examine the header file to see what is triggering the syntax error. Hope this helps! Paul E Wilt Principal Software Engineer XanEdu, Inc. ( a division of Bell+Howell InformationLearning) http://www.XanEdu.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 300 North Zeeb Rd Phone: (734) 975-6021 (800) 521-0600 x6021 Ann Arbor, MI 48106 Fax:(734) 973-0737 -Original Message- From: Hladky, David [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07,2001 5:22 PM To: 'Mike Braden' Cc: [EMAIL PROTECTED] Subject: RE: still having some trouble with mod_jk on SGI Yes, it has always done that with everything I have compiled, it just seems to ignore them. I am using the gcc that comes from SGI's freeware download site. It is version 2.95.2. Apache compiled perfectly and fires right up. I think the -n32 stands for "native 32 bit". I only know this because the javac also uses a similar flag. I have no idea what the -KPIC means. I was able to get mod_jserv.so to complie and install about a year ago so I am a little stumped as to why this is being such a headache. Thanks for your continued help... Dave -Original Message- From: Mike Braden [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 4:00 PM To: 'Hladky, David' Cc: '[EMAIL PROTECTED]' Subject:RE: still having some trouble with mod_jk on SGI David, What compiler are you using? It sounds like compiling apache worked OK, right? Looks like your complier is choking on these options: cc: unrecognized option `-n32' cc: unrecognized option `-KPIC Did your compiler build apache with the above flags w/o error? Have you tried gcc? Mike. -- Mike Braden [EMAIL PROTECTED] -Original Message- From: Hladky, David [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 2:16 PM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: still having some trouble with mod_jk on SGI Mike and Others, Thanks for the info this morning on building it locally. That appears to have gotten me going in the right direction. I doesn't error code rc=1 now. I am still not getting it compile the shared object though. As far as the libraries I jsut simply took my old apache and re-named it to old. Question though? Could I build mod_jk when I compile apache rather than waiting until after it is built. If so, where would I place the jk source and libraries? Probably can't but, just a thought? Anyway, if anybody can help. I hae the text of the output I am getting so that someone who knows more than me can have a peak. indigo% /usr/local/apache/bin/apxs -o mod_jk.so -DIRIX -I../jk -I/usr/java/include -I/usr/java/include/irix -c *.c ../jk/*.c cc -DIRIX -n32 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk - I/usr/java/include -I/usr/java/include/irix -DIRIX -c mod_jk.c cc: unrecognized option `-n32' cc: unrecognized option `-KPIC' In file included from ../jk/jk_util.h:66, from mod_jk.c:90: ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t' mod_jk.c: In function `jk_handler': mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this
RE: tomcat und IIS
That would be the Tomcat IIS HowTo. Its at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l. It says that it only works with IIS/PWS 4, but it also works for IIS 5. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 9:19 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS do u know where i can find how o install tomcat(version?) with IIS4? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 14:03 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS As another current thread states, yes you can still run ASP and JSP, but you must be careful - if the pattern of the URL matches something in the config file then Tomcat will see it and not IIS's ASP engine. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:59 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS In this case IIS will run only in JSP no longer in ASP? or will it be possible to develop in ASP and in JSP? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 13:16 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS Yes its possible. Check the registry entries (case and white space matters). Also, check that you have the full dll (downloading with Netscape will corrupt, I would recommend the zip file, just to be safe) Randy -Original Message- From: Inga Schuetz [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:38 AM To: [EMAIL PROTECTED] Subject: tomcat und IIS Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - 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] - 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]
Load JSP page on when tomcat starts (load on start-up)
Hi Does anyone knows how can I load a jsp page when i starts tomcat ??? same way I load a Servlet (e.g: load-on-startup3/load-on-startup ) E-mail : [EMAIL PROTECTED] Web : http://www.mobilitec.com/ Mobilitec, Inc. P.O. Box 15049 Matam Haifa 31905, Israel Tel +972-4-855-1133 ext. 115 Fax +972-4-855-1112 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
security and iis
Hi I define a security constraint for one servlet in my tomcat . it is running fine if I am trying to go through localhost:8080/myServlet (asking for user name and password which are defined in the tomcat-users.xml file) but when I go through the iis (http://localhost/myServlet) it requires a domain in addition to the user name and password where can I change this parameter , how do i manage this ?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: wml
i have writte that in my web.xml but doesn't run, doesn't show the wml pages. it says me that there are te3xt/plain I have restart the tomcat but doesn't show. anybody can help me? thanks Carlos - Original Message - From: "Christoph Fischer" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 1:27 PM Subject: Re: wml Hi Carlos, You have to add the following mime-types For .WML files: "text/vnd.wap.wml" For .WMLC files: "application/vnd.wap.wmlc" For .WMLS files: "text/vnd.wap.wmlscript" For .WMLSC files: "application/vnd.wap.wmlscriptc" For .WBMP files: "image/vnd.wap.wbmp" e.g. mime-mapping !-- WAP/WML mime -- extension wml /extension mime-type text/vnd.wap.wml /mime-type /mime-mapping mime-mapping extension wbmp /extension mime-type image/vnd.wap.wbmp /mime-type /mime-mapping etc... anyway with tomcat 3.2 I wasn't able to transfer pictures anymore. If you find a solution let me know. Chris Carlos wrote: i have in a linux only the tomcat as the web server. how can i to server wml pages? what i must configure? in which files i must to configure and what i must to write? thanks Carlos - 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]
Connection/Session question
Hello, I have a question: - If I have a page containing a applet and some other HTML content, and the applet uses a URLConnection to connect to the web server. In this case, how many connections/sessions I have? 2 connections? one from the page itself and one from the applet? Could any guru please help? Thanks in advance. Jianming Wang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem with Tomcat-3.2.1/mod_jk.so
Title: Problem with Tomcat-3.2.1/mod_jk.so I'm trying to installing Tomcat-3.2.1/mod_jk with Apache 1.3.14 on Digital Unix 4.0D (Tomcat runs ok as standalone). Build: apxs -Wc,-pthread -o mod_jk.so -I../jk -I$JAVA_HOME/include -I$JAVA_HOME/include/alpha -c *.c ../jk/*.c Report from apachectl configtest: When mod_jk compiled with built in cc: Syntax error on line 8 of /usr/users/willy/inst/apache/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/users/willy/inst/apache/libexec/mod_jk.so into server: Unresolved symbol in /usr/users/willy/inst/apache/libexec/mod_jk.so: __pthread_mutex_destroy When mod_jk compiled with gcc: Syntax error on line 8 of /usr/users/willy/inst/apache/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/users/willy/inst/apache/libexec/mod_jk.so into server: Unresolved symbol in /usr/users/willy/inst/apache/libexec/mod_jk.so: snprintf Anyone? WS
RE: Newbie needs help ASAP!
Well, first thing to do, is FORGET about installing any Linux software (i.e. Apache is for Linux and _also_ for others) on winblowz in directories with spaces. Thus C:\Program Files\Apache Group has 2 spaces in it. Do not do that stuff. Have it in root directories, such as C:\Apache, C:\Tomcat. Good luck. Original Message On 2/7/01, 4:34:26 PM, "Rezaul H. Safiuddin" [EMAIL PROTECTED] wrote regarding RE: Newbie needs help ASAP!: I am using Windows 2000. Where do I get the ApacheModuleJServ.dll ? Also can anyone give me a "Hello World" Servlet Code. I am really new with this Servlet thing. Thanks. On Wed, 7 Feb 2001, Dan Sojka wrote: What os are u running? Did u put the ApacheModuleJServ.dll in the modules folder in Apache? Also make sure you have the right ApacheModuleJServ.dll depending on your Tomcat version. I had the same problem using tomcat 3.2.. I fixed it by getting the updated ApacheModuleJServ.dll. -Original Message- From: Rezaul H. Safiuddin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 4:23 PM To: [EMAIL PROTECTED] Subject: Newbie needs help ASAP! Hi All, I am tryint to integrate the TomCat with my Apache Web Server and then run some servlets on the browser. My Apache Server is configured properly and works fine. I can even start and stop the TomCat perfectly. I was just following the "Tomcat - A Minimalistic User's Guide" ..which is pretty good..but I got stuck at the point where I have to include tomcat.conf in the httpd.conf. If I use the following it gives me syntax error : #Include F:/Tomcat/Tomcat/conf/tomcat-apache.conf #include F:/Tomcat/TomCat/conf/tomcat.conf F:\Program Files\Apache Group\Apacheapache Syntax error on line 1 of F:/Tomcat/Tomcat/conf/tomcat-apache.conf: Cannot load f:/program files/apache group/apache/modules/ApacheModuleJServ.dll i nto server: Note the errors or messages above, and press the ESC key to exit. 0 F:\Program Files\Apache Group\Apacheapache Syntax error on line 13 of F:/Tomcat/TomCat/conf/tomcat.conf: Cannot load f:/program files/apache group/apache/libexec/mod_jserv.so into serve r: And how do I copy the mod_jserv or the required modules from TomCat to Apache. I would appreciate a bit detailed instructions. Please help. Thanks a lot in advance. Kash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Another Newbie Question -- Urgent Please!
Now I have a really stupid question ;-) ... Ok When I run the apache server it shows the following : F:\Program Files\Apache Group\Apacheapache [Wed Feb 07 20:41:46 2001] [alert] apache: Could not determine the server's full y qualified domain name, using 127.0.0.1 for ServerName Apache/1.3.14 (Win32) tomcat/1.0 running... QUESTION : Why does it say TomCat 1.0..I have TomCat 3.2 ? Next, How can I be sure that my requests are being served via the Apache and TomCat and not only stand alone TomCat ? I mean when I do this following request..it lets me fill out the form and responds properly... : http://127.0.0.1/servlet/PhoneBook But How do I know whether it actually goes through Apache to Tomcat or just Tomcat ? Cause I need to use Tomcat with Apache, not standalone for my purpose. Next Question : I did not mess with the web.xml or server.xml at all to change any config in the TomCat...When do I need to do that ? Is that application specific ? I will appreciate your help and answers. Thanks very much. Kash On Wed, 7 Feb 2001, Scott Walter wrote: No you don't have to download anything extra. The classes are included with tomcat in the servlet.jar file, which is located in the lib directory under your tomcat install. FYI--When specifying a classpath for jar files you can't just specify the directory in which the jar file exist in, you must include the full path. Below is an example to compile a servlet that needs servlet.jar: javac -classpath c:\tomcat\lib\servlet.jar MyServlet.java scott. --- "Rezaul H. Safiuddin" [EMAIL PROTECTED] wrote: OK...I am totally Confused..please Help! I have jdk 1.3, Apache Web Server and TomCat 3.2Where is the javax package ? I finally downloaded jsdk 2.1 and the javax directory is there..I pointed the classpath to that directory or its parent directory in many ways.. - but it never finds it. Shouldn't the servlet API's come with TomCat or do I have to download Java Web Server or whatever ? These are the errors I am getting : HelloWorldServlet.java:3: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorldServlet.java:4: package javax.servlet.http does not exist import javax.servlet.http.*; Help please...Thanks. Kash On Wed, 7 Feb 2001, Erik LaBianca wrote: Do you have the servlet api's in your compilers classpath? --erik -Original Message- From: Rezaul H. Safiuddin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 10:09 PM To: [EMAIL PROTECTED] Subject: Another Newbie Question -- Urgent Please! How come I am not being able to compile a HelloWorldServlet.java with jdk1.3 ? Its giving me hundreds of compiler errors. I need to compile this file and create the .class file . Do I need something especial for compiling servlets ? I already installed the TomCat 3.2.1 . Any Help would be appreciated. But I am able to run the SnoopServlet.java that comes with TomCat in the classes directory. Do I have to configure something else if I wanna add a new servlet class ? Kash - 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] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
YDS.ORG
Friends: Jai Swaminarayan Everyone of us is aware of the earthquake calamity that hit India. As per H.D.H. Hariprasad Swami Maharaj's wish, saints and devotees from Yogi Divine Society are working hard to help the victims. As a part of ongoing relief efforts we have put up a website that focuses on earthquake relief activities. It also has the ability for the users to donate online Please goto www.yds.org/ydscare to have a glimpse of the relief activities carried by YDS. This site has been specially prepared by saints and shahishnu sevaks who are onsite of the earthquake relief activities. The main site www.yds.org will be under continuous upgrade. Please forward this to all your friends. Jai Swaminaryan Everyone at Haridham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Connection refused under hight load
-Original Message- From: Chris Janicki [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 3:32 PM To: [EMAIL PROTECTED] Subject: RE: Connection refused under hight load Are you using Java 1.3 by any chance? Yes, I'm using JDK 1.3. Bye, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
*** Generated Tomcat Temporary Class File Name Seem Too Long... Yes ***
Hi Everybody, Please Help Help Help... Yes, the class file names generated by Tomcat seem to be too long to be written on the disk. In fact I have got this error message: Context log: path="" Error in jsp service() : Unable to compile class for JSPerror: Can't write: D:\myCvs\ReefDebug22\work\localhost_8080\JSPpages\def\PBPublisherImpl\_0005f _0005f\Publisher\includes\_0002fJSPpages_0002fdef_0002fPBPublisherImpl_0002f _0002e_0002e_0002fPublisher_0002fincludes_0002fheader_0005fexception_0002ejs pheader_0005fexception_jsp_0.class 1 error Has somebody already seen this kind of behavior ? How can I change the way Tomcat generate the file name ? Any idea are welcome !!! Thanks a lot. Xavier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FW: security and iis
(sorry if this message posted twice) Hi I define a security constraint for one servlet in my tomcat . it is running fine if I am trying to go through localhost:8080/myServlet (asking for user name and password which are defined in the tomcat-users.xml file) but when I go through the iis (http://localhost/myServlet) it requires a domain in addition to the user name and password where can I change this parameter , how do i manage this ?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problem with Tomcat-3.2.1/mod_jk.so
Title: RE: Problem with Tomcat-3.2.1/mod_jk.so Here is output from apxs (with builtin cc): ... (lot of Warnings like this): cc: Warning: ../jk/jk_msg_buff.c, line 88: In this statement, the expression printf(...) modifies the variable i more than once without an intervening sequence point. This behavior is undefined. printf(%s %d/%d/%d %x %x %x %x - %x %x %x %x - %x %x %x %x - %x %x %x %x\n, err, msg-pos, msg-len, msg-maxlen, ^ ... cc -DOSF1 -DMOD_SSL=207101 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/users/willy/inst/apache/include -pthread -I../jk -I/usr/opt/java122/include -I/usr/opt/java122/include/alpha -c ../jk/jk_nwmain.c cc: Warning: ../jk/jk_nwmain.c, line 31: Source file does not contain any declarations. #endif --^ ... ld -shared -expect_unresolved * -s -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o - END - -Original Message- From: Willy Skjæveland Sent: 8. februar 2001 16:53 To: '[EMAIL PROTECTED]' Subject: Problem with Tomcat-3.2.1/mod_jk.so I'm trying to installing Tomcat-3.2.1/mod_jk with Apache 1.3.14 on Digital Unix 4.0D (Tomcat runs ok as standalone). Build: apxs -Wc,-pthread -o mod_jk.so -I../jk -I$JAVA_HOME/include -I$JAVA_HOME/include/alpha -c *.c ../jk/*.c Report from apachectl configtest: When mod_jk compiled with built in cc: Syntax error on line 8 of /usr/users/willy/inst/apache/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/users/willy/inst/apache/libexec/mod_jk.so into server: Unresolved symbol in /usr/users/willy/inst/apache/libexec/mod_jk.so: __pthread_mutex_destroy When mod_jk compiled with gcc: Syntax error on line 8 of /usr/users/willy/inst/apache/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/users/willy/inst/apache/libexec/mod_jk.so into server: Unresolved symbol in /usr/users/willy/inst/apache/libexec/mod_jk.so: snprintf Anyone? WS
Login Form Authentication
Hi! I'm working in a project using servlets(with Tomcat 3.2) and I have a question regarding the security mechanismsdescribed in servlet 2.2 spec and how to integratethem with other aspects of the applicationthan login (for example, registration). More specifically, the application offers a registration form in the home page (nothing new here) and a registration form in the same page as the login form, whichshould beshowed when a resource declaratively marked as secure is being accessed (nothing new here). So, for my surprise, I see no way to solve the next 2 problemsinsidethe 2.2 spec (I'm using FORM authentication): 1) in the registration form in the home page there is no concept of a secured page to go once registered, but the user should still be logged, so if I call j_security_check it's not defined what would happen (and the solution is really dirty); 2) in the registration form in the login page, if the user choose the registration way, the formcan't be directlysubmited to j_security_check because his/her information should be saved before being completely lost. I wanted to be standard, 2.2 standard! But instead I ended reading Tomcat request interceptors sources. Still I'm looking for a clean solution. I obviously shouldset the session j_username and j_password directly and this doesn't seem very portable. If I do that and then move my servlets to other containerthan Tomcat nasty thingscould happen. I think I would need to get the sources again (if available) or to program all the security stuff by myself (idea!: using j_username and j_password in the session to reuse my 6 lines of code). I can't believe than servlet spec doesn't provide an API to authenticate the user. I'm urgedto know: 1) Is there a better solution? 2) If not, will the solution I proposed work? Thank you Carlos
Socket Exceptions
Hi all. I'm currently running JBuilder 4 Enterprise, and it comes bundled with Tomcat 3.1. I have a project I was working on a week an a half ago that used some JSP and beans to connect to a remote database. The project was working well until I upgraded my dial-up to cable modem. Now when I run the project, JBuilder starts Tomcat to run the JSP, and I get the repeating message in the debug window: Context log: path="" Socket Exception/ I'm guessing that the upgrade to cable modem has cause some major changes in connecting via TCP/IP and for some reason, Tomcat can't resolve any ports or connections. Has anybody else had this problem, and are there any fixes for it? By the way, my system is Win98 SE, Tomcat 3.1, JBuilder 4 Enterprise, and JDK 1.3. Thanks so much!
RE: Stupid question - cannot load servlet name - mm.mysql related ??
I have two identical linux redhat 6.2 machines, both running TomCat standalone. On machine A, I've been testing out a system I'm developing. It runs okay on that machine. Now I want it on machine B instead. Same config file also ? So, I move the sources to machine B (together with the build.sh script (which works fine on machine A) and all the other files). I compile without errors, Ant moves the classes and web.xml into the correct directories. Ant is a fine stuff. BUT, when I start TomCat I get a whole bunch of "cannot load servlet name: whatever name" messages. Looking at the other logs, It seems to load and initialize the servlets okay. So, I try to connect to TomCat. Every servlet which does not use the mm.mysql db driver works ok. Those using it wont work. It just states "cannot load database driver". This message comes from a try clause around the driver loader in each servlet. Now, I've moved the mysql drivers to machine B and added the mm.mysql-2.0.2.bin.jar to the classpath. mm.mysql is now at 2.0.4 Don't forget also to use a pool like Turbine-Pool on other like DBConBroker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Stupid question - cannot load servlet name - mm.mysql related ??
Do you perhaps have an older version of the mysql driver in your classpath before the new ones? Maybe it's sitting in jdk1.3/jre/lib/ext? I'd try writing a short console program just to open a connection to the db and get that to run, then at least you you where your problem lies for sure. Then you can figure out what part of the classpath is getting munged by tomcat. Note that I believe the tomcat.sh scripts munge your classpath, so you might want to try putting mm.mysql.jar in your tomcat/lib folder. Good luck --erik -Original Message- From: Cato, Christopher [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 10:02 AM To: '[EMAIL PROTECTED]' Subject: Stupid question - cannot load servlet name - mm.mysql related ?? Hello. I have two identical linux redhat 6.2 machines, both running TomCat standalone. On machine A, I've been testing out a system I'm developing. It runs okay on that machine. Now I want it on machine B instead. So, I move the sources to machine B (together with the build.sh script (which works fine on machine A) and all the other files). I compile without errors, Ant moves the classes and web.xml into the correct directories. BUT, when I start TomCat I get a whole bunch of "cannot load servlet name: whatever name" messages. Looking at the other logs, It seems to load and initialize the servlets okay. So, I try to connect to TomCat. Every servlet which does not use the mm.mysql db driver works ok. Those using it wont work. It just states "cannot load database driver". This message comes from a try clause around the driver loader in each servlet. Now, I've moved the mysql drivers to machine B and added the mm.mysql-2.0.2.bin.jar to the classpath. Why does it still fail? Any ideas? I'm stuck. *sigh* Regards, Christopher Cato - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: HttpSession across virtual hosts
David Oxley typed the following on 01:07 PM 2/8/2001 + I sort-of understand what you're doing, but I'm not clear on a couple of details. What do you mean when you say you've "coded a request"? How exactly is the session ID passed from the original host to the new host, is this by a form field embedded into the HTML, or is it all on the server side? Like URL-Encoded session management. The host passes our session id back to the server when changing hosts so that it can be connected to the new HttpSession. Doesn't normal session management have exactly the same problem. When writing an E-Commerce system the basket is normally chosen on an unsecure host and then the user is put on to a secure host to checkout their products. You need to be able to id the user between the two hosts. There has to be a 'secure' way of doing this?!?! It's problematic, because some browsers (I don't recall which) will send a cookie that was set by http://foo.com to https://foo.com, and some won't. Maybe somebody else can shed light on this. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Basic Configuration Problem?
Could someone please tell me what I'm overlooking. It should be something obvious I'm not doing. I'm running Tomcat3.2 + Apache on RH. http://localhost:8080 gives me the default Tomcat page. Clicking on the "JSP Examples" link brings me to the "JSP Samples" page where there are a number of jsp sample programs that I can run. When I click on "Execute" near the numguess example, I get "Not Found (404) Original request: /examples/jsp/num/numguess.jsp Not found request: /examples/jsp/num/numguess.jsp Any ideas? Thanks David ** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: HttpSession across virtual hosts
What I've seen done, which doesn't necessarily make it secure, it to send some form of CartID. This ID identifies the Cart in some shared back end data store. Usually these are large numbers that contain enough information to determine if its a possible real value, or a number someone made up. If its something that someone made up, usually their IP is locked out for a certain amount of time or a session field is set that doesn't allow them in as long as that same session is valid. IP blocking won't work at all for the millions of users behind proxy servers. Every single user will appear to come from the same IP address, and big guys like AOL will feed you multiple IP addresses from a SINGLE page request (it may ask for the .jsp file with one IP address and get the various .gifs with different IP addresses). For CartIDs, you have the same problem as a session id in the cookie or rewritten URL. So the common solution I've seen these days is to use java.security.SecureRandom (you pay a onetime performance hit when the first random is generated because it has to attempt to randomize its seed as best it can) to create those IDs. You can store them in the database to ensure they are unique, though the odds are certainly against non-unique if you use a large enough range of values. Davd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
ISP
if i use the tomcat for ISP purpose in NT machine any body knows how i configure for the client. means a user have the www.foo.com foo means host is www.foo.com and access directory is foo so all jsp and servlet put in the foo directory and any other place because user can only access foo directory. and what is the class path. please help me i am new. any body knows any documentationor book about the configuration. please help me. affan
RE: tomcat und IIS
that is: it works fine for w2k professional and IIS5.0, but it does not with w2k advanced server and IIS5.0 (even if you add the isapi filter under the main www server properties it keeps pointing down after an IIS restart). Till now I've not found the error, I did everything exactly the same as I did with w2k pro, where it worked perfect, under w2k advanced server it simply does _not_. regards, Wim. That would be the Tomcat IIS HowTo. Its at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat -iis-howto.htm l. It says that it only works with IIS/PWS 4, but it also works for IIS 5. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 9:19 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS do u know where i can find how o install tomcat(version?) with IIS4? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 14:03 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS As another current thread states, yes you can still run ASP and JSP, but you must be careful - if the pattern of the URL matches something in the config file then Tomcat will see it and not IIS's ASP engine. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:59 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS In this case IIS will run only in JSP no longer in ASP? or will it be possible to develop in ASP and in JSP? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 13:16 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS Yes its possible. Check the registry entries (case and white space matters). Also, check that you have the full dll (downloading with Netscape will corrupt, I would recommend the zip file, just to be safe) Randy -Original Message- From: Inga Schuetz [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:38 AM To: [EMAIL PROTECTED] Subject: tomcat und IIS Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: HttpSession across virtual hosts
https and http are on different ports and therefore count as different hosts. I wouldn't mind knowing how you got that working, but I think I can code round it by not storing the basket within the HttpSession. Dave [EMAIL PROTECTED] -Original Message- From: Alistair Hopkins [mailto:[EMAIL PROTECTED]] Sent: 08 February 2001 14:31 To: [EMAIL PROTECTED] Subject: RE: HttpSession across virtual hosts The http // https comparison doesn't work as cookies are sent or not depending on the host, not on the protocol. So if I have a valid session_id in a cookie in http, that will still be sent when I switch to https. So I can either have a common pool of current cookies if my https server is seperate from my http server (seems a hard way to do it) or I just access the software (eg Tomcat) via a webserver (eg apache) through either protocol and the session continues without complaint. Unless I did something complicated without noticing, of course... -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 1:13 PM To: [EMAIL PROTECTED] Subject: RE: HttpSession across virtual hosts What I've seen done, which doesn't necessarily make it secure, it to send some form of CartID. This ID identifies the Cart in some shared back end data store. Usually these are large numbers that contain enough information to determine if its a possible real value, or a number someone made up. If its something that someone made up, usually their IP is locked out for a certain amount of time or a session field is set that doesn't allow them in as long as that same session is valid. Randy -Original Message- From: David Oxley [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:08 AM To: '[EMAIL PROTECTED]' Subject: RE: HttpSession across virtual hosts I sort-of understand what you're doing, but I'm not clear on a couple of details. What do you mean when you say you've "coded a request"? How exactly is the session ID passed from the original host to the new host, is this by a form field embedded into the HTML, or is it all on the server side? Like URL-Encoded session management. The host passes our session id back to the server when changing hosts so that it can be connected to the new HttpSession. Doesn't normal session management have exactly the same problem. When writing an E-Commerce system the basket is normally chosen on an unsecure host and then the user is put on to a secure host to checkout their products. You need to be able to id the user between the two hosts. There has to be a 'secure' way of doing this?!?! Dave [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: [Fwd: Session expiration...]
I'd like to know too!!! Merwin Yap wrote: Subject: Session expiration... Date: Sat, 03 Feb 2001 16:18:38 +0800 From: Merwin Yap [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hi! I want to ask about sessions in tomcat. How do you change the elapsed time for the session to expire. Thanks! Merwin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Error : javax.servlet.ServletException: Response has already been committed.
Hello, I got these error. Sometimes a page (which looks like session expired) causes this problem. Is there any way to extend session time or disable expiring function? (expiring time is too short...-_-) Thank you for your help. I really appreciate your any advise. Paul Yoon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: About Tomcat 4
Not sure what you mean by xxx.class - You can put bean packages in in your context - like web-inf\classes\com\java\sum\mybeanPackage - You can add a lib directory at web-inf\lib\xxx.classes - these are visibleto JSP andservlets. -- Pete -- - Original Message - From: 心鵬 To: [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 3:49 AM Subject: About Tomcat 4 Dear Sir The Tomcat4.0 is installed in windows2000 professional. And JSP programs run well. I wrote a servlet program and compiled ok.Where is the right place to place the XXX.class Andrew Lin -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]
web.xml file
Dear furom, I am a novice user on servlets. I installed Apache and Tomcat 3.2.1 on Windows NT machine. I have been able to run the examples and create my directories in webapps directory. I have been unsuccessful in running my own servlets. Can sonemone send a simple example hot to run a servlet and what are configuration files Sincerely Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
how to use JavaDoc with ANT?
What is ANT supposed to do with the creation of JavaDocs. Is it creating them from the java files, or is it expecting them to be there. I have an application that builds correctly, but doesn't have any JavaDocs created, and ANT appears to load my Build.bat file, and generate a bunch of errors. How can I set this up to actually created to documentation. Chris -- Chris Ward - Developer @ integral business solutions tel: 651.631.3144 fax: 651.631.2544 email: [EMAIL PROTECTED] web: www.go-integral.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Help with servlet mapping
Hi ! Can you please help me solve the following problem (sorry if this is a naive question) : I'm trying to make Tomcat 3.2.1 to invoke a servlet (class myServlet in package com.mycompany) whenever I use this URL: http://myServer/myServlet In order to do that, I've added to the $TOMCAT_HOME/conf/web.xml: servlet servlet-name myServlet /servlet-name servlet-class com.mycompany.myServlet /servlet-class /servlet servlet-mapping servlet-name myServlet /servlet-name url-pattern /myServlet /url-pattern /servlet-mapping However, all I get is a 404 error when I try the URL above mentioned. The class com.mycompany.myServlet is in the CLASSPATH, and this used to work with Tomcat 3.1, so I don't know what I'm doing wrong. One thing I noticed is that the classes org.apache.tomcat.servlets.DefaultServlet and org.apache.tomcat.servlets.InvokerServlet are no longer part of $TOMCAT_HOME/lib/webserver.jar, although they continue to be mentioned in the default $TOMCAT_HOME/conf/web.xml file. Can this be the cause of this problem ? One other thing I noticed is that the $TOMCAT_HOME/conf/server.xml file has an entry like: RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/servlet/" / If I remove or comment that, the servlet examples which come with the distribution stop working (i.e., the servlet examples work because of this entry, and not because of the $TOMCAT_HOME/conf/web.xml file). Thanks in advance for any help, Wesley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat benchmark
I would like to see this as well. What is a good bench marking program to do this? Something that can test the load it can handle would be nice and TPS. Transactions per second. NAel -Original Message- From: shlomi sarfati [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 6:08 AM To: [EMAIL PROTECTED] Subject: tomcat benchmark does anyone have information about tomcat benchmark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSP to bean??
I am having a issues with using tomcat 3.2.1 and a bean. I made a been called StringBean.class and I install it to C:\tomcat\webapps\ROOT\WEB-INF\classes\StringBean.class. Next I have a JSP page call StringBean (in C:\tomcat\webapps\ROOT\StringBean.jsp) Everything works great, But if I move the JSP page to C:\tomcat\webapps\ROOT\john\StringBean.jsp it cant find the bean anymore?? = If your into Body For Life, check out http://clubs.yahoo.com/clubs/bodyforlifestatenislandny __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Form based authentication
Hi, I am running tomcat 3.2.1, and I have started to use form based authentication for my application. The 'examples' form based authentication works fine. But when I use if from my application I get the following: Not Found (404) Original request: /hyseq/jsp/null Not found request: /hyseq/jsp/null Could anybody shed some light on this, Thank you, Dilip. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Session question
Hello, I have a question: - If I have a page containing a applet and some other HTML content, and the applet uses a URLConnection to connect to the web server. In this case, how many connections/sessions I have? 2 connections? one from the page itself and one from the applet? Could any guru please help? Thanks in advance. Jianming Wang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat benchmark
http://www.orionserver.com/benchmarks/benchmark.html -Original Message- From: shlomi sarfati [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 6:08 AM To: [EMAIL PROTECTED] Subject: tomcat benchmark does anyone have information about tomcat benchmark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problems getting Apache-Tomcat on the jk-module running!
Uh, Pete This IS Tomcat-UsersLook way down to the bottom see...tomcat-user... Richard Duval canoffroad.net - Original Message - From: "Peter Donald" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 6:17 AM Subject: Re: Problems getting Apache-Tomcat on the jk-module running! At 05:03 7/2/01 +0100, [EMAIL PROTECTED] wrote: Hi everybody, could somebody please give me a hint, on how to get Apache-Tomcat on the jk-module running??? I've tried everything... You even tried posting to a completely innapropriate mailing list ! ;) Go reread http://jakarta.apache.org/site/mail.html and send mail to tomcat-users Cheers, Pete *-* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
No root directory
When I hit a servlet in my webapp, I get the following message from tomcat: No root directory specified in XML file, using "". The directory specified by is incorrect. In server.xml, I have the following: Context path="/MyApp" docBase="webapps/MyApp" debug="9" reloadable="true" / Shouldn't this declaration take care of the root directory? Thanks, Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Basic Configuration Problem?
Could someone please tell me what I'm overlooking. It should be something obvious I'm not doing. I'm running Tomcat3.2 + Apache on RH. http://localhost:8080 gives me the default Tomcat page. Clicking on the "JSP Examples" link brings me to the "JSP Samples" page where there are a number of jsp sample programs that I can run. When I click on "Execute" near the numguess example, I get "Not Found (404) Original request: /examples/jsp/num/numguess.jsp Not found request: /examples/jsp/num/numguess.jsp Any ideas? Thanks David ** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Load JSP page on when tomcat starts (load on start-up)
You mean open up a browser on the server with a specific jsp page after you start Tomcat? -Original Message- From: Amir Nuri [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:27 AM To: Tomcat-User Subject: Load JSP page on when tomcat starts (load on start-up) Hi Does anyone knows how can I load a jsp page when i starts tomcat ??? same way I load a Servlet (e.g: load-on-startup3/load-on-startup ) E-mail : [EMAIL PROTECTED] Web : http://www.mobilitec.com/ Mobilitec, Inc. P.O. Box 15049 Matam Haifa 31905, Israel Tel +972-4-855-1133 ext. 115 Fax +972-4-855-1112 - 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]
RE: tomcat und IIS
I got a "page not found (HTTP 404 error)" when I click this link. I wonder if their site is down? Lifeng -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:23 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS That would be the Tomcat IIS HowTo. Its at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l. It says that it only works with IIS/PWS 4, but it also works for IIS 5. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 9:19 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS do u know where i can find how o install tomcat(version?) with IIS4? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 14:03 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS As another current thread states, yes you can still run ASP and JSP, but you must be careful - if the pattern of the URL matches something in the config file then Tomcat will see it and not IIS's ASP engine. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:59 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS In this case IIS will run only in JSP no longer in ASP? or will it be possible to develop in ASP and in JSP? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 13:16 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS Yes its possible. Check the registry entries (case and white space matters). Also, check that you have the full dll (downloading with Netscape will corrupt, I would recommend the zip file, just to be safe) Randy -Original Message- From: Inga Schuetz [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:38 AM To: [EMAIL PROTECTED] Subject: tomcat und IIS Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Multiple instances of Tomcat
Has anybody successfully gotten multiple instances of Tomcat running with a single apache instance? What I want is to be able to have different servlets served by different tomcats to enable me to shutdown an instance with out killing the other servlets. I would also like to balance the load over multiple CPU's for obvious reasons. Background: OS: FreeBSD 4.2 Apache: 1.3.14 Tomcat: 3.2.1 Functioning with multiple virtual servers and a single tomcat for example http://server1 http://server1 an http://server2 http://server2 are both being handed off to a single tomcat instance. What I would like is for http://server1 http://server1 to be handled by one tomcat instance and http://server2 http://server2 to be handled by another. I have seen some documentation on this but it is very limited. Any help would be appreciated Please cc me in replies. Thanks Dan Kummer Requisite Technology [EMAIL PROTECTED] Office: (303) 474-2204 Office fax: (303) 474-2211 E-CONTENT SOLUTIONS THAT POWER B2B E-COMMERCE CONFIDENTIALITY NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender ("Information") that may be confidential and legally privileged. If you are not the intended recipient, any disclosure, copying, distribution or action taken in reliance on the Information is strictly prohibited. If you have received the Information in error, please contact the sender by reply email and destroy all copies of the original email. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Integrating Tomcat, Apache, and Weblogic
I'd like to have Apache serve the static files, Tomcat the servlets and JSP, and Weblogic the EJBs. Is this configuration possible? I am using mod_jk, and would like to serve an application located in a directory separate from Tomcat's ...\webapp\ I'd also like to keep my present URL and URI paths (presently configured for JRun). The OS is NT. Thanks, Ethan-Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Connection/Session question
Not really. The client will download the content of the JSP page (which contains the applet). Assuming that you are using Tomcat in standalone, the connection to the client will be closed. Then the applet will start and the make its connection. So you will have two connections, although they will be at different times. Unless you set the cookie for the session or form your URL to include the sessionid your applet will not join an already existing session. Instead a new one will be formed. Randy -Original Message- From: Wang, Jianming [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 10:59 AM To: '[EMAIL PROTECTED]' Subject: Connection/Session question Hello, I have a question: - If I have a page containing a applet and some other HTML content, and the applet uses a URLConnection to connect to the web server. In this case, how many connections/sessions I have? 2 connections? one from the page itself and one from the applet? Could any guru please help? Thanks in advance. Jianming Wang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Keep Servlet Alive Indefinitely?
I don't know of a way to make the servlet not be unloaded, however one work-around would be for your servlet to create a thread and then every so often make a request of itself. Randy -Original Message- From: schalk [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 11:07 AM To: [EMAIL PROTECTED] Subject: Keep Servlet Alive Indefinitely? Greetings: How can I keep my JDBC pool servlet alive, even if it hasn't been used all day. It keeps being destroyed, and I suspect Tomcat 3.2.1 is "garbage collecting" it. If so, how can I stop Tomcat from destroying my servlet. -- David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Load JSP page on when tomcat starts (load on start-up)
I use the following in my context WEB-INF web.xml file ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" web-app session-config session-timeout 30 /session-timeout /session-config servlet servlet-nameindex/servlet-name jsp-file/index.jsp/jsp-file init-param param-namecom.gentootech.eip.properties/param-name param-valueeip.properties/param-value /init-param load-on-startup2/load-on-startup /servlet servlet-mapping servlet-nameindex/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping /web-app -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] e.org]On Behalf Of Amir Nuri Sent: Thursday, February 08, 2001 10:27 AM To: Tomcat-User Subject: Load JSP page on when tomcat starts (load on start-up) Hi Does anyone knows how can I load a jsp page when i starts tomcat ??? same way I load a Servlet (e.g: load-on-startup3/load-on-startup ) E-mail : [EMAIL PROTECTED] Web : http://www.mobilitec.com/ Mobilitec, Inc. P.O. Box 15049 Matam Haifa 31905, Israel Tel +972-4-855-1133 ext. 115 Fax +972-4-855-1112 - 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]
Tomcat CSS
Hello all, My cube is gettin' a wee bit messy from all of the pulled out hair so if y'all could save me the effort of cleaning up any additional hairs, I'd appreciate it. Tomcat 3.2.1(mostly - rolled my own security realm into it) JDK 1.3 I have a web page, two in fact. ;) on an intranet site. /index.jsp and /foo/secure/index.htm index.jsp and index.htm both contain head ... link rel='stylesheet' href='/foo/css/globalpc.css' type='text/css' /head This style sheet does exist and I assume it's a valid sheet. On index.jsp there is a form which handles authentication with succesful applicants entering the /foo/secure directory. Once there, it should serve index.htm (yes, /tomcat/conf/web.xml welcome-file-list has an entry for index.htm) Instead, of serving it the content, it goes to the /foo/css/globalpc.css file. This only started today and I have done nothing today (just don't let my boss know) so I can eliminate something I've done. Perhaps this has just been a latent error but either way, any suggestions on what may be going wrong would be much appreciated. /bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Another Newbie Question -- Urgent Please!
See responses mixed in below -Original Message- From: Rezaul H. Safiuddin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 11:14 AM To: [EMAIL PROTECTED] Subject: RE: Another Newbie Question -- Urgent Please! Now I have a really stupid question ;-) ... Ok When I run the apache server it shows the following : F:\Program Files\Apache Group\Apacheapache [Wed Feb 07 20:41:46 2001] [alert] apache: Could not determine the server's full y qualified domain name, using 127.0.0.1 for ServerName Apache/1.3.14 (Win32) tomcat/1.0 running... QUESTION : Why does it say TomCat 1.0..I have TomCat 3.2 ? I believe that 1.0 is the HTTP protocol version that the server is using. Tomcat only supports HTTP 1.0. Tomcat 4 will support 1.1. I don't believe that there is a draft for version 1.2 yet. Apache supports 1.1. Next, How can I be sure that my requests are being served via the Apache and TomCat and not only stand alone TomCat ? I mean when I do this following request..it lets me fill out the form and responds properly... : http://127.0.0.1/servlet/PhoneBook But How do I know whether it actually goes through Apache to Tomcat or just Tomcat ? Cause I need to use Tomcat with Apache, not standalone for my purpose. In your server.xml file, check for your ports on PoolTcpConnectors. By default these are 8080 and 8007 - the ports that Tomcat will listen to. In your Apache configuration file there will be a like like "Listen 80" by default (I'm really fuzzy on this, its been a long time since I configured Apache). This is the port that Apache will listen on. Good so far? Tomcat 8080 and 8007. Apache 80. Now you need to know that the default HTTP port is 80. So, if you don't specify a port in the URL you're talking to port 80. (To use port 8080 it would be http://127.0.0.1:8080/servlet/PhoneBook) Next Question : I did not mess with the web.xml or server.xml at all to change any config in the TomCat...When do I need to do that ? Is that application specific ? As to what to chagne it really depends upon what you want to do. If you want to use Tomcat behind Apache you probably want to remove the PoolTcpConnector for port 8080 (make the users go through Apache). You also probably want to remove some of the extra contexts that Tomcat installed by default (examples for example). Lastly, you will want to create a context for your application, which means creating a new directory, adding a WEB-INF directory, and adding a web.xml file and your content. As to when, if you have everything working like it seems you do, you're ready to develop your application. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Connection refused under hight load
I believe there is a serious threading bug in 1.3 right now. Java Bug Parade bug# 4293268 may be related. I have also had an application (not Tomcat) hand under heavy load. That same application seems to be working fine on Java 1.2.2.5. Fyi, my experiences were on Solaris 7 OS, but I believe the problem is in HotSpot design, and may not be machine dependent. Bottom line: try Java 1.2.2.5 Original Message On 2/8/01, 11:13:15 AM, "Markus Ebersberger" [EMAIL PROTECTED] wrote regarding RE: Connection refused under hight load: -Original Message- From: Chris Janicki [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 3:32 PM To: [EMAIL PROTECTED] Subject: RE: Connection refused under hight load Are you using Java 1.3 by any chance? Yes, I'm using JDK 1.3. Bye, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat CSS
I think I answered my own question (partially).. The /css folder is in a secure branch. For whatever reason, my index.jsp page doesn't complain when it comes up about not being able to see that resource but when it leaves, it then accesses it. Or something like that. At any rate, problem solved and I am now working on gluing my hair back in. /bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Another Newbie Question -- Urgent Please!
Hi I think what you are seeing is apache telling you that mod_jk is installed. (Correct me if I'm wrong) But it doesn't mean that tomcat is actually running. Unless you changed the startup script tomcat has to be started seperatly. To check if Tomcat is running just log onto port 8080 as localhost and you should see the tomcat-index page, from there you can test the example servlets and jsp-pages. Stefan
RE: Keep Servlet Alive Indefinitely?
Use a seperate thread that is running indefinetly, that should keep your servlet alive. Stefan
RE: tomcat und IIS
The only Win2K that I have tried on is Advanced Server. Installed from MSDN CD and applied SP1. Then installed Java, WinZip, Tomcat, isapi_redirect.dll, and jk_nt_service. In that order. It didn't take anything different from Win NT. One slightly unclear part is that on IIS you don't have to edit the FilterDLLs registry entry - that's only for PWS. Maybe the account you are trying to run as is having a problem? Randy -Original Message- From: Praet Wim [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 12:05 PM To: '[EMAIL PROTECTED]' Subject: RE: tomcat und IIS that is: it works fine for w2k professional and IIS5.0, but it does not with w2k advanced server and IIS5.0 (even if you add the isapi filter under the main www server properties it keeps pointing down after an IIS restart). Till now I've not found the error, I did everything exactly the same as I did with w2k pro, where it worked perfect, under w2k advanced server it simply does _not_. regards, Wim. That would be the Tomcat IIS HowTo. Its at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat -iis-howto.htm l. It says that it only works with IIS/PWS 4, but it also works for IIS 5. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 9:19 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS do u know where i can find how o install tomcat(version?) with IIS4? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 14:03 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS As another current thread states, yes you can still run ASP and JSP, but you must be careful - if the pattern of the URL matches something in the config file then Tomcat will see it and not IIS's ASP engine. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:59 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS In this case IIS will run only in JSP no longer in ASP? or will it be possible to develop in ASP and in JSP? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoy : jeudi 8 fvrier 2001 13:16 : [EMAIL PROTECTED] Objet : RE: tomcat und IIS Yes its possible. Check the registry entries (case and white space matters). Also, check that you have the full dll (downloading with Netscape will corrupt, I would recommend the zip file, just to be safe) Randy -Original Message- From: Inga Schuetz [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:38 AM To: [EMAIL PROTECTED] Subject: tomcat und IIS Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Custom Error Pages ... URGENT... Frustrated!!
Title: Custom Error Pages ... URGENT... Frustrated!! I have posted this problem a few times. I want to simply catch a 404 in tomcat and have and bring up a custom jsp page. I have tried in web xml - error-page error-code404/error-code location/404.jsp/location /error-page I have tried pointing the location at a servet .. but still to no avail. I don't know what to do and I need to catch these 404's. If anyone has had this problem and knows of a solution please let me know.. I feel I have exhausted every lead and I might have to customize the JspServlet to redirect for me in case of a 404.. -- Apache tomcat 3.2.1 Thank-you
server.xml
This is the top of the web.xml file in the conf directory: ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Appliction 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" As far as I know, the xml parser will look for the dtd and verify that the xml file conforms to the description in the dtd. Why doesn't the server.xml has such a declaration at the top? Would that make an xml parser fail? Thanks, Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
HttpSession timeout
In your web.xml you should find: session-config session-timeout 30 /session-timeout /session-config 30 is timeout in minutes. -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Custom Error Pages ... URGENT... Frustrated!!
Title: Custom Error Pages ... URGENT... Frustrated!! I have posted this problem a few times. I want to simply catch a 404 in tomcat and have and bring up a custom jsp page. I have tried in web xml - error-page error-code404/error-code location/404.jsp/location /error-page I have tried pointing the location at a servet .. but still to no avail. I don't know what to do and I need to catch these 404's. If anyone has had this problem and knows of a solution please let me know.. I feel I have exhausted every lead and I might have to customize the JspServlet to redirect for me in case of a 404.. -- Apache tomcat 3.2.1 Thank-you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Custom Error Pages ... URGENT... Frustrated!
Title: Custom Error Pages ... URGENT... Frustrated! I have posted this problem a few times. I want to simply catch a 404 in tomcat and have and bring up a custom jsp page. I have tried in web xml - error-page error-code404/error-code location/404.jsp/location /error-page I have tried pointing the location at a servet .. but still to no avail. I don't know what to do and I need to catch these 404's. If anyone has had this problem and knows of a solution please let me know.. I feel I have exhausted every lead and I might have to customize the JspServlet to redirect for me in case of a 404.. -- Apache tomcat 3.2.1 Thank-you