thanks to Durham David , Shawn French, Michael Sebetich and RichFincher
Thanks to Durham David , Shawn French, Michael Sebetich and Rich Fincher for prompt response. Looking at your feedback, i feel TOMCAT+SSL would be enough for me. If i need APACHE+TOMCAT+SSL , i can do it more easily in th next version of TOMCAT (which is in beta) which has a web interface for creating connection to APACHE (Otherwise which would be a tricky one like you pointed out) Thanks again Sujith -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Trouble building mod_webapp for tomcat 4 apache 2 and OS X
When I try to build mod_webapp from the jakarta-tomcat-connectors-4.0.2-01-src for apache2 I get this message at the end of the output from the make command. What does it mean? *** Warning: This library needs some functionality provided by /usr/local/jakarta-tomcat-connectors-4.0.2-01-src/webapp/lib/ libwebapp.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Therefore, libtool will create a static module, that should work *** as long as the dlopening application is linked with the -dlopen flag. make[1]: Exiting directory apache-2.0 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
warp / jdbc problem
Hi, I'm having problems connecting to mysql from tomcat when (only when) going via the warp connector. (with roller in this example - I'm assuming it's not app specific) I point a browser to http://localhost:8080/roller/ and everything works - db access no problem. I point a browser to http://localhost/roller/ and I see the webapp html no problem, but I get the exception below whenever it tries to hit mysql. thanks in advance for any help on this (chunks of httpd.conf/server.xml versions at the bottom if they can aid diagnosis) rob. Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException LifecycleException: Exception opening database connection: java.sql.SQLException at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:681) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2185) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.sql.SQLException at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:606) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:679) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2185) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Stopping service Tomcat-Standalone Stopping service Tomcat-Apache Catalina.stop: LifecycleException: Not started LifecycleException: Not started at org.apache.catalina.connector.warp.WarpConnector.stop(Unknown Source) at org.apache.catalina.core.StandardService.stop(StandardService.java:546) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2220) at org.apache.catalina.startup.Catalina.start(Catalina.java:541) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) HTTPD.CONF VirtualHost * ServerName www.whatever DocumentRoot /home/www/public_html WebAppConnection conn warp localhost:8008 WebAppDeploy roller conn /roller WebAppInfo /webapp-info /VirtualHost SERVER.XML Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service VERSIONS -- tomcat 4.1.7 (also tried 4.0.4) mysql-3.23.51 Apache/1.3.26 mm.mysql-2.0.14 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: MaxProcesses in Server.xml
Hi Yoav, Thanks for your response. I am generating multiple threads on a client machine and am measuring how long would it take for the thread to finish after it gets serviced from the tomcat server(I am calculating the difference in time). Thanks, Venkatesh. Original Message Follows From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: MaxProcesses in Server.xml Date: Thu, 1 Aug 2002 15:34:08 -0400 Hi, You will always have some variance in your responses. It's never going to be exactly 10sec for all requests. This variance is due to network issues, I/O, a bit of thread contention and locking, etc. It's up to you to decide what variance is acceptable, and profile your application to ensure that with the desired number of users (peak, average, simultaneous peak, whatever criterion is the proper one for you) the application responds within the acceptable variance. As an aside, how are you measuring this respond time? Yoav Shapira Millennium ChemInformatics -Original Message- From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: Re: MaxProcesses in Server.xml I set MinProcessors also to a high value, but I dont observe any difference. The problem is I dont observe any strict behaviour. The number of responses that come in 10 secs only, varies from 70-150. But according to me, I should be getting all the responses in 10 secs. Thanks, Venkatesh. Original Message Follows From: Zhenxin wang [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: MaxProcesses in Server.xml Date: Thu, 1 Aug 2002 11:52:14 -0700 If you set MinProcessors to be 500 also, see if there is any diff. -- Zhenxin Wang DoCoMo labs USA - Original Message - From: Venkatesh Sangam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 11:41 AM Subject: MaxProcesses in Server.xml Hi, I am setting the value of MaxProcessors in server.xml to 500. Is it possible that tomcat can handle 500 simultaneous connections. I am generating 150 simultaneous requests. These requests are for a servlet called ReadServlet. This servlet sleeps for 10 secs and returns back with a respose Done. Once I have generated my 150 requests, I should be getting the response from the tomcat server in 10 secs as the servlet does nothing but sleep for 10 secs. But I am observing a strange behaviour. The first 100 responses come in 10 secs and the next 50 come in 13secs. Moreover this observation is not strict. some times first 75 responses come in 10 secs and the next 75 in 13 secs. Since I have set the value of MaxProcessors to 500, all the responses should come in 10 secs. Can anyone please tell me as to what the problem is ? Thanks, Venkatesh. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ...Phir Bhi Dil Hai Hindustani Venkatesh Sangam, 1207, E 8th Street, Apt #114, Tempe, AZ, 85281 Ph:480-736-9392 _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ...Phir Bhi Dil Hai Hindustani Venkatesh Sangam, 1207, E 8th Street, Apt #114, Tempe, AZ, 85281 Ph:480-736-9392 _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: problem whit applets
The code parameter is case sensitive, so if your class is Client, code=Client.class should be used. I don't believe suffixing the .class is required (at least not in modern browsers). (The Sun recommendation is to capitalise the first letter of the class (and the first letter of any words in the classname), eg. MySillyClass) francisco zuluaga wrote: hello! I'm new in tomcat, I want use some applets as front-enf for my servlets but I had some problems: I put the class files into the directory: /usr/local/tomcat/webapps/proyect/applets and in my html file i put this line: applet codebase=./applets code=client.class /applet but it did not work in my browser i had the error client class not found where i must put my class files and how I must do reference to this in the html file? francisco _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: warp / jdbc problem
You haven't configured you JDBC realm in the Warp connector section. My guess is thaat you have it configured for the Tomcat-Standalone. You will need to replicate the configuration in the Tomcat-Apache section too. RS Rob King [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: 08/01/02 04:38 PMSubject: warp / jdbc problem Please respond to Tomcat Users List Hi, I'm having problems connecting to mysql from tomcat when (only when) going via the warp connector. (with roller in this example - I'm assuming it's not app specific) I point a browser to http://localhost:8080/roller/ and everything works - db access no problem. I point a browser to http://localhost/roller/ and I see the webapp html no problem, but I get the exception below whenever it tries to hit mysql. thanks in advance for any help on this (chunks of httpd.conf/server.xml versions at the bottom if they can aid diagnosis) rob. Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException LifecycleException: Exception opening database connection: java.sql.SQLException at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:681) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2185) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.sql.SQLException at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:606) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:679) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2185) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Stopping service Tomcat-Standalone Stopping service Tomcat-Apache Catalina.stop: LifecycleException: Not started LifecycleException: Not started at org.apache.catalina.connector.warp.WarpConnector.stop(Unknown Source) at org.apache.catalina.core.StandardService.stop(StandardService.java:546) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2220) at org.apache.catalina.startup.Catalina.start(Catalina.java:541) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at
RE: MaxProcesses in Server.xml
Hi, I am generating multiple threads on a client machine and am measuring how long would it take for the thread to finish after it gets serviced from the tomcat server(I am calculating the difference in time). I figured that much ;) The reason I was asking is that it is sometimes difficult to determine exactly how long a request takes to complete, especially if it's relatively short, e.g. a few seconds as in your case. I've seen people use everything from stopwatches to sand clocks to measure this. I was wondering if you were using a specific tool to get these measurements? Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Request Dispatcher
If I grab a request dispatcher, can I append extra parameters to be used at the destination? Original request: /app/RDServlet?id=3446 RequestDispatcher rd = _context.getRequestDispatcher(/jsp/handler.jsp?ar=html); rd.forward(); Is this legit to do? Jacob Hookom Comprehensive Computer Science University of Wisconsin, Eau Claire --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Request Dispatcher
I don't think so, at least I've never been able to do it. What I've done is added attributes to the request (see the javadocs for details). Attributes only work with objects, but that's both an advantage and a disadvantage. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 3:06 PM To: Tomcat Users List Subject: Request Dispatcher If I grab a request dispatcher, can I append extra parameters to be used at the destination? Original request: /app/RDServlet?id=3446 RequestDispatcher rd = _context.getRequestDispatcher(/jsp/handler.jsp?ar=html); rd.forward(); Is this legit to do? Jacob Hookom Comprehensive Computer Science University of Wisconsin, Eau Claire --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Connecting to JDBC mysql database in a servlet
Hi all! I am trying to connect to JDBC in a servlet, the html page gets displayed the try statement and i find that the connection is not made. I am using tomact 4.0.4 and have deployed the class file in \webapps\ROOT\WEB-INF\classes directory. Can anyone please suggest a path forward? In case i need to map the servlet in web.xml, i don't know how to ! Thanks in advance! Khozaima my code: public class Servlet_JDBC extends HttpServlet{ Connection conn; private ServletConfig config; public void init(ServletConfig config) throws ServletException{ this.config=config; } public void service (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { HttpSession session = req.getSession(true); res.setContentType(text/html); PrintWriter out = res.getWriter(); out.println(HTMLHEADTITLEQuery Results/TITLE); out.println(/HEAD); out.println(BODY bgColor=blanchedalmond text=#008000 topMargin=0); out.println(P align=centerFONT face=HelveticaFONT color=fuchsia style=\BACKGROUND COLOR :white\BIGBIGList/BIG/BIG/FONT/P); out.println(P align=center); out.println(TABLE align=center border=1 cellPadding=1 cellSpacing=1 width=\75%\); out.println(TR); out.println(TDPARAMETER/TD); out.println(TDVALUE/TD); out.println(/TR); try{ Class.forName(org.gjt.mm.mysql.Driver); conn = DriverManager.getConnection(jdbc:mysql://databaseURL/dataBaseName, userName, password); Statement stmt=conn.createStatement(); ResultSet rs=stmt.executeQuery(SELECT PARAMETER, VALUE FROM MYTABLE); while(rs.next()){ out.println(TR); out.println(TD + rs.getString(1) + /TD); out.println(TD + rs.getString(2) + /TD); out.println(/TR); } rs.close();stmt.close();conn.close(); }catch(Exception e){out.println(e.getMessage());} out.println(/TABLE/P); out.println(Pnbsp;/P/FONT/BODY/HTML); } public void destroy(){} } _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
web.xml security-constraint bug?
i noticed that if you add the url-pattern /* as a web-resource-collection in a security constraint and you use FORM auth-method for login-config if form-login-page is included in the same webapp, there seems to be an endless loop. is there anyway to specify an url-pattern that includes all except login.jsp? thanks -Tony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Context and multiple Services
How ought I to configure Tomcat so that the same context is avalable in both the Standalone and Tomcat-Apache services? Thanks very much, Jack -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4 Suse 8
Steve, I know it's possible. I mainly run Tomcat on W2K right now but have also experimented with it on Suse 8.0. Unfortunately I must have screwed something up because it's no longer working. But I'm sure I did have it working for awhile, nothing sophisticated but at least I know it can work. Sorry I can't give you much more info than that. Ken -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:38 PM To: Tomcat Users List Subject: Tomcat 4 Suse 8 I gave up on trying to get Tomcat 4 to work with Suse 7.2 Has anyone gotten tomcat 4.* to work on suse 8? Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4 Suse 8
I didn't have any problems, I'm running jdk1.3 from IBM and the only thing I did was to add JAVA_HOME at the top of the catalina.sh file. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 10:38 AM To: Tomcat Users List Subject: Tomcat 4 Suse 8 I gave up on trying to get Tomcat 4 to work with Suse 7.2 Has anyone gotten tomcat 4.* to work on suse 8? Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: web.xml security-constraint bug?
On Thu, 1 Aug 2002 [EMAIL PROTECTED] wrote: Date: Thu, 1 Aug 2002 18:15:17 -0400 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: web.xml security-constraint bug? i noticed that if you add the url-pattern /* as a web-resource-collection in a security constraint and you use FORM auth-method for login-config if form-login-page is included in the same webapp, there seems to be an endless loop. Not if the container is designed correctly. Tomcat 4, at least, deals with this situation just fine, because it doesn't try to apply the constraint against the form login page or form error page. is there anyway to specify an url-pattern that includes all except login.jsp? thanks -Tony Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Request Dispatcher
I wrote some test cases and figured out that you cannot append parameters, but you can change their properties, so if you do: /xmlwrapper/newsTest.html?contentType=44id=59550 I can regexp and forward /content/news.jsp?contentType=htmlid=59550 Jacob Hookom Comprehensive Computer Science University of Wisconsin, Eau Claire -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 5:08 PM To: Tomcat Users List Subject: RE: Request Dispatcher I don't think so, at least I've never been able to do it. What I've done is added attributes to the request (see the javadocs for details). Attributes only work with objects, but that's both an advantage and a disadvantage. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 3:06 PM To: Tomcat Users List Subject: Request Dispatcher If I grab a request dispatcher, can I append extra parameters to be used at the destination? Original request: /app/RDServlet?id=3446 RequestDispatcher rd = _context.getRequestDispatcher(/jsp/handler.jsp?ar=html); rd.forward(); Is this legit to do? Jacob Hookom Comprehensive Computer Science University of Wisconsin, Eau Claire --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Apache + mod_jk + Tomcat + Internet
Install cygwin on your windows machine and then the openssh server for it. [EMAIL PROTECTED] 08/01/2002 10:40 AM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:Re: AW: Apache + mod_jk + Tomcat + Internet Firstly I am aware that their will be a perfomance hit but hopefully it will be a short term thing (approx 6 months. Secondly I have been looking at ssh (openssh) I have set it up on apache but is it available for a windows environment too? or do i need to have a openssh gateway (made from linux) which then tunnels into the windows machine? Regards Amran -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache-tomcat integration
I don't get it. The comments is the file say that 8109 is the default. What I want to use is AJP. This is in my server.xml: Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=1 maxProcessors=5 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service Does this mean that I don't have tomcat configured to use AJP. What you pointing out is in the stand alone code. Do I even need that? What do I do to make apache call tomcat when it is asked to serve a JSP file? On Thursday, August 1, 2002, at 06:08 PM, tomcat-user-digest- [EMAIL PROTECTED] wrote: From: Turner, John [EMAIL PROTECTED] Date: Thu Aug 01, 2002 03:41:53 PM US/Eastern To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: RE: Apache-tomcat integration Which connector did you choose to use? AJP or WARP? Your server.xml shows some changes on the port numbers. For example, the AJP connector is showing 8109 instead of 8009 (the default). Did you carry that change through the other configuration files, like workers.properties (if you chose AJP)? John Turner [EMAIL PROTECTED] -- Don't give in to hate- that leads to the dark side. -Obi-Wan, Jedi Knight -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: howto avoid overuse of session object?
Thanks, Cédric and Peter Lin, for your responses. Both of you seem to be saying that, instead of storing large objects in the session object, I should be storing them in the application object (ServletContext). ServletContext is not application context (yes, there is an application context, too). If you need objects saved between requests, during one session then session has to have enough information to save the state. If you're not going to pack all the state in the current session (I'm not sure why is this a bad idea), then your other option is to pack that some place else and just store some ID in the session. Whether you're packing single beans in hierarchically higher contexts or you place them into a database (via JDBC) or create EJB (an overkill and misuse, I'm sure), you still end up saving that information somewhere. So, somewhere it will fill up memory, buffers, disk, whatever. I cannot fathom why it is better to load piles of objects into higher contexts and have to worry about identifying them and cleaning up after expired sessions, than having them in session context. I find this to be rather confusing. It seems like the overhead involved in storing things in the application object would be much greater than storing things in the session object. Same here. At least the session objects would eventually die when ssions time out or they are invalidated by the web app, and the space they re using could then be garbage collected. But the application objects would live as long as the server is up, and I would think would eventually consume memory moreso than using the session would. You would have to implement session cleanup via some Listener (SessionListener or some such class). Basically, you'd be emulating something like dispersed session context, with parts of a particular session held elsewhere. Ugly, nasty, not to mention slow. IMHO. Also, there would be a extra level of complexity involved with maintaining the association between the objects in the application object and their respective sessions. Am I unclear on the concept, or is there something else that I'm not understanding? Would someone enlighten us. Why is session context so dreadful that we should avoid it? I agree we should minimize it's use, but minimization is not avoiding the use. Nix.
DB2 and servlet ??? Help !!!
Hello everyone... I am trying to connect the run a simple servlet to retrieve the query results from DB2 database. 1. Before writing a servlet, I wrote a simple java file and was successful in retrieving the contents from DB2 UDB. 2. Then I just converted the same JAVA file into servlet by adding Servlet API and syntax in it. 3. It compiles fine. 4. Then from a web page I try to pass one parameter to my servlet. 5. The servlet doesnot retrieve any records from the database which initially it was bringing when I wrote simple java file. Code of my servlet is as: -- import java.sql.*; import java.lang.*; import java.io.*; public class Ndb2Tomcat{ public static void main(String args[]) { try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); } catch( ClassNotFoundException e2) { System.out.println(\nJDBC Driver class not found exception); } catch( Exception e) { System.out.println(\nDriver class not found exception); } try{ Connection con = null; String url = jdbc:db2://100.3.13.34/SAMPLE; con = DriverManager.getConnection(url,db2admin, db2pwd); // retrieve data from the database System.out.println(Retrieve some data from the database...); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(SELECT * from db2admin.employee order by firstnme); System.out.println(Received results:); while (rs.next()) { String a = rs.getString(1); String str = rs.getString(2); System.out.print( empno= + a); System.out.print( firstname= + str); System.out.print(\n); } rs.close(); stmt.close(); con.close(); } catch (SQLException e1) { e1.printStackTrace(); } } Nishant Awasthi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DB2 and servlet (Correct servlet file) ??? Help !!!
Hello everyone... Sorry In my prevous file I attach wrong file in the body... I am trying to connect the run a simple servlet to retrieve the query results from DB2 database. 1. Before writing a servlet, I wrote a simple java file and was successful in retrieving the contents from DB2 UDB. 2. Then I just converted the same JAVA file into servlet by adding Servlet API and syntax in it. 3. It compiles fine. 4. Then from a web page I try to pass one parameter to my servlet. 5. The servlet doesnot retrieve any records from the database which initially it was bringing when I wrote simple java file. import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream(); String emp = req.getParameter(empnumber); out.println(paramater passed is +emp + BR); out.println(BRBRCount is+ count); try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); out.println(BRFound the JDBC driver BR); } catch( Exception e) { //e.printStackTrace(); out.println(\nDriver class not found exception); } finally { out.println(BRDriver is properly loaded and registered ); } try{ Connection con = null; String url; out.println(BRConnection URL is good); try{ con = DriverManager.getConnection (jdbc:db2://100.3.13.34/SAMPLE,db2admin,db2pwd); } catch( Exception e4) { e4.getMessage(); e4.printStackTrace(); } // retrieve data from the database out.println(BRRetrieve some data from the database...); try{ stmt = con.createStatement(); rs = stmt.executeQuery(SELECT empno from db2admin.employee); } catch( Exception e5) { e5.getMessage(); e5.printStackTrace(); } out.println(BRReceived results:); try{ if(!rs.next()) { count = count +1; String a = rs.getString(1); out.println( empno is + a ); out.println(BRBRWhile Count is+ count); } } catch( Exception e6) { e6.printStackTrace(); } out.println(BRBRCount is+ count); rs.close(); stmt.close(); con.close(); } catch (SQLException e1) { e1.getMessage(); e1.printStackTrace(); } catch( Exception e) { e.getMessage(); e.printStackTrace(); } finally { out.println(BRI am out); } } public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { doGet(req,res); } } Nishant Awasthi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4 Suse 8
I am running TC4.0.4 on SuSE 8.0 without problems. --JG -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 5:25 PM To: Tomcat Users List Subject: RE: Tomcat 4 Suse 8 Steve, I know it's possible. I mainly run Tomcat on W2K right now but have also experimented with it on Suse 8.0. Unfortunately I must have screwed something up because it's no longer working. But I'm sure I did have it working for awhile, nothing sophisticated but at least I know it can work. Sorry I can't give you much more info than that. Ken -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:38 PM To: Tomcat Users List Subject: Tomcat 4 Suse 8 I gave up on trying to get Tomcat 4 to work with Suse 7.2 Has anyone gotten tomcat 4.* to work on suse 8? Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]