Re: Custom URL handlers in Tomcat web app

2008-02-24 Thread MK
Christopher Schultz christopherschultz.net> writes: > > [...] > | problem is, none of these approaches work in Tomcat 5.5. For 1), this > simply > | didn't have any effect for me. 2) neither, maybe Tomcat simply ignores > that > | property? > > How did you set the property? I am running my web

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread kevin
Well, I'm happy to say that you are correct. It's very strange. I tried moving the file to META-INF, restarting tomcat and it did not work. Next I tried deleting the webapp directory and war file. Moving the context.xml file in my source, rebuild war and redeploy. Not it works! Lesson learned

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread kevin
Are you sure? I thought the webapp context.xml went in WEB-INF. At any rate I tried moving it to META-INF and it did not help. Thanks, Kevin - Original Message - From: "Hassan Schroeder" <[EMAIL PROTECTED]> To: "Tomcat Users List" ; <[EMAIL PROTECTED]> Sent: Sunday, February 24, 20

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread kevin
Ok, so here is what I am. I have moved the connection to the doGet() method. And if I do the following (no pooling) it works fine, I get the connection and I can query the DB. Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test",

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Hassan Schroeder
On Sun, Feb 24, 2008 at 2:59 PM, <[EMAIL PROTECTED]> wrote: > I implemented the resource as you suggested (short hand method as follows): > > WEB-INF\context.xml for the app now has Is that a typo or really what you did? Your webapp's context.xml goes in META-INF/ , not WEB-INF/ ... -- Hass

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, [EMAIL PROTECTED] wrote: | Now for the issue at hand. I turned off my Windows firewall and this did | not fix the issue. Yeah, that was unlikely to change anything. Make sure you turn that back on! | I implemented the resource as you suggest

Re: NIO Java or TC - What are u using it 4?

2008-02-24 Thread Bill Barker
"Johnny Kewl" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > --- > HARBOR: http://coolharbor.100free.com/index.htm > The most powerful application server on earth. > The only real POJO Application Server. > M

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread kevin
Chris, Thanks for the help. On your code analysis, points well taken. I'll implement you suggestions. Now for the issue at hand. I turned off my Windows firewall and this did not fix the issue. I implemented the resource as you suggested (short hand method as follows): WEB-INF\context.xml

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, [EMAIL PROTECTED] wrote: | I tested mysql and it is using tcp/ip. "mysql -h 127.0.0.1 -u javauser | -p" works fine. | Also the MSQLAdmin program shows it is connecting to the correct port 3306 Okay, good. Any software firewalls enabled? The d

Re: Fwd: jsp:useBean is giving error

2008-02-24 Thread David Brown
Hello Sneha, you can put files directly into Tomcat deployment but it needs to comform to the .war (web archive) file structure. How are you building your application? I suggest strongly that you use Ant and build.xml to output a proper .war representation of you app. Since you are using JSP I a

Fwd: jsp:useBean is giving error

2008-02-24 Thread Sneha Manohar
Hi , where do I need to place user defined .java files in tomcat directory Sneha Manohar <[EMAIL PROTECTED]> wrote: Date: Sun, 24 Feb 2008 18:23:45 + (GMT) From: Sneha Manohar <[EMAIL PROTECTED]> Subject: jsp:useBean is giving error To: users@tomcat.apache.org Hi all I am getting err

RE: JASPER libraries incompatibilities

2008-02-24 Thread Hitesh Raghav
Thank you very much Chris and Chuk. Regards, -Hitesh -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 7:58 PM To: Tomcat Users List Subject: Re: JASPER libraries incompatibilities -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hit

jsp:useBean is giving error

2008-02-24 Thread Sneha Manohar
Hi all I am getting error with . I am getting following error , HTTP Status 500 - - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apac

Re: Configuring Tomcat for multiple users

2008-02-24 Thread Mark Thomas
Binding Servlet wrote: Hi, Is there a way to configure Tomcat so that servlets can be created by multiple users without having to either place them in the webapps directory and without updating conf/web.xml for every servlet? I know the invoker servlet is available, but I have read that is insec

Configuring Tomcat for multiple users

2008-02-24 Thread Binding Servlet
Hi, Is there a way to configure Tomcat so that servlets can be created by multiple users without having to either place them in the webapps directory and without updating conf/web.xml for every servlet? I know the invoker servlet is available, but I have read that is insecure. Basically, the effec

Re: Is there a Connection Pool/Data Source Monitor Tool

2008-02-24 Thread Rob Levin
Mark, thanks so much! I just installed it (in about 5 seconds!), and I've got to say 'Probe rocks!' Thanks for taking the time to answer my question. This gives me what I asked for but much much more ;) Mark Thomas <[EMAIL PROTECTED]> wrote: Rob Levin wrote: > Sorry if this is a silly question

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread kevin
Yes, In the context.xml I have Also in web.xml I have jdbc/CurrencyDB javax.sql.DataSource Container Thanks, Kevin - Original Message - From: "Alan Chaney" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, February 24, 2008 9:11 AM Subject

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Alan Chaney
[EMAIL PROTECTED] wrote: Thanks for the help. I still don't have this working completely, but tomcat is now working. I tested mysql and it is using tcp/ip. "mysql -h 127.0.0.1 -u javauser -p" works fine. Also the MSQLAdmin program shows it is connecting to the correct port 3306

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread kevin
Thanks for the help. I still don't have this working completely, but tomcat is now working. I tested mysql and it is using tcp/ip. "mysql -h 127.0.0.1 -u javauser -p" works fine. Also the MSQLAdmin program shows it is connecting to the correct port 3306 I see your point about purring the reso

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Martin Gainty
Hi Kevin- is there a MySQL listener installed on port 3306..you can verify with netstat -a | grep 3306? If so can you connect using mySQL client? M- - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Saturday, February 23, 2008 9:00 PM Subject: Help getting MySQL connected to Tomca

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, [EMAIL PROTECTED] wrote: | I've tried following the directions from the tomcat dist and from the | mysql dist but I always get can't connect exceptions when I start tomcat. "Connection refused" usually means that everything is configured prop

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lessie, Lessie Z. Mitch wrote: | url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true" Don't use autoReconnect=true... that parameter has been deprecated for years, and the effect is better achieved by using testOnBorrow="true" along with va

Re: NIO Java or TC - What are u using it 4?

2008-02-24 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. Making the Java dream come true. --

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread David Smith
java.net.ConnectException: Connection refused: connect Some distributions of mysql configure it by default to use named pipes w/o a port listening at 3306. It's mainly for security reasons, but can be a real PITA when your application requires a TCP/IP port. Check the parameters MySQL was

Re: Is there a Connection Pool/Data Source Monitor Tool

2008-02-24 Thread Mark Thomas
Rob Levin wrote: Sorry if this is a silly question but is there a monitor tool specifically for connection pooling/dataSources in tomcat6? I have debug=5: Not specifically for connection pools but I would use the excellent lambdaprobe http://www.lambdaprobe.org/ It does everything you want an

Is there a Connection Pool/Data Source Monitor Tool

2008-02-24 Thread Rob Levin
Sorry if this is a silly question but is there a monitor tool specifically for connection pooling/dataSources in tomcat6? I have debug=5: Do I need to change that to debug=0 to get what I'm after or does that just make it more verbose? What I'd really like to see is how many connection are act