Re: CGI not executing

2004-05-02 Thread Michael Eastwood
never mind, I solved my own problem. I took the servlet config out of the global web.xml and stuck it into my ROOT web.xml and now it works. I noted that Tomcat was producing a cgi-bin mapping for all of my webapps, not just the root one as I'd intended. Now that I recall that the global web

CGI not executing

2004-05-02 Thread Michael Eastwood
Hi, I'm having trouble executing a Perl CGI under Tomcat 5.0.19 standalone. I've set up the global web.xml as per instructions in the CGI how-to, and renamed the appropriate jar file. I've put my perl CGI scripts into the default /WEB-INF/cgi directory, and made sure they're executable. I ca

Re: Here is the document

2004-05-02 Thread tomcat-user
Your document is attached. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Eric Noel
On 5/3/2004 9:31 AM, Daxin Zuo wrote: I thought Microsoft was the best. if thats what you think, i guess you should stick with dotNet since with that you will have an all microsoft retrofitted program (e.g drivers, components, etc) :-) My jsp file is in tomcat\webapps\ROOT\zuo. In my tomcat\web

RE: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Daxin Zuo
I thought Microsoft was the best. My jsp file is in tomcat\webapps\ROOT\zuo. In my tomcat\webapps\ROOT\WEB-INF\web.xml, there is no block, should I create one or use ? If I need ot create a block, Is the code bellow correct: Thanks -Original Message- From: Eric Noel [mailto:[EMAI

Re: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Parsons Technical Services
Daxin, I think this would be well worth your time and effort to change to this. I was unaware of it or I would have recommended it. The reason for the other stuff you were asking about was because that is how microsoft had set it up to be used. This should give much cleaner and portable code. As

Re: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Eric Noel
why not use jtds instead http://jtds.sourceforge.net/ ## download the jtds jar http://heanet.dl.sourceforge.net/sourceforge/jtds/jtds-0.7.1.jar ## place it in your common/lib ## server.xml factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive

RE: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Daxin Zuo
Thank you very much for your reply on Sunday. The error is "Name jdbc is not bound in this Context" at ctx.lookup. In both server.xml and web.xml, the type is com.microsoft.jdbcx.sqlserver.SQLServerDataSource. Even I use the code: envCtx = (Context) initCtx.lookup("java:comp/env"); ds = (Connec

Re: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Parsons Technical Services
Try this code instead: Context ctx = new InitialContext(); if (ctx == null) { System.err.println("Conn.getConn ctx is null"); throw new Exception("Boom - No Context"); } DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/dbName"); if (ds != null) connection = ds.getConnection(); I run th

RE: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Daxin Zuo
Should I put it in tomcat\webapps\ROOT\WEB-INF\web.xml? (my jsp file using Database connection is in ROOT/zuo), but in this web.xml, I already have: SQL Server DataSource jdbc/dbName com.microsoft.jdbcx.sqlserver.SQLServerDataSource Container Fo

Re: writing to File-System; IOException on File.mkdirs() and/or File.createNewFile()

2004-05-02 Thread Parsons Technical Services
Christoph, If you are going to run Tomcat on port 8080 and 8443 then you can use the normal startup script. If you need it on port 80 the you have two choices, run as root (not good) or use jsrv daemon which starts tomcat as root then changes the user id as set in the startup script. If you need

Tomcat 5: What to look for when reciving 'Cannot forward after response has been committed'

2004-05-02 Thread Lars Ohlén
Hi, While converting from an older Tomcat version I run into the IllegalStateException that says "Cannot forward after response has been committed" I dont think that I have duplicate forwards so there must be something else to look for (My guess is PrintWriter outputs, response.addCookie). Ex

stdouts

2004-05-02 Thread shyam
Hi All, Probably this question has been asked before but couldn't find it in archive. I have recently upgraded to tomcat 5.0.19 and I get lot of system outs and my stdout size is increasing exponentially because of this. I checked the debug level on my server and also my web application. Its at 0.

Re: writing to File-System; IOException on File.mkdirs() and/or File.createNewFile()

2004-05-02 Thread Christoph Meier
Doug finally, it works. This appears to be a permissions issue. ... you are right. you might remember that i started Tomcat with a custom-script (see some post before) ps -auxfw => # root 9267 0.0 0.028 28 ?SApr17 0:02 runsv tomcat root 29989

RE: how many sessions can serve

2004-05-02 Thread Mazin Safadi
Well, hi guys, I did installed the jmeter, it almost works, but I am getting this message error in the .jtl log file, and graph cannot be drown It doesn't work with both links: myusername:[EMAIL PROTECTED]/manager/list myusername:[EMAIL PROTECTED]/manager/status The first link works from the