RE: CPU Binding ?

2004-03-17 Thread Ralph Einfeldt
That is not a matter of tomcat but of the jvm and the os.

If the jvm uses more than one cpu on this os tomcat will 
do the same.

- What jvm are you using (vendor / version) ?
- Which jvm options do you set ?

> -Original Message-
> From: John Hilton - CPX COA [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 18, 2004 8:54 AM
> To: [EMAIL PROTECTED]
> Subject: CPU Binding ?
> 
> 
> Does anyone know how one sets Tomcat 4.0.6 to utilise more 
> than one CPU in a multiple CPU machine.
>  
> Tomcat is running on Windows Server 2003 on a 4CPU IBM 
> machine, and all the utilisation graphs indicate that the 
> tomcat service is only using one CPU, I have trawled the 
> documentation and cant seem to spot the config details to 
> do this ?
>  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Net Integrator Virus Alert

2004-03-17 Thread Virus Scanner
WARNING: a virus (probably I-Worm.NetSky.d) or suspicious attachment was detected and 
removed from the following message from [EMAIL PROTECTED] to [EMAIL PROTECTED]
Some of the content may still be readable.
--- Begin Message ---
Here is the file.


--- End Message ---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

CPU Binding ?

2004-03-17 Thread John Hilton - CPX COA
Good day,
 
Does anyone know how one sets Tomcat 4.0.6 to utilise more than one CPU
in a multiple CPU machine.
 
Tomcat is running on Windows Server 2003 on a 4CPU IBM machine, and all
the utilisation graphs indicate that the tomcat service is only using
one CPU, I have trawled the documentation and cant seem to spot the
config details to do this ?
 
Regards,
John
 


Re: how to use multiple jk2 connectors?

2004-03-17 Thread Adrian Lanning
Hi Joseph,

I had the same problem a while ago and never solved it. The root cause is
that for whatever reason the Location-JkUriSet combination acts globally to
the httpd.conf file rather than relative to the virtual host.  I wasn't sure
if the problem was with JkUriSet or with apache's Location directive.  It
sounds like it used to work for you with JkMount so the problem must be with
JkUriSet...

>> Side Note <<
List Users,
Am I correct in assuming the problem lies with JkUriSet?  Has anybody gotten
this to work?
>> <<

I had to work around this by explicitly defining mappings in
workers2.properties.  This, of course, blows the whole concept of mass
virtual hosting out of the water since you have to manually add domains to
the workers2 file...

Does jk work correctly in this sense, where mappings are relative to the
virtual host?  If so, i'm switching back...

Adrian Lanning


- Original Message - 
From: "Joseph Shraibman" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 1:49 AM
Subject: how to use multiple jk2 connectors?


> I have multiple ip based virtual hosts, so in tomcat I configured three
> seperate engines with connectors on different ports, and in the apache
>  I JkMount the worker that I configured in
> worker.properties to connect on a specific port.  This works fine for
> mod_jk, but when I try mod_jk2 it insistes on using the default host of
> the engine that has the connector listening on port 8009.
>
> This is how I configure jk2:
> 
>  JkUriSet worker ajp13:localhost:8019
> 
>
> -
> 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: Multiple Host (no apache or iis)

2004-03-17 Thread Dean Searle
What port is tomcat listening to? If you have not changed this then it
would be 8080 (I believe) so you would type in a browser
http://www.test1-domain.com:8080 and it should bring up your site. To
keep from having to enter the port every time, change your server.xml to
listen to port 80 instead. 80 is the default http port.

Best regards,

Dean

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 12, 2004 2:24 PM
To: Tomcat Users List
Subject: Multiple Host (no apache or iis)

Hi!
I have tried to search for this but all hits seems to be about getting
tomcat to work together with apache or iis.

I can't figure out why my test1-domain doesn't answer at all. All I gets
is
a 400-error. What bother me the most is that there is nothing in the
catalina.out log that indicats that there are something wrong so I don't
even know where to start look.

I post the -part of my server.xml below.

Thanks in advance
Roland Carlsson














-
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]



No error message when welcome page is not present

2004-03-17 Thread Dean Searle
Hello Group,

I am running Apache 2.0.48 and Tomcat 4.1.30 with mod_jk2 connector
2.0.2 all on windows xp.

The problem I have is this. I have virtual hosts setup to go to their
own folder for their documentroot=/theirfolder. But if I do not have a
valid welcome file there, either an index.(htm,jsp) It takes me to
tomcat manager page. Without restarting anything I can put a valid file
in the folder and site works fine. Where can I shut this off at? I would
like to get an error page, since I have directory listing shut off.
Would it be in web.xml or server.xml?

Thanks in advance,

Dean


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JDBC/mySQL problem.

2004-03-17 Thread Kawthar Bt M Sulaiman
I'd like to setup my connection pooling upfront so at least I can 
concentrate on other areas later on (still need to learn web services
with java).  I'll give it a rest for a day before start working on it.

Thanks,
--Kawthar

>>> [EMAIL PROTECTED] 18/03/2004 02:42:54 PM >>>
Good.

For development and learning this will work fine. But when you get
ready to
deploy your app you will want to get the Connection pool working.
Usually if
the manual connection works then it is a configuration issue and often
a
typo somewhere. Give it a few days and then go through each piece and
confirm all your spelling and capitalization.

If you want to keep working on the pool, repost the applicable parts of
your
current web.xml, server.xml and code.

Doug

- Original Message - 
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 1:26 AM
Subject: Re: JDBC/mySQL problem.


> Hi Doug,
>
> I know basic table creation and simple sql statement.. so I was able
to
> create the database
> and create few tables to get tomcat running with mySQL.  I read few
> docs (including the
> link you gave to get me started).. but other advance stuff, I'll
read
> as I need them... :)
>
> Anyway, I've done the manual coding to get driver and connection and
it
> works
> I was able to retrieve username from users table.
>
> Thanks,
> --Kawthar
>
> >>> [EMAIL PROTECTED] 18/03/2004 02:20:06 PM >>>
> See comments under answers.
>
> > Answers to your question:
> >
> > 1. reboot?  Yes, every single time.  I stopped tomcat and
restarted
> it
> > everytime I make changes.
> Good, but I had to ask.
>
> >
> > 2. manual connection?  No, I haven't done this.  Let me try and
will
> > let you know.
> >
> This tests that all else is working.
>
> > 3.  ping localhost?  Yes, I can ping localhost.
> >
> OK. TCP stack is good.
>
> > 4. firewall?  No, I'm not running firewall.
> >
> Has caused a few headache for others.
>
> > 5.  I'm using Windows2000 OS.
> >
> Just so I don't quote a Linux thing and confuse you.
>
> > 6.  User rights in database?  Not sure.  How can check this? 
Still
> > learning mySQL.
> >
> Check out this page.
> http://www.mysql.com/doc/en/Windows_post-installation.html 
>
> How did you create the database ecpa and associated tables?
>
> Doug
>
>
> > Thanks,
> > --Kawthar
> >
> > >>> [EMAIL PROTECTED] 18/03/2004 01:29:27 PM >>>
> > Kawthar,
> >
> > As for Steve's concerns:
> > It is the same one. The short story: Mark Mathews wrote it MySQL
> liked
> > it
> > and adopted it and him. So it went from org.gjt.mm to com.mysql.
> Both
> > names
> > will work fine but to be up to date use the com.mysql.
> >
> > As for server.xml having only one is fine, and on TC4 this is
> common.
> > If you
> > move to TC5 then you can have multiple files with each part
applying
> to
> > only
> > the app that it is included with. For now don't worry about it.
> >
> > If your application is running OK as ROOT other than the DBCP
> problems
> > then
> > you are fine. It is that most people set up a new context and
don't
> > mess
> > with the ROOT at first. But again if the rest of the app runs
you're
> > fine.
> >
> > Now for fifty questions:
> > You are rebooting after changes? It has bitten me several times.
> >
> > Have you done a manual connection?
> > Class.forName("com.mysql.jdbc.Driver");
> > connection =
> > DriverManager.getConnection(
> > "jdbc:mysql://localhost:3306/ecpa",
> > "youruser",
> > "yourpassword");
> >
> > If the manual connection fails then:
> > Can you access the database directly and log on using the username
> and
> > password that is in the context?
> >
> > Can you open a prompt and ping localhost? I have seen it fail.
> > If so use the IP of your machine if you can ping it otherwise you
> have
> > other
> > issues.
> >
> > Are you running a firewall on the machine?
> >
> > What OS are you on?
> >
> > What are the rights for the user in the database, can the user
gain
> > access
> > from localhost?
> >
> > Doug
> >
> >
> > - Original Message - 
> > From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, March 17, 2004 11:46 PM
> > Subject: Re: JDBC/mySQL problem.
> >
> >
> > > Followed your suggestion, but still not working.
> > >
> > > Thnx,
> > > --Kawthar
> > >
> > > >>> [EMAIL PROTECTED] 18/03/2004 12:18:00 PM >>>
> > > Kawthar,
> > >
> > > Change:
> > >
> > >> >  type="javax.sql.DataSource"/>
> > >
> > >   > >  type="javax.sql.DataSource"/>
> > >
> > > To:
> > >
> > >> >  type="javax.sql.DataSource"/>
> > >
> > > Should work either way, mine did, just cleaner and proper.
> > > Note name is changed in second entry, added jdbc/  .
> > >
> > >
> > > Doug
> > >
> > > - Original Message - 
> > > From: "Parsons Technical Services"
> <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, March 17, 2004 11:02 PM
> > > Subject: Re: JDBC/mySQL problem.
> > >
> > >
> > > > Kawt

how to use multiple jk2 connectors?

2004-03-17 Thread Joseph Shraibman
I have multiple ip based virtual hosts, so in tomcat I configured three 
seperate engines with connectors on different ports, and in the apache 
 I JkMount the worker that I configured in 
worker.properties to connect on a specific port.  This works fine for 
mod_jk, but when I try mod_jk2 it insistes on using the default host of 
the engine that has the connector listening on port 8009.

This is how I configure jk2:

JkUriSet worker ajp13:localhost:8019

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JDBC/mySQL problem.

2004-03-17 Thread Parsons Technical Services
Good.

For development and learning this will work fine. But when you get ready to
deploy your app you will want to get the Connection pool working. Usually if
the manual connection works then it is a configuration issue and often a
typo somewhere. Give it a few days and then go through each piece and
confirm all your spelling and capitalization.

If you want to keep working on the pool, repost the applicable parts of your
current web.xml, server.xml and code.

Doug

- Original Message - 
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 1:26 AM
Subject: Re: JDBC/mySQL problem.


> Hi Doug,
>
> I know basic table creation and simple sql statement.. so I was able to
> create the database
> and create few tables to get tomcat running with mySQL.  I read few
> docs (including the
> link you gave to get me started).. but other advance stuff, I'll read
> as I need them... :)
>
> Anyway, I've done the manual coding to get driver and connection and it
> works
> I was able to retrieve username from users table.
>
> Thanks,
> --Kawthar
>
> >>> [EMAIL PROTECTED] 18/03/2004 02:20:06 PM >>>
> See comments under answers.
>
> > Answers to your question:
> >
> > 1. reboot?  Yes, every single time.  I stopped tomcat and restarted
> it
> > everytime I make changes.
> Good, but I had to ask.
>
> >
> > 2. manual connection?  No, I haven't done this.  Let me try and will
> > let you know.
> >
> This tests that all else is working.
>
> > 3.  ping localhost?  Yes, I can ping localhost.
> >
> OK. TCP stack is good.
>
> > 4. firewall?  No, I'm not running firewall.
> >
> Has caused a few headache for others.
>
> > 5.  I'm using Windows2000 OS.
> >
> Just so I don't quote a Linux thing and confuse you.
>
> > 6.  User rights in database?  Not sure.  How can check this?  Still
> > learning mySQL.
> >
> Check out this page.
> http://www.mysql.com/doc/en/Windows_post-installation.html
>
> How did you create the database ecpa and associated tables?
>
> Doug
>
>
> > Thanks,
> > --Kawthar
> >
> > >>> [EMAIL PROTECTED] 18/03/2004 01:29:27 PM >>>
> > Kawthar,
> >
> > As for Steve's concerns:
> > It is the same one. The short story: Mark Mathews wrote it MySQL
> liked
> > it
> > and adopted it and him. So it went from org.gjt.mm to com.mysql.
> Both
> > names
> > will work fine but to be up to date use the com.mysql.
> >
> > As for server.xml having only one is fine, and on TC4 this is
> common.
> > If you
> > move to TC5 then you can have multiple files with each part applying
> to
> > only
> > the app that it is included with. For now don't worry about it.
> >
> > If your application is running OK as ROOT other than the DBCP
> problems
> > then
> > you are fine. It is that most people set up a new context and don't
> > mess
> > with the ROOT at first. But again if the rest of the app runs you're
> > fine.
> >
> > Now for fifty questions:
> > You are rebooting after changes? It has bitten me several times.
> >
> > Have you done a manual connection?
> > Class.forName("com.mysql.jdbc.Driver");
> > connection =
> > DriverManager.getConnection(
> > "jdbc:mysql://localhost:3306/ecpa",
> > "youruser",
> > "yourpassword");
> >
> > If the manual connection fails then:
> > Can you access the database directly and log on using the username
> and
> > password that is in the context?
> >
> > Can you open a prompt and ping localhost? I have seen it fail.
> > If so use the IP of your machine if you can ping it otherwise you
> have
> > other
> > issues.
> >
> > Are you running a firewall on the machine?
> >
> > What OS are you on?
> >
> > What are the rights for the user in the database, can the user gain
> > access
> > from localhost?
> >
> > Doug
> >
> >
> > - Original Message - 
> > From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, March 17, 2004 11:46 PM
> > Subject: Re: JDBC/mySQL problem.
> >
> >
> > > Followed your suggestion, but still not working.
> > >
> > > Thnx,
> > > --Kawthar
> > >
> > > >>> [EMAIL PROTECTED] 18/03/2004 12:18:00 PM >>>
> > > Kawthar,
> > >
> > > Change:
> > >
> > >> >  type="javax.sql.DataSource"/>
> > >
> > >   > >  type="javax.sql.DataSource"/>
> > >
> > > To:
> > >
> > >> >  type="javax.sql.DataSource"/>
> > >
> > > Should work either way, mine did, just cleaner and proper.
> > > Note name is changed in second entry, added jdbc/  .
> > >
> > >
> > > Doug
> > >
> > > - Original Message - 
> > > From: "Parsons Technical Services"
> <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, March 17, 2004 11:02 PM
> > > Subject: Re: JDBC/mySQL problem.
> > >
> > >
> > > > Kawthar,
> > > >
> > > > Try this context in place of yours.
> > > >
> > > >reloadable="true">
> > > >   > > > type="javax.sql.DataSource"/>
> > > >
> > > >  > > > type="javax.sql.DataSource"/>
> > > >
> > > >   
> > > >
> > > >factory
> > > 

Re: JDBC/mySQL problem.

2004-03-17 Thread Kawthar Bt M Sulaiman
Hi Doug,

I know basic table creation and simple sql statement.. so I was able to
create the database
and create few tables to get tomcat running with mySQL.  I read few
docs (including the
link you gave to get me started).. but other advance stuff, I'll read
as I need them... :)

Anyway, I've done the manual coding to get driver and connection and it
works
I was able to retrieve username from users table.

Thanks,
--Kawthar

>>> [EMAIL PROTECTED] 18/03/2004 02:20:06 PM >>>
See comments under answers.

> Answers to your question:
>
> 1. reboot?  Yes, every single time.  I stopped tomcat and restarted
it
> everytime I make changes.
Good, but I had to ask.

>
> 2. manual connection?  No, I haven't done this.  Let me try and will
> let you know.
>
This tests that all else is working.

> 3.  ping localhost?  Yes, I can ping localhost.
>
OK. TCP stack is good.

> 4. firewall?  No, I'm not running firewall.
>
Has caused a few headache for others.

> 5.  I'm using Windows2000 OS.
>
Just so I don't quote a Linux thing and confuse you.

> 6.  User rights in database?  Not sure.  How can check this?  Still
> learning mySQL.
>
Check out this page.
http://www.mysql.com/doc/en/Windows_post-installation.html 

How did you create the database ecpa and associated tables?

Doug


> Thanks,
> --Kawthar
>
> >>> [EMAIL PROTECTED] 18/03/2004 01:29:27 PM >>>
> Kawthar,
>
> As for Steve's concerns:
> It is the same one. The short story: Mark Mathews wrote it MySQL
liked
> it
> and adopted it and him. So it went from org.gjt.mm to com.mysql. 
Both
> names
> will work fine but to be up to date use the com.mysql.
>
> As for server.xml having only one is fine, and on TC4 this is
common.
> If you
> move to TC5 then you can have multiple files with each part applying
to
> only
> the app that it is included with. For now don't worry about it.
>
> If your application is running OK as ROOT other than the DBCP
problems
> then
> you are fine. It is that most people set up a new context and don't
> mess
> with the ROOT at first. But again if the rest of the app runs you're
> fine.
>
> Now for fifty questions:
> You are rebooting after changes? It has bitten me several times.
>
> Have you done a manual connection?
> Class.forName("com.mysql.jdbc.Driver");
> connection =
> DriverManager.getConnection(
> "jdbc:mysql://localhost:3306/ecpa",
> "youruser",
> "yourpassword");
>
> If the manual connection fails then:
> Can you access the database directly and log on using the username
and
> password that is in the context?
>
> Can you open a prompt and ping localhost? I have seen it fail.
> If so use the IP of your machine if you can ping it otherwise you
have
> other
> issues.
>
> Are you running a firewall on the machine?
>
> What OS are you on?
>
> What are the rights for the user in the database, can the user gain
> access
> from localhost?
>
> Doug
>
>
> - Original Message - 
> From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 17, 2004 11:46 PM
> Subject: Re: JDBC/mySQL problem.
>
>
> > Followed your suggestion, but still not working.
> >
> > Thnx,
> > --Kawthar
> >
> > >>> [EMAIL PROTECTED] 18/03/2004 12:18:00 PM >>>
> > Kawthar,
> >
> > Change:
> >
> >>  type="javax.sql.DataSource"/>
> >
> >   >  type="javax.sql.DataSource"/>
> >
> > To:
> >
> >>  type="javax.sql.DataSource"/>
> >
> > Should work either way, mine did, just cleaner and proper.
> > Note name is changed in second entry, added jdbc/  .
> >
> >
> > Doug
> >
> > - Original Message - 
> > From: "Parsons Technical Services"
<[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, March 17, 2004 11:02 PM
> > Subject: Re: JDBC/mySQL problem.
> >
> >
> > > Kawthar,
> > >
> > > Try this context in place of yours.
> > >
> > >   
> > >   > > type="javax.sql.DataSource"/>
> > >
> > >  > > type="javax.sql.DataSource"/>
> > >
> > >   
> > >
> > >factory
> > >
> > > org.apache.commons.dbcp.BasicDataSourceFactory
> > >
> > >
> > >  username
> > > 
> > > 
> > >   
> > >  password
> > >
> > >  
> > >   
> > >   maxActive
> > >   100
> > >   
> > > 
> > >   maxIdle
> > >   5
> > > 
> > > 
> > >   maxWait
> > >   1
> > > 
> > >
> > > 
> > >   driverClassName
> > >   org.gjt.mm.mysql.Driver
> > >   
> > >   
> > >url
> > >
jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
> > >   
> > >
> > >
> > >className="org.apache.catalina.logger.FileLogger"
> > >  prefix="DBlog." suffix=".txt"
> > >   timestamp="true"/>
> > >  
> > >
> > > Don't forget to close the statement and the result set.
> > > I do mine in a finally block along with the conn.close() 

Re: JDBC/mySQL problem.

2004-03-17 Thread Parsons Technical Services
See comments under answers.

> Answers to your question:
>
> 1. reboot?  Yes, every single time.  I stopped tomcat and restarted it
> everytime I make changes.
Good, but I had to ask.

>
> 2. manual connection?  No, I haven't done this.  Let me try and will
> let you know.
>
This tests that all else is working.

> 3.  ping localhost?  Yes, I can ping localhost.
>
OK. TCP stack is good.

> 4. firewall?  No, I'm not running firewall.
>
Has caused a few headache for others.

> 5.  I'm using Windows2000 OS.
>
Just so I don't quote a Linux thing and confuse you.

> 6.  User rights in database?  Not sure.  How can check this?  Still
> learning mySQL.
>
Check out this page.
http://www.mysql.com/doc/en/Windows_post-installation.html

How did you create the database ecpa and associated tables?

Doug


> Thanks,
> --Kawthar
>
> >>> [EMAIL PROTECTED] 18/03/2004 01:29:27 PM >>>
> Kawthar,
>
> As for Steve's concerns:
> It is the same one. The short story: Mark Mathews wrote it MySQL liked
> it
> and adopted it and him. So it went from org.gjt.mm to com.mysql.  Both
> names
> will work fine but to be up to date use the com.mysql.
>
> As for server.xml having only one is fine, and on TC4 this is common.
> If you
> move to TC5 then you can have multiple files with each part applying to
> only
> the app that it is included with. For now don't worry about it.
>
> If your application is running OK as ROOT other than the DBCP problems
> then
> you are fine. It is that most people set up a new context and don't
> mess
> with the ROOT at first. But again if the rest of the app runs you're
> fine.
>
> Now for fifty questions:
> You are rebooting after changes? It has bitten me several times.
>
> Have you done a manual connection?
> Class.forName("com.mysql.jdbc.Driver");
> connection =
> DriverManager.getConnection(
> "jdbc:mysql://localhost:3306/ecpa",
> "youruser",
> "yourpassword");
>
> If the manual connection fails then:
> Can you access the database directly and log on using the username and
> password that is in the context?
>
> Can you open a prompt and ping localhost? I have seen it fail.
> If so use the IP of your machine if you can ping it otherwise you have
> other
> issues.
>
> Are you running a firewall on the machine?
>
> What OS are you on?
>
> What are the rights for the user in the database, can the user gain
> access
> from localhost?
>
> Doug
>
>
> - Original Message - 
> From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 17, 2004 11:46 PM
> Subject: Re: JDBC/mySQL problem.
>
>
> > Followed your suggestion, but still not working.
> >
> > Thnx,
> > --Kawthar
> >
> > >>> [EMAIL PROTECTED] 18/03/2004 12:18:00 PM >>>
> > Kawthar,
> >
> > Change:
> >
> >>  type="javax.sql.DataSource"/>
> >
> >   >  type="javax.sql.DataSource"/>
> >
> > To:
> >
> >>  type="javax.sql.DataSource"/>
> >
> > Should work either way, mine did, just cleaner and proper.
> > Note name is changed in second entry, added jdbc/  .
> >
> >
> > Doug
> >
> > - Original Message - 
> > From: "Parsons Technical Services" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, March 17, 2004 11:02 PM
> > Subject: Re: JDBC/mySQL problem.
> >
> >
> > > Kawthar,
> > >
> > > Try this context in place of yours.
> > >
> > >   
> > >   > > type="javax.sql.DataSource"/>
> > >
> > >  > > type="javax.sql.DataSource"/>
> > >
> > >   
> > >
> > >factory
> > >
> > > org.apache.commons.dbcp.BasicDataSourceFactory
> > >
> > >
> > >  username
> > > 
> > > 
> > >   
> > >  password
> > >
> > >  
> > >   
> > >   maxActive
> > >   100
> > >   
> > > 
> > >   maxIdle
> > >   5
> > > 
> > > 
> > >   maxWait
> > >   1
> > > 
> > >
> > > 
> > >   driverClassName
> > >   org.gjt.mm.mysql.Driver
> > >   
> > >   
> > >url
> > > jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
> > >   
> > >
> > >
> > >className="org.apache.catalina.logger.FileLogger"
> > >  prefix="DBlog." suffix=".txt"
> > >   timestamp="true"/>
> > >  
> > >
> > > Don't forget to close the statement and the result set.
> > > I do mine in a finally block along with the conn.close() and each
> one
> > is
> > > wrapped in a try / catch.
> > >
> > > Make sure to restart Tomcat after you make changes to the
> > server.xml.
> > >
> > > Doug
> > >
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> > >
> > >
> >
> >
> >
> -
> > To unsubscribe

Re: JDBC/mySQL problem.

2004-03-17 Thread Kawthar Bt M Sulaiman
Answers to your question:

1. reboot?  Yes, every single time.  I stopped tomcat and restarted it
everytime I make changes.

2. manual connection?  No, I haven't done this.  Let me try and will
let you know.

3.  ping localhost?  Yes, I can ping localhost.

4. firewall?  No, I'm not running firewall.

5.  I'm using Windows2000 OS.

6.  User rights in database?  Not sure.  How can check this?  Still
learning mySQL.

Thanks,
--Kawthar  

>>> [EMAIL PROTECTED] 18/03/2004 01:29:27 PM >>>
Kawthar,

As for Steve's concerns:
It is the same one. The short story: Mark Mathews wrote it MySQL liked
it
and adopted it and him. So it went from org.gjt.mm to com.mysql.  Both
names
will work fine but to be up to date use the com.mysql.

As for server.xml having only one is fine, and on TC4 this is common.
If you
move to TC5 then you can have multiple files with each part applying to
only
the app that it is included with. For now don't worry about it.

If your application is running OK as ROOT other than the DBCP problems
then
you are fine. It is that most people set up a new context and don't
mess
with the ROOT at first. But again if the rest of the app runs you're
fine.

Now for fifty questions:
You are rebooting after changes? It has bitten me several times.

Have you done a manual connection?
Class.forName("com.mysql.jdbc.Driver");
connection =
DriverManager.getConnection(
"jdbc:mysql://localhost:3306/ecpa",
"youruser",
"yourpassword");

If the manual connection fails then:
Can you access the database directly and log on using the username and
password that is in the context?

Can you open a prompt and ping localhost? I have seen it fail.
If so use the IP of your machine if you can ping it otherwise you have
other
issues.

Are you running a firewall on the machine?

What OS are you on?

What are the rights for the user in the database, can the user gain
access
from localhost?

Doug


- Original Message - 
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 11:46 PM
Subject: Re: JDBC/mySQL problem.


> Followed your suggestion, but still not working.
>
> Thnx,
> --Kawthar
>
> >>> [EMAIL PROTECTED] 18/03/2004 12:18:00 PM >>>
> Kawthar,
>
> Change:
>
> type="javax.sql.DataSource"/>
>
>type="javax.sql.DataSource"/>
>
> To:
>
> type="javax.sql.DataSource"/>
>
> Should work either way, mine did, just cleaner and proper.
> Note name is changed in second entry, added jdbc/  .
>
>
> Doug
>
> - Original Message - 
> From: "Parsons Technical Services" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 17, 2004 11:02 PM
> Subject: Re: JDBC/mySQL problem.
>
>
> > Kawthar,
> >
> > Try this context in place of yours.
> >
> >   
> >   > type="javax.sql.DataSource"/>
> >
> >  > type="javax.sql.DataSource"/>
> >
> >   
> >
> >factory
> >
> > org.apache.commons.dbcp.BasicDataSourceFactory
> >
> >
> >  username
> > 
> > 
> >   
> >  password
> >
> >  
> >   
> >   maxActive
> >   100
> >   
> > 
> >   maxIdle
> >   5
> > 
> > 
> >   maxWait
> >   1
> > 
> >
> > 
> >   driverClassName
> >   org.gjt.mm.mysql.Driver
> >   
> >   
> >url
> > jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
> >   
> >
> >
> >>  prefix="DBlog." suffix=".txt"
> >   timestamp="true"/>
> >  
> >
> > Don't forget to close the statement and the result set.
> > I do mine in a finally block along with the conn.close() and each
one
> is
> > wrapped in a try / catch.
> >
> > Make sure to restart Tomcat after you make changes to the
> server.xml.
> >
> > Doug
> >
> >
> >
> >
>
-
> > 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]




-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 

Confidential information may be contained in this e-mail and any files transmitted 
with it ('Message'). If you are not the addressee indicated in this Message (or 
responsible for delivery of this Message to such person), you are hereby notified that 
any dissemination, distribution, printing or copying of this Message or any part 
thereof is

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-17 Thread Jacob Kjome
At 10:38 PM 3/17/2004 +, you wrote:

Hi,

Thank you for that, and excuse my delay in responding. I tried what 
you suggested, but found the LogManager class did not contain such a 
method. It did have one method to speak of - getLogManager() which 
returns an instance of LogManager, but that also has no shutdown method. 
I found reset():

LogManager.getLogManager().reset();

I am using JDK 1.4.2_03. How might I sort this hassle out please? It seems 
to be happening very infrequently, but is definately a show stopper!

thanks
Hmm...  Take another look at LogManager's source code.  I absolutely, 100% 
guarantee that LogManager.shutdown() exists.  You are using Log4j-1.2.8, 
right?  I know it exists there and I think it has been around for a while 
anyway (but can't be sure).  Anyway, the proof is in the Javadoc

http://logging.apache.org/log4j/docs/api/org/apache/log4j/LogManager.html#shutdown()

Jake



G.

This has to do with Log4j. Make sure you set up a servlet context listener
and do LogManager.shutdown() in the contextDestroyed() method. This will
take care of your troubles.
Jake

At 02:13 AM 3/16/2004 +, you wrote:

>Hello all,
>
> Can anyone shed some light on the above error please? On the web, I
> saw it often associated with NoClassDefFoundError, and something called
> DOMConfigurator.
>
> May app does indeed parse XML (JDom and Nano XML). Is this message
> linked to an error possibly residing in my XML parsing?
>
> I also see that it is associated with the stop() method on the
> WebappClassLoader'. But I am not calling such a method.
>
>Any info appreciated
>
>G.
>
>
>
>
>-
> Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> Download Messenger Now
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JDBC/mySQL problem.

2004-03-17 Thread Parsons Technical Services
Kawthar,

As for Steve's concerns:
It is the same one. The short story: Mark Mathews wrote it MySQL liked it
and adopted it and him. So it went from org.gjt.mm to com.mysql.  Both names
will work fine but to be up to date use the com.mysql.

As for server.xml having only one is fine, and on TC4 this is common. If you
move to TC5 then you can have multiple files with each part applying to only
the app that it is included with. For now don't worry about it.

If your application is running OK as ROOT other than the DBCP problems then
you are fine. It is that most people set up a new context and don't mess
with the ROOT at first. But again if the rest of the app runs you're fine.

Now for fifty questions:
You are rebooting after changes? It has bitten me several times.

Have you done a manual connection?
Class.forName("com.mysql.jdbc.Driver");
connection =
DriverManager.getConnection(
"jdbc:mysql://localhost:3306/ecpa",
"youruser",
"yourpassword");

If the manual connection fails then:
Can you access the database directly and log on using the username and
password that is in the context?

Can you open a prompt and ping localhost? I have seen it fail.
If so use the IP of your machine if you can ping it otherwise you have other
issues.

Are you running a firewall on the machine?

What OS are you on?

What are the rights for the user in the database, can the user gain access
from localhost?

Doug


- Original Message - 
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 11:46 PM
Subject: Re: JDBC/mySQL problem.


> Followed your suggestion, but still not working.
>
> Thnx,
> --Kawthar
>
> >>> [EMAIL PROTECTED] 18/03/2004 12:18:00 PM >>>
> Kawthar,
>
> Change:
>
> type="javax.sql.DataSource"/>
>
>type="javax.sql.DataSource"/>
>
> To:
>
> type="javax.sql.DataSource"/>
>
> Should work either way, mine did, just cleaner and proper.
> Note name is changed in second entry, added jdbc/  .
>
>
> Doug
>
> - Original Message - 
> From: "Parsons Technical Services" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 17, 2004 11:02 PM
> Subject: Re: JDBC/mySQL problem.
>
>
> > Kawthar,
> >
> > Try this context in place of yours.
> >
> >   
> >   > type="javax.sql.DataSource"/>
> >
> >  > type="javax.sql.DataSource"/>
> >
> >   
> >
> >factory
> >
> > org.apache.commons.dbcp.BasicDataSourceFactory
> >
> >
> >  username
> > 
> > 
> >   
> >  password
> >
> >  
> >   
> >   maxActive
> >   100
> >   
> > 
> >   maxIdle
> >   5
> > 
> > 
> >   maxWait
> >   1
> > 
> >
> > 
> >   driverClassName
> >   org.gjt.mm.mysql.Driver
> >   
> >   
> >url
> > jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
> >   
> >
> >
> >>  prefix="DBlog." suffix=".txt"
> >   timestamp="true"/>
> >  
> >
> > Don't forget to close the statement and the result set.
> > I do mine in a finally block along with the conn.close() and each one
> is
> > wrapped in a try / catch.
> >
> > Make sure to restart Tomcat after you make changes to the
> server.xml.
> >
> > Doug
> >
> >
> >
> >
> -
> > 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]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JDBC problems with MySQL

2004-03-17 Thread Kawthar Bt M Sulaiman
I've changed the driver to com.mysql.jdbc.Driver.  Which jdbc jar file
is this?
The one that I have is mysql-connector-java-3.0.11-bin.

I only have one server.xml (newbie.. so don't have many apps).
This file is located under $CATALINA_HOME/conf.  Should it be somewhere
else?

Also, what should my docBase be?
I'm using Win2K OS.  My WEB-INF directory is under
$CATALINA_HOME/webapps/ROOT.
That's why I have my docBase as ROOT.

Still the same exception.

Thnx,
--Kawthar

>>> [EMAIL PROTECTED] 18/03/2004 12:29:21 PM >>>
I was able to find it, and it is a little involved.  Basically on my
system
the issue was the context wasn't being read or involked correctly.  I
exchanged the server.xml with the server-minimum.xml and found that
either
placing the context in the Host tag or better yet in 
/usr/local/tomcat/conf/Catalina/localhost/DBTest.xml
Worked.

I went with the separate file, that way all my webapps have separate
files
and I am not cluttering up the server.xml

Once I did this.  I was A-OK.
If you are using MYSQL make sure your class name isn't
Org.gjt.mm.mysql
According to the docs for mysql that is there only for compatibility. 
Use
com.mysql.jdbc.Driver

Also make sure your jdbc jar file is in 
/usr/local/tomcat/common/lib/  or where ever your tomcat resides make
sure
it is in the common/lib sub directory.

Everything is working great for me now 

If that doesn't help let me know.

Steve

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 11:01 AM
To: 'Tomcat Users List'
Subject: RE: JDBC problems with MySQL
Importance: High

Dear Steve,

I posted this problem around 3 months back and I am daily reading the
forum,
hoping that one day somebody will give a solution.
I will deeply appreciate you if u share the solution with me if u r
able to
find.

Good Luck 

Best Regards
Abhay Kumar


-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 11:57 AM
To: [EMAIL PROTECTED] 
Subject: JDBC problems with MySQL


Users

I know there has been a bazillion messages about this.  I
searched the archives and couldn't find anything to solve my extremely
annoying issue.  It has to be something really simple but I just can't
find
it.

 

My System:

Solaris 9

Tomcat 5.0.19

MySQL 4.0.18

Connector J 3.0.11

 

I have the connector J jar in the /usr/local/tomcat/common/lib dir.

I have basically copied the HOW-TO located at.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how

to.html

 

and my result is this.


Results


Foo Not Connected
Bar -1

 

I have tried everything I can think of.  I verified the database and
the
user/password combo.  Works good.  I even created a simple Java app
that
connects and performs queries, which worked.  That would indicate
everything
is cool with the Connector J.  I have verified that the jdbc/TestDB is
in
the context and it is.  As best I can tell ds (DataSource) is coming
back
not null, but the call to getConnection is failing.  I created a little
more
verbose web app and get the following message.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of
class '' for connect URL 'null', cause: No suitable driver

 

This has to be something simple, because this works fine on my old
machine.
I know I am forgetting some small step that I did the first time and
failed
to do again.  Trust me I have checked the configs about a million
times, and
can't find any differences.   Any help would be appreciated.

 

Sorry to be so vague here, but this is really simple. I don't know what
else
to include for info.

 

Steve Gums

[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] 

Confidential information may be contained in this e-mail and any files transmitted 
with it ('Message'). If you are not the addressee indicated in this Message (or 
responsible for delivery of this Message to such person), you are hereby notified that 
any dissemination, distribution, printing or copying of this Message or any part 
thereof is strictly prohibited. In such a case, you should delete this Message 
immediately and advise the sender by return e-mail. Opinions, conclusions and other 
information in this Message that do not relate to the official business of Maxis shall 
be understood as neither given nor endorsed by Maxis.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: JDBC/mySQL problem.

2004-03-17 Thread Kawthar Bt M Sulaiman
Followed your suggestion, but still not working.

Thnx,
--Kawthar

>>> [EMAIL PROTECTED] 18/03/2004 12:18:00 PM >>>
Kawthar,

Change:

  
 
 

To:

  

Should work either way, mine did, just cleaner and proper.
Note name is changed in second entry, added jdbc/  .


Doug

- Original Message - 
From: "Parsons Technical Services" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 11:02 PM
Subject: Re: JDBC/mySQL problem.


> Kawthar,
> 
> Try this context in place of yours.
> 
>   
>   type="javax.sql.DataSource"/>
> 
>  type="javax.sql.DataSource"/>
> 
>   
>
>factory
> 
> org.apache.commons.dbcp.BasicDataSourceFactory
>
>
>  username
> 
> 
>   
>  password
>
>  
>   
>   maxActive
>   100
>   
> 
>   maxIdle
>   5
> 
> 
>   maxWait
>   1
> 
> 
> 
>   driverClassName
>   org.gjt.mm.mysql.Driver
>   
>   
>url
> jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
>   
>
> 
> prefix="DBlog." suffix=".txt"
>   timestamp="true"/>
>  
> 
> Don't forget to close the statement and the result set.
> I do mine in a finally block along with the conn.close() and each one
is
> wrapped in a try / catch.
> 
> Make sure to restart Tomcat after you make changes to the
server.xml.
> 
> Doug
> 
> 
> 
>
-
> 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] 

Confidential information may be contained in this e-mail and any files transmitted 
with it ('Message'). If you are not the addressee indicated in this Message (or 
responsible for delivery of this Message to such person), you are hereby notified that 
any dissemination, distribution, printing or copying of this Message or any part 
thereof is strictly prohibited. In such a case, you should delete this Message 
immediately and advise the sender by return e-mail. Opinions, conclusions and other 
information in this Message that do not relate to the official business of Maxis shall 
be understood as neither given nor endorsed by Maxis.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Kumar's JDBC problems with MySQL

2004-03-17 Thread Steve Gums
I noticed a couple things.  One I want to be corrected if I am wrong but
your docBase should not be root.  Second your driver for MySQL isn't the
org.gjt thing anymore.  Use com.mysql.jdbc.Driver 

I unfortunately have seen this error far too much in the past few days.  It
is not getting into the JNDI resources.  Your context segment needs repair.

Steve I have included my DBTest.xml from
/usr/local/tomcat/conf/Catalina/localhost/  and it works now.


  

  

  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory




  maxActive
  100




  maxIdle
  30



  maxWait
  1




 username
 


 password
 




   driverClassName
   com.mysql.jdbc.Driver




  url
  jdbc:mysql://localhost/javatest?autoReconnect=true

  

-Original Message-
From: Kawthar Bt M Sulaiman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 7:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Kumar's JDBC problems with MySQL

Kumar,

I've been trying to follow the JDBC pb thread as well and still can't
get rid of the
problem.  Here is what I've done.

Using J Connector 3.0, Tomcat 4.1.30 and mySQL 4.0.18.
I put my "mysql-connector-java-3.0.11-bin" under /common/lib.

1.  Start from simple web.xml:
  
DB Connection
jdbc/mySQLDatabase
javax.sql.DataSource
Container
  

2.  server.xml (located at $CATALINA_HOME\conf\server.xml)
 
  

  
   
   factory
  
org.apache.commons.dbcp.BasicDataSourceFactory
   
   
serverName
localhost

   
databaseName
   ecpa
   
   
pathname
conf/tomcat-users.xml


 username


  
 password
   
 
 
removeAbandoned
   true
   
  
  removeAbandonedTimeout
  200
 
   
   logAbandoned
true
   
  
  maxActive
  100
  
 
  driverClassName
  org.gjt.mm.mysql.Driver
  
  
   url
  
jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
  
   

  
 

3.  In my code:
Context ctx = new InitialContext();
if(ctx == null)
{
throw new Exception("\nNo Context Error");
}

DataSource ds = (DataSource)
ctx.lookup("java:comp/env/jdbc/mySQLDatabase");
if (ds == null)
{
System.out.println("\n DataSource is NULL ");
}

Connection conn = ds.getConnection();
if (conn != null)
{
System.out.println("\nGot Connection ");
Statement stmt = conn.createStatement();
ResultSet rst = 
stmt.executeQuery("select username from
users");
if(rst.next())
{
System.out.println("\n username: " +
rst.getString(1));
}
conn.close();
}

4.  Error message I got from printStackTrace():
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of class '
' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:743)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:518)
at
com.maxis.app.ContentProcessor.initializeDatabase(ContentProcessor.ja
va:60)
at com.maxis.morequest.DBTest.init(DBTest.java:31)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:935)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
a:668)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)


I believe these are the steps everyb

RE: JDBC problems with MySQL

2004-03-17 Thread Steve Gums
The MySQL database was never the problem.  The problem was the resource
wasn't being loaded into the JNDI.  Problem was the context segement of my
config.



-Original Message-
From: Tom K [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 6:09 PM
To: 'Tomcat Users List'
Subject: RE: JDBC problems with MySQL

I am new to this list as of today, so I don't know if anyone has already
answered your question. Tomcat will not connect to mysql unless you have
a password and of course rights to the database. Here is an example.

Use these mySQL commands

mysql -u root  (This command gives your root privledges).

CONNECT YourDatabase
GRANT ALL PRIVILEGES ON *.* TO [EMAIL PROTECTED] IDENTIFIED BY
"Yourpassword" WITH GRANT OPTION;

You must have a password for Tomcat to work with mySQL

Note: the above user should be removed once testing is complete!


/* Next, put something like this in your server.xml file: */

- 
   
   
- 
- 
  factory 
  org.apache.commons.dbcp.BasicDataSourceFactory 
  
-  
- 
  maxActive 
  100 
  
-  
- 
  maxIdle 
  30 
  
-  
- 
  maxWait 
  1 
  
-  
- 
  removeAbandoned 
  true 
  
-  
- 
  username 
  tkoc 
  
- 
  password 
  trustno1 
  
-  
- 
  driverClassName 
  com.mysql.jdbc.Driver 
  
-  
- 
  url 
 
jdbc:mysql://localhost:3306/Classifieds?autoReconnect=true 
  
  
  
/* NOTE THAT Classifieds would be my JNDI datasource  see the servlet
code below*/


IF CONNECTING VIA A SERVLET PUT THIS CODE BEFORE doPost/doGet

public void init(ServletConfig config) throws ServletException{
super.init(config);
  try{
  System.out.println("init() DeleteDBServlet: Start Loading
Database Driver");
  Context env = (Context) new
InitialContext().lookup("java:comp/env");
  pool = (DataSource) env.lookup("jdbc/Classifieds");

  if (pool == null)
throw new ServletException("`jdbc/Classifieds' is an unknown
DataSource");
  }catch (NamingException e) {
throw new ServletException(e);
  }
  }




I hope this helps,

Tom Kochanowicz






















-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 12:01 PM
To: 'Tomcat Users List'
Subject: RE: JDBC problems with MySQL
Importance: High

Dear Steve,

I posted this problem around 3 months back and I am daily reading the
forum, hoping that one day somebody will give a solution.
I will deeply appreciate you if u share the solution with me if u r able
to find.

Good Luck 

Best Regards
Abhay Kumar


-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 11:57 AM
To: [EMAIL PROTECTED]
Subject: JDBC problems with MySQL


Users

I know there has been a bazillion messages about this.  I
searched the archives and couldn't find anything to solve my extremely
annoying issue.  It has to be something really simple but I just can't
find it.

 

My System:

Solaris 9

Tomcat 5.0.19

MySQL 4.0.18

Connector J 3.0.11

 

I have the connector J jar in the /usr/local/tomcat/common/lib dir.

I have basically copied the HOW-TO located at.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples
-how
to.html

 

and my result is this.


Results


Foo Not Connected
Bar -1

 

I have tried everything I can think of.  I verified the database and the
user/password combo.  Works good.  I even created a simple Java app that
connects and performs queries, which worked.  That would indicate
everything is cool with the Connector J.  I have verified that the
jdbc/TestDB is in the context and it is.  As best I can tell ds
(DataSource) is coming back not null, but the call to getConnection is
failing.  I created a little more verbose web app and get the following
message.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: No suitable driver

 

This has to be something simple, because this works fine on my old
machine. I know I am forgetting some small step that I did the first
time and failed to do again.  Trust me I have checked the configs about
a million times, and
can't find any differences.   Any help would be appreciated.

 

Sorry to be so vague here, but this is really simple. I don't know what
else to include for info.

 

Steve Gums

[EMAIL PROTECTED]

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


-
To unsubscribe,

RE: Kumar's JDBC problems with MySQL

2004-03-17 Thread Steve Gums
After figuring out all the details.. I just want to pass along to the
developers that read this list.  I LOVE IT!  That is the way to go, it helps
keep the server.xml clean and manageable.  Thanks

-Original Message-
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 5:22 PM
To: Tomcat Users List
Subject: RE: Kumar's JDBC problems with MySQL

TC4 supports context resource fragments, but not within a war
(META-INF/context.xml in TC5)...

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]

Sent: Wednesday, March 17, 2004 6:18 PM
To: Tomcat Users List
Subject: Kumar's JDBC problems with MySQL

Kumar,

First, I started you your own thread. I do this so that others and I can
keep you straight as to who is who and know it is a seperate issue
although
on the same topic.

Please repost your context portion of the xml, the section of code that
accesses the connection pool and if global, the resourse section of the
server.xml. We need to see your code to help give you some direction.

You can also look back at the thread
RE: Problem using JNDI/DBCP to get DataSouce
for some pointers as well.

As far as I am aware the main difference in TC4 and TC5 when seting up
the
DBCP is that in TC5 you can use xml fragments in your app and not have
to
modify your server.xml. List please correct me if I am wrong.

Doug
www.parsonstechnical.com





-
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]



RE: JDBC problems with MySQL

2004-03-17 Thread Steve Gums
I was able to find it, and it is a little involved.  Basically on my system
the issue was the context wasn't being read or involked correctly.  I
exchanged the server.xml with the server-minimum.xml and found that either
placing the context in the Host tag or better yet in 
/usr/local/tomcat/conf/Catalina/localhost/DBTest.xml
Worked.

I went with the separate file, that way all my webapps have separate files
and I am not cluttering up the server.xml

Once I did this.  I was A-OK.
If you are using MYSQL make sure your class name isn't
Org.gjt.mm.mysql
According to the docs for mysql that is there only for compatibility.  Use
com.mysql.jdbc.Driver

Also make sure your jdbc jar file is in 
/usr/local/tomcat/common/lib/  or where ever your tomcat resides make sure
it is in the common/lib sub directory.

Everything is working great for me now 

If that doesn't help let me know.

Steve

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 11:01 AM
To: 'Tomcat Users List'
Subject: RE: JDBC problems with MySQL
Importance: High

Dear Steve,

I posted this problem around 3 months back and I am daily reading the forum,
hoping that one day somebody will give a solution.
I will deeply appreciate you if u share the solution with me if u r able to
find.

Good Luck 

Best Regards
Abhay Kumar


-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 11:57 AM
To: [EMAIL PROTECTED]
Subject: JDBC problems with MySQL


Users

I know there has been a bazillion messages about this.  I
searched the archives and couldn't find anything to solve my extremely
annoying issue.  It has to be something really simple but I just can't find
it.

 

My System:

Solaris 9

Tomcat 5.0.19

MySQL 4.0.18

Connector J 3.0.11

 

I have the connector J jar in the /usr/local/tomcat/common/lib dir.

I have basically copied the HOW-TO located at.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
to.html

 

and my result is this.


Results


Foo Not Connected
Bar -1

 

I have tried everything I can think of.  I verified the database and the
user/password combo.  Works good.  I even created a simple Java app that
connects and performs queries, which worked.  That would indicate everything
is cool with the Connector J.  I have verified that the jdbc/TestDB is in
the context and it is.  As best I can tell ds (DataSource) is coming back
not null, but the call to getConnection is failing.  I created a little more
verbose web app and get the following message.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: No suitable driver

 

This has to be something simple, because this works fine on my old machine.
I know I am forgetting some small step that I did the first time and failed
to do again.  Trust me I have checked the configs about a million times, and
can't find any differences.   Any help would be appreciated.

 

Sorry to be so vague here, but this is really simple. I don't know what else
to include for info.

 

Steve Gums

[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]



RE: Apache not starting with Mod_JK

2004-03-17 Thread Steve Gums
Just a stab it appears apache is trying to tell you it can't find the end of
a comment.  Just check that real quick.

Steve

-Original Message-
From: Chris Haines [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 1:58 PM
To: [EMAIL PROTECTED]
Subject: Apache not starting with Mod_JK 

Hello,

I am trying to start Apache with mod_jk. When I try starting apache, I 
get the following error. I haven't modified the admin.xml file. If 
anyone can help, I would greatly appreciated it.

Syntax error on line 25 of 
/usr/local/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml:
Expected  but saw 

Thank you.


-
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: JDBC/mySQL problem.

2004-03-17 Thread Parsons Technical Services
Kawthar,

Change:

  
 
 

To:

  

Should work either way, mine did, just cleaner and proper.
Note name is changed in second entry, added jdbc/  .


Doug

- Original Message - 
From: "Parsons Technical Services" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 11:02 PM
Subject: Re: JDBC/mySQL problem.


> Kawthar,
> 
> Try this context in place of yours.
> 
>   
>   type="javax.sql.DataSource"/>
> 
>  type="javax.sql.DataSource"/>
> 
>   
>
>factory
> 
> org.apache.commons.dbcp.BasicDataSourceFactory
>
>
>  username
> 
> 
>   
>  password
>
>  
>   
>   maxActive
>   100
>   
> 
>   maxIdle
>   5
> 
> 
>   maxWait
>   1
> 
> 
> 
>   driverClassName
>   org.gjt.mm.mysql.Driver
>   
>   
>url
> jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
>   
>
> 
> prefix="DBlog." suffix=".txt"
>   timestamp="true"/>
>  
> 
> Don't forget to close the statement and the result set.
> I do mine in a finally block along with the conn.close() and each one is
> wrapped in a try / catch.
> 
> Make sure to restart Tomcat after you make changes to the server.xml.
> 
> Doug
> 
> 
> 
> -
> 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: JDBC/mySQL problem.

2004-03-17 Thread Parsons Technical Services
Kawthar,

Try this context in place of yours.

  
 



  
   
   factory

org.apache.commons.dbcp.BasicDataSourceFactory
   
   
 username


  
 password
   
 
  
  maxActive
  100
  

  maxIdle
  5


  maxWait
  1



  driverClassName
  org.gjt.mm.mysql.Driver
  
  
   url
jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
  
   

  
 

Don't forget to close the statement and the result set.
I do mine in a finally block along with the conn.close() and each one is
wrapped in a try / catch.

Make sure to restart Tomcat after you make changes to the server.xml.

Doug



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JDBC/mySQL problem.

2004-03-17 Thread Kawthar Bt M Sulaiman
Doug,

I've removed these params but I still get the same error.

--Kawthar

>>> [EMAIL PROTECTED] 18/03/2004 10:47:36 AM >>>
Kawthar,

Remove this from the context:


 databaseName
ecpa


 pathname
 conf/tomcat-users.xml
 

The database name is given in the url and the pathname is for a file
base
system.

Try it again and let us know in a new thread.

Doug Parsons

www.parsonstechnical.com 



- Original Message - 
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 9:32 PM
Subject: Re: Kumar's JDBC problems with MySQL


> Kumar,
>
> I've been trying to follow the JDBC pb thread as well and still
can't
> get rid of the
> problem.  Here is what I've done.
>
> Using J Connector 3.0, Tomcat 4.1.30 and mySQL 4.0.18.
> I put my "mysql-connector-java-3.0.11-bin" under /common/lib.
>
> 1.  Start from simple web.xml:
>   
> DB Connection
> jdbc/mySQLDatabase
> javax.sql.DataSource
> Container
>   
>
> 2.  server.xml (located at $CATALINA_HOME\conf\server.xml)
>  
>type="javax.sql.DataSource" description="JDBC Connection to
> MySQL v4.0.18"/>
>
>   
>
>factory
>
> org.apache.commons.dbcp.BasicDataSourceFactory
>
>
> serverName
> localhost
> 
>
> databaseName
>ecpa
>
>
> pathname
> conf/tomcat-users.xml
> 
> 
>  username
> 
> 
>   
>  password
>
>  
>  
> removeAbandoned
>true
>
>   
>   removeAbandonedTimeout
>   200
>  
>
>logAbandoned
> true
>
>   
>   maxActive
>   100
>   
>  
>   driverClassName
>   org.gjt.mm.mysql.Driver
>   
>   
>url
>
> jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
>   
>
>
> prefix="DBlog." suffix=".txt"
>   timestamp="true"/>
>  
>
> 3.  In my code:
> Context ctx = new InitialContext();
> if(ctx == null)
> {
> throw new Exception("\nNo Context Error");
> }
>
> DataSource ds = (DataSource)
> ctx.lookup("java:comp/env/jdbc/mySQLDatabase");
> if (ds == null)
> {
> System.out.println("\n DataSource is NULL ");
> }
>
> Connection conn = ds.getConnection();
> if (conn != null)
> {
> System.out.println("\nGot Connection ");
> Statement stmt = conn.createStatement();
> ResultSet rst =
> stmt.executeQuery("select username from
> users");
> if(rst.next())
> {
> System.out.println("\n username: " +
> rst.getString(1));
> }
> conn.close();
> }
>
> 4.  Error message I got from printStackTrace():
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver
> of class '
> ' for connect URL 'null', cause:
> java.sql.SQLException: No suitable driver
> at java.sql.DriverManager.getDriver(DriverManager.java:243)
> at
>
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
> rce.java:743)
> at
>
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
> .java:518)
> at
>
com.maxis.app.ContentProcessor.initializeDatabase(ContentProcessor.ja
> va:60)
> at com.maxis.morequest.DBTest.init(DBTest.java:31)
> at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
> java:935)
> at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
> a:668)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:210)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:191)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>
> I believe

mod_jk3, Tomcat, Apache2 Wildcard problem (Linux)

2004-03-17 Thread Ken Hensel
Help please,

I have searched far and wide, but found no answer to this question -
although one guy had the same problem and reverted to mod_jk as a
solution.  This is not a solution for me.
I have the following in my workers2.properties file:

[uri:/myapp/]
[uri:/myapp/*.jsp]
[uri:/myapp/dir1/*.jsp]
[uri:/myapp/dir1/dir2]
[uri:/myapp/dir2/*]
Everything works as expected except for the final one.  The wildcard (*)
by itself after a / is not working.  Instead it tries to access the
pathname on DocumentRoot instead of Tomcat (4.1).
Has anyone had this problem?  I used both binaries and also build
Apache2 and jakarta-tomcat-connectors from source with the same problem.
Any help would be appreciated.

Thanks, Ken



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Kumar's JDBC problems with MySQL

2004-03-17 Thread Parsons Technical Services
Kawthar,

Remove this from the context:


 databaseName
ecpa


 pathname
 conf/tomcat-users.xml
 

The database name is given in the url and the pathname is for a file base
system.

Try it again and let us know in a new thread.

Doug Parsons

www.parsonstechnical.com



- Original Message - 
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 9:32 PM
Subject: Re: Kumar's JDBC problems with MySQL


> Kumar,
>
> I've been trying to follow the JDBC pb thread as well and still can't
> get rid of the
> problem.  Here is what I've done.
>
> Using J Connector 3.0, Tomcat 4.1.30 and mySQL 4.0.18.
> I put my "mysql-connector-java-3.0.11-bin" under /common/lib.
>
> 1.  Start from simple web.xml:
>   
> DB Connection
> jdbc/mySQLDatabase
> javax.sql.DataSource
> Container
>   
>
> 2.  server.xml (located at $CATALINA_HOME\conf\server.xml)
>  
>type="javax.sql.DataSource" description="JDBC Connection to
> MySQL v4.0.18"/>
>
>   
>
>factory
>
> org.apache.commons.dbcp.BasicDataSourceFactory
>
>
> serverName
> localhost
> 
>
> databaseName
>ecpa
>
>
> pathname
> conf/tomcat-users.xml
> 
> 
>  username
> 
> 
>   
>  password
>
>  
>  
> removeAbandoned
>true
>
>   
>   removeAbandonedTimeout
>   200
>  
>
>logAbandoned
> true
>
>   
>   maxActive
>   100
>   
>  
>   driverClassName
>   org.gjt.mm.mysql.Driver
>   
>   
>url
>
> jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
>   
>
>
> prefix="DBlog." suffix=".txt"
>   timestamp="true"/>
>  
>
> 3.  In my code:
> Context ctx = new InitialContext();
> if(ctx == null)
> {
> throw new Exception("\nNo Context Error");
> }
>
> DataSource ds = (DataSource)
> ctx.lookup("java:comp/env/jdbc/mySQLDatabase");
> if (ds == null)
> {
> System.out.println("\n DataSource is NULL ");
> }
>
> Connection conn = ds.getConnection();
> if (conn != null)
> {
> System.out.println("\nGot Connection ");
> Statement stmt = conn.createStatement();
> ResultSet rst =
> stmt.executeQuery("select username from
> users");
> if(rst.next())
> {
> System.out.println("\n username: " +
> rst.getString(1));
> }
> conn.close();
> }
>
> 4.  Error message I got from printStackTrace():
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
> of class '
> ' for connect URL 'null', cause:
> java.sql.SQLException: No suitable driver
> at java.sql.DriverManager.getDriver(DriverManager.java:243)
> at
> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
> rce.java:743)
> at
> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
> .java:518)
> at
> com.maxis.app.ContentProcessor.initializeDatabase(ContentProcessor.ja
> va:60)
> at com.maxis.morequest.DBTest.init(DBTest.java:31)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
> java:935)
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
> a:668)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:210)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>
> I believe these are the steps everybody else implementing, but I still
> get this
> error... Did I miss something?
>
> Thanks,
> --Kawth

Tomcat 5.0.18 doesn't work

2004-03-17 Thread Anand Gondhiya
Hi All, 
 I  am using Tomcat 5.0.18  and java version "1.4.2_03" on WinXP.
 My tomcat was working fine till now.  I installed JSTL  and now it doesn't work.
 For JSTL installation  I didnt make any changes to class path or path env. 
variables.
 
 before that It was working fine with request taglib  but now if I point to :
http://localhost:8080/index.jsp  it gives following error: 
 
 
  HTTP Status 404 - /index.jsp
   
   type Status report
 
   message /index.jsp
 
   description The requested resource (/index.jsp) is not available.
 
  Note: index.jsp is lying under   D:\Tomcat 5.0\webapps\ROOT
 
   kindly help   thanks in advance 
-Anand.

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

Re: Kumar's JDBC problems with MySQL

2004-03-17 Thread Kawthar Bt M Sulaiman
Kumar,

I've been trying to follow the JDBC pb thread as well and still can't
get rid of the
problem.  Here is what I've done.

Using J Connector 3.0, Tomcat 4.1.30 and mySQL 4.0.18.
I put my "mysql-connector-java-3.0.11-bin" under /common/lib.

1.  Start from simple web.xml:
  
DB Connection
jdbc/mySQLDatabase
javax.sql.DataSource
Container
  

2.  server.xml (located at $CATALINA_HOME\conf\server.xml)
 
  

  
   
   factory
  
org.apache.commons.dbcp.BasicDataSourceFactory
   
   
serverName
localhost

   
databaseName
   ecpa
   
   
pathname
conf/tomcat-users.xml


 username


  
 password
   
 
 
removeAbandoned
   true
   
  
  removeAbandonedTimeout
  200
 
   
   logAbandoned
true
   
  
  maxActive
  100
  
 
  driverClassName
  org.gjt.mm.mysql.Driver
  
  
   url
  
jdbc:mysql://localhost:3306/ecpa?autoReconnect=true
  
   

  
 

3.  In my code:
Context ctx = new InitialContext();
if(ctx == null)
{
throw new Exception("\nNo Context Error");
}

DataSource ds = (DataSource)
ctx.lookup("java:comp/env/jdbc/mySQLDatabase");
if (ds == null)
{
System.out.println("\n DataSource is NULL ");
}

Connection conn = ds.getConnection();
if (conn != null)
{
System.out.println("\nGot Connection ");
Statement stmt = conn.createStatement();
ResultSet rst = 
stmt.executeQuery("select username from
users");
if(rst.next())
{
System.out.println("\n username: " +
rst.getString(1));
}
conn.close();
}

4.  Error message I got from printStackTrace():
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of class '
' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:743)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:518)
at
com.maxis.app.ContentProcessor.initializeDatabase(ContentProcessor.ja
va:60)
at com.maxis.morequest.DBTest.init(DBTest.java:31)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:935)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
a:668)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)


I believe these are the steps everybody else implementing, but I still
get this
error... Did I miss something?

Thanks,
--Kawthar
Confidential information may be contained in this e-mail and any files transmitted 
with it ('Message'). If you are not the addressee indicated in this Message (or 
responsible for delivery of this Message to such person), you are hereby notified that 
any dissemination, distribution, printing or copying of this Message or any part 
thereof is strictly prohibited. In such a case, you should delete this Message 
immediately and advise the sender by return e-mail. Opinions, conclusions and other 
information in this Message that do not relate to the official business of Maxis shall 
be understood as neither given nor endorsed by Maxis.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: JDBC problems with MySQL

2004-03-17 Thread Tom K
I am new to this list as of today, so I don't know if anyone has already
answered your question. Tomcat will not connect to mysql unless you have
a password and of course rights to the database. Here is an example.

Use these mySQL commands

mysql -u root  (This command gives your root privledges).

CONNECT YourDatabase
GRANT ALL PRIVILEGES ON *.* TO [EMAIL PROTECTED] IDENTIFIED BY
“Yourpassword” WITH GRANT OPTION;

You must have a password for Tomcat to work with mySQL

Note: the above user should be removed once testing is complete!


/* Next, put something like this in your server.xml file: */

- 
   
   
- 
- 
  factory 
  org.apache.commons.dbcp.BasicDataSourceFactory 
  
-  
- 
  maxActive 
  100 
  
-  
- 
  maxIdle 
  30 
  
-  
- 
  maxWait 
  1 
  
-  
- 
  removeAbandoned 
  true 
  
-  
- 
  username 
  tkoc 
  
- 
  password 
  trustno1 
  
-  
- 
  driverClassName 
  com.mysql.jdbc.Driver 
  
-  
- 
  url 
 
jdbc:mysql://localhost:3306/Classifieds?autoReconnect=true 
  
  
  
/* NOTE THAT Classifieds would be my JNDI datasource  see the servlet
code below*/


IF CONNECTING VIA A SERVLET PUT THIS CODE BEFORE doPost/doGet

public void init(ServletConfig config) throws ServletException{
super.init(config);
  try{
  System.out.println("init() DeleteDBServlet: Start Loading
Database Driver");
  Context env = (Context) new
InitialContext().lookup("java:comp/env");
  pool = (DataSource) env.lookup("jdbc/Classifieds");

  if (pool == null)
throw new ServletException("`jdbc/Classifieds' is an unknown
DataSource");
  }catch (NamingException e) {
throw new ServletException(e);
  }
  }




I hope this helps,

Tom Kochanowicz






















-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 12:01 PM
To: 'Tomcat Users List'
Subject: RE: JDBC problems with MySQL
Importance: High

Dear Steve,

I posted this problem around 3 months back and I am daily reading the
forum, hoping that one day somebody will give a solution.
I will deeply appreciate you if u share the solution with me if u r able
to find.

Good Luck 

Best Regards
Abhay Kumar


-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 11:57 AM
To: [EMAIL PROTECTED]
Subject: JDBC problems with MySQL


Users

I know there has been a bazillion messages about this.  I
searched the archives and couldn't find anything to solve my extremely
annoying issue.  It has to be something really simple but I just can't
find it.

 

My System:

Solaris 9

Tomcat 5.0.19

MySQL 4.0.18

Connector J 3.0.11

 

I have the connector J jar in the /usr/local/tomcat/common/lib dir.

I have basically copied the HOW-TO located at.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples
-how
to.html

 

and my result is this.


Results


Foo Not Connected
Bar -1

 

I have tried everything I can think of.  I verified the database and the
user/password combo.  Works good.  I even created a simple Java app that
connects and performs queries, which worked.  That would indicate
everything is cool with the Connector J.  I have verified that the
jdbc/TestDB is in the context and it is.  As best I can tell ds
(DataSource) is coming back not null, but the call to getConnection is
failing.  I created a little more verbose web app and get the following
message.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: No suitable driver

 

This has to be something simple, because this works fine on my old
machine. I know I am forgetting some small step that I did the first
time and failed to do again.  Trust me I have checked the configs about
a million times, and
can't find any differences.   Any help would be appreciated.

 

Sorry to be so vague here, but this is really simple. I don't know what
else to include for info.

 

Steve Gums

[EMAIL PROTECTED]

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Kumar's JDBC problems with MySQL

2004-03-17 Thread D'Alessandro, Arthur
TC4 supports context resource fragments, but not within a war
(META-INF/context.xml in TC5)...

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]

Sent: Wednesday, March 17, 2004 6:18 PM
To: Tomcat Users List
Subject: Kumar's JDBC problems with MySQL

Kumar,

First, I started you your own thread. I do this so that others and I can
keep you straight as to who is who and know it is a seperate issue
although
on the same topic.

Please repost your context portion of the xml, the section of code that
accesses the connection pool and if global, the resourse section of the
server.xml. We need to see your code to help give you some direction.

You can also look back at the thread
RE: Problem using JNDI/DBCP to get DataSouce
for some pointers as well.

As far as I am aware the main difference in TC4 and TC5 when seting up
the
DBCP is that in TC5 you can use xml fragments in your app and not have
to
modify your server.xml. List please correct me if I am wrong.

Doug
www.parsonstechnical.com





-
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: A plan to access files outside the context/Tomcat?

2004-03-17 Thread Parsons Technical Services
Adrian,

Am running in standalone. Currently on 4.1.29 but production will be 5.0.19.

But will keep it in mind. If my app goes public I may need to set up Apache
to do virtual hosting.

Kumar,

I had considered that, but am running on MySQL and wanted to keep the
database as simple as possible(for my own sanity). Might change my mind.
OK, I just did a little reading and this sounds like an idea I can work
with.
So go ahead and send me both if you don't mind. Just in case. I am on Linux.


Thanks for the feed back. Additional comments welcome.

Doug


- Original Message - 
From: "Adrian Lanning" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 6:52 PM
Subject: Re: A plan to access files outside the context/Tomcat?


> Sounds like a workable solution.  Are you using apache or some other
> front-end to Tomcat?  If so then you can use an alias to serve up the
images
> rather than serve them up manually with your servlet.  I've done it both
> ways in content management systems I've made and letting apache do it
saves
> a class or two...
>
> Actually you might be able to let Tomcat do it for you if you set up a
> connector to listen on port 80.  I've never used Tomcat alone so don't
have
> any experience doing it that way.
>
> Adrian Lanning
>
> - Original Message - 
> From: "Parsons Technical Services" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 17, 2004 6:30 PM
> Subject: A plan to access files outside the context/Tomcat?
>
>
> > I have a need to place and get, image files, to and from a directory
> outside
> > of the context and outside of Tomcat.
> >
> > My plan is this:
> >
> > Have an upload page to allow user to select local file on client and
> upload
> > to server. This is the same tactic as the manager is using with war
files.
> >
> > The folder will have rights set to allow read/write by Tomcat user.
> >
> > This part, I think, will be staight forward. OK so far??
> >
> > Next to retrieve the image and serve it back to the client is a little
> more
> > involved.
> >
> > The plan:
> >
> > Servlet to accept all request for the /context/pics/* .
> >
> > Servlet reads file from directory and writes it out to the Servlet
output
> > stream.
> >
> > Am I nuts or is this a feasible plan?
> >
> > Just need to know if I am going in the right direction and if anyone has
> any
> > code snippets of the servlet writes.
> >
> > As for the file I/O I have that covered I think.
> >
> > Any/all comments welcome.
> >
> >
> >
> >
> > -
> > 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]



RE: A plan to access files outside the context/Tomcat?

2004-03-17 Thread Kumar Abhay-CAK203C
Hi,

I did the same but I stored images in Oracle database in BLOB fields as I was sure of 
the size of the images.
I can give you the snippets of the servlet if u want to use BLOB.
Else I can give you the snippets for uploading files in a folder in Unix Env 
(/context/pics/*)
Cant say which option is best for you ..
Let me know your decision.

Best Regards
Abhay Kumar

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 5:30 PM
To: Tomcat Users List
Subject: A plan to access files outside the context/Tomcat?


I have a need to place and get, image files, to and from a directory outside of the 
context and outside of Tomcat.

My plan is this:

Have an upload page to allow user to select local file on client and upload to server. 
This is the same tactic as the manager is using with war files.

The folder will have rights set to allow read/write by Tomcat user.

This part, I think, will be staight forward. OK so far??

Next to retrieve the image and serve it back to the client is a little more involved.

The plan:

Servlet to accept all request for the /context/pics/* .

Servlet reads file from directory and writes it out to the Servlet output stream.

Am I nuts or is this a feasible plan?

Just need to know if I am going in the right direction and if anyone has any code 
snippets of the servlet writes.

As for the file I/O I have that covered I think.

Any/all comments welcome.




-
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: A plan to access files outside the context/Tomcat?

2004-03-17 Thread Adrian Lanning
Sounds like a workable solution.  Are you using apache or some other
front-end to Tomcat?  If so then you can use an alias to serve up the images
rather than serve them up manually with your servlet.  I've done it both
ways in content management systems I've made and letting apache do it saves
a class or two...

Actually you might be able to let Tomcat do it for you if you set up a
connector to listen on port 80.  I've never used Tomcat alone so don't have
any experience doing it that way.

Adrian Lanning

- Original Message - 
From: "Parsons Technical Services" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 6:30 PM
Subject: A plan to access files outside the context/Tomcat?


> I have a need to place and get, image files, to and from a directory
outside
> of the context and outside of Tomcat.
>
> My plan is this:
>
> Have an upload page to allow user to select local file on client and
upload
> to server. This is the same tactic as the manager is using with war files.
>
> The folder will have rights set to allow read/write by Tomcat user.
>
> This part, I think, will be staight forward. OK so far??
>
> Next to retrieve the image and serve it back to the client is a little
more
> involved.
>
> The plan:
>
> Servlet to accept all request for the /context/pics/* .
>
> Servlet reads file from directory and writes it out to the Servlet output
> stream.
>
> Am I nuts or is this a feasible plan?
>
> Just need to know if I am going in the right direction and if anyone has
any
> code snippets of the servlet writes.
>
> As for the file I/O I have that covered I think.
>
> Any/all comments welcome.
>
>
>
>
> -
> 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]



A plan to access files outside the context/Tomcat?

2004-03-17 Thread Parsons Technical Services
I have a need to place and get, image files, to and from a directory outside
of the context and outside of Tomcat.

My plan is this:

Have an upload page to allow user to select local file on client and upload
to server. This is the same tactic as the manager is using with war files.

The folder will have rights set to allow read/write by Tomcat user.

This part, I think, will be staight forward. OK so far??

Next to retrieve the image and serve it back to the client is a little more
involved.

The plan:

Servlet to accept all request for the /context/pics/* .

Servlet reads file from directory and writes it out to the Servlet output
stream.

Am I nuts or is this a feasible plan?

Just need to know if I am going in the right direction and if anyone has any
code snippets of the servlet writes.

As for the file I/O I have that covered I think.

Any/all comments welcome.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Kumar's JDBC problems with MySQL

2004-03-17 Thread Parsons Technical Services
Kumar,

First, I started you your own thread. I do this so that others and I can
keep you straight as to who is who and know it is a seperate issue although
on the same topic.

Please repost your context portion of the xml, the section of code that
accesses the connection pool and if global, the resourse section of the
server.xml. We need to see your code to help give you some direction.

You can also look back at the thread
RE: Problem using JNDI/DBCP to get DataSouce
for some pointers as well.

As far as I am aware the main difference in TC4 and TC5 when seting up the
DBCP is that in TC5 you can use xml fragments in your app and not have to
modify your server.xml. List please correct me if I am wrong.

Doug
www.parsonstechnical.com





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Galam
 
Thanks everyone!
 
Another question, is it possible to use tomcat standalone to serve files from the 
virtual sites in a virtual hosting enviroment?
 
Galam.
 
 
 


Randy Harrison <[EMAIL PROTECTED]> wrote:

Galem,

Mod_jk and mod_jk2 are connectors between tomcat and a standard webserver(apache, 
etc.). If you are going to use tomcat as a stanalone sever you don't
need to connect to apache.

Short answer = no.

Randy Harrison
Developer, eWatch Services
PR Newswire
612 243-0601 x1120
[EMAIL PROTECTED]



Galam 

> cc: 
Subject: RE: apache 1.3 tomcat 5.0.19 
03/17/2004 04:59 
PM 
Please respond to 
"Tomcat Users 
List" 






Shapira,

I have a question!

If I use Tomcat5 standalone in production, do I still need to configure the mod_jk ? 
The mod_jk has been giving me too much troubles, and it would be
really great if it is not needed in standalone enviroment. Thanks!

Galam.




"Shapira, Yoav" wrote:
Hi,
Tomcat 5 can be used standalone to serve static content including
images, yes. The same is true for tomcat 3 and 4 as well. People are
using tomcat in production without a front-end server to handle static
content, yes. Is there a drop in performance? Probably yes, but it
depends on the static content, the traffic your site gets, the hardware
and software configuration, and a host of other variables: frequently
the drop in performance is better than the additional maintenance and
setup costs of a separate front-end.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 17, 2004 2:16 PM
>To: Tomcat Users List
>Subject: Re: apache 1.3 tomcat 5.0.19
>
>I have a complementary question, taht I know that i have being asked
>before, but didn't find any answer, it's related to my previous
question:
>
>- Tomcat 5 can be used directly (in production) without apache??? For
>serving static pages and images??? I mean, there are anybody using it
>direct in production, without any drop in performance?
>
>Emerson Cargnin wrote:
>> Hi all
>>
>> I'm migrating a tomcat 3.2.3 isntallation to version 5.
>> When using 3.2.3, I used to use automatic mod_jk.conf-auto generation
>> for use by apache. Does version 5 has the same feature? Or do I have
to
>> configure it by hand?? any how-to?? It's not mentioned in tomcat 5
docs..
>>
>> I used mod_jk, is jk2 prefered There's no linux release for it
and
>> when trying to build as the readme says, the buildI doesn't work at
>all...
>>
>> I'm using suse 9 / apache 1.3 and tomcat 5.
>>
>>
>
>
>--
>Emerson Cargnin
>Analista de Sistemas
>Setor de Desenvolvimento de Sistemas - TRE-SC
>tel : (048) - 251-3700 - Ramal 3181
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or
privileged. This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by
anyone else. If you are not the(an) intended recipient, please immediately delete this 
e-mail from your computer system and notify the sender. Thank
you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

Re: mod_jk errors when using tomcat 5 and apache

2004-03-17 Thread Galam
 
 
 
Hello, 
 
I am desparate to find the solution to the mod_jk problem.  Anyone can help?
 
Thanks!
 


Galam <[EMAIL PROTECTED]> wrote:
Hi,


I have a few questions concerning running Apache 1.3.29 and Tomcat5 in a virtual 
hosting enviroment. The tomcat5 server runs fine, and I can access the sites using the 
browser. The only problem is that I got lots of errors in the mod_jk.log. I've 
attached the logs and my configuration in server.xml and workers.properties. I've been 
googling for a whole day but I still couldn't find an answer... It seems that there is 
no official solution to this problem. If anyone of you have the same experiences and 
have the problems resolved, please share your thougths with us. Thanks!


Another question I want to ask is that there are JK and JK2 connectors, which one 
should I use to connect tomcat5 to Apache1.3.29? The mod_jk.so I used came from 
Tomcat4.0.3, I am not sure whether it is compatible with Tomcat5. The output from 
"catalina.out" log is complaining about the channel sockets, but the channel sockets 
only appears in the JK2 property files, not the JK one. Is it possible that the Apache 
use the wrong JK to talk to Tomcat? 

Any helps will be greately appreciated!

Thanks!






-- mod_jk log 
[Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: 
Error - jk_tcp_socket_recvfull failed
[Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (1009)]: Error reading reply
[Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, 
ajp_get_reply failed in send loop 0




 tomcat 5 log 

Total number of files loaded = 4335
Mar 11, 2004 8:44:15 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:15 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:20 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:20 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:25 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:25 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:43 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 11, 2004 8:44:48 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 11, 2004 8:45:03 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:45:03 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:45:12 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:45:12 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:45:25 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
java.lang.NullPointerException




Here are my server.xml and workers.properties




- server.xml (partial) 





maxProcessors="150" enableLookups="true" redirectPort="8443" acceptCount="100" 
debug="0" connectionTimeout="2"
useURIValidationHack="false" 
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

timestamp="true"/>

prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>





sinclude(`/var/tomcat4/conf/sites.m4') 






 workers.properties-

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1




-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

RE: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Randy Harrison


Galem,

Mod_jk and mod_jk2 are connectors between tomcat and a standard webserver(apache, 
etc.). If you are going to use tomcat as a stanalone sever you don't
need to connect to apache.

Short answer = no.

Randy Harrison
Developer, eWatch Services
PR Newswire
612 243-0601 x1120
[EMAIL PROTECTED]


   
   
  Galam
   
  <[EMAIL PROTECTED]To:   Tomcat Users List <[EMAIL 
PROTECTED]>   
  >cc: 
   
   Subject:  RE: apache 1.3 tomcat 5.0.19  
   
  03/17/2004 04:59 
   
  PM   
   
  Please respond to
   
  "Tomcat Users
   
  List"
   
   
   
   
   




Shapira,

I have a question!

If I use Tomcat5 standalone in production, do I still need to configure the mod_jk ?  
The mod_jk has been giving me too much troubles, and it would be
really great if it is not needed in standalone enviroment. Thanks!

Galam.




"Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
Hi,
Tomcat 5 can be used standalone to serve static content including
images, yes. The same is true for tomcat 3 and 4 as well. People are
using tomcat in production without a front-end server to handle static
content, yes. Is there a drop in performance? Probably yes, but it
depends on the static content, the traffic your site gets, the hardware
and software configuration, and a host of other variables: frequently
the drop in performance is better than the additional maintenance and
setup costs of a separate front-end.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 17, 2004 2:16 PM
>To: Tomcat Users List
>Subject: Re: apache 1.3 tomcat 5.0.19
>
>I have a complementary question, taht I know that i have being asked
>before, but didn't find any answer, it's related to my previous
question:
>
>- Tomcat 5 can be used directly (in production) without apache??? For
>serving static pages and images??? I mean, there are anybody using it
>direct in production, without any drop in performance?
>
>Emerson Cargnin wrote:
>> Hi all
>>
>> I'm migrating a tomcat 3.2.3 isntallation to version 5.
>> When using 3.2.3, I used to use automatic mod_jk.conf-auto generation
>> for use by apache. Does version 5 has the same feature? Or do I have
to
>> configure it by hand?? any how-to?? It's not mentioned in tomcat 5
docs..
>>
>> I used mod_jk, is jk2 prefered There's no linux release for it
and
>> when trying to build as the readme says, the buildI doesn't work at
>all...
>>
>> I'm using suse 9 / apache 1.3 and tomcat 5.
>>
>>
>
>
>--
>Emerson Cargnin
>Analista de Sistemas
>Setor de Desenvolvimento de Sistemas - TRE-SC
>tel : (048) - 251-3700 - Ramal 3181
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or
privileged. This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by
anyone else. If you are not the(an) intended recipient, please immediately delete this 
e-mail from your computer system and notify the sender. Thank
you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, l

Re: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Adrian Lanning
Nope,
you only need jk or jk2 if you are using another webserver as a front-end to
Tomcat.
Adrian Lanning

- Original Message - 
From: "Galam" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 5:59 PM
Subject: RE: apache 1.3 tomcat 5.0.19


> Shapira,
>
> I have a question!
>
> If I use Tomcat5 standalone in production, do I still need to configure
the mod_jk ?  The mod_jk has been giving me too much troubles, and it would
be really great if it is not needed in standalone enviroment. Thanks!
>
> Galam.
>
>
>
>
> "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> Hi,
> Tomcat 5 can be used standalone to serve static content including
> images, yes. The same is true for tomcat 3 and 4 as well. People are
> using tomcat in production without a front-end server to handle static
> content, yes. Is there a drop in performance? Probably yes, but it
> depends on the static content, the traffic your site gets, the hardware
> and software configuration, and a host of other variables: frequently
> the drop in performance is better than the additional maintenance and
> setup costs of a separate front-end.
>
> Yoav Shapira
> Millennium Research Informatics
>
>
> >-Original Message-
> >From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, March 17, 2004 2:16 PM
> >To: Tomcat Users List
> >Subject: Re: apache 1.3 tomcat 5.0.19
> >
> >I have a complementary question, taht I know that i have being asked
> >before, but didn't find any answer, it's related to my previous
> question:
> >
> >- Tomcat 5 can be used directly (in production) without apache??? For
> >serving static pages and images??? I mean, there are anybody using it
> >direct in production, without any drop in performance?
> >
> >Emerson Cargnin wrote:
> >> Hi all
> >>
> >> I'm migrating a tomcat 3.2.3 isntallation to version 5.
> >> When using 3.2.3, I used to use automatic mod_jk.conf-auto generation
> >> for use by apache. Does version 5 has the same feature? Or do I have
> to
> >> configure it by hand?? any how-to?? It's not mentioned in tomcat 5
> docs..
> >>
> >> I used mod_jk, is jk2 prefered There's no linux release for it
> and
> >> when trying to build as the readme says, the buildI doesn't work at
> >all...
> >>
> >> I'm using suse 9 / apache 1.3 and tomcat 5.
> >>
> >>
> >
> >
> >--
> >Emerson Cargnin
> >Analista de Sistemas
> >Setor de Desenvolvimento de Sistemas - TRE-SC
> >tel : (048) - 251-3700 - Ramal 3181
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged. This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else. If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender. Thank you.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Galam
Shapira,
 
I have a question! 
 
If I use Tomcat5 standalone in production, do I still need to configure the mod_jk ?  
The mod_jk has been giving me too much troubles, and it would be really great if it is 
not needed in standalone enviroment. Thanks!
 
Galam.
 
 


"Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
Hi,
Tomcat 5 can be used standalone to serve static content including
images, yes. The same is true for tomcat 3 and 4 as well. People are
using tomcat in production without a front-end server to handle static
content, yes. Is there a drop in performance? Probably yes, but it
depends on the static content, the traffic your site gets, the hardware
and software configuration, and a host of other variables: frequently
the drop in performance is better than the additional maintenance and
setup costs of a separate front-end.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 17, 2004 2:16 PM
>To: Tomcat Users List
>Subject: Re: apache 1.3 tomcat 5.0.19
>
>I have a complementary question, taht I know that i have being asked
>before, but didn't find any answer, it's related to my previous
question:
>
>- Tomcat 5 can be used directly (in production) without apache??? For
>serving static pages and images??? I mean, there are anybody using it
>direct in production, without any drop in performance?
>
>Emerson Cargnin wrote:
>> Hi all
>>
>> I'm migrating a tomcat 3.2.3 isntallation to version 5.
>> When using 3.2.3, I used to use automatic mod_jk.conf-auto generation
>> for use by apache. Does version 5 has the same feature? Or do I have
to
>> configure it by hand?? any how-to?? It's not mentioned in tomcat 5
docs..
>>
>> I used mod_jk, is jk2 prefered There's no linux release for it
and
>> when trying to build as the readme says, the buildI doesn't work at
>all...
>>
>> I'm using suse 9 / apache 1.3 and tomcat 5.
>>
>>
>
>
>--
>Emerson Cargnin
>Analista de Sistemas
>Setor de Desenvolvimento de Sistemas - TRE-SC
>tel : (048) - 251-3700 - Ramal 3181
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged. This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else. If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender. Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

Re: JDBC problems with MySQL

2004-03-17 Thread Adrian Lanning
Abhay,

Back on 3/17/04 9:50AM, Steve says he got it to work...

>>>
I got this to work by either placing the context directly into the
server.xml file or placing the xml file into it's correct location in
/usr/local/tomcat/conf/Catalina/localhost/DBTest.xml

Not exactly sure the reason, but it is working now.

Steve
<<<

Check the archives...

Adrian Lanning

- Original Message - 
From: "Kumar Abhay-CAK203C" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 16, 2004 1:01 PM
Subject: RE: JDBC problems with MySQL


> Dear Steve,
>
> I posted this problem around 3 months back and I am daily reading the
forum, hoping that one day somebody will give a solution.
> I will deeply appreciate you if u share the solution with me if u r able
to find.
>
> Good Luck
>
> Best Regards
> Abhay Kumar
>
>
> -Original Message-
> From: Steve Gums [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 16, 2004 11:57 AM
> To: [EMAIL PROTECTED]
> Subject: JDBC problems with MySQL
>
>
> Users
>
> I know there has been a bazillion messages about this.  I
searched the archives and couldn't find anything to solve my extremely
annoying issue.  It has to be something really simple but I just can't find
it.
>
>
>
> My System:
>
> Solaris 9
>
> Tomcat 5.0.19
>
> MySQL 4.0.18
>
> Connector J 3.0.11
>
>
>
> I have the connector J jar in the /usr/local/tomcat/common/lib dir.
>
> I have basically copied the HOW-TO located at.
>
>
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
> to.html
>
>
>
> and my result is this.
>
>
> Results
>
>
> Foo Not Connected
> Bar -1
>
>
>
> I have tried everything I can think of.  I verified the database and the
user/password combo.  Works good.  I even created a simple Java app that
connects and performs queries, which worked.  That would indicate everything
is cool with the Connector J.  I have verified that the jdbc/TestDB is in
the context and it is.  As best I can tell ds (DataSource) is coming back
not null, but the call to getConnection is failing.  I created a little more
verbose web app and get the following message.
>
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: No suitable driver
>
>
>
> This has to be something simple, because this works fine on my old
machine. I know I am forgetting some small step that I did the first time
and failed to do again.  Trust me I have checked the configs about a million
times, and
> can't find any differences.   Any help would be appreciated.
>
>
>
> Sorry to be so vague here, but this is really simple. I don't know what
else to include for info.
>
>
>
> Steve Gums
>
> [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]



Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-17 Thread Jerald Powel

Hi,

Thank you for that, and excuse my delay in responding. I tried what you suggested, 
but found the LogManager class did not contain such a method. It did have one method 
to speak of - getLogManager() which returns an instance of LogManager, but that also 
has no shutdown method. I found reset():

LogManager.getLogManager().reset();

I am using JDK 1.4.2_03. How might I sort this hassle out please? It seems to be 
happening very infrequently, but is definately a show stopper!

thanks

G.


This has to do with Log4j. Make sure you set up a servlet context listener 
and do LogManager.shutdown() in the contextDestroyed() method. This will 
take care of your troubles.

Jake

At 02:13 AM 3/16/2004 +, you wrote:

>Hello all,
>
> Can anyone shed some light on the above error please? On the web, I 
> saw it often associated with NoClassDefFoundError, and something called 
> DOMConfigurator.
>
> May app does indeed parse XML (JDom and Nano XML). Is this message 
> linked to an error possibly residing in my XML parsing?
>
> I also see that it is associated with the stop() method on the 
> WebappClassLoader'. But I am not calling such a method.
>
>Any info appreciated
>
>G.
>
>
>
>
>-
> Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
> Download Messenger Now


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now

RE: JDBC problems with MySQL

2004-03-17 Thread Kumar Abhay-CAK203C
Dear Steve,

I posted this problem around 3 months back and I am daily reading the forum, hoping 
that one day somebody will give a solution.
I will deeply appreciate you if u share the solution with me if u r able to find.

Good Luck 

Best Regards
Abhay Kumar


-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 11:57 AM
To: [EMAIL PROTECTED]
Subject: JDBC problems with MySQL


Users

I know there has been a bazillion messages about this.  I searched the 
archives and couldn't find anything to solve my extremely annoying issue.  It has to 
be something really simple but I just can't find it.

 

My System:

Solaris 9

Tomcat 5.0.19

MySQL 4.0.18

Connector J 3.0.11

 

I have the connector J jar in the /usr/local/tomcat/common/lib dir.

I have basically copied the HOW-TO located at.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
to.html

 

and my result is this.


Results


Foo Not Connected
Bar -1

 

I have tried everything I can think of.  I verified the database and the user/password 
combo.  Works good.  I even created a simple Java app that connects and performs 
queries, which worked.  That would indicate everything is cool with the Connector J.  
I have verified that the jdbc/TestDB is in the context and it is.  As best I can tell 
ds (DataSource) is coming back not null, but the call to getConnection is failing.  I 
created a little more verbose web app and get the following message.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for 
connect URL 'null', cause: No suitable driver

 

This has to be something simple, because this works fine on my old machine. I know I 
am forgetting some small step that I did the first time and failed to do again.  Trust 
me I have checked the configs about a million times, and
can't find any differences.   Any help would be appreciated.

 

Sorry to be so vague here, but this is really simple. I don't know what else to 
include for info.

 

Steve Gums

[EMAIL PROTECTED]

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat5 service on Windows

2004-03-17 Thread Daryl Stultz
"Tomcat Users List" <[EMAIL PROTECTED]> writes:
I found Mark's reply:

[mark wrote]
>The error I described below was fixed by installing a public JRE.
>
>I do not want a public runtime!  I want the java installation in c:\java
>only, NOT in 
>c:\program files\java\j2re1.4.2_03!!!
>
>Developers, please remove this ridiculous dependency.  4.1.28 worked just
>fine using 
>my single installation at c:\java, but 5.0.18 won't?!?!

Is this the current state of Tomcat 5.0? It requires a public JRE? What is
a public JRE? Will installing one mean that I can't compile JSP's since
it's a JRE and not a JDK?

Thanks.

(Is this a developer list issue or user list?

[daryl wrote]
>Could not start the Apache Tomcat service on Local Computer.
>Error 1053: The service did not respond to the start or control request in
>a
>timely fashion
>
>Running startup.bat works fine.
>
>This is the same condition Mark Turansky reports with 5.0.18.


Daryl Stultz
_
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help, Page not found!!!!

2004-03-17 Thread Mike Curwen
is the tdk in your common/lib or shared/lib directory on the old box?
 


> -Original Message-
> From: Inandjo Taurel [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 17, 2004 1:56 PM
> To: [EMAIL PROTECTED]
> Subject: Help, Page not found
> 
> 
> hi,
> 
> i developed an application using tdk 2.1,jdk1.3.1 on a win2k 
> box and it was 
> working just fine!
> Now that i try to move it to a unix machine with tomcat 
> installed on it, i 
> have this error:
> 
> >>Horrible Exception: java.lang.Exception: Screen template '/Home.vm' 
> >>not
> >>found
> 
> On the unix box, there is not tdk, just tomcat installed and 
> apache! All i did was to copy my app folder on my win2k box 
> to the webapp folder 
> under tomcat on the linux machine!
> Since there is no reference to any folder in the application 
> configuration 
> files, there was no modification on that side, the only thing was the 
> addition of an environment variable (TDK_HOME).
> 
> Is there anything that i am missing or any mistake that i 
> made? This issue has dragging for the past week!
> 
> Thanx.
> 
> _
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
> http://join.msn.com/?page=features/virus
> 
> 
> -
> 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]



Tomcat 4.1.12LE Disappears

2004-03-17 Thread Gary Fix
Hi,
We are running Tomcat 4.1.12LE under Win2000 SP2 within a command window.
We use j2sdk1.4.1_02 for our servlet code.
We also use the isapi_redirect.dll dated 11/8/2002.
About the time we upgraded from version 3 of Tomcat to version 4, we strated having 
problems 
of Tomcat disappearing with no "apparent" error messages.
In the last 8 days, it has disappeared 8 times.
I have searched for a solution with no luck.
The only error messages I could find are in the isapi_redirect.log and some files 
named 
"hs_err_pid1208.log" showing up in the Tomcat \bin folder.

The  isapi_redirect.log error messages look like this:
[Mon Mar 15 16:19:39 2004]  [jk_isapi_plugin.c (724)]: HttpExtensionProc error, 
service() failed
[Mon Mar 15 16:19:40 2004]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, 
send_request failed in send loop 1
[Mon Mar 15 16:19:41 2004]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, 
send_request failed in send loop 0
[Mon Mar 15 16:19:41 2004]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, 
send_request failed in send loop 2
[Mon Mar 15 16:19:41 2004]  [jk_isapi_plugin.c (724)]: HttpExtensionProc error, 
service() failed

Notice these seem to be loggin about once each second.
We also some some console messages like this:
361031 [Thread-8] WARN common.ChannelSocket  - server has closed the current con
nection (-1)

The hs_err_pid1208.log files have errors like this:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77FCB8F4
Function=RtlFreeHeap+0x263
Library=C:\WINNT\System32\ntdll.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.freeConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLFreeConnect(JdbcOdbc.java:3287)
at sun.jdbc.odbc.JdbcOdbcDriver.closeConnection(JdbcOdbcDriver.java:952)
at sun.jdbc.odbc.JdbcOdbcConnection.close(JdbcOdbcConnection.java:740)
at sun.jdbc.odbc.JdbcOdbcConnection.finalize(JdbcOdbcConnection.java:87)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

Dynamic libraries:
followed by a bunch of DLLs.
Any and all suggestions would be greatly appreciated.
thanks...gary...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat5 service on Windows

2004-03-17 Thread Daryl Stultz
Hi folks, I know this question has been asked, but I couldn't find an
answer.

I have installed Tomcat 5.0.19 on Windows 2000 / Java 1.4.1. Right "out of
the box" the service fails to run. With service.bat I can install and
remove the service successfully. Starting the service from the services
panel yields:

Could not start the Apache Tomcat service on Local Computer.
Error 1053: The service did not respond to the start or control request in
a
timely fashion

Running startup.bat works fine.

This is the same condition Mark Turansky reports with 5.0.18.

Running net start tomcat5 yields an equally cryptic error which I can't
remember (nor repeat since I reverted to the previous setup).

Clay Hensley suggested a registry edit that worked for him. No such luck
for me.

This 5.0.19 install is an upgrade from 4.0.24. I did not uninstall 4.0.24,
I simply renamed directories. I did a test upgrade on another machine that
is configured the same and it worked fine. The only notably difference
between the machines is that the failing machine is multi processor.

Any hints for exploring the system would be great. Thanks.

Daryl Stultz
_
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache not starting with Mod_JK

2004-03-17 Thread Thomas Tang
Post up your httpd.conf and jk configurations.




Joseph Shraibman <[EMAIL PROTECTED]> 
03/17/2004 03:58 PM
Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
Tomcat Users List <[EMAIL PROTECTED]>
cc

Subject
Re: Apache not starting with Mod_JK






Seems strange that apache would complain about a file only tomcat should 
deal with.

Chris Haines wrote:
> Hello,
> 
> I am trying to start Apache with mod_jk. When I try starting apache, I 
> get the following error. I haven't modified the admin.xml file. If 
> anyone can help, I would greatly appreciated it.
> 
> Syntax error on line 25 of 
> /usr/local/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml:
> Expected  but saw 
> 
> Thank you.
> 
> 
> -
> 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: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Emerson Cargnin
my question is: does tomcat 5 have automatic generation of 
mod_jk.conf and if does, is it the same of 3.2.3?

Emerson Cargnin wrote:
for the first question, any answer? :)


Hi all

I'm migrating a tomcat 3.2.3 isntallation to version 5.
When using 3.2.3, I used to use automatic mod_jk.conf-auto generation 
for use by apache. Does version 5 has the same feature? Or do I have 
to configure it by hand?? any how-to?? It's not mentioned in tomcat 5 
docs..

I used mod_jk, is jk2 prefered There's no linux release for it 
and when trying to build as the readme says, the build doesn't work 
at all...

I'm using suse 9 / apache 1.3 and tomcat 5.








--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache not starting with Mod_JK

2004-03-17 Thread Joseph Shraibman
Seems strange that apache would complain about a file only tomcat should 
deal with.

Chris Haines wrote:
Hello,

I am trying to start Apache with mod_jk. When I try starting apache, I 
get the following error. I haven't modified the admin.xml file. If 
anyone can help, I would greatly appreciated it.

Syntax error on line 25 of 
/usr/local/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml:
Expected  but saw 

Thank you.

-
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]


Apache not starting with Mod_JK

2004-03-17 Thread Chris Haines
Hello,

I am trying to start Apache with mod_jk. When I try starting apache, I 
get the following error. I haven't modified the admin.xml file. If 
anyone can help, I would greatly appreciated it.

Syntax error on line 25 of 
/usr/local/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml:
Expected  but saw 

Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
Ok, I tried with Tomcat 5.0.19 and 4.1.29.  It works fine on 4.1.29 but it
fails on 5.0.19 (and .18) with the following error:

2004-03-17 15:35:44,683 [DEBUG] (SystemSelectionAction.java:124) -
com.sun.jdmk.comm.CommunicationException: java.rmi.ServerException:
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.io.InvalidClassException: javax.management.ObjectName; Local
class not compatible: stream classdesc serialVersionUID=1081892073854801359
local class serialVersionUID=-5467795090068647408
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is:
java.io.InvalidClassException: javax.management.ObjectName; Local
class not compatible: stream classdesc serialVersionUID=1081892073854801359
local class serialVersionUID=-5467795090068647408
java.io.InvalidClassException: javax.management.ObjectName; Local class not
compatible: stream classdesc serialVersionUID=1081892073854801359 local
class serialVersionUID=-5467795090068647408
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:240)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at
com.sun.jdmk.comm.RmiConnectorServerObjectImplV2_Stub.getAttribute(RmiConnec
torServerObjectImplV2_Stub.java:316)
at
com.sun.jdmk.comm.RmiConnectorClient.connect(RmiConnectorClient.java:711)
[snip]

So, it would appear that Tomcat 5's JMX jar is overriding my web-app's JMX
jar.

Can anyone tell me how Tomcat 5 uses JMX?  Is it possible to move Tomcat's
JMX jar into the server/lib directory?  I understand that Tomcat can use JMX
for the management webapp, but is it required, or optional?  Are there any
other reasons to use JMX?  The tomcat installation will be deployed
stand-alone with only my web app and whatever comes standard with Tomcat 5
(i.e. the management web app, etc).

Thanks,

Mark


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: March 17, 2004 12:24 PM
To: Tomcat Users List
Subject: RE: JMX conflict in Tomcat 5.0



Hi,

>   The jmx-remote.jar and jmx-remote-tools.jar were in the archive
I
>downloaded from jakarta.apache.com (Tomcat 5.0.18).

Perhaps it's worth trying with 5.0.19?

Back to your original question: there's also commons-modeler
(http://jakarta.apache.org/commons/modeler/) to consider.  Tomcat uses
modeler fairly heavily to build its beans, and modeler had an MX4J
dependency last I checked.

Yoav Shapira


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat certificate

2004-03-17 Thread Mark Thomas
This is not correct. Tomcat does support CLIENT-CERT authentication
'out-of-the-box'. When combined with appropriate authorisation constraints in
web.xml you can limit access to specific URLs.

I have this working quite happily.

Mark 

> -Original Message-
> From: Rommel Sharma [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 23, 2004 11:28 AM
> To: Tomcat Users List
> Subject: Re: tomcat certificate
> 
> Tomcat as such on its own does not parse and validate a certificate.
> I don't think its possible. You can identify a client through the
> certificate alias the client uses.
> Access to specific URLs depends on the server certificate 
> where you specify
> the URL and send the client your public key.
> I think there is no automatic mechanism in Tomcat that studies the
> certificate and allows access to specific URLs. This needs to 
> be implemented
> by any our deployed programs.
> 
> - Original Message -
> From: "secam secam" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, February 23, 2004 4:17 PM
> Subject: Re: tomcat certificate
> 
> > Thanks,
> >
> > Here is my real problem,
> >
> > I've got an external server that authentificate user and deliver a
> certicate with the trio User/Group/Role.
> >
> > In fact, i just want that the certificate give information 
> of the user to
> tomcat in order to permit the access to some specifics url.
> >
> > Is it possible?
> >
> > Regard's
> >
> > Secam
> >
> > Rommel Sharma <[EMAIL PROTECTED]> wrote:
> > If you mean two way authentication using SSL, then you have 
> to write the
> > code that reads clients certificate and matches it with one 
> present in
> > client keystore on the server. You enable client authentication in
> > server.xml for this and specify the serverkeystore and 
> password in it.
> > Regards,
> > Rommel Sharma.
> >
> > - Original Message -
> > From: "secam secam"
> > To:
> > Sent: Monday, February 23, 2004 3:30 PM
> > Subject: tomcat certificate
> >
> > > hello,
> > >
> > > I'm a new user of tomcat.
> > > Can tomcat authenticate a user with a certifcate ?
> > >
> > > Thanks,
> > > Secam
> > >
> > >
> > > -
> > > Yahoo! Mail : votre e-mail personnel et gratuit qui vous 
> suit partout !
> > > Créez votre Yahoo! Mail
> >
> > *
> > Disclaimer
> >
> > This message (including any attachments) contains
> > confidential information intended for a specific
> > individual and purpose, and is protected by law.
> > If you are not the intended recipient, you should
> > delete this message and are hereby notified that
> > any disclosure, copying, or distribution of this
> > message, or the taking of any action based on it,
> > is strictly prohibited.
> >
> > *
> > Visit us at http://www.mahindrabt.com
> >
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > Yahoo! Mail : votre e-mail personnel et gratuit qui vous 
> suit partout !
> > Créez votre Yahoo! Mail
> 
> *
> Disclaimer
> 
> This message (including any attachments) contains 
> confidential information intended for a specific 
> individual and purpose, and is protected by law. 
> If you are not the intended recipient, you should 
> delete this message and are hereby notified that 
> any disclosure, copying, or distribution of this
> message, or the taking of any action based on it, 
> is strictly prohibited.
> 
> *
> Visit us at http://www.mahindrabt.com
> 
> 
> 
> 
> -
> 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]



Help, Page not found!!!!

2004-03-17 Thread Inandjo Taurel
hi,

i developed an application using tdk 2.1,jdk1.3.1 on a win2k box and it was 
working just fine!
Now that i try to move it to a unix machine with tomcat installed on it, i 
have this error:

Horrible Exception: java.lang.Exception: Screen template '/Home.vm' not 
found
On the unix box, there is not tdk, just tomcat installed and apache!
All i did was to copy my app folder on my win2k box to the webapp folder 
under tomcat on the linux machine!
Since there is no reference to any folder in the application configuration 
files, there was no modification on that side, the only thing was the 
addition of an environment variable (TDK_HOME).

Is there anything that i am missing or any mistake that i made?
This issue has dragging for the past week!
Thanx.

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Emerson Cargnin
for the first question, any answer? :)


Hi all

I'm migrating a tomcat 3.2.3 isntallation to version 5.
When using 3.2.3, I used to use automatic mod_jk.conf-auto generation 
for use by apache. Does version 5 has the same feature? Or do I have 
to configure it by hand?? any how-to?? It's not mentioned in tomcat 5 
docs..

I used mod_jk, is jk2 prefered There's no linux release for it and 
when trying to build as the readme says, the build doesn't work at 
all...

I'm using suse 9 / apache 1.3 and tomcat 5.






--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Fixed at last! And of course it's and annoying fix. I've been using these
Informix JDBC 2.0 drivers for some months without problem. As a last resort
I downloaded the very latest version from the IBM site and... The rest is
now history :)

Many thanks to ALL your help. Very much appreciated. 

>-Original Message-
>From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 19:37
>To: [EMAIL PROTECTED]; Tomcat Users List; Parsons Technical Services
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>
> For future, recommend snipping any real host/username/passwords for
>security reasons.
>
>I am not familiar with Informix, however, given a logged in session by
>the user you specify, are you able to execute the query, and 
>return 1 or
>more records?
>
>I recommend creating  dummy table just for validation with 1 record, 1
>field to minimize the overhead.  A validation query is performed before
>each connection object is handed out.
>
>-Original Message-
>From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, March 17, 2004 2:19 PM
>To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical
>Services'
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>To get this far I had to more the datasource resource defiition to the
>context. I've rasie the debug to 9 but could see no additional loging
>that
>would help. Here is the context ...
>
>cachingAllowed="true"
>charsetMapperClass="org.apache.catalina.util.CharsetMapper"
>cookies="true"
>crossContext="false" debug="9" displayName="Custom Fares"
>docBase="C:/Documents and Settings/pmahoney/My Documents/Travel
>2/code/webapps/CustomFares/web"
>mapperClass="org.apache.catalina.core.StandardContextMapper"
>path="/CustomFares" privileged="false" reloadable="false"
>swallowOutput="false" useNaming="true"
>wrapperClass="org.apache.catalina.core.StandardWrapper">
>  type="javax.sql.DataSource"/>
>  
>
>  validationQuery
>  select count(*) from systables
>
>
>  url
> 
>jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFO
>RMIXSERVE
>R=os
>cars_dbsrv
>
>
>  password
>  1atan1a
>
>
>  maxActive
>  4
>
>
>  maxWait
>  5000
>
>
>  driverClassName
>  com.informix.jdbc.IfxDriver
>
>
>  username
>  sy5t3m
>
>
>  maxIdle
>  2
>
>  
>
>
>The stacktrace is...
>
>org.apache.commons.dbcp.SQLNestedException: Cannot get a connection,
>pool
>exhausted, cause:
>java.util.NoSuchElementException: Could not create a validated object
>at
>org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Gen
>ericObjec
>tPoo
>l.java:851)
>at
>org.apache.commons.dbcp.PoolingDataSource.getConnection(Pooling
>DataSourc
>e.ja
>va:140)
>at
>org.apache.commons.dbcp.BasicDataSource.getConnection(BasicData
>Source.ja
>va:5
>18)
>at
>com.travel2.customFares.Query.getJdbcConnection(Query.java:95)
>at com.travel2.customFares.Query.execute(Query.java:160)
>at
>com.travel2.customFares.CustomFaresService.GetFares(CustomFares
>Service.j
>ava:
>58)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso
>rImpl.jav
>a:39
>)
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho
>dAccessor
>Impl
>.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at
>org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProv
>ider.java
>:402
>)
>at
>org.apache.axis.providers.java.RPCProvider.processMessage(RPCPr
>ovider.ja
>va:3
>09)
>at
>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider
>.java:333
>)
>at
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationS
>trategy.j
>ava:
>71)
>at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
>at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
>at
>org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
>at 
>org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
>at
>org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>at
>org.apache.axis.transport.http.AxisServletBase.service(AxisServ
>letBase.j
>ava:
>339)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilte
>r(Applica
>tion
>FilterChain.java:247)
>at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(Applic
>ationFilt
>erCh
>ain.java:193)
>

Re: tomcat certificate

2004-03-17 Thread Antonio Fiol Bonnín
Or trust the CA (import the CA certificate).



Andi Reinbrech wrote:

View the certificate when you get that prompt and then Trust the site.  This
is a once off
-Original Message-
From: secam secam [mailto:[EMAIL PROTECTED] 
Sent: 17 March 2004 11:09 AM
To: [EMAIL PROTECTED]
Subject: tomcat certificate

Hi all,

I've got ssl with tomcat, and a self signed
certificate
When i try to access my webapp via port 8443 (ssl)
i've got a security alert due to this reason:
the security certificate was send by a compagny i've
not trusted.
How can i solve this problem in order not to have the
security alert?
Regards,
Secam
	

	
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez
Yahoo! Messenger sur http://fr.messenger.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
**
Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile 
or telephone and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




smime.p7s
Description: S/MIME Cryptographic Signature


RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread D'Alessandro, Arthur
 For future, recommend snipping any real host/username/passwords for
security reasons.

I am not familiar with Informix, however, given a logged in session by
the user you specify, are you able to execute the query, and return 1 or
more records?

I recommend creating  dummy table just for validation with 1 record, 1
field to minimize the overhead.  A validation query is performed before
each connection object is handed out.

-Original Message-
From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 2:19 PM
To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical
Services'
Subject: RE: Problem using JNDI/DBCP to get DataSouce

To get this far I had to more the datasource resource defiition to the
context. I've rasie the debug to 9 but could see no additional loging
that
would help. Here is the context ...


  
  

  validationQuery
  select count(*) from systables


  url
 
jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVE
R=os
cars_dbsrv


  password
  1atan1a


  maxActive
  4


  maxWait
  5000


  driverClassName
  com.informix.jdbc.IfxDriver


  username
  sy5t3m


  maxIdle
  2

  


The stacktrace is...

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection,
pool
exhausted, cause:
java.util.NoSuchElementException: Could not create a validated object
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjec
tPoo
l.java:851)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSourc
e.ja
va:140)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:5
18)
at
com.travel2.customFares.Query.getJdbcConnection(Query.java:95)
at com.travel2.customFares.Query.execute(Query.java:160)
at
com.travel2.customFares.CustomFaresService.GetFares(CustomFaresService.j
ava:
58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java
:402
)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.ja
va:3
09)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333
)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
ava:
339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:242
2)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:171)
at
org.apache.catalina.core.St

Re: Horrible memory leak in tomcat 5.0.19

2004-03-17 Thread Joseph Shraibman
Shapira, Yoav wrote:
Hi,
Does the memory leak occur when you run tomcat standalone?
I can't run the production server in standalone, and I can't seem to hit 
my test server hard enough to reproduce the problem clearly.  I'll keep 
trying.

  Can you
point out its source e.g. by running with a profiler?
I don't have a profiler :(

  Was the load
during these 50 minutes exceptionally heavy?

On the heavy side, but not really stressing the server except for this 
memroy leak.  Tomcat 4.1.18 handled loads like this all the time.

BTW How can I view the jk2 status?  I tried both of these:
In httpd.conf:

JkUriSet worker status

in workers2.properties:
[uri:/status/*]
worker=status:status
In my error_log I see:
[Wed Mar 17 14:26:42 2004] [notice] Apache/2.0.48 (Unix) mod_ssl/2.0.48 
OpenSSL/0.9.7a mod_jk2/2.0.2 configured -- resuming normal operations
[Wed Mar 17 14:26:42 2004] [error] uriEnv.init() map to invalid worker 
/jkstatus/* status
[Wed Mar 17 14:26:42 2004] [error] uriEnv.init() map to invalid worker 
/status/* status:status
[Wed Mar 17 14:26:42 2004] [error] mod_jk child init 1 -2
[Wed Mar 17 14:26:43 2004] [error] jk2_init() Can't find child 2506 in 
scoreboard

... and going to the url just produces a 500 error.

Also The faq at http://jakarta.apache.org/tomcat/faq/connectors.html 
says that mod_jk is the preferred connector and that jk2 is not 
production quality.  My understanding was that jk was in maintence mode 
and jk2 is considered the stable connector.  Is the faq right or is it 
just out of date?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Shapira, Yoav

Hi,
Tomcat 5 can be used standalone to serve static content including
images, yes.  The same is true for tomcat 3 and 4 as well.  People are
using tomcat in production without a front-end server to handle static
content, yes.  Is there a drop in performance?  Probably yes, but it
depends on the static content, the traffic your site gets, the hardware
and software configuration, and a host of other variables: frequently
the drop in performance is better than the additional maintenance and
setup costs of a separate front-end.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 17, 2004 2:16 PM
>To: Tomcat Users List
>Subject: Re: apache 1.3 tomcat 5.0.19
>
>I have a complementary question, taht I know that i have being asked
>before, but didn't find any answer, it's related to my previous
question:
>
>- Tomcat 5 can be used directly (in production) without apache??? For
>serving static pages and images??? I mean, there are anybody using it
>direct in production, without any drop in performance?
>
>Emerson Cargnin wrote:
>> Hi all
>>
>> I'm migrating a tomcat 3.2.3 isntallation to version 5.
>> When using 3.2.3, I used to use automatic mod_jk.conf-auto generation
>> for use by apache. Does version 5 has the same feature? Or do I have
to
>> configure it by hand?? any how-to?? It's not mentioned in tomcat 5
docs..
>>
>> I used mod_jk, is jk2 prefered There's no linux release for it
and
>> when trying to build as the readme says, the buildI doesn't work at
>all...
>>
>> I'm using suse 9 / apache 1.3 and tomcat 5.
>>
>>
>
>
>--
>Emerson Cargnin
>Analista de Sistemas
>Setor de Desenvolvimento de Sistemas - TRE-SC
>tel : (048) - 251-3700 - Ramal 3181
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
To get this far I had to more the datasource resource defiition to the
context. I've rasie the debug to 9 but could see no additional loging that
would help. Here is the context ...


  
  

  validationQuery
  select count(*) from systables


  url
 
jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
cars_dbsrv


  password
  1atan1a


  maxActive
  4


  maxWait
  5000


  driverClassName
  com.informix.jdbc.IfxDriver


  username
  sy5t3m


  maxIdle
  2

  


The stacktrace is...

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool
exhausted, cause:
java.util.NoSuchElementException: Could not create a validated object
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo
l.java:851)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:140)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
18)
at com.travel2.customFares.Query.getJdbcConnection(Query.java:95)
at com.travel2.customFares.Query.execute(Query.java:160)
at
com.travel2.customFares.CustomFaresService.GetFares(CustomFaresService.java:
58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:402
)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:3
09)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.StandardContext.invoke(StandardContext.java:2422)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apach

Re: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Emerson Cargnin
I have a complementary question, taht I know that i have being asked 
before, but didn't find any answer, it's related to my previous question:

- Tomcat 5 can be used directly (in production) without apache??? For 
serving static pages and images??? I mean, there are anybody using it 
direct in production, without any drop in performance?

Emerson Cargnin wrote:
Hi all

I'm migrating a tomcat 3.2.3 isntallation to version 5.
When using 3.2.3, I used to use automatic mod_jk.conf-auto generation 
for use by apache. Does version 5 has the same feature? Or do I have to 
configure it by hand?? any how-to?? It's not mentioned in tomcat 5 docs..

I used mod_jk, is jk2 prefered There's no linux release for it and 
when trying to build as the readme says, the buildI doesn't work at all...

I'm using suse 9 / apache 1.3 and tomcat 5.




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Port-per-webapp?

2004-03-17 Thread Justin Ruthenbeck
Tony,

Glad to hear you got it working.  The things you did (clear cache, 
restart services, reenter configuration) often solve problems like 
this.  Doesn't provide for a clean explanation of what was wrong, but 
that's a different story.

As for the escape chars, whether they should be escaped really depends on 
who's reading the value.  I've never used the IIS plugin, so I have no 
idea what the behavior is -- an IIS user would have to chime in.

justin

At 07:24 AM 3/17/2004, you wrote:
Hi Justin,

Thank you very much for your help, but I finally got it to work!!
I reconfigured registry settings, cleared cache in Tomcat and IE,
restarted all IIS and Tomcat services manually one by one, and
it began working.
I do have one final question though... In the registry setting
tutorials, I see both c:\tomcat\blahblah and c:\\tomcat\\blahblah
should we or should we not use escape character as in the second
entry?
Thanks again!

Tony

- Original Message -
From: "Tony Nakamura" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 8:16 AM
Subject: Re: Port-per-webapp?
> Hi Justin,
>
> >Be sure, of course, that
> > the files you're editing are indeed the ones being read -- for 
example,
> > make sure that by removing /examples from uriworker.properties, IIS 
no
> > longer serves the Tomcat examples.
>
> Great point... I removed the /examples from uriworkermap.properties, 
and
> it's
> still serving the http://localhost/examples!!!
>
> I checked my registry settings, and it's pointing to the exact 
location to
> the
> uriworkermap.properties:
> Registry for worker_mount_file:
> c:\\jakarta_tomcat\\appserver\\conf\uriworkermap.properties
> file location:
C:\jakarta_tomcat\appserver\conf\uriworkermap.properties
>
>   How could this be..?
>
> Just in case, I am pasting the worker.properties, 
uriworkermap.properties,
> and context from the server.xml.  Thank you!
>
> ===uriworker.properties=
> # *** Begin uriworkermap.properties ***
> # Mount the Servlet context to the ajp13 worker
> /servlet/*=ajp13
>
> # This webapp works
> /Analyzer6_Server/*=ajp13
>
> #This works too/examples/*=ajp13
>
> #This does NOT work
> /examples2/*=ajp13
> /examples2/*.jsp=ajp13
> ==
>
> worker.properties==
> #  Begin worker.properties **
> worker.ajp13.type=ajp13
>
> #
> # Specifies the load balance factor when used with
> # a load balancing worker.
> # Note:
> #  > lbfactor must be > 0
> #  > Low lbfactor means less work done by the worker.
> worker.ajp13.lbfactor=1
>
> #
> # Specify the size of the open connection cache.
> #worker.ajp13.cachesize
>
> #
> #-- DEFAULT LOAD BALANCER WORKER DEFINITION --
> #-
> #
>
> #
> # The loadbalancer (type lb) worker perform weighted round-robin
> # load balancing with sticky sessions.
> # Note:
> #  > If a worker dies, the load balancer will check its state
> #once in a while. Until then all work is redirected to peer
> #worker.
> worker.loadbalancer.type=lb
> worker.loadbalancer.balanced_workers=ajp13
>
> #
> # worker.tomcat_home should point to the location where you
> # installed tomcat. This is where you have your conf, webapps and lib
> # directories.
> #
> worker.tomcat_home=c:\jakarta_tomcat\\appserver
>
> #
> # worker.java_home should point to your Java installation. Normally
> # you should have a bin and lib directories beneath it.
> #
> worker.java_home=c:\jakarta_tomcat\\jdk
>
> #
> # You should configure your environment slash... ps=\ on NT and / on 
UNIX
> # and maybe something different elsewhere.
> #
> ps=\
>
> #
> #-- ADVANCED MODE 
> #-
> #
>
> #
> #-- DEFAULT worker list --
> #-
> #
> # The worker that your plugins should create and work with
> worker.list=ajp13
>
> #
> #-- DEFAULT ajp13 WORKER DEFINITION --
> #-
> #
>
> #
> # Defining a worker named ajp13 and of type ajp13
> # Note that the name and the type do not have to match.
> #
> worker.ajp13.port=8009
> worker.ajp13.host=w2k3dfvm2
>
> #  End worker.properties **
> ==
>
> - Original Message -
> From: "Justin Ruthenbeck" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 16, 2004 5:12 PM
> Subject: Re: Port-per-webapp?
>
>
> >
> > Tony,
> >
> > Can you include your full uriworker.properties and worker.properties
> > files (inline in the email) for us to look at?  Be sure

RE: Horrible memory leak in tomcat 5.0.19

2004-03-17 Thread Shapira, Yoav

Hi,
Does the memory leak occur when you run tomcat standalone?  Can you
point out its source e.g. by running with a profiler?  Was the load
during these 50 minutes exceptionally heavy?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 17, 2004 1:55 PM
>To: Tomcat Users List
>Subject: Horrible memory leak in tomcat 5.0.19
>
>I recently upgraded my production server from jk 1.2.5/tomcat 4.1.18 to
>jk 2.0.2/tomcat 5.0.19.  I'm having a horrible memory leak now and need
>to restart tomcat frequently when it runs out of memory.  I always had
>set the max memory to 512m, now after running around 50 minutes memory
>usage is already 178,143,080 bytes.  Does anyone have any idea what
>could be the problem?  The only messages in catalina.out are:
>
>Mar 17, 2004 1:52:51 PM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 17, 2004 1:52:52 PM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 17, 2004 1:52:53 PM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 17, 2004 1:52:57 PM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 17, 2004 1:52:59 PM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 17, 2004 1:53:02 PM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 17, 2004 1:53:03 PM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 17, 2004 1:53:06 PM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 17, 2004 1:53:11 PM org.apache.jk.common.HandlerRequest
decodeRequest
>WARNING: Error registering request
>Mar 17, 2004 1:53:35 PM org.apache.jk.common.HandlerRequest
decodeRequest
>WARNING: Error registering request
>Mar 17, 2004 1:53:37 PM org.apache.jk.common.HandlerRequest
decodeRequest
>WARNING: Error registering request
>Mar 17, 2004 1:53:42 PM org.apache.jk.common.HandlerRequest
decodeRequest
>WARNING: Error registering request
>
>
>PS The faq at http://jakarta.apache.org/tomcat/faq/connectors.html says
>that mod_jk is the preferred connector and that jk2 is not production
>quality.  My understanding was that jk was in maintence mode and jk2 is
>considered the stable connector.  Is the faq right or is it just out of
>date?
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Horrible memory leak in tomcat 5.0.19

2004-03-17 Thread Joseph Shraibman
I recently upgraded my production server from jk 1.2.5/tomcat 4.1.18 to 
jk 2.0.2/tomcat 5.0.19.  I'm having a horrible memory leak now and need 
to restart tomcat frequently when it runs out of memory.  I always had 
set the max memory to 512m, now after running around 50 minutes memory 
usage is already 178,143,080 bytes.  Does anyone have any idea what 
could be the problem?  The only messages in catalina.out are:

Mar 17, 2004 1:52:51 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:52 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:53 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:57 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:59 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:02 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:03 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:06 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:11 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:35 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:37 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:42 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
PS The faq at http://jakarta.apache.org/tomcat/faq/connectors.html says 
that mod_jk is the preferred connector and that jk2 is not production 
quality.  My understanding was that jk was in maintence mode and jk2 is 
considered the stable connector.  Is the faq right or is it just out of 
date?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


apache 1.3 tomcat 5.0.19

2004-03-17 Thread Emerson Cargnin
Hi all

I'm migrating a tomcat 3.2.3 isntallation to version 5.
When using 3.2.3, I used to use automatic mod_jk.conf-auto generation 
for use by apache. Does version 5 has the same feature? Or do I have to 
configure it by hand?? any how-to?? It's not mentioned in tomcat 5 docs..

I used mod_jk, is jk2 prefered There's no linux release for it and 
when trying to build as the readme says, the buildI doesn't work at all...

I'm using suse 9 / apache 1.3 and tomcat 5.

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RE: jk2 shared memory

2004-03-17 Thread tomcatuser
I was of the understanding that tomcat and apache could communicate via shared memory. 
 Is this true?  I am not sure what it means to run "in-process".  Could you further 
explain?

thank you.



   ---Original Message---
   > From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
   > Subject: RE: jk2 shared memory
   > Sent: 17 Mar 2004 17:18:48
   >
   >  Do you mean using jk2 with tomcat as an in-process server?
   >  You need the shared memory anyway, wont work without it.
   >  But the options that most people end up using as a connection scheme are
   >  either via
   >  sockets or using JNI (in-process). JNI AFAIK works only under Windows, so if
   >  you
   >  are on a *IX OS, you should use sockets. Is there a problem with making port
   >  8009 available
   >  through localhost?
   >  
   >  -Original Message-
   >  From: tomcatuser [mailto:[EMAIL PROTECTED]
   >  Sent: 17 March 2004 17:05
   >  To: [EMAIL PROTECTED]
   >  Subject: jk2 shared memory
   >  
   >  
   >  I am trying to figure out the jk2 configuration and need some help.
   >  
   >  I want to use the shared memory capability of JK2, but am confused by the
   >  requirement that I must also use a port (8009).  I have apache configured to
   >  require mutual authentication.  Here is my config file:
   >  
   >  ###  Start workers2.properties ###
   >  [logger]
   >  level=DEBUG
   >  
   >  [config:]
   >  file=${serverRoot}/conf/workers2.properties
   >  debug=0
   >  debugEnv=0
   >  
   >  [uriMap:]
   >  info=Maps the requests. Options: debug
   >  debug=0
   >  
   >  [shm:]
   >  info=Scoreboard. Required for reconfiguration and status with multiprocess
   >  servers
   >  file=${serverRoot}/logs/jk2.shm
   >  size=100
   >  debug=0
   >  disabled=0
   >  
   >  [workerEnv:]
   >  info=Global server options
   >  timing=1
   >  debug=0
   >  
   >  [channel.socket:localhost:8009]
   >  info=Ajp13 forwarding over socket
   >  debug=0
   >  tomcatId=localhost:8009
   >  
   >  [status:]
   >  info=Status worker, displays runtime informations
   >  
   >  [uri:/jkstatus/*]
   >  info=Display status information and checks the config file for changes.
   >  group=status:
   >  
   >  [uri:/blah/servlet/*]
   >  info=blah context
   >  context=/blah
   >  debug=1
   >  
   >  ###  End workers2.properties ###
   >  
   >  
   >  When I comment out the "channel.socket:localhost:8009" section, I cannot
   >  connect to my servlets.  Is there another connector that I should be using?
   >  Or do I need to have port 8009 open?
   >  
   >  thank you for the help.
   >  
   >  
   >  
   >  
   >  This e-mail has been scanned for all viruses by Star Internet. The
   >  service is powered by MessageLabs.
   >  
   >  
   >  Note:__
   >  This message is for the named person's use only. It may contain
   >  confidential, proprietary or legally privileged information. No
   >  confidentiality or privilege is waived or lost by any mistransmission.
   >  If you receive this message in error, please immediately delete it and
   >  all copies of it from your system, destroy any hard copies of it and
   >  notify the sender. You must not, directly or indirectly, use, disclose,
   >  distribute, print, or copy any part of this message if you are not the
   >  intended recipient. Jaguar Freight Services and any of its subsidiaries
   >  each reserve the right to monitor all e-mail communications through its
   >  networks.
   >  Any views expressed in this message are those of the individual sender,
   >  except where the message states otherwise and the sender is authorized
   >  to state them to be the views of any such entity.
   >  
   >  This e-mail has been scanned for all viruses by Star Internet. The
   >  service is powered by MessageLabs.
   ---Original Message---




Re: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Parsons Technical Services
Change the debug value on the context. It is currently 0 or no debugging.
Try 9 and see what you get. I think the top limit is 99.


- Original Message - 
From: "Paul Mahoney" <[EMAIL PROTECTED]>
To: "'D'Alessandro, Arthur'" <[EMAIL PROTECTED]>; "'Tomcat
Users List'" <[EMAIL PROTECTED]>; "'Parsons Technical
Services'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 1:05 PM
Subject: RE: Problem using JNDI/DBCP to get DataSouce


> I agree, but it looks good and I've tried without one being specified. In
> addition, I've never see a connection raised at the database server end.
> This makes me think the DataSource is just not working and I'm not seeing
> the proper error. But I can find nothing more in the logs :(
>
> >-Original Message-
> >From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED]
> >Sent: 17 March 2004 18:00
> >To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services
> >Subject: RE: Problem using JNDI/DBCP to get DataSouce
> >
> >
> >Check your validation query in your resource definition.
> >
> >-Original Message-
> >From: Paul Mahoney [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, March 17, 2004 12:57 PM
> >To: 'Parsons Technical Services'; 'Tomcat Users List'
> >Subject: RE: Problem using JNDI/DBCP to get DataSouce
> >
> >Tried
> >  dataSource = (DataSource)
> >initContext.lookup("java:comp/jdbc/OscarsDB");
> >But it return null, so tried
> >  dataSource = (DataSource)
> >initContext.lookup("java:comp/env/jdbc/OscarsDB");
> >And a datasource instance was return so before, looking good...
> >However, still got the same exception when trying to get a connection
> >instance
> >  "Cannot get a connection, pool exhausted"
> >with a nested exception
> >  "Could not create a validated object"
> >
>
>
> -
> 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: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread D'Alessandro, Arthur
Would you include any resource definitions and/or any resource
links/references.

Also, the full stacktrace of the exception may shed some other potential
problems.

-Original Message-
From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 1:05 PM
To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical
Services'
Subject: RE: Problem using JNDI/DBCP to get DataSouce

I agree, but it looks good and I've tried without one being specified.
In
addition, I've never see a connection raised at the database server end.
This makes me think the DataSource is just not working and I'm not
seeing
the proper error. But I can find nothing more in the logs :(

>-Original Message-
>From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 18:00
>To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>
>Check your validation query in your resource definition. 
>
>-Original Message-
>From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, March 17, 2004 12:57 PM
>To: 'Parsons Technical Services'; 'Tomcat Users List'
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>Tried
>  dataSource = (DataSource)
>initContext.lookup("java:comp/jdbc/OscarsDB");
>But it return null, so tried
>  dataSource = (DataSource)
>initContext.lookup("java:comp/env/jdbc/OscarsDB");
>And a datasource instance was return so before, looking good...
>However, still got the same exception when trying to get a connection
>instance
>  "Cannot get a connection, pool exhausted"
>with a nested exception
>  "Could not create a validated object"
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
I agree, but it looks good and I've tried without one being specified. In
addition, I've never see a connection raised at the database server end.
This makes me think the DataSource is just not working and I'm not seeing
the proper error. But I can find nothing more in the logs :(

>-Original Message-
>From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 18:00
>To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>
>Check your validation query in your resource definition. 
>
>-Original Message-
>From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, March 17, 2004 12:57 PM
>To: 'Parsons Technical Services'; 'Tomcat Users List'
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>Tried
>  dataSource = (DataSource)
>initContext.lookup("java:comp/jdbc/OscarsDB");
>But it return null, so tried
>  dataSource = (DataSource)
>initContext.lookup("java:comp/env/jdbc/OscarsDB");
>And a datasource instance was return so before, looking good...
>However, still got the same exception when trying to get a connection
>instance
>  "Cannot get a connection, pool exhausted"
>with a nested exception
>  "Could not create a validated object"
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread D'Alessandro, Arthur
Check your validation query in your resource definition. 

-Original Message-
From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 12:57 PM
To: 'Parsons Technical Services'; 'Tomcat Users List'
Subject: RE: Problem using JNDI/DBCP to get DataSouce

Tried
  dataSource = (DataSource)
initContext.lookup("java:comp/jdbc/OscarsDB");
But it return null, so tried
  dataSource = (DataSource)
initContext.lookup("java:comp/env/jdbc/OscarsDB");
And a datasource instance was return so before, looking good...
However, still got the same exception when trying to get a connection
instance
  "Cannot get a connection, pool exhausted"
with a nested exception
  "Could not create a validated object"


>-Original Message-
>From: Parsons Technical Services 
>[mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 16:49
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: Problem using JNDI/DBCP to get DataSouce
>
>
>Paul,
>
>Replace this:
>  if (dataSource == null)
>  {
>Context initContext = new InitialContext ();
>Context envContext = (Context) initContext.lookup
>("java:comp/env");
>dataSource = (DataSource) envContext.lookup 
>("jdbc/OscarsDB");
>  }
>
>With this:
> if (dataSource == null)
>  {
>Context initContext = new InitialContext ();
>dataSource = (DataSource) initContext.lookup
>("java:comp/jdbc/OscarsDB");
>  }
>
>This is working fine for me. Just a note that I am running against
MySQL,
>but at this point in the code it should not matter especially since the
>hardwire way works.
>
>Doug


-
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: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Tried
  dataSource = (DataSource) initContext.lookup("java:comp/jdbc/OscarsDB");
But it return null, so tried
  dataSource = (DataSource)
initContext.lookup("java:comp/env/jdbc/OscarsDB");
And a datasource instance was return so before, looking good...
However, still got the same exception when trying to get a connection
instance
  "Cannot get a connection, pool exhausted"
with a nested exception
  "Could not create a validated object"


>-Original Message-
>From: Parsons Technical Services 
>[mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 16:49
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: Problem using JNDI/DBCP to get DataSouce
>
>
>Paul,
>
>Replace this:
>  if (dataSource == null)
>  {
>Context initContext = new InitialContext ();
>Context envContext = (Context) initContext.lookup
>("java:comp/env");
>dataSource = (DataSource) envContext.lookup 
>("jdbc/OscarsDB");
>  }
>
>With this:
> if (dataSource == null)
>  {
>Context initContext = new InitialContext ();
>dataSource = (DataSource) initContext.lookup
>("java:comp/jdbc/OscarsDB");
>  }
>
>This is working fine for me. Just a note that I am running against MySQL,
>but at this point in the code it should not matter especially since the
>hardwire way works.
>
>Doug


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Shapira, Yoav

Hi,

>   The jmx-remote.jar and jmx-remote-tools.jar were in the archive
I
>downloaded from jakarta.apache.com (Tomcat 5.0.18).

Perhaps it's worth trying with 5.0.19?

Back to your original question: there's also commons-modeler
(http://jakarta.apache.org/commons/modeler/) to consider.  Tomcat uses
modeler fairly heavily to build its beans, and modeler had an MX4J
dependency last I checked.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Loadbalancing

2004-03-17 Thread Steve Gums
Of course I am not running on the same server. This would require different
server.xml files or you will have port conflicts.  
I am setting up multiple servers so I can host JSP apps for people.  And
this setup makes installs quick and fast.

Steve

-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 10:13 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Loadbalancing

Just something that I found to be very useful.  If I use the minimal
server.xml and put the context.xml files into place. I can use the same
server.xml file as well.  The only thing I have to do is to put the context
file into the new install and I am done.  Works great!

Steve

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 8:52 AM
To: Tomcat Users List
Subject: Re: Tomcat Loadbalancing

I typically copy all of CATALINA_HOME for each tomcat instance and never use

CATALINA_BASE.

So in other words - I start with one tomcat install. Get it working - then 
copy the whole thing to a new dir. The only difference between those 2
tomcat 
installations is server.xml. Yes - I end up with redundant copies but I 
prefer it that way. But when I want to upgrade or make changes - its much 
easier to keep things running 24x7 since the directories are NOT shared.

I do not keep any webapps inside my tomcat installation. They all live 
somewhere else on my filesystem.

-Tim

armalai wrote:

> Tim.,
>I understand that i should use mod_jk instead of mod_jk2 ..
> Let me start with my basic problem.
> 1.How do i create more than two instances.?
> Using CATALINA_BASE i have created one instance.but i'm not able to
get
> the jsp pages from the original instances.
> 
> Thanks.,
> MALAI
> 
> - Original Message - 
> From: "Tim Funk" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 17, 2004 9:21 AM
> Subject: Re: Tomcat Loadbalancing
> 
> 
> 
>>Start here first
>>http://jakarta.apache.org/tomcat/faq/
>>
>>-Tim
>>
>>armalai wrote:
>>
>>
>>>Hi.,
>>>  I'm trying to do Loadbalancing in tomcat.
>>>My environement details are,
>>>Windows
>>>Tomcat 4.1.xx
>>>Apace 2.x
>>>Mod_jk2 connector
>>>
>>>Right now i'm stuck up with apache to tomcat
>>>communication thru ajp.
>>>
>>>my questions are below..
>>>1.How do i create multiple instance of tomcat?
>>>  using CATALINA_BASE i could able to create one
>>>instance with new server.xml from different location.
>>>  but not able to retrieve the jsp pages from default
>>>tomcat instances webapp.
>>>  i want to create more than two instances.
>>>2.How do i do the loadbalancing & clustering?
>>>   give me the idea about worker properties config.
>>>3.Is it possible to do session replication?in few
>>>websites they talk about sticky session?
>>>what is sticky?does it covers session replica?
>>>

-
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]



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
Hello,
The jmx-remote.jar and jmx-remote-tools.jar were in the archive I
downloaded from jakarta.apache.com (Tomcat 5.0.18).  And I don't mean to
imply that Tomcat doesn't work in general, I mean it doesn't work with my
app (or, my app doesn't work with it - they don't work together, but both
seem to work apart).  

Thanks,

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: March 17, 2004 12:08 PM
To: Tomcat Users List
Subject: RE: JMX conflict in Tomcat 5.0



Hi,

>We removed jmx-remote-tools.jar, jmx-remote.jar and jmx.jar from
>TOMCAT_HOME/common/lib, and replaced these with the implementation of
JMX
>we
>have been using on other platforms.

jmx-remote.jar and jmx-remote-tools.jar are not part of the tomcat
distribution.  I don't know where you got them nor what their impact is.

The jmx.jar is the Sun JMX 1.2.1 API and reference implementation (RI).

>I should mention that if it is not possible to make Tomcat 5 work
properly,

It DOES work properly out of the box.  In addition, it even works
properly with the latest Sun RI.  Older Sun or other implementations, I
don't know.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: What's the status with the LE branch?

2004-03-17 Thread Shapira, Yoav

Hi,
Discontinued with the release of tomcat 5.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Yansheng Lin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 17, 2004 12:11 PM
>To: 'Tomcat Users List'
>Subject: What's the status with the LE branch?
>
>Can we still use it?  Well, it's running fun on one of the machines
here
>right
>now.
>
>Thanks!
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jk2 shared memory

2004-03-17 Thread Yiannis Mavroukakis
Do you mean using jk2 with tomcat as an in-process server? 
You need the shared memory anyway, wont work without it.
But the options that most people end up using as a connection scheme are
either via
sockets or using JNI (in-process). JNI AFAIK works only under Windows, so if
you
are on a *IX OS, you should use sockets. Is there a problem with making port
8009 available
through localhost?

-Original Message-
From: tomcatuser [mailto:[EMAIL PROTECTED]
Sent: 17 March 2004 17:05
To: [EMAIL PROTECTED]
Subject: jk2 shared memory


I am trying to figure out the jk2 configuration and need some help.

I want to use the shared memory capability of JK2, but am confused by the
requirement that I must also use a port (8009).  I have apache configured to
require mutual authentication.  Here is my config file:

###  Start workers2.properties ###
[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/blah/servlet/*]
info=blah context
context=/blah
debug=1

###  End workers2.properties ###


When I comment out the "channel.socket:localhost:8009" section, I cannot
connect to my servlets.  Is there another connector that I should be using?
Or do I need to have port 8009 open?

thank you for the help.




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Tomcat Loadbalancing

2004-03-17 Thread Steve Gums
Just something that I found to be very useful.  If I use the minimal
server.xml and put the context.xml files into place. I can use the same
server.xml file as well.  The only thing I have to do is to put the context
file into the new install and I am done.  Works great!

Steve

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 8:52 AM
To: Tomcat Users List
Subject: Re: Tomcat Loadbalancing

I typically copy all of CATALINA_HOME for each tomcat instance and never use

CATALINA_BASE.

So in other words - I start with one tomcat install. Get it working - then 
copy the whole thing to a new dir. The only difference between those 2
tomcat 
installations is server.xml. Yes - I end up with redundant copies but I 
prefer it that way. But when I want to upgrade or make changes - its much 
easier to keep things running 24x7 since the directories are NOT shared.

I do not keep any webapps inside my tomcat installation. They all live 
somewhere else on my filesystem.

-Tim

armalai wrote:

> Tim.,
>I understand that i should use mod_jk instead of mod_jk2 ..
> Let me start with my basic problem.
> 1.How do i create more than two instances.?
> Using CATALINA_BASE i have created one instance.but i'm not able to
get
> the jsp pages from the original instances.
> 
> Thanks.,
> MALAI
> 
> - Original Message - 
> From: "Tim Funk" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 17, 2004 9:21 AM
> Subject: Re: Tomcat Loadbalancing
> 
> 
> 
>>Start here first
>>http://jakarta.apache.org/tomcat/faq/
>>
>>-Tim
>>
>>armalai wrote:
>>
>>
>>>Hi.,
>>>  I'm trying to do Loadbalancing in tomcat.
>>>My environement details are,
>>>Windows
>>>Tomcat 4.1.xx
>>>Apace 2.x
>>>Mod_jk2 connector
>>>
>>>Right now i'm stuck up with apache to tomcat
>>>communication thru ajp.
>>>
>>>my questions are below..
>>>1.How do i create multiple instance of tomcat?
>>>  using CATALINA_BASE i could able to create one
>>>instance with new server.xml from different location.
>>>  but not able to retrieve the jsp pages from default
>>>tomcat instances webapp.
>>>  i want to create more than two instances.
>>>2.How do i do the loadbalancing & clustering?
>>>   give me the idea about worker properties config.
>>>3.Is it possible to do session replication?in few
>>>websites they talk about sticky session?
>>>what is sticky?does it covers session replica?
>>>

-
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]



What's the status with the LE branch?

2004-03-17 Thread Yansheng Lin
Can we still use it?  Well, it's running fun on one of the machines here right
now.  

Thanks!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Shapira, Yoav

Hi,

>We removed jmx-remote-tools.jar, jmx-remote.jar and jmx.jar from
>TOMCAT_HOME/common/lib, and replaced these with the implementation of
JMX
>we
>have been using on other platforms.

jmx-remote.jar and jmx-remote-tools.jar are not part of the tomcat
distribution.  I don't know where you got them nor what their impact is.

The jmx.jar is the Sun JMX 1.2.1 API and reference implementation (RI).

>I should mention that if it is not possible to make Tomcat 5 work
properly,

It DOES work properly out of the box.  In addition, it even works
properly with the latest Sun RI.  Older Sun or other implementations, I
don't know.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OFF-TOPIC] RE: JProfiler... help!

2004-03-17 Thread bort
No, obviously it doesn't look like a JProfiler list.  However, I was hoping
to get some help.

Thanks anyways.
bort

"Shapira, Yoav" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


Does this look like a JProfiler list? ;)  Use its help,
http://www.ej-technologies.com/products/jprofiler/resources.html, or if
you must use this list add [OFF-TOPIC] to your subject line as I have.
Thanks,

Yoav Shapira




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jk2 shared memory

2004-03-17 Thread tomcatuser
I am trying to figure out the jk2 configuration and need some help.

I want to use the shared memory capability of JK2, but am confused by the requirement 
that I must also use a port (8009).  I have apache configured to require mutual 
authentication.  Here is my config file:

###  Start workers2.properties ###
[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/blah/servlet/*]
info=blah context
context=/blah
debug=1

###  End workers2.properties ###


When I comment out the "channel.socket:localhost:8009" section, I cannot connect to my 
servlets.  Is there another connector that I should be using?  Or do I need to have 
port 8009 open?

thank you for the help.



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
We removed jmx-remote-tools.jar, jmx-remote.jar and jmx.jar from
TOMCAT_HOME/common/lib, and replaced these with the implementation of JMX we
have been using on other platforms.

I should mention that if it is not possible to make Tomcat 5 work properly,
downgrading to Tomcat 4.x is a solution we are willing to take, but we'd
rather not.

Thanks,

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: March 17, 2004 11:00 AM
To: Tomcat Users List
Subject: RE: JMX conflict in Tomcat 5.0



Hi,
You removed only the MX4J implementation, or other things as well?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Mark Richards [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 17, 2004 10:55 AM
>To: Tomcat Users List (E-mail)
>Subject: JMX conflict in Tomcat 5.0
>
>Hello,
>   I am working on a web-application that was previously deployed
on
>Websphere but we would like to deploy it on Tomcat 5.0.  However, our
>application uses JMX and it seems that our JMX jars conflict with
Tomcat's
>JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX
jars
>our application appears to work but I was wondering what the
ramifications
>of this are for Tomcat.  We are using the Sun implementation of JMX (I
>think
>it's version 1.1).
>
>Is there any way to make this work without mangling the Tomcat
>installation?
>Will Tomcat work properly with our JMX jars?
>
>Other details:
>Our web-app conforms to Servlet 2.2
>JDK 1.3.1
>Changing our version of JMX to whatever Tomcat uses is not an option at
>this
>time.
>
>Thanks,
>
>Mark Richards >>
>Software Developer
>InSystems Corporation
>Voice: (905) 513-1400 ext. 3552
>Fax: (905) 513-1419
>
>http://www.insystems.com
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Parsons Technical Services
Alex,

Chase the thread. He is on 4.1.30 and no the pool does not work at all.

Doug


- Original Message - 
From: "Alex" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 11:19 AM
Subject: RE: Problem using JNDI/DBCP to get DataSouce


> This is what version?  I have issues still with 5.0.19 but my connection
> pools still work despite the error being thrown in the log...does your
> pool just not work at all?
>
> On Wed, 17 Mar 2004, Paul Mahoney wrote:
>
> > Date: Wed, 17 Mar 2004 16:24:08 -
> > From: Paul Mahoney <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
> > To: 'Parsons Technical Services' <[EMAIL PROTECTED]>,
> >  'Tomcat Users List' <[EMAIL PROTECTED]>
> > Subject: RE: Problem using JNDI/DBCP to get DataSouce
> >
> > Here goes Cut and paste, but blanked out the password bits.
> > I hope your eyes can spy the problem. I assume you have this working :)
> >
> > Server.xml (the Context bit)
> > -
> >  > cachingAllowed="true"
> > charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true"
> > crossContext="false" debug="0" displayName="Custom Fares"
> > docBase="C:/Documents and Settings/pmahoney/My Documents/Travel
> > 2/code/webapps/CustomFares/web"
> > mapperClass="org.apache.catalina.core.StandardContextMapper"
> > path="/CustomFares" privileged="false" reloadable="false"
> > swallowOutput="false" useNaming="true"
> > wrapperClass="org.apache.catalina.core.StandardWrapper">
> >> type="javax.sql.DataSource"/>
> >   
> > 
> >   validationQuery
> >   select count(*) from systables
> > 
> > 
> >   url
> >
> >
jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
> > cars_dbsrv
> > 
> > 
> >   password
> >   ??
> > 
> > 
> >   maxActive
> >   4
> > 
> > 
> >   maxWait
> >   5000
> > 
> > 
> >   driverClassName
> >   com.informix.jdbc.IfxDriver
> > 
> > 
> >   username
> >   sy5t3m
> > 
> > 
> >   maxIdle
> >   2
> > 
> >   
> > 
>
>
> -
> 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: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Parsons Technical Services
Paul,

Replace this:
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
("java:comp/env");
dataSource = (DataSource) envContext.lookup ("jdbc/OscarsDB");
  }

With this:
 if (dataSource == null)
  {
Context initContext = new InitialContext ();
dataSource = (DataSource) initContext.lookup
("java:comp/jdbc/OscarsDB");
  }

This is working fine for me. Just a note that I am running against MySQL,
but at this point in the code it should not matter especially since the
hardwire way works.

Doug

- Original Message - 
From: "Paul Mahoney" <[EMAIL PROTECTED]>
To: "'Parsons Technical Services'" <[EMAIL PROTECTED]>;
"'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 11:24 AM
Subject: RE: Problem using JNDI/DBCP to get DataSouce


Here goes Cut and paste, but blanked out the password bits.
I hope your eyes can spy the problem. I assume you have this working :)

Server.xml (the Context bit)
-

  
  

  validationQuery
  select count(*) from systables


  url

jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
cars_dbsrv


  password
  ??


  maxActive
  4


  maxWait
  5000


  driverClassName
  com.informix.jdbc.IfxDriver


  username
  sy5t3m


  maxIdle
  2

  


Web.xml (the resource reference bit)

...



The code

  // The JNDI way...
  protected Connection getJdbcConnection ()
  throws SQLException
  {
Connection connection = null;

// First we need to locate the JNDI data source
if (dataSource == null)
{
  try
  {
synchronized (this)
{
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
("java:comp/env");
dataSource = (DataSource) envContext.lookup ("jdbc/OscarsDB");
  }
}
  }
  catch (NamingException ne)
  {
// wrap it up in an SQLException to keep calling code simple
SQLException se = new SQLException ("JNDI Data Source lookup
failed");
se.initCause (ne);
throw se;
  }
}

try
{
  connection = dataSource.getConnection ();
}
catch (SQLException se)
{
  throw se;
}

return connection;
  }

  // Hardwired the old way...
  protected Connection getOscarsConnection ()
throws SQLException
  {
Connection connection = null;
try
{
  Properties props = new Properties();

  props.put("user", "sy5t3m");
  props.put("password", "??");

  Class.forName("com.informix.jdbc.IfxDriver");
  connection = DriverManager.getConnection(

"jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=oscars_d
bsrv",
props);
}
catch (ClassNotFoundException cnfe)
{
  System.err.println  ("Error: Class not found: "
   + cnfe.getMessage()
  );
}
catch (SQLException se)
{
  System.err.println  ("Error: while accessing database: "
   + se.getMessage()
  );
  while ((se = se.getNextException()) != null)
  {
System.err.println("   next: " + se.getMessage());
  }
}

return connection;
  }

  public String execute ()
throws Exception
  {
Connection connection = null;

try
{
  connection = getJdbcConnection();
//  connection = getOscarsConnection();
}
catch (Exception e)
{
  throw e;
}
finally // must release the following resources if acquired...
{
if (connection != null)
{
  try { connection.close (); } catch (Exception e) {
e.printStackTrace (); }
}
}

return ""; // empty for now
  }
}

>-Original Message-
>From: Parsons Technical Services
>[mailto:[EMAIL PROTECTED]
>Sent: 17 March 2004 16:01
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: Problem using JNDI/DBCP to get DataSouce
>
>
>Paul,
>
>Since you have done several changes, please repost your current context
>section of the server.xml, exception you receive and code you use to access
>the DB both with conventional JDBC and DBCP. At this point it sounds like a
>typo that's preventing the connection pool from connecting to the database.
>
>Doug
>
>


-
To 

RE: Stubborn simple servlet

2004-03-17 Thread Wendy Smoak
> From: [EMAIL PROTECTED] Rick Lutowski
> With further fussing, this works!  I had changed web.xml
> to key on "/pix_servlet/*.pxhtml" as an experiment.  When 
> I changed it back to the original "*.pxhtml" and used the 
> Context base 'ship_pix' in the URL (either absolute or 
> relative), everything started clicking.

Check SRV.11.2 of the Servlet 2.3 specification, 
"/pix_servlet/*.pxhtml" is not a valid wildcard mapping.  
The choices are:
   - starts with / and ends with /*
   - starts with *.
   - contains the single character /
Anything else requires an exact match on the requested URL.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Alex
This is what version?  I have issues still with 5.0.19 but my connection
pools still work despite the error being thrown in the log...does your
pool just not work at all?

On Wed, 17 Mar 2004, Paul Mahoney wrote:

> Date: Wed, 17 Mar 2004 16:24:08 -
> From: Paul Mahoney <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> To: 'Parsons Technical Services' <[EMAIL PROTECTED]>,
>  'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
> Here goes Cut and paste, but blanked out the password bits.
> I hope your eyes can spy the problem. I assume you have this working :)
>
> Server.xml (the Context bit)
> -
>  cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper" cookies="true"
> crossContext="false" debug="0" displayName="Custom Fares"
> docBase="C:/Documents and Settings/pmahoney/My Documents/Travel
> 2/code/webapps/CustomFares/web"
> mapperClass="org.apache.catalina.core.StandardContextMapper"
> path="/CustomFares" privileged="false" reloadable="false"
> swallowOutput="false" useNaming="true"
> wrapperClass="org.apache.catalina.core.StandardWrapper">
>type="javax.sql.DataSource"/>
>   
> 
>   validationQuery
>   select count(*) from systables
> 
> 
>   url
>
> jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
> cars_dbsrv
> 
> 
>   password
>   ??
> 
> 
>   maxActive
>   4
> 
> 
>   maxWait
>   5000
> 
> 
>   driverClassName
>   com.informix.jdbc.IfxDriver
> 
> 
>   username
>   sy5t3m
> 
> 
>   maxIdle
>   2
> 
>   
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JDBC problems with MySQL

2004-03-17 Thread Kumar Abhay-CAK203C
Dear Steav,

In case you are able to resolve the problem with connection pooling, I request you to 
please send all the files/Code and setting to this forum so that we can have a look 
and implement. 
Thanks a lot for your help !!

Best Regards
Abhay Kumar

-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 9:21 AM
To: 'Tomcat Users List'
Subject: RE: JDBC problems with MySQL


I tried removing the directory tag and it doesn't appear in the default logs 
directory. I tried it with the absolute path and still nothing.  I will investigate 
this a little more.  Odd thing is I have a context.xml sitting right next to it with 
an identical call other then the file name, and it works fine.

Steve

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 7:59 AM
To: Tomcat Users List
Subject: RE: JDBC problems with MySQL


Hi,

>Does the META-INF directory in a war file sit next to the WEB-INF 
>directory?

Yes (a WAR is just a special JAR, and the JAR spec controls the location of the 
META-INF directory).

>One other thing.  In the context file that is currently working can you 
>tell me why the logger doesn't?
>
>   prefix="localhost_vkey." directory="logs"
>   suffix=".txt" timestamp="true" />
>
>The log never shows up.  Thanks

Never shows up anywhere at all, or just doesn't show up in $CATALINA_HOME/logs?  Try 
using an absolute directory path.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
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]



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Here goes Cut and paste, but blanked out the password bits.
I hope your eyes can spy the problem. I assume you have this working :)

Server.xml (the Context bit)
-

  
  

  validationQuery
  select count(*) from systables


  url
 
jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
cars_dbsrv


  password
  ??


  maxActive
  4


  maxWait
  5000


  driverClassName
  com.informix.jdbc.IfxDriver


  username
  sy5t3m


  maxIdle
  2

  


Web.xml (the resource reference bit)

...



The code 

  // The JNDI way...
  protected Connection getJdbcConnection ()
  throws SQLException
  {
Connection connection = null;

// First we need to locate the JNDI data source
if (dataSource == null)
{
  try
  {
synchronized (this)
{
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
("java:comp/env");
dataSource = (DataSource) envContext.lookup ("jdbc/OscarsDB");
  }
}
  }
  catch (NamingException ne)
  {
// wrap it up in an SQLException to keep calling code simple
SQLException se = new SQLException ("JNDI Data Source lookup
failed");
se.initCause (ne);
throw se;
  }
}

try
{
  connection = dataSource.getConnection ();
}
catch (SQLException se)
{
  throw se;
}

return connection;
  }

  // Hardwired the old way...
  protected Connection getOscarsConnection ()
throws SQLException
  {
Connection connection = null;
try
{
  Properties props = new Properties();

  props.put("user", "sy5t3m");
  props.put("password", "??");

  Class.forName("com.informix.jdbc.IfxDriver");
  connection = DriverManager.getConnection(
 
"jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=oscars_d
bsrv",
props);
}
catch (ClassNotFoundException cnfe)
{
  System.err.println  ("Error: Class not found: "
   + cnfe.getMessage()
  );
}
catch (SQLException se)
{
  System.err.println  ("Error: while accessing database: "
   + se.getMessage()
  );
  while ((se = se.getNextException()) != null)
  {
System.err.println("   next: " + se.getMessage());
  }
}

return connection;
  }

  public String execute ()
throws Exception
  {
Connection connection = null;

try
{
  connection = getJdbcConnection();
//  connection = getOscarsConnection();
}
catch (Exception e)
{
  throw e;
}
finally // must release the following resources if acquired...
{
if (connection != null)
{
  try { connection.close (); }  catch (Exception e) {
e.printStackTrace ();   }
}
}

return ""; // empty for now
  }
}

>-Original Message-
>From: Parsons Technical Services 
>[mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 16:01
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: Problem using JNDI/DBCP to get DataSouce
>
>
>Paul,
>
>Since you have done several changes, please repost your current context
>section of the server.xml, exception you receive and code you use to access
>the DB both with conventional JDBC and DBCP. At this point it sounds like a
>typo that's preventing the connection pool from connecting to the database.
>
>Doug
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Parsons Technical Services
Paul,

Since you have done several changes, please repost your current context
section of the server.xml, exception you receive and code you use to access
the DB both with conventional JDBC and DBCP. At this point it sounds like a
typo that's preventing the connection pool from connecting to the database.

Doug


- Original Message - 
From: "Paul Mahoney" <[EMAIL PROTECTED]>
To: "'Parsons Technical Services'" <[EMAIL PROTECTED]>;
"'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 8:35 AM
Subject: RE: Problem using JNDI/DBCP to get DataSouce


Some progress but still not working.

1. Using my connection parameters I can open a connection to the database in
the standard JDBC way.

2. I have to moved the DataSource configuration from GlobalNamingResources
to the apps Context area of server.xml. This seems to have allowed the JNDI
look-up to work. I now get a DataSource instance with sensible contents.

3. But when I ask for a connection it throws
"Cannot get a connection, pool exhausted"
   with a nested exception
"Could not create a validated object"

Beginning to think it's not me but the tomcat server. I'm now moved to
4.1.24 to 4.1.30 but no improvement :(


-
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: JMX conflict in Tomcat 5.0

2004-03-17 Thread Shapira, Yoav

Hi,
You removed only the MX4J implementation, or other things as well?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Mark Richards [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 17, 2004 10:55 AM
>To: Tomcat Users List (E-mail)
>Subject: JMX conflict in Tomcat 5.0
>
>Hello,
>   I am working on a web-application that was previously deployed
on
>Websphere but we would like to deploy it on Tomcat 5.0.  However, our
>application uses JMX and it seems that our JMX jars conflict with
Tomcat's
>JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX
jars
>our application appears to work but I was wondering what the
ramifications
>of this are for Tomcat.  We are using the Sun implementation of JMX (I
>think
>it's version 1.1).
>
>Is there any way to make this work without mangling the Tomcat
>installation?
>Will Tomcat work properly with our JMX jars?
>
>Other details:
>Our web-app conforms to Servlet 2.2
>JDK 1.3.1
>Changing our version of JMX to whatever Tomcat uses is not an option at
>this
>time.
>
>Thanks,
>
>Mark Richards >>
>Software Developer
>InSystems Corporation
>Voice: (905) 513-1400 ext. 3552
>Fax: (905) 513-1419
>
>http://www.insystems.com
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
We originally put these jars there but it didn't work; our application was
unable to connect to the MBean server (or listener... forgive me but JMX
isn't my specialty).  When we removed the Tomcat JMX jars and put ours in
place, the app functioned as we expected.

Thanks,

Mark

-Original Message-
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED]
Sent: March 17, 2004 10:57 AM
To: Tomcat Users List
Subject: RE: JMX conflict in Tomcat 5.0


Put these jars under your webapp/WEB-INF/lib folder... 

-Original Message-
From: Mark Richards [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 10:55 AM
To: Tomcat Users List (E-mail)
Subject: JMX conflict in Tomcat 5.0

Hello,
I am working on a web-application that was previously deployed
on
Websphere but we would like to deploy it on Tomcat 5.0.  However, our
application uses JMX and it seems that our JMX jars conflict with
Tomcat's
JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX
jars
our application appears to work but I was wondering what the
ramifications
of this are for Tomcat.  We are using the Sun implementation of JMX (I
think
it's version 1.1).

Is there any way to make this work without mangling the Tomcat
installation?
Will Tomcat work properly with our JMX jars? 

Other details:
Our web-app conforms to Servlet 2.2
JDK 1.3.1
Changing our version of JMX to whatever Tomcat uses is not an option at
this
time.

Thanks,

Mark Richards >> 
Software Developer
InSystems Corporation 
Voice: (905) 513-1400 ext. 3552 
Fax: (905) 513-1419
 
http://www.insystems.com 


-
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]



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread D'Alessandro, Arthur
Put these jars under your webapp/WEB-INF/lib folder... 

-Original Message-
From: Mark Richards [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 10:55 AM
To: Tomcat Users List (E-mail)
Subject: JMX conflict in Tomcat 5.0

Hello,
I am working on a web-application that was previously deployed
on
Websphere but we would like to deploy it on Tomcat 5.0.  However, our
application uses JMX and it seems that our JMX jars conflict with
Tomcat's
JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX
jars
our application appears to work but I was wondering what the
ramifications
of this are for Tomcat.  We are using the Sun implementation of JMX (I
think
it's version 1.1).

Is there any way to make this work without mangling the Tomcat
installation?
Will Tomcat work properly with our JMX jars? 

Other details:
Our web-app conforms to Servlet 2.2
JDK 1.3.1
Changing our version of JMX to whatever Tomcat uses is not an option at
this
time.

Thanks,

Mark Richards >> 
Software Developer
InSystems Corporation 
Voice: (905) 513-1400 ext. 3552 
Fax: (905) 513-1419
 
http://www.insystems.com 


-
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]



JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
Hello,
I am working on a web-application that was previously deployed on
Websphere but we would like to deploy it on Tomcat 5.0.  However, our
application uses JMX and it seems that our JMX jars conflict with Tomcat's
JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX jars
our application appears to work but I was wondering what the ramifications
of this are for Tomcat.  We are using the Sun implementation of JMX (I think
it's version 1.1).

Is there any way to make this work without mangling the Tomcat installation?
Will Tomcat work properly with our JMX jars? 

Other details:
Our web-app conforms to Servlet 2.2
JDK 1.3.1
Changing our version of JMX to whatever Tomcat uses is not an option at this
time.

Thanks,

Mark Richards >> 
Software Developer
InSystems Corporation 
Voice: (905) 513-1400 ext. 3552 
Fax: (905) 513-1419
 
http://www.insystems.com 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Loadbalancing

2004-03-17 Thread Tim Funk
I typically copy all of CATALINA_HOME for each tomcat instance and never use 
CATALINA_BASE.

So in other words - I start with one tomcat install. Get it working - then 
copy the whole thing to a new dir. The only difference between those 2 tomcat 
installations is server.xml. Yes - I end up with redundant copies but I 
prefer it that way. But when I want to upgrade or make changes - its much 
easier to keep things running 24x7 since the directories are NOT shared.

I do not keep any webapps inside my tomcat installation. They all live 
somewhere else on my filesystem.

-Tim

armalai wrote:

Tim.,
   I understand that i should use mod_jk instead of mod_jk2 ..
Let me start with my basic problem.
1.How do i create more than two instances.?
Using CATALINA_BASE i have created one instance.but i'm not able to get
the jsp pages from the original instances.
Thanks.,
MALAI
- Original Message - 
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 9:21 AM
Subject: Re: Tomcat Loadbalancing



Start here first
http://jakarta.apache.org/tomcat/faq/
-Tim

armalai wrote:


Hi.,
 I'm trying to do Loadbalancing in tomcat.
My environement details are,
Windows
Tomcat 4.1.xx
Apace 2.x
Mod_jk2 connector
Right now i'm stuck up with apache to tomcat
communication thru ajp.
my questions are below..
1.How do i create multiple instance of tomcat?
 using CATALINA_BASE i could able to create one
instance with new server.xml from different location.
 but not able to retrieve the jsp pages from default
tomcat instances webapp.
 i want to create more than two instances.
2.How do i do the loadbalancing & clustering?
  give me the idea about worker properties config.
3.Is it possible to do session replication?in few
websites they talk about sticky session?
what is sticky?does it covers session replica?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OFF-TOPIC] RE: JProfiler... help!

2004-03-17 Thread Shapira, Yoav

Hi,

>I've deployed my application to a Linux box with Apache and Tomcat.  We
are
>about to have some people test it, and I would like to profile memory
use
>and garbage collection.
>
>How can I do that with JProfiler?

Does this look like a JProfiler list? ;)  Use its help,
http://www.ej-technologies.com/products/jprofiler/resources.html, or if
you must use this list add [OFF-TOPIC] to your subject line as I have.
Thanks,

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java.lang.IllegalStateException: zip file closed

2004-03-17 Thread Namasivayam, Sudhakar (Cognizant)
Hi all,
   I deployed my webapp using the war file biult using ant 1.6.  The webapp is 
deployed and works well. But when i stop and atart again through the manager I get the 
exception Zip file closed error.  But removing and installing again works well...  
What could be posssible cause???
I dont  get this error if i unpack the war and deploy.  But tomcat 4.0.4 under linux  
(jdk 1.4)  does not unpack by default but creates a context.   Reload also works well. 
  Is there any way to unpack the war by default   This issue does not arise in 
tomcat 5.0. But i need to use 4.0 :(

Config : tomcat 4.0.4 ,Struts 1.1, jdk1.4


Thanks in advance,
sudhakar








java.lang.IllegalStateException: standardHost.start /sfpsr3: LifecycleException:  
start: :  java.lang.IllegalStateException: zip file closed
at org.apache.catalina.core.StandardHost.start(StandardHost.java:855)
at 
org.apache.catalina.servlets.HTMLManagerServlet.start(HTMLManagerServlet.java:375)
at 
org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServlet.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)
This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Slightly OT: NoBodyResponse

2004-03-17 Thread Philipp Taprogge
Hi and thanks for your response!

Shapira, Yoav wrote:
These are private support classes of the Servlet API.  They're still
present, but they're file-private inner classes and thus no in the
JavaDoc (intentionally).
I thought so, that's why I asked.

 The class name you're quoting for them is
wrong, by the way: it's javax.servlet.http.HttpServlet$NoBodyResponse
and javax.servlet.http.HttpServlet$NoBodyOutputStream.
That explains it. As I said, I just quoted them from several newsgroup 
postings I stumbled across.

Your second guess is also wrong, and I wouldn't normally mention this
but it's significant: there's nothing tomcat-specific (or specific to
any server) in the javax.servlet classes.
It would by all means be bad practice and I would never imply that the 
tomcat developers worked that way, but since HttpServletResponse is 
not final, it could hypothetically be extended by a third party inside 
the same package. I just thought I might have accidently discovered a 
"sin of the past" ;-)
Thanks for your clarification.

	Phil

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Loadbalancing

2004-03-17 Thread armalai
Tim.,
   I understand that i should use mod_jk instead of mod_jk2 ..
Let me start with my basic problem.
1.How do i create more than two instances.?
Using CATALINA_BASE i have created one instance.but i'm not able to get
the jsp pages from the original instances.

Thanks.,
MALAI

- Original Message - 
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 9:21 AM
Subject: Re: Tomcat Loadbalancing


> Start here first
> http://jakarta.apache.org/tomcat/faq/
>
> -Tim
>
> armalai wrote:
>
> > Hi.,
> >   I'm trying to do Loadbalancing in tomcat.
> > My environement details are,
> > Windows
> > Tomcat 4.1.xx
> > Apace 2.x
> > Mod_jk2 connector
> >
> > Right now i'm stuck up with apache to tomcat
> > communication thru ajp.
> >
> > my questions are below..
> > 1.How do i create multiple instance of tomcat?
> >   using CATALINA_BASE i could able to create one
> > instance with new server.xml from different location.
> >   but not able to retrieve the jsp pages from default
> > tomcat instances webapp.
> >   i want to create more than two instances.
> > 2.How do i do the loadbalancing & clustering?
> >give me the idea about worker properties config.
> > 3.Is it possible to do session replication?in few
> > websites they talk about sticky session?
> > what is sticky?does it covers session replica?
> >
> > Please advise me to get thru this task..
> > It will be great you can provide me document for
> > this.
> >
> > Thanks.,
> > MALAI
>
> -
> 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: JProfiler... help!

2004-03-17 Thread bort
I've deployed my application to a Linux box with Apache and Tomcat.  We are
about to have some people test it, and I would like to profile memory use
and garbage collection.

How can I do that with JProfiler?

Rocky

"bort" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all
>
> I've installed a demo version of JProfiler ver 3.0 to get some memory
> information on my web app in Tomcat.  I'm using Eclipse 2.1 as my IDE and
> (during development) run Tomcat from within it.
>
> I've gone ahead an integrated JProfiler with my IDE, and got a new little
> button in Eclipse.  When I click on it to Invoke JProfiler, I get a window
> that allows to be select 'Tomcat4.1.x' as a launch configuration.  But
then,
> nothing happens.
>
> Sorry if this all sounds very simple, but I can't seem to get JProfiler to
> do anything for me!  I've tried creating a new session, and pointed it to
> localhost on port 8080, but it doesn't connect.
>
> Can anyone help and/or provide some guidance?
> bort




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >