Re: Virtual Hosts and MySQL

2004-07-31 Thread Evgeny Gesin
Do you meant "deployOnStartup" ("loadOnStartup")? It
is not available in 4.1.xx (my case).

I found easer to manage multiple contexts in separate
directories of virtual hosts, than limit use of
deployment parameters.

Thanks for reply! :)

Evgeny

> On Sat, Jul 31, 2004 at 12:45:50PM -0700, Evgeny
> Gesin wrote:
> : Tomcat loads all* web-apps under "appBase" when
> : starting virtual hosts. Using different "appBase"
> for
> : each virtual "host" solves the problem.
> 
> Just for the archives, Tomcat loads *all* webapps
> when "loadOnStartup"
> is true for the  element.  Set it to "false"
> and you won't have
> that problem.
> 
> Of course, if you're deploying apps to the same dir,
> but they're managed
> by different vhosts, then you may want to set the
> 's "autoDeploy"
> to false, as well.  Otherwise you'll trigger a
> deployment on the other
> vhosts when you deploy to the intended one...
> 
> 
> : Thanks for not response :))
> 
> Well, now you have one. ;)
> 
> -QM
> 
> -- 
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Re: Virtual Hosts and MySQL

2004-07-31 Thread QM
On Sat, Jul 31, 2004 at 12:45:50PM -0700, Evgeny Gesin wrote:
: Tomcat loads all* web-apps under "appBase" when
: starting virtual hosts. Using different "appBase" for
: each virtual "host" solves the problem.

Just for the archives, Tomcat loads *all* webapps when "loadOnStartup"
is true for the  element.  Set it to "false" and you won't have
that problem.

Of course, if you're deploying apps to the same dir, but they're managed
by different vhosts, then you may want to set the 's "autoDeploy"
to false, as well.  Otherwise you'll trigger a deployment on the other
vhosts when you deploy to the intended one...


: Thanks for not response :))

Well, now you have one. ;)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Virtual Hosts and MySQL

2004-07-31 Thread Evgeny Gesin
Well, I solved.
Tomcat loads all* web-apps under "appBase" when
starting virtual hosts. Using different "appBase" for
each virtual "host" solves the problem.

Thanks for not response :))
Evgeny




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



Virtual Hosts and MySQL

2004-07-30 Thread Evgeny Gesin
I want to test a virtual host on my local machine (lo
IP), before I add new host to real web server (eth0
IP). So, I added 127.0.0.2 to local machine and now
'ifconfig' returns two IP addresses

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0

lo:0  Link encap:Local Loopback
  inet addr:127.0.0.2  Mask:255.0.0.0

I use 127.0.0.1 for first virtual host, 127.0.0.2 for
second virtual host and 127.0.0.1:3306 to connect to
local MySQL server.

When I run Tomcat 4.1.30 with either  or ,
everything works fine!

But when I run both virtual hosts, Tomcat cannot
connect to MySQL:
org.apache.commons.dbcp.SQLNestedException: Cannot
create JDBC driver of class '' for connect URL 'null',
cause: 
java.sql.SQLException: No suitable driver


 
 
  
  
   
   

usernameusername

passwordpassword

driverClassNameorg.gjt.mm.mysql.Driver

urljdbc:mysql://127.0.0.1:3306/myapp1DB?autoReconnect=true
   
  
 
 
  
  
   
   

usernameusername

passwordpassword

driverClassNameorg.gjt.mm.mysql.Driver

urljdbc:mysql://127.0.0.1:3306/myapp2DB?autoReconnect=true
   
  
 


1. Why running both 127.0.0.1:80 and 127.0.0.2:80 fall
to connect to MySQL, and running one of these hosts is
not the problem?
2. Should I change workers.properties
(worker.ajp13.host=localhost)?

Evgeny



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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