RE: How do i create a new session ?
HttpSession getSession(boolean create) Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session. This is from the J2EE javadocs which can be found at: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html -Dave -Original Message- From: Mufaddal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 2:18 AM To: Tomcat List Subject: How do i create a new session ? Hi, What do i do to get or create a new session ? form method=post action=MyServlet % session.invalidate(); // what do i do here to get a new session ? session.setAttribute(id, new Integer(2)); % Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do i create a new session ?
Forgot to include that it is in the HttpServletRequest class. -Dave -Original Message- From: Durham David Cntr 805CSS/SCBE Sent: Friday, February 14, 2003 2:52 PM To: Tomcat Users List Subject: RE: How do i create a new session ? HttpSession getSession(boolean create) Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session. This is from the J2EE javadocs which can be found at: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html -Dave -Original Message- From: Mufaddal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 2:18 AM To: Tomcat List Subject: How do i create a new session ? Hi, What do i do to get or create a new session ? form method=post action=MyServlet % session.invalidate(); // what do i do here to get a new session ? session.setAttribute(id, new Integer(2)); % Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Status 404 - resource not available
I don't think you have to have one. Here's a minimal one: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app/ -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 9:47 AM To: Tomcat Users List Subject: Re: Status 404 - resource not available New info: I don't have a web.xml for this context. In Tomcat 4.0.5 it was not a problem. Is this something they changed for 4.1.18 that you must have one defined? If so, what would be the minimal web.xml that I could get by with? Thanks, Kenny - Original Message - From: Kenny G. Dubuisson, Jr. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 07, 2003 9:29 AM Subject: Status 404 - resource not available I just reloaded my development box and I can't get my servlet to be recognized; I get a Status 404 error - resource not available. I'm not sure where to start diagnosing the problem. My context (named kcmria) works...ie if I put in http://192.168.1.61/kcmria I get the directory listing of $CATALINA_HOME/webapps/kcmria which is what I would expect. But I can't get anything in $CATALINA_HOME/webapps/kcmria/WEB-INF/classes to be recognized. I tried copying HelloWorldExample over to my servlet directory but can't see it either. I think it must be something with my context. Here is what I've defined in server.xml: Context path=/kcmria docBase=kcmria debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_kcmria_log. suffix=.txt timestamp=true / /Context My mod_jk.conf looks like this: JkMount /kcmria ajp13 JkMount /kcmria/* ajp13 Any ideas where I should start looking? Thanks, Kenny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
manager app permissions issue
Hello, I'm trying to use the manager app but recieve the following error: java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.ManagerServlet is privileged and cannot be loaded by this web application Did some looking around and the only thing I can come up with is changing the catalina.policy file. So I added: grant codeBase file:${catalina.home}/webapps/manager/- { permission java.security.AllPermission; }; to catalina.policy, but that did not fix it. Has anyone seen this before and no what the problem is? Thanks, David Durham -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Using IIS with Tomcat
You don't need to make any changes to either server to get them running on the same machine. However, if you want to run them both out of port 80 then you need to look at configuring the Isapi redirector, which you can read all about in the docs under ajp connector (scroll down to the IIS section). -Original Message- From: Watson, Nicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 2:14 PM To: '[EMAIL PROTECTED]' Subject: Using IIS with Tomcat I have two COTS applications. One that requires the use of IIS and another that requires the use of Tomcat. I want to run both applications with their corrisponding web servers on the same box. I have turned off pooling in IIS. What configuration changes need to be made in tomcat in order to run the two web servers at the same time. Thanks, Nicholas W. Watson Software Engineer Concurrent Technologies Corporation Phone: (814) 269-2653 Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Not getting CSS with XML
Is it possible that you made a change to the xml file that is not showing up in the jsp? The include that you are using is a compile time include meaning that if you change the included xml file without changing the including jsp file then those changes will not be reflected. Dave -Original Message- From: Caton, Paul [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 3:37 PM To: [EMAIL PROTECTED] Cc: Mah, Carole Subject: Not getting CSS with XML I'd be very grateful for any advice regarding a CSS problem that is puzzling me. Our setup is Tomcat 4.0.6-LE on a Sun running Solaris 8. We have a webapp with the href base set as /acsam. In the acsam webapp directory we have this very simple test CSS stylesheet (mary.css): paragraph { display: block; border: solid red; line-height: 2 } .green {color: green} We also have a simple html file (mary.html): ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN SYSTEM http://www.w3.o rg/TR/xhtml1/DTD/xhtml1-strict.dtd html head titleCSS Test/title link rel=stylesheet type=text/css href=/acsam/mary.css/ /head body div p class=greenMary had a little lamb./p /div /body /html If we access this file directly (ie. [path]/acsam/mary.html) it displays correctly - the text is green as dictated by the mary.css stylesheet. Similarly, if we access mary.html by using an include statement in a JSP, like this (mary2.jsp): %@ include file=mary.html % it displays correctly as before. Now to the XML. We have a simple XML file (mary.xml): ?xml version='1.0' encoding='UTF-8'? ?xml-stylesheet type=text/css href=/acsam/mary.css? document paragraph Mary had a little lamb. /paragraph /document If we access this file directly (ie. [path]/acsam/mary.xml) it displays correctly, with a red border around the paragraph, as dictated by the mary.css stylesheet. However (here's the puzzling part), when we try to access mary.xml with a very simple JSP file like this (mary.jsp): %@ include file=mary.xml % it does NOT display correctly. For some reason the ?xml-stylesheet? link is not getting the CSS, even though it does get it when we access the XML file directly. As you can see, the path to the CSS file is the same in both mary.html and mary.xml. Can anyone explain why accessing the XML via the JSP doesn't get us the CSS styles? Thanks, Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1 and IIS 5
Wazzup, Problem is that IIS is not serving up JSPs via Tomcat. Tomcat runs perfectly standalone. IIS is up and running. Jakarta filter shows a green light. The isapi redirect log shows, all is good. Found the mapping, etc. The error message reported to the browser is Unable to load module. So I thought maybe it was a problem with the isapi redirector. Strange because the isapi log shows all is good. The isapi redirector that I was using was from the connector binaries folder. So I decided to go get the one from 3.3.1 and try that. After restarting Tomcat and IIS with the new dll in place, IIS locked. Maybe I should have thrown a reboot in there before switching dll's. Has anyone gotten the isapi_redirector.dll from the connector binaries folder to work? Thanks, Dave -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Help: Jakarta as a service
do the logs indicate any errors? -Original Message- From: Ing. Fernando Zapata [mailto:fzapata;icsa.com.ar] Sent: Friday, October 18, 2002 1:31 PM To: [EMAIL PROTECTED] Subject: Help: Jakarta as a service I have installed Jakarta Tomcat as a Service on W2K, the configuration seems to be right, but when I start the service, it stops inmediatelly. I'm working under Java 2 SDK 1.4. Thanks in advanced. Ing. Fernando Zapata -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
multiple mappings to the same context
I'm using Tomcat 4.0.4 and need to have multiple mappings (i.e. /MyAPP and /myapp) to the same context. Does anyone know how to do this? THanks, Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.10 starting problems under WIN2000!
set JAVA_HOME to c:\jdsk1.4.0 not c:\jdsk1.4.0\bin -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:27 AM To: Tomcat Users List Subject: Tomcat 4.1.10 starting problems under WIN2000! Hi! When I want to start Tomcat 4.1.10 I get the Error- Message can´t find C:\j2sdk1.4.0\bin\bin. He has the wrong path, because what he searches is in C:\J2SDK1.4.0\bin. How can I correct this? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Managing a Listener
-Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 2:14 PM To: Tomcat Users List Subject: RE: Managing a Listener On Tue, 10 Sep 2002, Turner, John wrote: From the 4.0 docs: If you have implemented a Java object that needs to know when this Host is started or stopped, you can declare it by nesting a Listener element inside this element. The class name you specify must implement the org.apache.catalina.LifecycleListener interface, and it will be notified about the occurrence of the coresponding lifecycle events. Configuration of such a listener looks like this: [ ... ] Is this a Tomcat-only feature, or is it in the servlet spec? If the former, be aware that if you use it your setup will not be portable. That may or not be an issue, but wanted to bring it up. That is a Tomcat only feature. The spec says define context listeners in the deployment descriptor. Here's an example: web-app listener listener-classpackage.Listener/listener-class /listener /web-app I think this is what you should do if you are just initializing some objects. I'm using this on a project to initialize a cache of business objects. I would use a properties file if configuration is needed and use getClass().getResourceAsStream(myConfig) to create a Properties object. You can put this properties file in WEB-INF/classes and it will be portable, with no hard coding. Host name=localhost ... ... Listener className=com.mycompany.mypackage.MyListener ... ... /Host Note that a Listener can have any number of additional properties that may be configured from this element. Attribute names are matched to corresponding JavaBean property names using the standard property method naming patterns. so basically it looks like you can have: Listener className=com.your.listener.class param1=value1 param2=value2 param3=value3 The parameters can be anything you want, like a pointer to a properties file or anything else. John -Original Message- From: Craig Longman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 2:54 PM To: Tomcat Users List Subject: RE: Managing a Listener On Tue, 2002-09-10 at 14:21, Turner, John wrote: Why not just use a properties file? properties, xml, it doesn't really matter what the file is. i just want to figure out how to point the filter/listener TO the file, from the server.xml configuration file. and also how to find the logger, so that the filter can log events/info in the right place (as defined by the Logger element). i see now that the ApacheConfig listener appears to get information from the server.xml file.. it is defined as: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig jkConfig=conf/jk/site_mod_jk.conf / i want to do something like that, have the jkConfig property in there and be initialized with the value. i'm still trying to figure out how it does that, its not clear to me at all, it looks like a lot of custom code. then i still need to figure out how to get the default logger from a filter. whew. -Original Message- From: Craig Longman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 2:19 PM To: Tomcat Users List Subject: RE: Managing a Listener On Tue, 2002-09-10 at 14:11, Srofe, Douglas (c) wrote: Craig, [...snip...] If this is not enough to get you started, I would be happy to fill in some more specifics. i see your point, and that makes good sense. in my particular case, i think that the session would still be a better way to go though, all i really need is to have it configure the information once. my real problem is more generic i guess, how do i initialize a listener (or a filter for that matter) with some basic webapp information, like where to log, getting configuration information, etc. until now, i've always just done it via a servlet, but i'd like to use these new things (listeners/filters/etc) properly, but if i can't log or configure them from the server.xml file, then i will have to resort to a servlet. i hate not being able to log information from components. thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- CraigL-Thx(); Be Developer ID: 5852 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at
RE: How to execute a command line program in jsp or servlet?
Executing System.getProperty(user.dir) will tell you what directory you are working out of. -Dave -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 2:46 PM To: Tomcat Users List Subject: RE: How to execute a command line program in jsp or servlet? try doing : Runtime r = Runtime.getRuntime(); Process p = r.exec(ExecutionParam); //and if you want to wait while the process executes you can use : p.waitFor(); all of this inside a try/catch block should compile and work. hope it helps -reynir -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: 10. september 2002 19:50 To: '[EMAIL PROTECTED]' Subject: How to execute a command line program in jsp or servlet? Hi, How to execute a command line program in jsp or servlet? In a test program, I tried to execute a batch program in a jsp file and it didn't work. The batch program test.bat only has on simple line: dir lst.txt In the test.jsp I called the batch program as following: try{ Runtime rt = Runtime.getRuntime(); rt.exec(c:\\test.bat); }catch(IOException e){ out.println(e.getMessage()); } Any help? Thanks, Jack Li -- 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: one servlet question
If this is in regards to DB Connection Pooling, there are other options available. Poolman can be found at sourceforge.com. You are correct to be concerned about creating multiple instances of this GetConnection class. You can correct this by making a call to a static method called getConnection(). Here's an example of reading in a properties file and retrieving pooled connections. import java.sql.*; import java.util.*; import java.io.*; import oracle.jdbc.pool.*; import oracle.jdbc.driver.*; import javax.sql.*; /** * Facilitates use of pooled oracle db connections. * * @author David Durham * */ public class OracleConnectionManager { private static int stmtCacheSize = 100; private static OracleConnectionPoolDataSource ocpds = null; private static String connectString = null; private static String username = null; private static String password = null; public OracleConnectionManager() { createPool(); } private void createPool() { try { Properties info = null; info = new Properties(); InputStream in = getClass().getResourceAsStream(/db.properties); info.load(in); this.stmtCacheSize = Integer.parseInt(info.getProperty(stmtCacheSize)); ocpds = new OracleConnectionPoolDataSource(); ocpds.setDriverType(info.getProperty(driverType)); ocpds.setServerName(info.getProperty(serverName)); ocpds.setNetworkProtocol(info.getProperty(networkProtocol)); ocpds.setDatabaseName(info.getProperty(databaseName)); ocpds.setPortNumber(Integer.parseInt(info.getProperty(port))); ocpds.setUser(info.getProperty(user)); ocpds.setPassword(info.getProperty(password)); } catch (Exception e) { System.err.print(e.getMessage()); } } /** * gets a connection from the connection pool * @return a connection from the connection pool */ public static java.sql.Connection getConnection() throws SQLException { if (ocpds == null) { OracleConnectionManager ocm = new OracleConnectionManager(); } PooledConnection pconn = null; try { pconn = ocpds.getPooledConnection(); ((OraclePooledConnection)pconn).setStmtCacheSize(stmtCacheSize); } catch ( Exception e ) { System.err.println(Connection attempt failed: + e.getMessage()); } return pconn.getConnection(); } } -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 2:57 PM To: Tomcat Users List Subject: one servlet question Hi, I have to write a servlet which will be a base servlet for all servlets in my applications. I have a class called GetConnection which gets the connection from servletcontext depending upon some parameters in the session, so i have go send servletcontext, and session to this class. now the question is should i create the instance of this class in init method of the servlet or define a seperate method and create the instance of that class from doget or dopost method of the child servlet,(this servlet will extend the base servlet). i have this doubt because if i create the instance of this getconnection class in init method, it will be in memory for the full life cycle of servlet(i.e. untill i stop the app server). so if i extend this base servlet for other 100 child servlets, then there will be 100 instance of getconnection for life cycle of servlet. so am i thinking in the right way??? any suggestions Ashish __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- 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: problems with browser cache
Try using response.setHeader(Cache-control, no-cache) and response.setHeader(expires, -1); That should work. -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 9:28 AM To: [EMAIL PROTECTED] Subject: problems with browser cache How can I prevent the broswer from using the cache when loading a JSP with a 100% certainty? I'm experiencing a reaaally weird cache problem... I have a page that includes items in table, and when an item is included it reloads itself so the new item can be shown, but sometimes the new item shows, and sometimes it doesn't... I even play with the refresh because it's completely random. Even if I delete the item, it sometimes still shows... I put this line at the top of my JSP but it seems not to acomplish anything... % response.setHeader (Pragma, no-cache); % any ideas?? thanks .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Does closing a Connection variable and setting it to null close all of the ResultSet and Statements?
Closing the resultsets, statements and connections frees up database resources. In the case of connection pooling, a call to the close() method may actually be releasing the connection back into the pool. -Original Message- From: Michael Nicholson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 10:53 AM To: Tomcat Users List Subject: Does closing a Connection variable and setting it to null close all of the ResultSet and Statements? Well, I guess the subject line says it all. I'm having memory issues, and having read the OOM error messages on the list, I've checked and found some open and not being closed connections, so I'm going back and closing them all. The question is do I need to explicitly close/dereference (set to null) all statements and recordsets too? Right now the system takes about 4% of my available memory just for the beans in question, so I'm trying to minimize what I store so that I could conceptually have more than one user. Thanks in advance, Mike Nicholson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Crash
d -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 8:15 AM To: Tomcat Users List Subject: RE: Tomcat Crash Hi, I suppose you can't post code for confidentiality reasons, so I won't even ask for that. But I have a couple of questions that may help us understand the problem better. If you're reading from a CSV file, why do you need a DB connection? Couldn't you just open a FileReader, read a line at a time, use StringTokenizer to get your tokens? This approach will be very fast and use very little memory, even for huge CSV files, because only one line of the file has to be in memory at a time and the StringTokenizer for a String is a small object. This is what I'm doing. I actually used jakarta-oro to split the lines. In fact, you problem statement says No database work is done at this point... so why all the discussion about Oracle connection pooling? Jumped the gun a bit I guess, retrieving db connections and inserting into a database is the last thing I do and is when I notice the Tomcat process is about to die. The next part would be the connection pooling implementation questions. Did you try to get a new connection each time and not go through the pool? That would degrade performance significantly (although you could just get one connection at the beginning and use it until you're done), but maybe memory behavior will be better? I will be removing the pooling and just getting new connections to see if this makes a difference today, and will post results. Did you try an alternative connection pooling implementation instead of Oracle's? One such as commons-dbcp or PoolMan? If nothing else, it would allow you to pinpoint the blame on the Oracle connection pooling implementation. I will be doing some performance tests with different pooling implementations soon. Will post my results if anyone would like to see them. If anyone knows of benchmarks already available, please let me know. And finally, are you trying to do any fancy cloning of data in the file / objects in the ImportManager? no This shouldn't be a tough problem ;) I'm sure we can figure this out... Yoav Shapira Millennium ChemInformatics Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Crash
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Did you try to get a new connection each time and not go through the pool? That would degrade performance significantly (although you could just get one connection at the beginning and use it until you're done), but maybe memory behavior will be better? Just tested getting a new connection, the system will still crash. I've noticed the smaller the file import, the longer it takes for Tomcat to crash after I've done an import. i.e. a file with 12 lines in it will import successfully, then I can get maybe 20 more connections before Tomcat crashes. Where as a file with 50 lines in it will cause Tomcat to crash immediately after the import, anymore lines than that and the import will fail before the import completes. The number of lines that will succeed is variable. Sometimes 50 lines will get imported, sometimes Tomcat will crash before I can import 50 lines. BTW, Tomcat is not reporting any errors in the logs. Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problems with Connections
You need a connection pooler. The Oracle Drivers come with support for connection pooling. -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 1:01 PM To: [EMAIL PROTECTED] Subject: problems with Connections I have this big problem handling Oracle Connecions... something goes wrong... I have tons of classes called DAOSomething... and a class called DAO which provides the Connection... the DAO*s requests the Connection from DAO and uses it, but there is no method to close the connection since it is used by several methods that run queries (selects and updates)... I don't know what goes wrong... but after some time of using the applicatiob the maximum number of cursors exceeds and the whole application stops, cuz no more queries will run... and I am closing ALL ResultSets and Statements on the finally block of EVERY query... this happend when I dispense one Connection to several classes, thus achieving some kind of sharing... if I turn that sharing off - every class will get an exclusive Connection, the problem changes... now instead of the maximum number of cursors exceeding, I get maximum number of processes (connections)... the connections (nor the cursors for that matter) are getting closed... I even tried placing a con.close() on the finalize() method of the DAO*s... but that didn't work... I get an IOException: socket closed... At the Oracle support service, I saw that a lot of people has the exact same problem.. does anyone knows how to solve this??? thanks btw: I have a solution working now... I changed the code of my DAO*s, so that every method that runs a query, requests a connection, than closes it... but that makes some parts of the application very slow... .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problems with Connections
Every method will have to get it's own connection and close it too. -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 2:56 PM To: [EMAIL PROTECTED] Subject: Re: problems with Connections That's exactly the problem... we dont't have any servlets (I wish we had, but I didn't design, I only code)... only JSPs and classes... I'll give u an example of how are things here... let's say we have a class called BusinessObject, and a class called DAOBusinessObject... so I'd have a JSP like that % BusinessObject bo = new BusinessObject(); // at this point, DAOBusinessObject requested a connection bo.method1(); // this method calls a method in DAO which runs a query bo.method2(); // this on too... and every other method as well... % so, as long as the DAOBusinessObject object lives the Connection is there... how am I supposed to close it, since every query needs it? Now I see, I should have a method to close the used conn or something... but we have up to 50 DAO* classes and more then 200 JSPs... I agree with what u said about the finalize()... but what should I do then? .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 [EMAIL PROTECTED] 21/08/02 16:37 On Wed, 21 Aug 2002, Christian J. Dechery wrote: Date: Wed, 21 Aug 2002 16:13:23 -0300 From: Christian J. Dechery [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: problems with Connections I don't think it is TOTALLY offtopic, since the problem occurs within Tomcat... From your description of the problem and your design approach, I'll bet it would happen to you in a long-running non-servlet application as well. and when I close tomcat all the connections and cursors are released... Exactly what you'd expect if your application is leaking open connections, statements, or result sets. as I said in my email I close ALL ResultSets and Statements in finally blocks... Fine, I'll take your word for it ... but missing a case would easily account for what you are seeing. (In the particular case of Oracle, a cursor is allocated for each result set, which is not released until the result set is closed). as for closing the Connection... can I use the finalize() in the DAO* classes to use the method that returns the Connection to the pool?? Cuz I can't see anywhere else where I'd be able to do that... The right design pattern is to acquire a connection, do whatever processing is required, and immediately release it. For example: DataSource dataSource = ...; // Acquire reference to connection pool Connection conn = null; try { conn = dataSource.getConnection(); ... perform SQL operations as necessary ... conn.close(); // Return connection to the pool conn = null; } catch (SQLException e) { ... deal with problems ... } finally { if (conn != null) { try { conn.close(); // Return to pool even if an exception occurred } catch (SQLException e) { ; } conn = null; } } Waiting for the finalize() method to clean up just occupies resources needlessly until the garbage collector gets around to running -- this by itself could easily exhaust your available connections in a busy environment. It also assumes that your JDBC driver's implementation of the finalize() method knows that this Connection was stored in a pool. That seems like a really shaky bet. A primary goal of your designs should be to minimize the amount of time that you have a database connection allocated to the processing of a particular request -- connections are expensive to create, and there's always an upper limit on how many your database will support. .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Crash
I'll try to make the circumstances of the crash as brief as possible. What I'm doing: Importing data to my app from a comma delimited file. The data is parsed out of the file (one pass through the file only) put into objects and stored as static members of an ImportManager class. The app then asks the user about the data, make some corrections, delete entries, etc. No database work is done at this point, only manipulating/removing objects from a static Map in the ImportManager class. The crash occurs on a doImport() method or shortly after. This method gets a connection from an Oracle connection pool (the pooling that comes with their drivers). The import will succeed if the data file size is small, roughly 50 lines and then the system crawls for a bit before dieing. Seems like a memory leak. Does anyone know of any problems with the connection pooling in the Oracle JDBC drivers? I increased the maximum heap size for tomcat service to 256MB, which should be more than enough for my development environment. Here's a sample of the logging that I set up to monitor the import: ** Connection Retrieved, Free Memory: 1008416 Total Memory:4079616 ** Line: 47 PR completed: 1029879840 ** Line: 48 Squadron completed: 1029879840 ** Line: 48 Flight completed: 1029879840 ** Line: 48 Ratee completed: 1029879840 ** Line: 48 Rater completed: 1029879840 ** Connection Retrieved, Free Memory: 1276760 Total Memory:4079616 ** Connection Retrieved, Free Memory: 1137368 Total Memory:4079616 ** Connection Retrieved, Free Memory: 973464 Total Memory:4079616 ** Connection Retrieved, Free Memory: 809640 Total Memory:4079616 ** Connection Retrieved, Free Memory: 1185096 Total Memory:4079616 ** Connection Retrieved, Free Memory: 1007808 Total Memory:4079616 ** Line: 48 PR completed: 1029879840 ** Line: 49 Squadron completed: 1029879840 ** Line: 49 Flight completed: 1029879840 ** Line: 49 Ratee completed: 1029879840 ** Line: 49 Rater completed: 1029879840 ** Connection Retrieved, Free Memory: 117 Total Memory:4079616 ** Connection Retrieved, Free Memory: 1026288 Total Memory:4079616 ** Connection Retrieved, Free Memory: 853176 Total Memory:4079616 ** Connection Retrieved, Free Memory: 1203568 Total Memory:4079616 ** Connection Retrieved, Free Memory: 1064440 Total Memory:4079616 ** Connection Retrieved, Free Memory: 882136 Total Memory:4079616 ** Line: 49 PR completed: 1029879841 ** Connection Retrieved, Free Memory: 990840 Total Memory:4079616 ** Connection Retrieved, Free Memory: 876248 Total Memory:4079616 Thanks for any help. -Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Design question
Another option might be to use LDAP to query a windows active directory, if you're using that. This would provide a way for you to deal with a users permissions within your app. I haven't done this, and don't ever want to, but I think it's doable. -Dave -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 12:29 PM To: Tomcat Users List Subject: RE: Design question Hi, For this problem I would say it would be best to use IIS and Tomcat combo Because IIS can authenticate users by using NTLM authentication scheme. This means that users with in your domain can be automatically authenticated (by using Windows Intergrated Authenticaton in IIS). There are several ways to upload files to a server, one is by using MultiPart Requests (Method POST). All you need is a MultiPartRequestParser and then you can parse the files from the request and do what ever you like with em, such as upload the files to a remote server. If you need to use NTLM authorisation for this It can get little bit complicated. In theory you should be able to do it anyway, but not with out the user giving out his username/password/domain combination, to authenticate against the remote server. Then for step 2 (downloading files from a remote server authenticated with NTLM) you could write a servlet that acts similar to a proxy. This could be achived by using the http://www.innovation.ch/java/HTTPClient/ along with http://www.innovation.ch/java/ntlm.html and last but not least http://www.luigidragone.com/networking/ntlm.html hope it helps [EMAIL PROTECTED] -Original Message- From: Raju Lokhande [mailto:[EMAIL PROTECTED]] Sent: 19. ágúst 2002 17:01 To: Tomcat Users List Subject: Design question Greetings everybody, I am doing some research on possibility of using Tomcat to do a project. General requirements as follows 1. A user will login to the web application and upload a file to a remote server. He or she can only access his or her WIN2K/NT domain to upload this file. 2. User will download a file or a number of files from the remote server - again from his or her domain. I was told that I can do this job using Java Servlet and IBM Websphere or BEA Weblogic. I am not sure if this is possible in Tomcat. Has anybody done similar work using Tomcat. Can you share your experiences please? Thanks Raju Lokhande ** *** This message, together with any attachments, is intended only for the use of the individual or entity to which it is addressed. It may contain information that is confidential and prohibited from disclosure. If you are not the intended recipient, you are hereby notified that any dissemination or copying of this message or any attachment is strictly prohibited. If you have received this message in error, please notify the original sender immediately by telephone or by return e-mail and delete this message along with any attachments, from your computer. Thank you. ** *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: new install - JSP failed.
Did you install the j2sdk ?? Is java_home set? -Original Message- From: Lihn, Steve [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 12:18 PM To: 'Tomcat Users List' Subject: new install - JSP failed. Hi, I am new to this mailing list and new to Tomcat. I just installed the Tomcat 4.0 on my PC. It works basically. Servlet also works. But the JSP samples are all failing. Does any body know what I missed? Error like: Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error -- -- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java: 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1125 ) at java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp iler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN ecessary(JspSe rvlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.ja va:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at
RE: Errors Compiling a JSP
get rid of that bang. The bang is for declaring class level stuff. i.e. % String [] colorValues = ... instead of %! String -Original Message- From: Sharples, Brian [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:15 AM To: '[EMAIL PROTECTED]' Subject: Errors Compiling a JSP Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: HTML HEADTITLEJSP that processes parameters in a link/TITLE/HEAD BODY Parameters UL LICountry = %= request.getParameter(country) % LIColors: UL %! String[] colorValues = request.getParameterValues(colors); % LIColor 1 = %= colorValues[0]% LIColor 2 = %= colorValues[1]% LIColor 3 = %= colorValues[2]% /UL /UL /BODY /HTML The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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: Errors Compiling a JSP
Remove the bang. It's that simple. The request object reference does not exist outside of doService. If you don't believe me go to the $CATALINA_HOME\work directory and look at the generated servlet. -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:30 AM To: Tomcat Users List Subject: RE: Errors Compiling a JSP Is there a more detailed error message? Are you actually setting the colorValues array up anywhere before it gets to this piece of code? At 11:21 AM 15/08/2002 -0400, you wrote: That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Quick Question
post questions to the list please. It will work in a bean if you pass a reference to the servlet context to it. I'm not all that familiar with using beans in jsp but I think that you will have to break out of the bean tags and actually make a method call like: % myBean.setServletContext(getServletContext()) % -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 5:21 PM To: Durham David Cntr 805CSS/SCBE Subject: RE: Quick Question the getServletContext.getRealPath will work in a java bean?? I'm trying to read a txt file from a java bean instead of a java servlet. then I use the bean in a jsp page. thanks Alex Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED] 12/08/2002 05:12 p.m. Please respond to Tomcat Users List To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Quick Question getServletContext.getRealPath(/config.txt) will return the path to config.txt in the root of your apps directory. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 5:00 PM To: Tomcat Users List Subject: Quick Question Hi all, I wrote a simple java bean that reads a txt file, the problem is where do I need to put the txt file??... What is the default directory in Tomcat?? when I put something like this in my java bean : FileReader(config.txt) Where does tomcat look for that file? thanks Alex -- 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: Quick Question
good point, although if you need to write to the file, getResourceAsStream doesn't work. Is there something else along the same lines that will? -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: RE: Quick Question IMO, it seems like a bad idea to me to tie your bean code to a servlet context unless you REALLY need to. To me, a better way would be to put the file in a directory under classes, and use the classloader of the current thread to get to the file. This way, you do not need servlet.jar to use your bean if you every decide to use it outside of a servlet. This is a very simple process. Here is an example: private InputStream getFile(String name){ return Thread. currentThread(). getContextClassLoader(). getResourceAsStream(name); } To read a properties file classes/myprops.properties for instance, you just do this: Properties p = new Properties(); p.load(getFile(myprops.properties)); Larry [EMAIL PROTECTED] 08/14/02 08:42 AM It will work in a bean if you pass a reference to the servlet context to it... -- 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: Trying to work with JDBC OCI
Ack!! Turn off your mailing list spammer. -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:57 PM To: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC OCI Hi Everybody, I have been trying to work with JDBC OCI Driver.While trying to run my code i get the following error message: 1)javax.servlet.ServletException:no ocijdbc9 in java.library.path . My jsp code is as follows: 1)I am importing the following packages import=java.sql.*, javax.sql.*, javax.servlet.*, javax.servlet.http.*, java.util.*, oracle.jdbc.*, java.net.* % 2)My connecion code is as follows: Class.forName(oracle.jdbc.driver.OracleDriver); DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); Connection myConn = DriverManager.getConnection(jdbc:oracle:oci:@bioinfo.utmb.edu :1521:PLSExtPr oc); where database=host=bioinfo.utmb.edu:port=1521:sid=PLSExtProc Statement stmt = myConn.createStatement(); ResultSet myResultSet = stmt.executeQuery(select * from table where field='117_at'); if (myResultSet != null) { while (myResultSet.next()) { To Resolve this error i am trying out the following things: 1)I have added classes12.jar, nls-charset12.jar, ocijdbc.0.0.jar to my $TOMCAT_HOME/common/lib and configured it to my CLASSPATH. 2) I have put LD_LIBRARY_PATH=$ORACLE_HOME/lib. 3) i have imported package java.net.* into my code. Can anyone help. Thanks, With regards, Vikas nagpal. -- 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 jsse help!
create your own keystore: keytool -genkey -alias tomcat -keyalg RSA -keystore tomcatCerts -Original Message- From: Truong Hieu C Sent: Monday, August 12, 2002 10:43 AM To: Tomcat Users List Subject: tomcat jsse help! Hi All, I wanted to turn on https support for tomcat. So I ran this command: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA I believe I mistypes keystore password. Now, If I startup tomcat, I got this error message: java.io.IOException: Keystore was tampered with, or password was incorrect at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:737) at java.security.KeyStore.load(KeyStore.java:608) I tried to recreate the key again but got this error: keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect How do I recreate the key again? Thanks, -Hoang -- 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 jsse help!
You have to tell tomcat to use that keystore. I'm not sure how to do that, check the manual. -Original Message- From: Truong Hieu C Sent: Monday, August 12, 2002 11:08 AM To: Tomcat Users List Subject: Re: tomcat jsse help! Thanks David. I created my own keystore succesfully but I still get same error when I startup tomcat. Do I need to do anything else? -Hoang Durham David Cntr 805CSS/SCBE wrote: create your own keystore: keytool -genkey -alias tomcat -keyalg RSA -keystore tomcatCerts -Original Message- From: Truong Hieu C Sent: Monday, August 12, 2002 10:43 AM To: Tomcat Users List Subject: tomcat jsse help! Hi All, I wanted to turn on https support for tomcat. So I ran this command: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA I believe I mistypes keystore password. Now, If I startup tomcat, I got this error message: java.io.IOException: Keystore was tampered with, or password was incorrect at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:737) at java.security.KeyStore.load(KeyStore.java:608) I tried to recreate the key again but got this error: keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect How do I recreate the key again? Thanks, -Hoang -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Quick Question
getServletContext.getRealPath(/config.txt) will return the path to config.txt in the root of your apps directory. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 5:00 PM To: Tomcat Users List Subject: Quick Question Hi all, I wrote a simple java bean that reads a txt file, the problem is where do I need to put the txt file??... What is the default directory in Tomcat?? when I put something like this in my java bean : FileReader(config.txt) Where does tomcat look for that file? thanks Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSL just for a login page
Why don't you just build your redirect after they log in. response.sendRedirect(http://; + request.getHostName() + /myApp/home.jsp); -Original Message- From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 8:52 AM To: 'Tomcat Users List' Subject: RE: SSL just for a login page Hi I am not am expert in the security of the web at the moment. Could you explain to me why this would open such a big secuirty hole from swapping from https to https. I was suggesting this because it read this i a 'professional j2ee' book?!! The problem i have is that i need the username and password to be encrypted but i have heard that ssl hits performance quite badly!! I dont think that i could handle filtering, so what do you suggest for the security?? What is the 'norm' for these such problems. Thanks Glen. -- 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: SSL just for a login page
Well, obviously the only thing being protected here is the login and password, user activity after the login will be open to snooping, hijacking, etc. So here's what I think you should do. 1) User logs in through ssl. 2) After a successful login, (still ssl, don't put anything session yet) pass the user's ID and a one-way hashed version of their password to a non ssl page that authenticates this information and sets up their session. Dave -Original Message- From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 9:19 AM To: 'Tomcat Users List' Subject: RE: SSL just for a login page Hi Let me reply to a few of the emails. the problem is your own encryption isn't signed by a third party, which means if someone hack into your server, they could compromise the security. wouldn't this still be a problem if my public key was signed by a CA?? isn't the cert. for the client to verify who i am, this would not effect the SSL encryption?? Why don't you just build your redirect after they log in. response.sendRedirect(http://; + request.getHostName() + /myApp/home.jsp); i have tried this. What i am doing is using the login to set up a session and adding a attribute to this session. Every jsp checks the session for this object to verify that the user has logged in, if they have not or they have logged out the user is unable to bookmark or go backward into the website. Using the redirect like this some how interferes with the session and messes up the checking. I am not sure why this happens? Glen -- 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: SSL just for a login page
Like I said, you're session is open to snooping and hijacking, but your password is not revealed. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 9:38 AM To: Tomcat Users List Subject: AW: SSL just for a login page That's no solution, as now the oneway hash can be snooped and hijacked. You win absolutly nothing but wasted efford. -Ursprüngliche Nachricht- Von: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 9. August 2002 16:30 An: Tomcat Users List Betreff: RE: SSL just for a login page 2) After a successful login, (still ssl, don't put anything session yet) pass the user's ID and a one-way hashed version of their password to a non ssl page that authenticates this information and sets up their session. -- 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: SSL just for a login page
jmeter, available from jakarta.apache.org -Original Message- From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 9:59 AM To: 'Tomcat Users List' Subject: RE: SSL just for a login page Yes, you are probably right, I will have to use ssl. Does anybody know of some good stress testing free software??? How does this sound. 1)User logs on and username and password send over ssl. password md5 hashed and compared against users on a database. 2)If valid user logs on, if not user sent to error page. 3) rest of session ssl. if database compromised, hash value would be no use??? Lastly, how do i enforce that the whole of the web site must be over ssl, except the initial welcome page so the user doesn't have to type in port numbers is it something like this in the web.xml file. security-constraint web-resource-collection web-resource-name***/web-resource-name url-pattern/index.html/url-pattern /web-resource-collection user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint security-constraint web-resource-collection web-resource-name***/web-resource-name url-pattern/*/url-pattern //or will this overwrite the index.html url-pattern/*jsp/url-pattern //should it be like this url-pattern/data/*/url-pattern url-pattern/etc/*/url-pattern //etc http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint -- 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: SSL just for a login page
post this on the jmeter-user list -Original Message- From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: SSL just for a login page just downloaded it version 1.7 using it with java 1.4 beta installation says that you dont need to do anything (already got JAVA_HOME), when i run it it just pulls up errors?? -- 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: Configuration for High TPS
You can set up an event listener to cache this data when the context is initialized. That's probably better than making the initial unlucky users wait. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:43 PM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS I knew I forgot a detail Running Tomcat 4.0.3 (or 4.0.4, I'll likely upgrade to that version soon). Quick follow up on this. I'm testing a servlet I've written that does some caching, and is very quick once it has cached all of its data. During the first run, I test it going 40 TPS (over several thousand requests). Then I start upping the TPS (same set of requests), and I plan to stop at 200 TPS. Now here's an intresting problem. My tool has reported on several runs that it cannot connect within only a second or two of starting the tool. With an accept count of over 1000, I find this rather odd as it should take at least 5 seconds at 200 TPS to fill an acceptCount of 1000 (typically the lowest I've set acceptCount). I normally run into can't connect errors early during a test run, when my servlet is still caching its data (still working on a way to better handle that problem also). Any insight would be appreciated. Thanks! Jeff -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:23 AM To: Tomcat Users List Subject: Configuration for High TPS I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuration for High TPS
Have you integrated Tomcat with another webserver for the static content, assuming you have some. That would more than likely improve performance. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:52 PM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html John Turner [EMAIL PROTECTED] -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 1:50 PM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS Where can I find documentation on the Coyote connector (such as the exact class name)? What is really bothering me (currently), is once I start getting connection errors, my CPU usage (roughly) doubles, and I get connection errors much more easily (as if acceptCount was reduced somehow). Any ideas on the cause/solution for this? -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:31 AM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS what version of tomcat are you running? In the 4+ versions the Coyote HTTP connector is supposed to perform better. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:23 PM To: Tomcat Users List Subject: Configuration for High TPS I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Trying to work with JDBC
No exceptions being thrown? Dave -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:22 PM To: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC Hi everybody, I was trying to connect to the ORACLE database thru the JDBC driver. I have downloaded the DRIVER TYPE 4 and unzip this driver. On unzipping one of ORACLE.JAR driver i have got the hierarchy like com/ddtek/jdbc/oracle/OracleDriver.class. I have placed this hierarchy in WEB-INF/classes directory. I have configured my CLASSPATH to point towards the tools.jar, servlet.jar, WEB-INF/classes, jdbc2_0-stdext.jar. Also in my JAVA code i have put myDriver =com.ddtek.jdbc.oracle.OracleDriver and myURL=http://bioinfo.utmb.edu/cgi-bin/bsql_ProbeSet.cgi. I am not sure what exactly i need to do with the SERVER.XML file. Also i have created the instance of my JAVABEAN class in the JSP file to retrieve the requisite fields into my page. But even after this my code is not able to pull anything from the database. Can anyone help. Thanks, With regards, Vikas Nagpal. -- 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: Trying to work with JDBC
Ok, so there are no exceptions being thrown. Is there any data in the database? This is the time to come clean if you're hiding something from us.Why don't you post the code you're using to connect and query the data. -Original Message- From: Durham David Cntr 805CSS/SCBE Sent: Thursday, August 08, 2002 3:36 PM To: Tomcat Users List Subject: RE: Trying to work with JDBC No exceptions being thrown? Dave -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:22 PM To: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC Hi everybody, I was trying to connect to the ORACLE database thru the JDBC driver. I have downloaded the DRIVER TYPE 4 and unzip this driver. On unzipping one of ORACLE.JAR driver i have got the hierarchy like com/ddtek/jdbc/oracle/OracleDriver.class. I have placed this hierarchy in WEB-INF/classes directory. I have configured my CLASSPATH to point towards the tools.jar, servlet.jar, WEB-INF/classes, jdbc2_0-stdext.jar. Also in my JAVA code i have put myDriver =com.ddtek.jdbc.oracle.OracleDriver and myURL=http://bioinfo.utmb.edu/cgi-bin/bsql_ProbeSet.cgi. I am not sure what exactly i need to do with the SERVER.XML file. Also i have created the instance of my JAVABEAN class in the JSP file to retrieve the requisite fields into my page. But even after this my code is not able to pull anything from the database. Can anyone help. Thanks, With regards, Vikas Nagpal. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Trying to work with JDBC
He's not using oracle's jdbc drivers, although maybe that is something to try. I recommend getting the newest drivers from oracle because it has been reduced to a single jar file, is much smaller (I think the old drivers were like 8MBs the new ones are around 2MB), and there is support for the jdbc 2 optional packages which means that connection pooling is supported. -Dave -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:42 PM To: Tomcat Users List Subject: RE: Trying to work with JDBC First and foremost, don't unjar the oracle classes. They're fine in the jar files as is. You'll just need to put them in the lib directory under your WEB-INF or in tomcat's lib directory. Also another thing to watch for is what jar's you're putting out there. You only need the classes12.jar and nlscharset12.jar generally. If your jdk isn't 1.2+ then you'll want the 11 series drivers. Don't put both of the versions in your classpath however, you can sometimes get weird results that way. Second, your driver is ok, but the jdbc url is all wrong. It should be something like the following: jdbc:oracle:thin:@server-name-or-ip-address:1521:ORCL Third, I'm not sure what you're attempting to do with the server.xml file, unless you're attempting to use the jdbcrealm authentication you don't need to do anything with it (I don't do jdbcrealm, so you'll need to ask someone else). If you are attempting to use it (jdbcrealm) then you'll need to put the oracle jar files into the tomcat lib directory. If you put them in the webapp tomcat won't be able to see them and you'll not get anywhere. As for your Java Beans and JSPs, you might have better luck after you fix the url that you're using to connect to the database. If you don't post a message and get some more help. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 1:22 PM To: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC Hi everybody, I was trying to connect to the ORACLE database thru the JDBC driver. I have downloaded the DRIVER TYPE 4 and unzip this driver. On unzipping one of ORACLE.JAR driver i have got the hierarchy like com/ddtek/jdbc/oracle/OracleDriver.class. I have placed this hierarchy in WEB-INF/classes directory. I have configured my CLASSPATH to point towards the tools.jar, servlet.jar, WEB-INF/classes, jdbc2_0-stdext.jar. Also in my JAVA code i have put myDriver =com.ddtek.jdbc.oracle.OracleDriver and myURL=http://bioinfo.utmb.edu/cgi-bin/bsql_ProbeSet.cgi. I am not sure what exactly i need to do with the SERVER.XML file. Also i have created the instance of my JAVABEAN class in the JSP file to retrieve the requisite fields into my page. But even after this my code is not able to pull anything from the database. Can anyone help. Thanks, With regards, Vikas Nagpal. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDBC Connection Pools
some drivers ship with support for connection pooling. e.g. Oracles latest jdbc drivers -Original Message- From: Peter Mutsaers [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 10:39 AM To: Tomcat Users List Subject: Re: JDBC Connection Pools Chris == Chris Ruegger [EMAIL PROTECTED] writes: Chris It looks like Tomcat does not inherently support JDBC Data Chris Source and/or connection pools - with Weblogic I can set Chris one up in the config.xml file. Chris Am I correct in this assumption? Do people write their own Chris connection pool manager for JDBC connections when using Chris Tomcat? I'm not sure, I didn't find one in tomcat 4.0, so I wrote my own (which is easy). I put it in common/lib, configure it in server.xml (via some extention in server/lib). Writing your own gives some advantages; such as for our app we allow only 3 connections from the pool per user (session). If you write your own you can add such custom requirements easily. The PooledConnection (std. JDBC class) is intended to implement your own pools. -- Peter Mutsaers, Dübendorf, Switzerland. -- 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: howto avoid overuse of session object?
try forums.java.sun.com there's a jsp/servlet forum -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 11:14 AM To: [EMAIL PROTECTED] Subject: OT: howto avoid overuse of session object? This is sort of off-topic, but I don't know of a better forum targeting Java web/servlet programming. If anyone does know of one, could you let me know? I'm basically wondering if others have found effective ways to avoid the tempting but bad practice of loading up the session with all sorts of attributes. I often find myself needing some Bean or other object for maybe 2 or 3 requests, and, rack my brains as I may for an elegant way of passing the object along without putting it in the session, I usually end up with nothing more than a headache and 1 more attribute in my session. :( I'm developing with an MVC approach, with Struts for more recently developed apps and a similar custom framework for our older apps, but I just can't seem to see a way to get around this problem. I would love it if there were an object like a thisRequestAndTheNextOne object, where attributes would stick around for the current request and subsequent request, and then the controller could get objects from the previous request and determine if it should put them in the new thisRequestAndTheNextOne object for the current request. I don't know if that makes sense to anyone else, but, nevertheless, does anyone have any ideas to do what I'm trying to do? Does anyone else feel my pain? ;) Thanks, -Jeff -- 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: DB2 and servlet ??? Help !!!
brings nothing?? There is no SQLException, or nullpointer or something like that?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:08 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello Mark, Believe me there are rows in the table when I run the simple JAVA-DB2 file it retrieve Received results: empno= 000150 firstname= BRUCE empno= 10 firstname= CHRISTINE empno= 000250 firstname= DANIEL empno= 000200 firstname= DAVID empno= 000130 firstname= DOLORES empno= 90 firstname= EILEEN empno= 000160 firstname= ELIZABETH empno= 000280 firstname= ETHEL empno= 70 firstname= EVA empno= 000140 firstname= HEATHER empno= 60 firstname= IRVING empno= 000190 firstname= JAMES empno= 000230 firstname= JAMES empno= 000340 firstname= JASON empno= 000220 firstname= JENNIFER empno= 50 firstname= JOHN empno= 000290 firstname= JOHN empno= 000270 firstname= MARIA empno= 000180 firstname= MARILYN empno= 000170 firstname= MASATOSHI empno= 000310 firstname= MAUDE empno= 20 firstname= MICHAEL empno= 000300 firstname= PHILIP empno= 000320 firstname= RAMLAL empno= 30 firstname= SALLY empno= 000240 firstname= SALVATORE empno= 000120 firstname= SEAN empno= 000260 firstname= SYBIL empno= 000100 firstname= THEODORE empno= 000110 firstname= VINCENZO empno= 000210 firstname= WILLIAM empno= 000330 firstname= WING But When I write the same thing in a servlet it brings nothing... Is there a problem with Connection URL or Connection String... well I am using the same things in my simple java file Thanks -- -- Nishant Awasthi Wagoner, Mark MWagoner@wildflTo: 'Tomcat Users List' avors.com [EMAIL PROTECTED] cc: (bcc: Nishant Awasthi) 08/01/2002 02:02Subject: RE: DB2 and servlet ??? Help !!! PM Please respond to Tomcat Users List I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:57 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- 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)
RE: Please help me... URGENT
One option is to use IIS + SSL + Tomcat -Original Message- From: Sujith Mathew [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Please help me... URGENT Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- 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: Please help me... URGENT
Why are we worried about securing a Windows 2000 server?? I thought they just wanted it set up and running. -Original Message- From: Michael B Sebetich [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:42 PM To: Tomcat Users List Subject: RE: Please help me... URGENT I wouldn't use IIS, especially if you're interested in having a secure server. IIS is historically unsecure. SSL won't mean much if someone can break into your system via your web server. On Thu, 1 Aug 2002, Durham David Cntr 805CSS/SCBE wrote: One option is to use IIS + SSL + Tomcat -Original Message- From: Sujith Mathew [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Please help me... URGENT Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: no-cache where to set?
this should work with all http1.1 compatible browsers: response.setHeader(Cache-Control, no-cache); Dave -Original Message- From: slickdev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 4:27 PM To: Tomcat Users List Subject: no-cache where to set? pardon my naivete', but where do i set pages for 'no-cache'? i hope it's not just a browser setting... unknown number of browsers to set. - Original Message - From: peter lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, July 26, 2002 1:31 PM Subject: Re: Can Tomcat 4.03 expire web pages set your pages to no-cache, which forces the browser to always get it from the server. Is that what you're looking for? peter Steve Russell wrote: Hi; My boss wants to expire our jsp pages. In other words, if a user hits backspace, instead of getting the jsp page s/he just left s/he would see a notice that the page expired. I've seen snippets of code to do this on google, but I haven't been able to get them to work. Can Tomcat 4.03 expire web pages or do I need a webserver with Tomcat to do this? Also if someone could show me an example of how do this, with the example of being a whole html/jsp page I would appreciate it. Thanks in advance 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat and netscape
How can I be more specific?? This is a yes/no question -Original Message- From: Cunningham Emmett [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 5:55 PM To: Tomcat Users List Subject: Re: tomcat and netscape I haven't played with apache and IIS. But I do know a fair amount about the iPlanet integration. If you have a more specific question then just forward it. I hope that I can help. emmett --- Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED] wrote: Anyone know if jakarta entries in netscape's obj.conf file is equivalent to entries in the uriworkermap.properties file when integrating with IIS and Apache? Thanks, Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat and netscape
Anyone know if jakarta entries in netscape's obj.conf file is equivalent to entries in the uriworkermap.properties file when integrating with IIS and Apache? Thanks, Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with IIS Win2K + Tomcat
How do you know that Tomcat is intercepting these requests? It sounds to me like it is not. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 1:23 PM To: [EMAIL PROTECTED] Subject: Problem with IIS Win2K + Tomcat I am running Tomcat 4.0.1 and J2SDK 1.4.0_01 on Win2K. I finally got Tomcat to intercept /examples/* so it picks up HTML pages ok but will not execute JSP code. The browser just displays them on the screen as text or only executes the HTML part. I get the green up arrow. I haven't tried servlets yet. I'm sure it's something I've overlooked. Any suggestions. Thanks, Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with IIS Win2K + Tomcat
isapi_redirector is what you want. You can get it from the tomcat 3.3 distribution Here are possible problems (use the ajp connector docs for IIS as reference) http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html (bottom half of page) Check your registry entries, typos can be a problem of course, but probably not the problem since you have a green arrow in IIS. Check the uriworkermap.properties file, you need something like: /examples/servlet/*=$(default.worker) /examples/*.jsp=$(default.worker) Also, can you view the examples on port 8080, i.e. not going through IIS? If you can't do that, then it they obviously won't work through IIS and your problem is elsewhere. -Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 3:21 PM To: Tomcat Users List Subject: RE: Problem with IIS Win2K + Tomcat You mentioned mod_jk. I thought that was only for use with an Apache web server. If that's not the case then that's my problem. I don't have one. Thanks, Paul -- 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: Tomcato4.0.4 and included jsp compilation problem
There are 2 kinds of includes, one is compile time, one is runtime. If you're using a compile time include, i.e. %@ include file=include.jsp% then you need to update the file that is calling the include. For example, 'touch file_that_includes_something.jsp'. This is not a bug. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 10:31 AM To: Tomcat Users List Subject: Tomcato4.0.4 and included jsp compilation problem Hi, I m using tomcat4.0.4 , i found out today that when i modify the included jsp , tomcat does not recompile it. i.e. I have suppose a jsp called test.jsp and i include a jsp called test1.jsp. If for some reason i modify test1.jsp and dont modify test.jsp. tomcat does not recompile test.jsp so it is as if i am using old test1.jsp, but if i modify test.jsp (just add some space to make it look new) it works, so is this the correct way of working?? how does other app server behave, or is this a bug, or need to do some settings??? Ashish __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat does not pick the modified servlet
In %CATALINA_HOME%/conf/server.xml make sure that reloadable=true is in the Context / element for the apps that need to reload modified servlets. reloadable=false will give better performance in a production environment because Tomcat does not have to check for a modified servlet on every request. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 1:08 PM To: Tomcat Users List Subject: Re: Tomcat does not pick the modified servlet Hi Nishant, Same with me,if i use JRun every thing works fine, i tried a lot of forums but did not got any answere about it. Have 2 find a way so that tomcat recognise the new servlet with out restarting Ashish --- [EMAIL PROTECTED] wrote: Hello Ashish I have the same problem. I have created a SOAP client servlet. When I try to run for first time everything is at place. But when I try to change and recompile my servlet it doesnot work. It picks up the earlier servlet code from somewhere. When I tried to use the same thing with IBM Websphere it wokred great. Everytime I compile it it automatically looks for the newly comiled servlet. Still looking for the answerkeep working lets see some gurus can answer it... -- -- Nishant Awasthi Corporate Systems Development Progressive Insurance Ashish Kulkarni kulkarni_ash13@To: Tomcat Users List yahoo.com [EMAIL PROTECTED] cc: (bcc: Nishant Awasthi) 07/25/2002 11:49Subject: Tomcat does not pick the modified AM servlet Please respond to Tomcat Users List Hi, I am using tomcat4.0.4 and i have a problem when i modify the servlet and put it in tomcat. The problem is tomcat does not pick up the new servlet code, so i have to go to the manager and restart the application. Is there a way tomcat will pick automatically new servlet code with out restarting. I have added the servlets in web.xml file Ashish __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.03 Classpath
I had the same thing(I think). It was something like can't find class org.apache.catalina.PrintWriter or org.apache.catalina.Vector solution was to import java.io.PrintWriter I was going from 3.2.4 to 4.0.4 Hope this helps, Dave -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:23 PM To: Tomcat Users List Subject: RE: Tomcat 4.03 Classpath what version was you on before ?? -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:18 PM To: Tomcat Users List Subject: Tomcat 4.03 Classpath Hi; I just upgraded to Tomcat 4.03. I've got jsps running.except for when they call java classes. I get a 500 error complaining about not being able to find the classes. My CLASSPATH echos fine.(its pointing to classes not src ) I checked through the docs looking for changes in how 4.03 handles java classes versus how 3.02 does. I couldn't find anything. Can anyone point me to a FAQ that might handle this issue? Also where can I find startup options to use with startup.sh ? Thanks in advance 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]
RE: Tomcat 4.03 Classpath
Optionally you can try to import YourClass if you don't want it inside a package, but you're probably better off putting the class into a package. Dave -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:51 PM To: Tomcat Users List Subject: RE: Tomcat 4.03 Classpath Tomcat 4.0 and above strictly enforces the Servlet 2.2 WebApp directory structure (3.0 + did not). Inside your webapp folder you put JSP's,html etc. You also need a folder called WEB-INF (spelling and case important). Inside here are two folders classes and lib, and your web.xml if you have one. You put your class files in the classes folder (in full package structure). And I strongly suggest you use a package. Tomcat does not do well with the default packge. Ron -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:40 PM To: Tomcat Users List Subject: Re: Tomcat 4.03 Classpath Tomcat 3.2 Ron Day wrote: what version was you on before ?? -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:18 PM To: Tomcat Users List Subject: Tomcat 4.03 Classpath Hi; I just upgraded to Tomcat 4.03. I've got jsps running.except for when they call java classes. I get a 500 error complaining about not being able to find the classes. My CLASSPATH echos fine.(its pointing to classes not src ) I checked through the docs looking for changes in how 4.03 handles java classes versus how 3.02 does. I couldn't find anything. Can anyone point me to a FAQ that might handle this issue? Also where can I find startup options to use with startup.sh ? Thanks in advance 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] -- 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.03 Classpath
Yeah, but you would be importing my.package.MyClass instead of MyClass -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:56 PM To: Tomcat Users List Subject: RE: Tomcat 4.03 Classpath you need to import either way... -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:52 PM To: Tomcat Users List Subject: RE: Tomcat 4.03 Classpath Optionally you can try to import YourClass if you don't want it inside a package, but you're probably better off putting the class into a package. Dave -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:51 PM To: Tomcat Users List Subject: RE: Tomcat 4.03 Classpath Tomcat 4.0 and above strictly enforces the Servlet 2.2 WebApp directory structure (3.0 + did not). Inside your webapp folder you put JSP's,html etc. You also need a folder called WEB-INF (spelling and case important). Inside here are two folders classes and lib, and your web.xml if you have one. You put your class files in the classes folder (in full package structure). And I strongly suggest you use a package. Tomcat does not do well with the default packge. Ron -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:40 PM To: Tomcat Users List Subject: Re: Tomcat 4.03 Classpath Tomcat 3.2 Ron Day wrote: what version was you on before ?? -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 4:18 PM To: Tomcat Users List Subject: Tomcat 4.03 Classpath Hi; I just upgraded to Tomcat 4.03. I've got jsps running.except for when they call java classes. I get a 500 error complaining about not being able to find the classes. My CLASSPATH echos fine.(its pointing to classes not src ) I checked through the docs looking for changes in how 4.03 handles java classes versus how 3.02 does. I couldn't find anything. Can anyone point me to a FAQ that might handle this issue? Also where can I find startup options to use with startup.sh ? Thanks in advance 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: determining URL selected prior to redirection for j_security_check?
Yeah, there's a lot of ways to do that. do something like: if (!loggedIn) { response.sendRedirect(login.jsp?redirect= + request.getRequestURI()); return; } then on the login form: input type=hidden name=redirect value=%= request.getParameter(redirect)% or form action=login_act.jsp?redirect=%= request.getParameter(redirect) % -Original Message- From: Stadter, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 4:55 PM To: [EMAIL PROTECTED] Subject: determining URL selected prior to redirection for j_security_check? Hi, My index.html page contains three links, two of which require authorization prior to access. I'm using form based authentication, and would like to customize the login.jsp page (which contains the j_security_check form) to provide an indication of the original link that was selected from index.html. Is there a way to determine the original link that was selected prior to the container redirecting to login.jsp? I'm using tomcat 4.0.3. Thanks for any insight. Jim -- 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: determining URL selected prior to redirection for j_security_check?
err... my bad, this is not relevant -Original Message- From: Durham David Cntr 805CSS/SCBE Sent: Wednesday, July 24, 2002 5:09 PM To: Tomcat Users List Subject: RE: determining URL selected prior to redirection for j_security_check? Yeah, there's a lot of ways to do that. do something like: if (!loggedIn) { response.sendRedirect(login.jsp?redirect= + request.getRequestURI()); return; } then on the login form: input type=hidden name=redirect value=%= request.getParameter(redirect)% or form action=login_act.jsp?redirect=%= request.getParameter(redirect) % -Original Message- From: Stadter, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 4:55 PM To: [EMAIL PROTECTED] Subject: determining URL selected prior to redirection for j_security_check? Hi, My index.html page contains three links, two of which require authorization prior to access. I'm using form based authentication, and would like to customize the login.jsp page (which contains the j_security_check form) to provide an indication of the original link that was selected from index.html. Is there a way to determine the original link that was selected prior to the container redirecting to login.jsp? I'm using tomcat 4.0.3. Thanks for any insight. Jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: determining URL selected prior to redirection for j_security_check?
Yeah, I think you might be better off with implementing your own security mechanisms for this. Although, maybe request.getHeader(Referer) has something in it? Interesting to note that this differs from javascripts document.referrer which has 4 r's. -Original Message- From: Stadter, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 5:13 PM To: Tomcat Users List Subject: RE: determining URL selected prior to redirection for j_security_check? Not relevant because of the automatic redirection by Tomcat, I assume? Thanks for taking a look though. Jim -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 3:10 PM To: Tomcat Users List Subject: RE: determining URL selected prior to redirection for j_security_check? err... my bad, this is not relevant -Original Message- From: Durham David Cntr 805CSS/SCBE Sent: Wednesday, July 24, 2002 5:09 PM To: Tomcat Users List Subject: RE: determining URL selected prior to redirection for j_security_check? Yeah, there's a lot of ways to do that. do something like: if (!loggedIn) { response.sendRedirect(login.jsp?redirect= + request.getRequestURI()); return; } then on the login form: input type=hidden name=redirect value=%= request.getParameter(redirect)% or form action=login_act.jsp?redirect=%= request.getParameter(redirect) % -Original Message- From: Stadter, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 4:55 PM To: [EMAIL PROTECTED] Subject: determining URL selected prior to redirection for j_security_check? Hi, My index.html page contains three links, two of which require authorization prior to access. I'm using form based authentication, and would like to customize the login.jsp page (which contains the j_security_check form) to provide an indication of the original link that was selected from index.html. Is there a way to determine the original link that was selected prior to the container redirecting to login.jsp? I'm using tomcat 4.0.3. Thanks for any insight. Jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat and ASP
There's a unix compatible server (http://www.chilisoft.com/) for running asp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 10:25 AM To: Tomcat Users List Subject: Re: Tomcat and ASP ASP files only run using a server that supports Active Server Pages. This include Microsoft Internet Information Server and for Windows 95/98 Microsoft Personal Web Server Nishant Awasthi Corporate Systems Development Progressive Insurance Henrik henrikslarsen@hoTo: Tomcat Users List tmail.com [EMAIL PROTECTED] cc: (bcc: Nishant Awasthi) 07/23/2002 11:28 Subject: Re: Tomcat and ASP AM Please respond to Tomcat Users List Will PWS do? - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, July 23, 2002 5:17 PM Subject: Re: Tomcat and ASP You need to use IIS 5.0 to run ASP pages... -- -- Nishant Awasthi Corporate Systems Development Progressive Insurance Henrik henrikslarsen@hoTo: [EMAIL PROTECTED] tmail.com cc: (bcc: Nishant Awasthi) Subject: Tomcat and ASP 07/23/2002 11:18 AM Please respond to Tomcat Users List Do I need another server program to run ASP scripts, or can Tomcat do it? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Is the a way to recompile classes....
reloadable=true handles classes in /web-inf/classes and jsp's I think. It does not cover jars, so if your uploading a jar to web-inf/lib, then yes, you have to restart tomcat. Does this help? Dave -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 8:51 AM To: 'Tomcat Users List' Subject: RE: Is the a way to recompile classes My contexts are set up like this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context Context path=/ docBase=C:/src/java/jsp debug=0 reloadable=true /Context But if I make a code change, and have to upload a newly compiled class to my site, the changes dont take affect unless I stop and re-start Tomcat. Any suggestions??? -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 9:38 AM To: 'Tomcat Users List' Subject: RE: Is the a way to recompile classes it's in the $TOMCAT_HOME/conf/server.xml file -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 8:44 AM To: 'Tomcat Users List' Subject: RE: Is the a way to recompile classes What file can I find this in??? -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 9:36 AM To: 'Tomcat Users List' Subject: RE: Is the a way to recompile classes add reloadable=true to the context configuration for your webapp -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 8:35 AM To: '[EMAIL PROTECTED]' Subject: Q: Is the a way to recompile classes Im running Tomcat 3.2.4, is there a way to load recompiled classes without having to re-start Tomcat?? Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate .htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- 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] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the
RE: Tomcat Caching after uploading new files
Executing .java files?? Do you have reloadable=true in the Context / element for the app? -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 1:26 PM To: [EMAIL PROTECTED] Subject: Tomcat Caching after uploading new files Hi Everyone, I am desperately stuck with a problem and the developers are ripping me apart for it :) The issue is that Tomcat seems to keep a cache of all the of the .java files which have been previously executed in the c:\tomcat4\work\localhost\ directory. So everytime a change is made I have to manually go into the directory and delete all the files. I know this probably doesn't seem like much a problem, but we are still in the production stage of an application, and the developers are getting annoyed at having to delete it everytime they upload new code. This problem started occuring recently. Is it a configuration issue? If it is where can I look? Im currently running Tomcat 4.0.3 On Windows 2000 Thank you!! __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to close a response?
Need more detail about your problem. Are you having a problem with JSP? -Original Message- From: Jenya Strokin [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 9:17 AM To: [EMAIL PROTECTED] Subject: How to close a response? Hi, I need to close the response completely. In some case I need to avoid any process write to response output. Using response.getOutputStream().close(); response.getWriter().close(); response.reset(); do not help. Thanks for any suggestions. Jenya --- Introducing NetZero Long Distance Unlimited Long Distance only $29.95/ month! Sign Up Today! www.netzerolongdistance.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to close a response?
Well not sure what to tell you about your particular issue, but I experienced a very similar problem (double page, or at least partial double page). In a JSP page something like this: %@ include file=header.jsp % % // check login if (!user.loggedIn()) { response.sendRedirect(login.jsp); return; } % The problem is that the response content is sent along with the response headers. I think this is appropriate, but produces undesirable results in IE (double page). The solution was to be sure that any redirects were sent and the method returned before any HTML was added to the response, like this: % // check login do this before sending any HTML to response if (!user.loggedIn()) { response.sendRedirect(login.jsp); return; } % !-- now HTML is fine -- %@ include file=header.jsp % I'm not sure but I think that a call to reponse.close() will flush anything left in the buffer then close. The fact that double clicking a link produces the same result is strange (and I've never seen that), because you would think that the first response never gets a chance to do anything, or just gets ignored by the browser Hope this helps Dave -Original Message- From: Jenya Strokin [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 9:44 AM To: Tomcat Users List Subject: RE: How to close a response? I'm using servlet. But if you know way how to do this from JSP, please share it.)) This is my method wich called from doGet and doPost: public void doGetPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { /*-- If user clicks link twice, browser will get the same screen two times mixed. So, I need synchronized processes. But after that browser will get the same screen one after another. So I need close output after I process first request, and second request can not write to output string. */ synchronized(request){ abstractBean.setSharedSession(sharedSessionBean); abstractBean.setRequest(request); abstractBean.setResponse(response); abstractBean.setServlet(this); abstractBean.process(); abstractBean.footerProcess(); //-- I'm trying to close output here, but second process write its data anyway // out.close(); response.getWriter().close(); } } If this information is not enough, I'll provide more. Thanks for any help. -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 10:18 AM To: Tomcat Users List Subject: RE: How to close a response? Need more detail about your problem. Are you having a problem with JSP? -Original Message- From: Jenya Strokin [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 9:17 AM To: [EMAIL PROTECTED] Subject: How to close a response? Hi, I need to close the response completely. In some case I need to avoid any process write to response output. Using response.getOutputStream().close(); response.getWriter().close(); response.reset(); do not help. Thanks for any suggestions. Jenya --- Introducing NetZero Long Distance Unlimited Long Distance only $29.95/ month! Sign Up Today! www.netzerolongdistance.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Introducing NetZero Long Distance Unlimited Long Distance only $29.95/ month! Sign Up Today! www.netzerolongdistance.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jsp client to server text file uploads
Here's another way, not open source but still free. www.jspsmart.com -- jspSmartUpload -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:35 AM To: Tomcat Users List Subject: Re: jsp client to server text file uploads http://jakarta.apache.org/struts Dr. Edward R. Jones wrote: Hi, The jsp code FileInputStream fiStream = new FileInputStream(path); causes the jsp server (tomcat 4.0.2) to look for the file on the server rather than on the client machine. Does anyone have a suggestion or example of how to get a text file uploaded to the server for processing using jsp/servlets? Thanks - edwardJones -- 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+jdbc
This is not a JDBC or Tomcat problem. Your jsp is not compiling, probably because IEEMBeans.DBABean is not the classpath for your app. Is this class in web-inf/lib or web-inf/classes? -Original Message- From: Mario Henley Becerril Geldis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: tomcat+jdbc Hi... I have tomcat with apache 1.3.26 and mod_jk, i run fine jsp examples, but when i try run jsp with jdbc connection to oracle database tomcat send a error... my profile is it: JAVA_HOME=/usr/local/source/oraInventory/jdk export JAVA_HOME JUNIT_HOME=/usr/java/juni export JUNIT_HOME export CLASSPATH=$JUNIT_HOME/junit.jar:/usr/local/tomcat/server/lib/classes111.j ar the error is it: org.apache.jasper.JasperException: No se puede compilar la clase para JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:481) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:182) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) . . . . . . . An error occurred at line: 48 in the jsp file: /jsps/tdfdf94_ags.jsp Generated servlet error: /usr/local/tomcat/work/Standalone/localhost/examples/jsps/tdfdf94_0005fags$jsp.java:175: cannot resolve symbol symbol : class DBABean location: package IEEMBeans DBABeanAux = (IEEMBeans.DBABean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), IEEMBeans.DBABean); ^ 15 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:311) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:322) any ideas..??? -- 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: JDBC OCI driver + Tomcat 4.04
Do you have to install the oracle tnsclient software or something like that to use OCI? -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 9:31 AM To: [EMAIL PROTECTED] Subject: Re: JDBC OCI driver + Tomcat 4.04 The OCI driver is *at least* 10X faster than the thin driver. It is worth getting it going. ;-) I do not have my ora docs handy, what is a ORA-12560 error? Any hints there? Send some simple sample code, that will help too. Larry [EMAIL PROTECTED] 07/11/02 07:46 AM I know this doesn't solve your problem, but is there a compelling reason to use OCI driver as compared to the type 4 driver? -- 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: JDBC Drivers
http://mmmysql.sourceforge.net/ -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 10:52 AM To: [EMAIL PROTECTED] Subject: JDBC Drivers Hi guys and gals, Could someone give me advice on the best (and free if possible) sql server drivers to use in my tomcat servlets? The sql server I have available is a MySql server or a MS SQL Server should I need it. Thanks, SS -- 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: PATH issue
How did you install the service? Chances are you need to add that to your service installation. -Original Message- From: Andrew Conrad [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 11:36 AM To: 'Tomcat Users List' Subject: RE: PATH issue In Windows NT, just go into your environmental settings and add your path to the PATH statement. Right-click My Computer-properties-Advanced-Environmental Variables (Windows XP specific directions, but it's in a similar place on NT) - Andrew -Original Message- From: Pearsall, Kyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 1:32 PM To: Tomcat (E-mail) Subject: PATH issue I have set up Tomcat with an addition to the PATH in startup.bat (set PATH=..\webapps\TestServlet\dll;%PATH%). When Tomcat starts from this batch file, the servlet can access files in this directory. However, when Tomcat runs as a service, the servlet can't access the files in this directory. Tomcat produces javax.servlet.ServletException and java.lang.UnsatisfiedLinkError messages. It seems the NT Tomcat service bypasses startup.bat. How can I set up the NT service to load the PATH statement above? Is this possible? Considering the nature of the product, I can't update the path manually in the Windows environment variables (although this does work). And I would like to keep the files inside the servlet, and not in the Tomcat\bin directory (I tried this and it works as well). What can I do? Thank you in advance for your help. Kyle Pearsall -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.0 and IIS Socket Exception
SHouldn't you be using the AJP13 connector? -Original Message- From: Diana McLean [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: tomcat 4.0 and IIS Socket Exception The green arrow is there but I can not access any servlet or JSP as follows: http://localhost/tests/Test.jsp http://localhost/tests/servlet/Test In the Apache log file: 2002-07-11 10:28:15 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590) at java.lang.Thread.run(Thread.java:536) Please help! Thanks, Diana -- 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.0 and IIS Socket Exception
that's the apache log or IIS log? -Original Message- From: Diana McLean [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: tomcat 4.0 and IIS Socket Exception The green arrow is there but I can not access any servlet or JSP as follows: http://localhost/tests/Test.jsp http://localhost/tests/servlet/Test In the Apache log file: 2002-07-11 10:28:15 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590) at java.lang.Thread.run(Thread.java:536) Please help! Thanks, Diana -- 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.0 and IIS Socket Exception
Did you try using the AJP13 connector as described here: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html -Original Message- From: Diana McLean [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:20 PM To: Tomcat Users List Subject: RE: tomcat 4.0 and IIS Socket Exception That's the Apache log. There is nothing in the iis-redirector.log Here are the uriworkermap.properties: /*.jsp=$(default.worker) /servlet=$(default.worker) /servlet/*=$(default.worker) /tests=$(default.worker) /tests/*=$(default.worker) Thanks again, diana -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:53 PM To: Tomcat Users List Subject: RE: tomcat 4.0 and IIS Socket Exception that's the apache log or IIS log? -Original Message- From: Diana McLean [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: tomcat 4.0 and IIS Socket Exception The green arrow is there but I can not access any servlet or JSP as follows: http://localhost/tests/Test.jsp http://localhost/tests/servlet/Test In the Apache log file: 2002-07-11 10:28:15 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590) at java.lang.Thread.run(Thread.java:536) Please help! Thanks, Diana -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: newbie
Did you read http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html -Original Message- From: Brian Wolf [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:15 PM To: Tomcat Users List Subject: newbie Hi, Was wondering about classpath's for servlets?Location: /examples/servlet/lsapack Internal Servlet Error: java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1581 The other thing I don't understand is there is no directory /examples/servlet on my machine -Brian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.0 and IIS Socket Exception
Also, I would ignore the warp error, I get the same thing (didn't notice until you mentioned it), but I'm not using WARP, I'm using AJP. WARP is for apache only, is that correct?? Anyway the AJP connector works great for me, exactly as described in the ajp config reference. -Original Message- From: Durham David Cntr 805CSS/SCBE Sent: Thursday, July 11, 2002 1:36 PM To: Tomcat Users List Subject: RE: tomcat 4.0 and IIS Socket Exception Did you try using the AJP13 connector as described here: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html -Original Message- From: Diana McLean [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:20 PM To: Tomcat Users List Subject: RE: tomcat 4.0 and IIS Socket Exception That's the Apache log. There is nothing in the iis-redirector.log Here are the uriworkermap.properties: /*.jsp=$(default.worker) /servlet=$(default.worker) /servlet/*=$(default.worker) /tests=$(default.worker) /tests/*=$(default.worker) Thanks again, diana -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:53 PM To: Tomcat Users List Subject: RE: tomcat 4.0 and IIS Socket Exception that's the apache log or IIS log? -Original Message- From: Diana McLean [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: tomcat 4.0 and IIS Socket Exception The green arrow is there but I can not access any servlet or JSP as follows: http://localhost/tests/Test.jsp http://localhost/tests/servlet/Test In the Apache log file: 2002-07-11 10:28:15 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590) at java.lang.Thread.run(Thread.java:536) Please help! Thanks, Diana -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot use bean from jsp, but servlet ok. I'm dying!
Seems to me that you should give it an id that is different from the class name, FormBean.getUsername() could be confused for a static method call when it is not. -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:04 PM To: Tomcat Users List Subject: RE: Cannot use bean from jsp, but servlet ok. I'm dying! Seems like you are mixing jsp action tags and java class instances. Use jsp:usebean with jsp getpropery or Use import in @...% tag and create an instance -Original Message- From: eric [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 12:18 AM To: [EMAIL PROTECTED] Subject: Cannot use bean from jsp, but servlet ok. I'm dying! Help. Absolutely stuck. Tomcat cannot find my bean classes no matter what when called from jsp pages. From within servlets no problem. Here is the jsp --- %@ include file=pub_hdr.html % jsp:usebean id=FormBean class=beans.FormBean scope=request / form input type=text name=userName value=% =FormBean.getUserName() % %= FormBean.getErrorMsg(userName) % /form %@ include file=pub_ftr.html % Here is the bean package beans; import java.util.*; import java.io.Serializable; public class FormBean implements Serializable { public String userName; public FormBean() {} public String getUserName() { return this.userName; } public void setUserName(String uname) { this.userName = uname; } } NO MATTER WHAT, as soon as I access the jsp page. This error comes up. Generated servlet error: C:\jwsdp-1_0\work\Standard Engine\localhost\messagesmith\en\users$jsp.java:126: Undefined variable or class name: FormBean out.print( FormBean.getUserName() ); It certainly seems that TC cannot find the FormBean class which lives here: C:\jwsdp-1_0\webapps\project\WEB-INF\classes\beans. I've changed that scope attribute to application or page, but it doesn't change. With TC3.x I had to do some configuration in the conf/server.xml file, but this doesn't seem necessary w/ TC4. All the same I've adding the following context to the server.xml, but it doesn't help. Context path=/project docBase=webapps/project debug=0 reloadable=true / Anyone have any ideas? It is killing me. Again, I can instantiate the FormBean class from within servlets, but not from JSP. Env: Win2k Server, jdk1.4.0_01, TC4.0 Classpath=.;C:\jwsdp-1_0\common\lib\servlet.jar;C:\jwsdp-1_0\webapps\project \WEB-INF\classes;C:\jfreechart-0.9.1\jars\jcommon-0.6.3.jar;C:\jfreechart-0. 9.1\jars\jfreechart-0.9.1.jar; TOMCAT_HOME=C:\jwsdp-1_0 CATALINA_HOME=C:\jwsdp-1_0 JAVA_HOME=C:\j2sdk1.4.0_01 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot use bean from jsp, but servlet ok. I'm dying!
That's not nessecary when referencing the package and the class (class=beans.FormBean) will work regardless of imports as long as it's in the classpath. -Original Message- From: Jackson, Stephen [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:15 PM To: 'Tomcat Users List' Subject: RE: Cannot use bean from jsp, but servlet ok. I'm dying! I think I saw a reply mention you don't have an import statement in your jsp to locate your class %@page import=beans.FormBean% -Original Message- From: eric [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:18 AM To: [EMAIL PROTECTED] Subject: Cannot use bean from jsp, but servlet ok. I'm dying! Help. Absolutely stuck. Tomcat cannot find my bean classes no matter what when called from jsp pages. From within servlets no problem. Here is the jsp --- %@ include file=pub_hdr.html % jsp:usebean id=FormBean class=beans.FormBean scope=request / form input type=text name=userName value=% =FormBean.getUserName() % %= FormBean.getErrorMsg(userName) % /form %@ include file=pub_ftr.html % Here is the bean package beans; import java.util.*; import java.io.Serializable; public class FormBean implements Serializable { public String userName; public FormBean() {} public String getUserName() { return this.userName; } public void setUserName(String uname) { this.userName = uname; } } NO MATTER WHAT, as soon as I access the jsp page. This error comes up. Generated servlet error: C:\jwsdp-1_0\work\Standard Engine\localhost\messagesmith\en\users$jsp.java:126: Undefined variable or class name: FormBean out.print( FormBean.getUserName() ); It certainly seems that TC cannot find the FormBean class which lives here: C:\jwsdp-1_0\webapps\project\WEB-INF\classes\beans. I've changed that scope attribute to application or page, but it doesn't change. With TC3.x I had to do some configuration in the conf/server.xml file, but this doesn't seem necessary w/ TC4. All the same I've adding the following context to the server.xml, but it doesn't help. Context path=/project docBase=webapps/project debug=0 reloadable=true / Anyone have any ideas? It is killing me. Again, I can instantiate the FormBean class from within servlets, but not from JSP. Env: Win2k Server, jdk1.4.0_01, TC4.0 Classpath=.;C:\jwsdp-1_0\common\lib\servlet.jar;C:\jwsdp-1_0\webapps\project \WEB-INF\classes;C:\jfreechart-0.9.1\jars\jcommon-0.6.3.jar;C:\jfreechart-0. 9.1\jars\jfreechart-0.9.1.jar; TOMCAT_HOME=C:\jwsdp-1_0 CATALINA_HOME=C:\jwsdp-1_0 JAVA_HOME=C:\j2sdk1.4.0_01 -- 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]
getRealPath problem
Anyone know why getServletContext().getRealPath(/myApp) would return something like 'c:\webapps\myApp\myApp'? -- note the extra myApp at the end Thanks Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Context lifecycle Listener configuration
Can anyone tell me the syntax for adding an on-start listener to a context in tomcat 4 The manual doesn't have much on it other than Listener className=blah.blah .../ What's the ... Thanks, Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Context lifecycle Listener configuration
How do you know if it's on start on destroy? Methods in the interface? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:32 PM To: Tomcat Users List Subject: RE: Context lifecycle Listener configuration Howdy, There is no Just create a class that implements the lifecycle listener interface, and put listener className=your.class.name / in the deployment descriptors. C'est tout. Yoav Shapira Millennium ChemInformatics -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 3:21 PM To: [EMAIL PROTECTED] Subject: Context lifecycle Listener configuration Can anyone tell me the syntax for adding an on-start listener to a context in tomcat 4 The manual doesn't have much on it other than Listener className=blah.blah .../ What's the ... Thanks, Dave -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Context lifecycle Listener configuration
No, I got it thanks. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:40 PM To: Tomcat Users List Subject: RE: Context lifecycle Listener configuration Howdy, It's fairly obvious ;) contextInitialized is for start, contextDestroyed is on destroy ;) Are you missing the JavaDoc for some reason? Yoav Shapira Millennium ChemInformatics -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 3:35 PM To: Tomcat Users List Subject: RE: Context lifecycle Listener configuration How do you know if it's on start on destroy? Methods in the interface? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:32 PM To: Tomcat Users List Subject: RE: Context lifecycle Listener configuration Howdy, There is no Just create a class that implements the lifecycle listener interface, and put listener className=your.class.name / in the deployment descriptors. C'est tout. Yoav Shapira Millennium ChemInformatics -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 3:21 PM To: [EMAIL PROTECTED] Subject: Context lifecycle Listener configuration Can anyone tell me the syntax for adding an on-start listener to a context in tomcat 4 The manual doesn't have much on it other than Listener className=blah.blah .../ What's the ... Thanks, Dave -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ISAPI Redirector for Tomcat 4
I'm looking for a binary of the ISAPI_Redirector.dll for Tomcat 4.0.4, I did not see it with jakarta-tomcat-4.0.4.zip, I did see it in with the tomcat 3.3 binaries. Is that the redirector that I need? Also, I didn't see any documentation on the site for how to set this up with 4.0.4, is it the same as the setup for tomcat 3.3? Thanks for any help. Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ISAPI and Tomcat 4
What kind of connector do I need to setup for the isapi redirector, and can anyone show me an example configuration? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where to place .jars
put in %CATALINA_HOME%\common\lib or WEB-INF\lib of your app -Original Message- From: Makota, Tarik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 4:46 PM To: '[EMAIL PROTECTED]' Subject: Where to place .jars Hi, I'm runing Tomcat 4.0.4 and have a problem once I place 3-rd party .jars into CLASSLOADER path. These are Sybase EAServer jars. It appears that these jars contain the same classes as found in tomcat. So depending on where I place these jars i get varios messages xmlParser, null object etc. I tried all of the directories CLASSLOADER takes in consideration but no luck. WEB-INF/classes /WEB-INF/lib/*.jar Bootstrap classes of JVM System class loader classses $CATALINA_HOME/common/classes $CATALINA_HOME/common/lib/*.jar $CATALINA_HOME/classes $CATALINA_HOME/lib/*.jar Any suggestions? Thanks Tarik -- 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: Where to place .jars
Sorry didn't read the whole thing. Unjar the 3rd party stuff and remove the offending packages/classes. -Original Message- From: Durham David Cntr 805CSS/SCBE Sent: Tuesday, July 09, 2002 4:48 PM To: Tomcat Users List Subject: RE: Where to place .jars put in %CATALINA_HOME%\common\lib or WEB-INF\lib of your app -Original Message- From: Makota, Tarik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 4:46 PM To: '[EMAIL PROTECTED]' Subject: Where to place .jars Hi, I'm runing Tomcat 4.0.4 and have a problem once I place 3-rd party .jars into CLASSLOADER path. These are Sybase EAServer jars. It appears that these jars contain the same classes as found in tomcat. So depending on where I place these jars i get varios messages xmlParser, null object etc. I tried all of the directories CLASSLOADER takes in consideration but no luck. WEB-INF/classes /WEB-INF/lib/*.jar Bootstrap classes of JVM System class loader classses $CATALINA_HOME/common/classes $CATALINA_HOME/common/lib/*.jar $CATALINA_HOME/classes $CATALINA_HOME/lib/*.jar Any suggestions? Thanks Tarik -- 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]
uploading non-ascii files
I have a serlvet that accepts a multipart form submission. Inside the request is a file that is to be decoded and stored on the server. My problem is that it doesn't work with binary (non-ascii) data but does work with ascii data. I'm using JSPSmartUpload, which works fine on IIS, but with Netscape Suite Spot, it does not. I'm using tomcat3.2.3 Is this a problem with Tomcat or Netscape Suite Spot? Anyone got any ideas, suggestions, experience with this before? Been working this issue for several days, searched the web, found nothing particularly useful. I did find some bug reports searching the tomcat-dev list. Apparently this was a bug, awhile back but is fixed now. Does it still not work with Suite Spot? -Dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Repost: Can't upload binaries with JSPSmartUpload, Tomcat and Netscape Server
Can upload text files, binary files fail and stderr.log says: IOException: Connection aborted by peer: socket write error I don't know if that means that the connection to the client's browser failed or possibly the connection to Netscape Server failed. Like I said, this only happens on non-ascii files. jpg's, zip's, etc. Searching through this mailing list archive indicates there was a bug matching this exact problem with mod_webapp?? and a fix posted. My question is: Will upgrading to a newer version of Tomcat fix this problem? I'm currently using 3.2.3 and considering 3.3. That's brings the next question which is will the nsapi.dll I currently have (got it from the 3.1 tree) work with newer versions of Tomcat. Previous post was: I'm locked into Netscape Server for the moment. I can upload text-files fine with jspsmartupload, but when I try to upload binaries it fails. Exact same code works on Tomcat/IIS server, but does not work on Netscape Server. Thought it might have something to do with a proxy, but it didn't. Does Netscape Server block binary file uploads or have the ability to do so? Not much on the web about this. Wondering if anyone else has run into this or something similar. -Dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Can't upload binaries with JSPSmartUpload, Tomcat and Netscape Server
I'm locked into Netscape Server for the moment. I can upload text-files fine with jspsmartupload, but when I try to upload binaries it fails. Exact same code works on Tomcat/IIS server, but does not work on Netscape Server. Thought it might have something to do with a proxy, but it didn't. Does Netscape Server block binary file uploads or have the ability to do so? Not much on the web about this. Wondering if anyone else has run into this or something similar. -Dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: AccessControlException with Applet
I think its the applets security settings you should be looking at. You should know that applets are not by default allowed to make socket connections to computers other than the server the applet came from. Hope this helps, Dave -Original Message- From: Olivier BILLIARD [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:07 AM To: [EMAIL PROTECTED] Subject: AccessControlException with Applet Hi, I tried to established a communication between an applet and another server by RMI. I also did it with some JSPs and it work fine. But with the applet i have a problem. I can do a lookup to get the interface but when i try to call a method i get a java.security.AccessControlException: access denied (java.net.SocketPermission XXX:2113 connect, resolve) I immediatly thinking about the policy and the catalina.policy file. First i don't think that i use the security of Tomcat (because when i want to put -security it refuses to start) but i modified the file to set all permissions but it still refuse to work. I don't see where is the probleme, i need some help. NB. I already try to remove the spaces of the directory of Tomcat but i didnt solve my probleme Thx in advance Olivier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
class cast exception
I receive a class cast exception pulling something out of a session after I recompile a servlet. The object I'm pulling out of the session is of a class that has not changed. i.e. I changed a servlet not the class of an object in the session. Restarting Tomcat fixes the problem. This seems like a bug to me, has anyone else noticed this behavior? David Durham Programmer Analyst, NCI Information Systems 805th AMC / SCBE (618) 256 - 5264 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: class cast exception
The scenario is this: JSP page creates a an object and puts it in a session. A servlet handles the action of a form and retrieves the object from the session. The class of the session object in the session has not changed and is located in the web-inf directory. If I recompile the servlet, it will give me a class cast exception. Sometimes if I compile an unrelated class. It will still throw a ClassCastException forcing me to restart Tomcat everytime I recompile. Seems like a bug, or maybe something that could be done differently to facilitate development. -Dave -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 1:55 PM To: Tomcat Users List Subject: Re: class cast exception On Wed, 12 Dec 2001, Durham David Cntr 805CSS/SCBE wrote: Date: Wed, 12 Dec 2001 13:48:19 -0600 From: Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: class cast exception I receive a class cast exception pulling something out of a session after I recompile a servlet. The object I'm pulling out of the session is of a class that has not changed. i.e. I changed a servlet not the class of an object in the session. Restarting Tomcat fixes the problem. This seems like a bug to me, has anyone else noticed this behavior? This will absolutely happen if you are using classes out of a shared library directory instead of within the webapp, or if you are somehow maintaining references to object instances created with the old class and trying to use them after the reload. David Durham Programmer Analyst, NCI Information Systems 805th AMC / SCBE (618) 256 - 5264 Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat is very slow when used with Netscape browser
It's not Tomcat that is slow, it's netscapes rendering engine. In other words, the wait is probably for netscape to figure out how to draw the page. I have seen this with large tables, or deeply nested elements. -Dave -Original Message- From: Kiran Kumar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 5:53 AM To: Tomcat Users List Subject: Tomcat is very slow when used with Netscape browser Hi, Iam using Tomcat 3.2.3 for my application.In my application iam reading the contents of a files present in directory outside the tomcat web server directory(i.e. my content is in c:\temp).The application is very fast if I browse the application using Internet Explorer.The same application takes too much of time to load if I use Netscape browser. Anybody have any idea why this is happening?Any ideas to fix this problem? Thanks, Kiran __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
work dir corruption
Having a problem with pages not loading or throwing a null pointer exception for seamingly no reason at all. However, if I delete the files from jakarta's work directory. The pages will then run properly. I'm using Tomcat-3.2.3 on Windows NT with an ISAPI redirector for IIS. The JSP application I'm working on is a slightly modified version of Jive Forums 1.2.4. I haven't had any problems like this with any other applications we are running. Anyone got any ideas or info on this one? Thanks in advance, Dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: url relative to directory path?
One idea is to make the application your root context. You will still need to use http://www.qbus.co.nz/servlet/servletName or else do the mappings. If you don't like maintaining the list, write a script to maintain it for you. Should be no problem removing and adding mappings considering this is an xml doc. David Durham -Original Message- From: Erwin Ambrosch [mailto:[EMAIL PROTECTED]] Sent: Monday, November 26, 2001 4:34 PM To: [EMAIL PROTECTED] Subject: Re: url relative to directory path? Take a look at the servlet-mapping tag of the web.xml file. With this tag you can specify how to access yopur servlet. servlet-mapping servlet-nameservletname/servlet-name url-pattern/servletname/url-pattern /servlet-mapping Erwin Antoni Unkovich wrote: Hello from downunder (New Zealand), I'm new to tomcat and java but have successfully installed Tomcat 3.3 on Windows 2000 server in conjunction with IIS and the redirector plug-in - which I have working fine. My servlet is in this directory: E:\tomcat\webapps\qbus\WEB-INF\Classes\qbus\servletname.class to access it I use this url: www.qbus.co.nz/qbus/servlet/servletname What do I need to change to access it from: www.qbus.co.nz/servletname Thanks in advance Antoni Unkovich -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Update JSP
If you want to change a JSP page, just modify the file. That's all you have to do. -Original Message- From: Claudia Sarmiento [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 7:43 PM To: '[EMAIL PROTECTED]' Subject: Update JSP Hello: I'm using tomcat 3.2.1, and i want to change a JSP page, but i don't know how i do that, i tried to compile in my app dir with the build.bat but i received the error : NoClassDefFound Error /org/apache/tools/ant/main Thanks in advance. Claudia
setting default pages for Tomcat
I'm using jakarta-tomcat-3.2.3 and I'm trying to setup an application so that index.jsp is the default page for requests to a directory, e.g. http://localhost/context/ I need this request to return http://localhost/context/index.jsp. I know that I could put an index.html file with a redirector, but i would rather not. Is there anyway to configure tomcat with default pages? David Durham Programmer Analyst, NCI Information Systems 805th AMC / SCBE (618) 256 - 5264
RE: Question about WAR and application deployment
If you use a file URL then it assumes that you are pointing to the file or directory on the machine (server). That means you have to put the application on the server first, FTP, or some other means. If you're working locally it's much easier. If you use some other url for the war parameter as in 'http://someserver/something.war' it will try to retrieve the file from that spot and install it. You would later reference your servlets, jsp from the path as in http://localhost:8181/text/index.jsp Hope this answers your question. Dave Durham -Original Message- From: Jose Escobar [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 4:40 PM To: [EMAIL PROTECTED] Subject: Question about WAR and application deployment Can anyone please tell me what is a local web application archive? Another thing after I create this: http://localhost:8181/manager/install?path=/testwar=file:///C:/Program Files/Apache Tomcat 4.0/webapps/test/ Where do I store the class files and how do I invoke them? Thanx in advance, Jose
RE: Urgent: Tomcat-3.2.3 doesn't compile pages jsp
Do you have your workers file configured properly? -Original Message- From: Mapoteca Rio [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 1:32 PM To: [EMAIL PROTECTED] Subject: Re: Urgent: Tomcat-3.2.3 doesn't compile pages jsp Thanks, Sriram. I execute o apachectl status and verify that mod_jk has been loaded. Do you have another suggestion? att. mapoteca-rio --- Sriram Narayanan [EMAIL PROTECTED] wrote: Umm.. perhaps that's apache returning the contents of the page ? I guess Tomcat's responding on port 8080, and Apache's respoding on port 80, and somehow Apache is not making use of Tomcat. Please have a look at the Apache console, and check whether the mod_jk has been loaded. Regards, Sriram 10/4/01 8:03:58 PM, Mapoteca Rio [EMAIL PROTECTED] wrote: Hi, I use Apache 1.3.12, jdk 1.3.1 , Tomcat 3.2.3 and mod_jk. When a running /host/examples/jsp/numberguess.jsp in port 8080 this aplication works and when I run in port 80, I see this page with the code. I think that tomcat doesn't compile this page. Can anyone help me? Thanks mapoteca-rio __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1