RE: site slow problems

2004-03-03 Thread Adam Buglass
Well, I would guess that it loads quickly when you're not connected if it's cached on your disk. I've had intermittent problems with tomcat running slow before and usually re-deploying does the trick. If that fails I restart tomcat. If that still doesn't work I suggest checking that any

OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Rudi Doku
Hi All, My web application is using up all connections after running for a while. It's quite obvious that I'm not using the connection pool as it was designed to be used. The only way I can get these connections back is by restarting the Tomcat. I have ojdbc14.jar in the following directories:

RE: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Ryan Lissack
Hi, You still need to create a connection cache with that datasource, so something like : OracleConnectionPoolDataSource ocpds = new OracleConnectionPoolDataSource(); ... OracleConnectionCache oracleConnectionCache = new OracleConnectionCacheImpl(ocpds); You can then call the

RE: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Maceda Marcos
Probably you are not closing all the objects. It depends on pool used and app server but is a good idea (and more portable) to close all the objects. Many pools crash if you only close (return) the connections. after using the rs object (ResultSet) -- rs.close() after using the st object

Re: RE: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Giuseppe Briotti
Hi, I'm a newbie, and I need to learn more about connection pool. Can you suggest a tutorial or a web site where I can find more information? TIA Giuseppe Hi, You still need to create a connection cache with that datasource, so something like : OracleConnectionPoolDataSource ocpds =

Where to store log files from packed WAR file apps

2004-03-03 Thread Harry Mantheakis
Hello Now that I've got my Ant build/deploy scripts working nicely, I'm tempted to start running my applications out of packed WAR files. I cannot figure out if there is a *portable* way to specify paths for where my Log4J log files should be saved. I assume I could use the 'catalina.home'

RE: RegExp issues with Tomcat 5

2004-03-03 Thread Slavik Markovich
On a side note, try using bind variables (prepared statements) in your sql statements. This way, you don't have to escape anything, gain performance and avoid sql-injection attacks. Slavik. -Original Message- From: Karl Coleman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004

addShutdownHook in Tomcat does not seem to get called on shutdown

2004-03-03 Thread Elie Medeiros
Hi, I added a shutdown hook in my app, which works fine when I run it in standalone mode, but which does not seem to get called when Tomcat stops. The shutdown hook operates according to following the following semantics:

RE: Where to store log files from packed WAR file apps

2004-03-03 Thread Yiannis Mavroukakis
Might be wrong on this but why not setup environment variables and reflect those in ant? That way you should be portable, providing those env vars exist. BTW, take off the tomcat greeting page from your machine ;) -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent:

RE: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Arnab Chakravarty
Possible problems could be: - Connnections not getting closed - The max concurrent request for tomcat had been reached (check the number of connections in server.xml) - AC -Original Message- From: Rudi Doku [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 2:34 PM To: Tomcat

RE: addShutdownHook in Tomcat does not seem to get called on shutdown

2004-03-03 Thread Peter Guyatt
Hi There, Why not use the ServletContextListener interface to do all of your cleanup stuff when the contextDestroyed method is called ? Pete -Original Message- From: Elie Medeiros [mailto:[EMAIL PROTECTED] Sent: 03 March 2004 10:44 To: [EMAIL PROTECTED] Subject: addShutdownHook

GlobalNamingResources global how?

2004-03-03 Thread David Tiselius
Could someone please help and explain to stupid me? I'm developing using ant deploying/undeploying a lot at the moment and I want to have access to my MySql connectionpool that I've registerd as a GlobalNamingResource in server.xml. The problem is that I can't access it (Cannot load JDBC

Re: RE: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Adam Buglass
You need to use the .close method for every connection. If your new connection is called conn then it's conn.close(); Check your max connections in server.xml (probably for port 8009) but if you're not closing your connections this will only delay a crash not stop it. I suggest the java.sun.com

Re: GlobalNamingResources global how?

2004-03-03 Thread David Tiselius
sorry, correction: the Resource under GlobalNamingResources is named jdbc/mysql_devdb. David Tiselius wrote: Could someone please help and explain to stupid me? I'm developing using ant deploying/undeploying a lot at the moment and I want to have access to my MySql connectionpool that I've

RE: addShutdownHook in Tomcat does not seem to get called on shutdown

2004-03-03 Thread Elie Medeiros
mainly because i was trying to write a single class for both the tomcat and standalone versions, and also to avoid making the business logic dependent on a web environment. (ie to provide fail-safeness within the business logic, rather than it being an external service that needs to be checked)

RE: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Rudi Doku
Really, I have looked in web.xml and I can't seem to locate anything that is related to database connections. The only settings related to connections that I can see are related to JDBC realms. -Original Message- From: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Sent: 03 March, 2004

RE: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Rudi Doku
Hi Ryan, Thanks for the solution. I believe it's resolved my problem. Rudi -Original Message- From: Ryan Lissack [mailto:[EMAIL PROTECTED] Sent: 03 March, 2004 10:15 AM To: 'Tomcat Users List' Subject: RE: OracleConnectionPoolDataSource creates too many connections Hi, You still

Re: re-newbie help

2004-03-03 Thread Tim Funk
You are probably using the invoker http://jakarta.apache.org/tomcat/faq/misc.html#invoker -Tim crombie wrote: hi, i'm re-introducing myself to tomcat after 2 yrs. for some reason i cannot get my servlet apps to run. i installed tomcat, got the welcome screen at port 8080 but when i put my

Re: cgi-bin

2004-03-03 Thread Tim Funk
You have the servlet declaration but you are missing the servlet mapping. See conf/web.xml for an example/ -Tim George Hester wrote: In my webapp in /WEB-INF/lib I put servlets-cgi.jar. I then added just this to the web.xml in \WEB-INF servlet servlet-namecgi/servlet-name

Active Session Count

2004-03-03 Thread Andre Jahn
Hello All, I try to get the number of active sessions for a particular application with the getActiveSessions(). My problem is, that I get allways a 0 back. What am I doing wrong? Here is the sourcecode : StandardManager manager = new StandardManager(); manager.setPathname(/app);

Need help regarding tomcat configuration to support (https)

2004-03-03 Thread saravanan.babu
Hi, We need to configure SSL on Tomcat4 server. The web service has to authenticate the client using certificate. We followed the document which has been attached along this mail. 1. If we use the admin tool to add new connecter for https (port 8443) tomcat is starting properly but the

apache2/mod_jk/tomcat4 - file download / special characters in filename

2004-03-03 Thread Andreas Hartstack
Problem: In my tomcat webapp a servlet manages a filedownload. Clicking on a file-link results in the browser's save as dialog. Using tomcat alone (port 8080) everything works fine. Special characters (like German umlaut) are shown in ISO-8859-1. Apache2/mod_jk seems to change the charset to

Problems Invalidating session

2004-03-03 Thread Rudi Doku
Hi All, I create a session when a user is authenticated using the following code: HttpSession session = request.getSession(true); I do this in a loginservlet When a user quits the application, there are redirected to a LogoutServlet which redirects them to a jsp page, logout.jsp. I have one

how to get or build a mod_jk module for Cygwin Apache ?

2004-03-03 Thread Florent
Hello, i try to configure Apache 1.3.xx from cygwin and Tomcat 5.0 from windows to work together with JK. But i have a problem getting a binary version of mod_jk. At this URL : http://apache.crihan.fr/dist/jakarta/tomcat-connectors/jk/binaries/ the freebsd directory is empty. For cygwin i

Problems Invalidating session - II

2004-03-03 Thread Rudi Doku
Following my previous posting, I think I need to set the scope of my session to application. How can I do this? Met vriendelijke groet/Kind Regards, Experian Nederland B.V. Rudi Doku Database Developer Verheeskade 25 2521 BE Den Haag phone: +31 (0) 70 440 4423 fax: +31 (0) 70 440 4040 e-mail:

Re: Problems Invalidating session - II

2004-03-03 Thread Ben Souther
I recommend reading chapters 9 13. They will help you get a good understanding of how data get's saved across state in a server side java app. http://pdf.coreservlets.com/ On Wednesday 03 March 2004 08:22 am, Rudi Doku wrote: Following my previous posting, I think I need to set the

RE: Problems running JSPs--fixed

2004-03-03 Thread Vijay Kandy
I had a bunch of jar files under $JAVA_HOME/jre/lib/ext like IBM xml4j parser etc. I removed them all, set $CLASSPATH to blank, and set $CATALINA_HOME in /etc/profile. This fixed my problem. Vijay Kandy -Original Message- From: Vijay Kandy Sent: Friday, February 27, 2004 2:11 PM To:

RE: addShutdownHook in Tomcat does not seem to get called on shutdown

2004-03-03 Thread Shapira, Yoav
Hi, You're probably removing the shutdown hook too early. Why are you removing it at all? Yoav Shapira Millennium ChemInformatics -Original Message- From: Elie Medeiros [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 5:44 AM To: [EMAIL PROTECTED] Subject: addShutdownHook in

RE: Active Session Count

2004-03-03 Thread Shapira, Yoav
Hi, I don't know, but consider using an HttpSessionListener to track this, instead of tomcat's Manager, for a portable solution. Yoav Shapira Millennium ChemInformatics -Original Message- From: Andre Jahn [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 7:32 AM To: [EMAIL

RE: Problems Invalidating session

2004-03-03 Thread Shapira, Yoav
Hi, session.invalidate(). Problem is that when I use the tomcat manager application to view the number of sessions connected to the application, there is still a session, which in my opinion, means that the session has not been invalidated. Your opinion is wrong. The session objects aren't

problem in configuring a Datasource in Tomcat 5.0

2004-03-03 Thread Marco Mistroni
Hi all, I am trying to configure a Datasource with tomcat 5.0, and I keep on getting Following exception : org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' ' for connect URL 'null', cause: java.sql.SQLException: No suitable driver at

RE: Where to store log files from packed WAR file apps

2004-03-03 Thread Shapira, Yoav
Hi, Might be wrong on this but why not setup environment variables and reflect those in ant? That way you should be portable, providing those env vars exist. BTW, take off the tomcat greeting page from your machine ;) That's one possible solution. Another is to setup a build.properties file

FW: problem in configuring a Datasource in Tomcat 5.0

2004-03-03 Thread Marco Mistroni
Hi all, Do not want to spam, I forgot to mention that I was trying to connect to a MYSQL database running on my machine I found that there was a bug in previous releases regarding configuration of datasource, so I created The datasource as global resource Thanx and regards

RE: problem in configuring a Datasource in Tomcat 5.0

2004-03-03 Thread Shapira, Yoav
Hi, Try moving your TestDB datasource to your context declaration and out of GlobalNamingResources. Yoav Shapira Millennium ChemInformatics -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 9:10 AM To: [EMAIL PROTECTED] Subject: problem in

Re: Problems Invalidating session

2004-03-03 Thread Ben Souther
Actually, the link was to the online version of the core servlets book. I found it was a little easier to digest at first but in the end, there is no substitute for reading the actual specs. http://jcp.org/aboutJava/communityprocess/first/jsr053/index.html On Wednesday 03 March 2004

Re: RegExp issues with Tomcat 5

2004-03-03 Thread Christopher Schultz
Karl, Using the regexp tag library I think it is still at version 1.0. Because INSERT into tablename (field1) values ('I CAN'T DO THIS') generates an error in SQL Server. If you use a PreparedStatement, then you can send any string to the statement object and it will do it's own escaping. -chris

Re: Global URL Redirect Tomcat 5

2004-03-03 Thread Christopher Schultz
Nathan, I am trying to migrate to Tomcat 5 from a different app server. Is there a way to define url redirects? i.e. if a page moved off your server to a different location and you do not want to make a redirect page. You could write a servlet that's mapped to /*, and then have that servlet

Re: ClassNotDefError problems within JAR files under Tomcat 4.1.12

2004-03-03 Thread Christopher Schultz
Nathan, I am developing an imaging servlet under Tomcat 4.1.12 using JAI 1.1.2. Every time I update my code to add new features, it will return with a NoClassDefFoundError until I restart Tomcat. At that point, it finds the 'missing' class and everything works as expected. I'm no expert on JAI,

RE: addShutdownHook in Tomcat does not seem to get called on shutdown

2004-03-03 Thread Elie Medeiros
A-ha - it seems the shutdown hook does not get called when tomcat is run as a service, but does seems to get called when run as standalone. In that case it would seem that the problem would lie with the way the service is configured (ie what it does to stop) compared to the standalone version, I

Re: apache2/mod_jk/tomcat4 - file download / special characters in filename

2004-03-03 Thread John Sidney-Woollett
try converting the filename to ISO-8859-1 as well eg filename = new String(file.getName(), ISO-8859-1); Your Code (modified): response.setHeader(Content-Disposition, attachment; filename= + new String(file.getName(), ISO-8859-1)); response.setContentLength((int)file.length());

Re: reclaiming memory problem PS

2004-03-03 Thread Christopher Schultz
Jerald, session.setMaxInactiveTimeout(-1); Yeah, this is a bad idea. The session will never go away by itself. This *requires* the user to press a logout button, and for you to explicitly call session.invalidate(). Users frequently do not log themselves out, and their sessions will never

Re: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Christopher Schultz
Rudi, I have two things to add that nobody seems to have mentioned. In my LoginServlet, I create a new PooledConnection, which I add to the Servlet Context: PooledConnection pc = ConnectionFactory.getInstance.getPooledConnection(); ServletContext ctx = getServletContext();

Re: how to get or build a mod_jk module for Cygwin Apache ?

2004-03-03 Thread Christopher Schultz
Flo, i try to configure Apache 1.3.xx from cygwin and Tomcat 5.0 from windows to work together with JK. Okay. Isn't there a win32 binary? http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ (Look for files with 1.3.27 in their name -- those are for Apache 1.3.27). But i have

Need help - Data Source problem

2004-03-03 Thread Mathew
I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really

Re: Need help - Data Source problem

2004-03-03 Thread Philipp Taprogge
Hi! Mathew wrote: For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated. If sure looks that way, but without further information one can't be sure. It would really help matters if you could post the relevant parts of your

RE: Need help - Data Source problem

2004-03-03 Thread Mike Curwen
Supply more information. What does your server.xml and web.xml look like? (don't post the whole file, just relevant parts). Where is your driver jar located? (it should be common/lib) That class of error (class '' for URL 'null') is fairly common, and normally it's mis-configuration.

Re: Cross context c:import not working?

2004-03-03 Thread Aadi Deshpande
For the archives : this is bug 27309 ( http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27309 ) and has been fixed in head. -a Aadi Deshpande wrote: Hi, I'm not sure if this or the taglibs-user is the right place for posting this, but it looks to be a Tomcat error. When trying to use a

RE: Need help - Data Source problem

2004-03-03 Thread Mathew
Thak you for your response.. I appreciate your time .. This is my server.xml --- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=sunil docBase=sunil

Re: [OT] Re: Process Died | Production

2004-03-03 Thread Ankur Shah
Christopher Schultz wrote: I've experienced even more random crashes (SEGV). It turned out to be bad memory (or bus), and it only showed up under pretty heavy load. :( This is a little OT, but just out of curiosity, has anybody been successful in gaining root/tomcat/whatever-uid shell by

problem in configuring a Datasource in Tomcat 5.0

2004-03-03 Thread Marco Mistroni
Hi, i am still trying to configure a datasource with tomcat.. I have a mysql instance running on my machine, (I can use without any problem mysql console and mysql gui client), but in tomcat I am still getting Following exception.. org.apache.commons.dbcp.SQLNestedException: Cannot

Re: problem in configuring a Datasource in Tomcat 5.0

2004-03-03 Thread Mathew
I am also having the same problem. I just posted my sever.xml and web.xml to the group. Any help is really appreciated Hi, i am still trying to configure a datasource with tomcat.. I have a mysql instance running on my machine, (I can use without any problem mysql console and mysql

Listener Jar File

2004-03-03 Thread Hart, Justin
Under which directory should I place the jar file containing an HttpSessionListener referenced in my web.xml? I currently have this in a jar under web-inf/lib, but I am getting exceptions saying that this class is not in my path. Justin

RE: Listener Jar File

2004-03-03 Thread Shapira, Yoav
Hi, Under which directory should I place the jar file containing an HttpSessionListener referenced in my web.xml? I currently have this in a jar under web-inf/lib, but I am getting exceptions saying that this class is not in my path. WEB-INF/lib is the right place for all servlet spec

RE: Listener Jar File

2004-03-03 Thread Hart, Justin
Ty. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 11:53 AM To: Tomcat Users List Subject: RE: Listener Jar File Hi, Under which directory should I place the jar file containing an HttpSessionListener referenced in my web.xml? I

JSP whitespace removal

2004-03-03 Thread John Sidney-Woollett
Hi We want to achieve a 10-15% data reduction of the HTML being served by our webserver (generated by JSP pages). This will have an impact on our bandwidth charges from our ISP... We can achieve this by by simply removing all the \n\r, \t characters and replacing repeated occurences of

Re: JSP whitespace removal

2004-03-03 Thread Peter Lin
have you tried turning gzip compression? that should produce similar bandwidth savings to stripping out extra carraige returns and double spaces. you could always use the jasper plugin architecture to strip out excess stuff peter lin John Sidney-Woollett [EMAIL PROTECTED] wrote: Hi We

RE: JSP whitespace removal

2004-03-03 Thread SH Solutions
Hi We want to achieve a 10-15% data reduction of the HTML being served by our webserver (generated by JSP pages). This will have an impact on our bandwidth charges from our ISP... I cannot help you on this, but you should realise, that if you archive to reduce you jsps output by 10%, this will

Re: JSP whitespace removal

2004-03-03 Thread John Sidney-Woollett
Peter Lin said: have you tried turning gzip compression? that should produce similar bandwidth savings to stripping out extra carraige returns and double spaces. We running Apache 1.3.x + JK + TC 5.0.x What's better the gzip valve/filter in Tomcat, or try doing the compression with an Apache

RE: JSP whitespace removal

2004-03-03 Thread John Sidney-Woollett
Steffen Heil said: I cannot help you on this, but you should realise, that if you archive to reduce you jsps output by 10%, this will affect you traffic only by about 2%. We do have a server, which generated (according to access_log_*) 2.183.339.056 byte in 261.018 requests. But out

Re: JSP whitespace removal

2004-03-03 Thread Peter Lin
the reduction depends on your html right? if you use a lot of tables, you're likely to see 5-10x compression. The easiest trick is to save a couple of your biggest pages and zip them up. Compare the file size. Now, if you have regular log reports, you can see which pages get requested the

Blocking SNMP calls?

2004-03-03 Thread Eulogio Robles
I have an app. that uses Adventnet SNMP classes. If I perform a snmpSet() call from inside a Tomcat or JBoss server, my application gets a timeout error (I mean, the application is unable to communicate with a remote network device via SNMP and the SNMP error is Request Timed Out to w.x.y.z).

RE: problem in configuring a Datasource in Tomcat 5.0

2004-03-03 Thread FRANCOIS Dufour
did you dowloaded java conecter j from mysl and copied it under under your tomcat_home comon/lib +alowed a user connection into mysql ? [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc From: Marco Mistroni [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL

What is the problem with tomcat 5.0

2004-03-03 Thread Joao Araujo
I''ve been trying to start tomcat without success. I dont know why every time I run startup.sh I get the following error: java.lang.NoClassDefFoundError: javax/management/ListenerNotFoundException at javax.management.MBeanServerDelegate.init(MBeanServerDelegate.java:65) at

RE: What is the problem with tomcat 5.0

2004-03-03 Thread FRANCOIS Dufour
did you set the java_home environnement variable? [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc From: Joao Araujo [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: What is the problem with tomcat 5.0 Date: Wed, 03 Mar 2004 13:39:45

Re: Where to store log files from packed WAR file apps

2004-03-03 Thread Jacob Kjome
You should never log to within the directory structure of your webapp if you want your app to be portable. Provide configuration in web.xml as to where you want the log file to go which an admin can override via proprietary configuration. For instance, in Tomcat... Context ... Parameter

default mime type for tomcat 5

2004-03-03 Thread Nathan Maves
I have some plain text files that are formated but when tomcat 5 serves the pages it loses all formating. This only happens on older browser such as netscape 4.79. I assume that tomcat sets the default mime type to text/html but I need it to be text/plain. Nathan

Re: What is the problem with tomcat 5.0

2004-03-03 Thread Joao Araujo
did you set the java_home environnement variable? Yes. All off the variables described and possible of use. It even displays the correct information. Joao, [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc From: Joao Araujo [EMAIL PROTECTED] Reply-To: Tomcat Users List

Re: What is the problem with tomcat 5.0

2004-03-03 Thread FRANCOIS Dufour
did you copy tool .jar file from inside your java_home? [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc From: Joao Araujo [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: What is the problem with tomcat 5.0 Date:

HttpURLConnection behind a proxie

2004-03-03 Thread Edson Alves Pereira
Hello dudes, do you know how can i authenticate a java programm to use HTTP proxie throught a windows network? I´ve already done JavaPlugin and built a java programm to make the job, but it didn´t workout, my HTTP proxie is WebSense. Regards, Edson

RE: re-newbie help

2004-03-03 Thread tsaiching wong
yeah, i am. what is a good way to do abt this? create a index.html to invoke the function and then edit the server.xml file and place the lines notifying tomcat of the existence of the .class java files? = -Original Message- = From: Tim Funk [mailto:[EMAIL PROTECTED] = Sent: Wednesday,

RE : how to get or build a mod_jk module for Cygwin Apache ?

2004-03-03 Thread Flo
I thought FreeBSD works like cygwin but it seems wrong. I tried the mod_jk_1_2_5_2_0_47.dll I got errors launching httpd : Win32 error 126 (The specified module could not be found) I needed to add ApacheCore.dll Win9xConHook.dll to the PATH Then i got another error message : Win32 error 127 (The

RE: What is the problem with tomcat 5.0

2004-03-03 Thread Mike Curwen
If you've set JAVA_HOME properly, you should not need to copy tools.jar. -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 1:31 PM To: [EMAIL PROTECTED] Subject: Re: What is the problem with tomcat 5.0 did you copy tool .jar

Re: re-newbie help

2004-03-03 Thread Tim Funk
It seems like you need more education about servlets and jsps. Sun has a tutorial at: java.sun.com/webservices/docs/1.3/tutorial/doc/ By topic, look at chapters 3,4,15-19 -Tim tsaiching wong wrote: yeah, i am. what is a good way to do abt this? create a index.html to invoke the function and

RE: What is the problem with tomcat 5.0

2004-03-03 Thread Shapira, Yoav
Hi, What jars that didn't ship with tomcat are in your runtime classpath? Yoav Shapira Millennium ChemInformatics -Original Message- From: Joao Araujo [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 1:40 PM To: [EMAIL PROTECTED] Subject: What is the problem with tomcat 5.0

RE: Need help - Data Source problem

2004-03-03 Thread Mathew
I am still trying to fix this problem. I looked at TOMCAT_HOME/commons/lib dircory and found out that I have commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too. I am using TOMCAT 5.0.19 and Apache 1.3.x. I

Re: RE : how to get or build a mod_jk module for Cygwin Apache ?

2004-03-03 Thread Christopher Schultz
Flo, I thought FreeBSD works like cygwin but it seems wrong. FreeBSD is a 'real' UNIX flavor, while cygwin provider UNIX-like services and libraries on win32. I tried the mod_jk_1_2_5_2_0_47.dll I got errors launching httpd : Win32 error 126 (The specified module could not be found) I needed to

Re: What is the problem with tomcat 5.0

2004-03-03 Thread Joao Araujo
Shapira, Hi, What jars that didn't ship with tomcat are in your runtime classpath? I;ve nothing set on my classpath. I saw that tomcat override whatever you set . The script setclasspath.sh does the job. It does this. CLASSPATH=$JAVA_HOME/lib/tools.jar Those are my settiings

RE: Need help - Data Source problem

2004-03-03 Thread Mike Curwen
where is the oracle connection driver jar file ? It needs to be in common/lib as well -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: RE: Need help - Data Source problem I am still trying to

RE: Need help - Data Source problem

2004-03-03 Thread Mike Curwen
As for naming, you could name that jar file dirty_laundry.jar and it wouldn't matter. It's the classes that are found inside of it that matter. the -1.1 is merely a help for you to know what version of commons-dbcp you are using, which is, I understand, a matter of some religious debate around

Re: What is the problem with tomcat 5.0

2004-03-03 Thread Oswald Campesato
Hello, Joao: jmx.jar contains javax/management/ListenerNotFoundException.class and (for me) jmx.jar is in $TOMCAT_HOME/common/lib; perhaps it's not installed on your system. Here's a very simple yet useful Bourne shell script: for jar in `ls *jar` do

RE: What is the problem with tomcat 5.0

2004-03-03 Thread Shapira, Yoav
Hi, What jars that didn't ship with tomcat are in your runtime classpath? I;ve nothing set on my classpath. I saw that tomcat override whatever you set . The script setclasspath.sh does the job. It does this. I'm aware of this script and what it does -- thanks ;) But that's not

RE: Need help - Data Source problem

2004-03-03 Thread Mathur, Arun
Hi guys, I'm pretty much a newbie when it comes to configuring Tomcat, and also with building JSPs, although thanks to the useful examples and documentation, I've been able to pick it up pretty quickly. Anyways, I am interested in using the utilties provided in the commons-fileupload-1.0.jar

RE: Need help - Data Source problem

2004-03-03 Thread Shapira, Yoav
Hi, same import statement, and it worked fine. Does anyone have any thoughts as to what else I can do to troubleshoot this problem further? I am running Tomcat-4.1.27. I have a thought: start your own thread for your question and don't hijack other peoples' ;) Yoav Shapira This e-mail,

RE: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Yansheng Lin
What's the console output? how far did you get before you encounter that specific error? Sounds to me like a mis-configuration of the context path problem. You sure you have the right deploy descriptor in your war file? -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED]

RE: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Shapira, Yoav
Hi, The error, not explained in the Manager documentation anywhere BTW : FAIL - Application at context path /foobar could not be started Errors aren't typically explained in the documentation, as we rely on stack traces and other information to diagnose and correct problems. Feel free to

Re: cross context include

2004-03-03 Thread Aadi Deshpande
I've been struggling with the same problem. I read the bug report, but it only adresses part of the problem, the part that doesn't retrieve the session properly. I actually patched the code independently and have discovered another problem, that somehow sessions are either getting lost or

RE: Need help - Data Source problem

2004-03-03 Thread Mathur, Arun
My apologies. I forgot to change the subject before posting. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 4:04 PM To: Tomcat Users List Subject: RE: Need help - Data Source problem Hi, same import statement, and it worked fine.

Uploading a file using JSPs

2004-03-03 Thread Mathur, Arun
Hi guys, I'm pretty much a newbie when it comes to configuring Tomcat, and also with building JSPs, although thanks to the useful examples and documentation, I've been able to pick it up pretty quickly. Anyways, I am interested in using the utilties provided in the commons-fileupload-1.0.jar

RE: Uploading a file using JSPs

2004-03-03 Thread Shapira, Yoav
Hi, Anyways, I am interested in using the utilties provided in the commons-fileupload-1.0.jar file. I downloaded it to the $CATALINA_HOME/common/lib folder. When I tried to import org.apache.commons.fileupload.*, I get an error stating that the package If you're just starting out with tomcat,

Re: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Timothy Stone
Yansheng Lin wrote: What's the console output? how far did you get before you encounter that specific error? Sounds to me like a mis-configuration of the context path problem. You sure you have the right deploy descriptor in your war file? well, it some sort of directory problem. damn if I can

Serialization issue

2004-03-03 Thread Sean Campbell
I'm trying to grab the current session ID and the request parameter map from the current request and serialize them into a base64 string to pass to a PHP application. Problem is, I keep running into the following exception everytime I try to serialize anything imlementing the Map

Re: Where to store log files from packed WAR file apps

2004-03-03 Thread Harry Mantheakis
Thanks to everyone for the replies to my question! Lots there for me to look into - JNDI, Alpha_2, and Chainsaw. Phew! Sorry, for *my* slow response: my ISP has dropped all my mail today, of all days - so I went online to get your answers. Regards Harry Mantheakis London, UK

Re: Where to store log files from packed WAR file apps

2004-03-03 Thread Harry Mantheakis
Thanks to everyone for the replies to my question! Lots there for me to look into - JNDI, Alpha_2, and Chainsaw. Phew! Sorry, for *my* slow response: my ISP has dropped all my mail today, of all days - so I went online to get your answers. Regards Harry Mantheakis London, UK

[CLOSED] Re: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Timothy Stone
Timothy Stone wrote: Yansheng Lin wrote: What's the console output? how far did you get before you encounter that specific error? Sounds to me like a mis-configuration of the context path problem. You sure you have the right deploy descriptor in your war file? well, it some sort of

RE: Serialization issue

2004-03-03 Thread Shapira, Yoav
Hi, What is the CoyoteWriter object I keep running inot, and how can I mark it as transient? It's the HTTP connector's writer, and you can't mark it as transient. You would have to manually remove non-serializable attributes from a copy of the Map before you try to serialize the copy. Yoav

Can't access session id

2004-03-03 Thread Frank Burns
I need to access the session id from within a JSP and pass it, explicitly, to a Flash-based client. I am using the following code fragment as part of my JSP, but the value returned for the session id is always blank. Am I doing something wrong? [EMAIL PROTECTED] contentType=text/xml

RE: Need help - Data Source problem

2004-03-03 Thread Mathew
I have a classes111.jar file common/lib . Any other suggestion where is the oracle connection driver jar file ? It needs to be in common/lib as well -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 2:18 PM To: [EMAIL PROTECTED] Subject:

RE: re-newbie help

2004-03-03 Thread tsaiching wong
thanks a bunch! :) and to all who replied. :) = -Original Message- = From: Tim Funk [mailto:[EMAIL PROTECTED] = Sent: Wednesday, March 03, 2004 11:48 AM = To: Tomcat Users List = Subject: Re: re-newbie help = = = It seems like you need more education about servlets and jsps. = = Sun has

Re: Serialization issue

2004-03-03 Thread Sean Campbell
Right now I get the exception even when I try to serialize a HashMap I just created, without any data in it. I would guess that any request parameters stored in the map returned by request.getParameterMap() should be serializable right? I don't understand how, f I'm serializing a new

Re: reclaiming memory problem PS

2004-03-03 Thread Jerald Powel
Hello, and thank you for that, Yes, I am timing the session out and trying to handle the result. I have: HttpSession objSession = request.getSession(true); String sessionStatus = (String) objSession.getAttribute(sessionStatus); if (sessionStatus == null) {

  1   2   >