Re: cannot setup JNDI with MySQL

2005-10-06 Thread andy gordon
John, 
 
Possibly the following will help as it is listed in the 5.5 JDBC DataSource 
html page in the User guide: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 

Please note that JNDI resource configuration has changed somewhat between 
Tomcat 5.0.x and Tomcat 5.5.x. You will most likely need to modify your JNDI 
resource configurations to match the syntax in the example below in order to 
make them work in Tomcat 5.5.x 

 

With that said you can replace your specified parameters with the following 
from the mysql section of that page. 

 
  Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=javauser password=javadude 
driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true/

Hope this helps
 
- andy

John Cherouvim [EMAIL PROTECTED] wrote:
Hello

I've been trying to setup a mysql connection pool using JNDI as shown in 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
But no luck.

I never get to see the datasource registered Tomcat Administration Tool.
I've included in server.xml the following lines somewhere inside the 
.. 




factory 
org.apache.commons.dbcp.BasicDataSourceFactory 


driverClassName 
com.mysql.jdbc.Driver 


url 
jdbc:mysql://localhost:3306/dea?autoReconnect=true 



username myusername 


password mypassword 


maxActive 20 


maxIdle 10 


maxWait 40 




I have Tomcat/5.0.28

And the following files in common\lib
mysql-connector-java-3.1.10-bin.jar
commons-collections-3.1.jar
commons-dbcp-1.2.1.jar
commons-pool-1.2.jar
*

*What I get in tomcat\logs\stdout.log is:
NotifyUtil::java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)
at sun.net.www.http.HttpClient.(HttpClient.java:292)
at sun.net.www.http.HttpClient.(HttpClient.java:253)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:301)
at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:469)
at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:460)
at 
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:516)
at 
org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:237)


What did I miss? I've even tried setting up the JNDI in the 
conf\Catalina\localhost\myapp.xml
And also tried instead of 

I also tried all that with the org.gjt.mm.mysql.Driver

Regards,
I.

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



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: cannot setup JNDI with MySQL

2005-10-06 Thread andy gordon
One more thing and i may have missed it in your note: Did you say you placed 
mysql's jar file in the common\lib directory ?

John Cherouvim [EMAIL PROTECTED] wrote:Hello

I've been trying to setup a mysql connection pool using JNDI as shown in 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
But no luck.

I never get to see the datasource registered Tomcat Administration Tool.
I've included in server.xml the following lines somewhere inside the 
.. 




factory 
org.apache.commons.dbcp.BasicDataSourceFactory 


driverClassName 
com.mysql.jdbc.Driver 


url 
jdbc:mysql://localhost:3306/dea?autoReconnect=true 



username myusername 


password mypassword 


maxActive 20 


maxIdle 10 


maxWait 40 




I have Tomcat/5.0.28

And the following files in common\lib
mysql-connector-java-3.1.10-bin.jar
commons-collections-3.1.jar
commons-dbcp-1.2.1.jar
commons-pool-1.2.jar
*

*What I get in tomcat\logs\stdout.log is:
NotifyUtil::java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)
at sun.net.www.http.HttpClient.(HttpClient.java:292)
at sun.net.www.http.HttpClient.(HttpClient.java:253)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:301)
at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:469)
at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:460)
at 
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:516)
at 
org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:237)


What did I miss? I've even tried setting up the JNDI in the 
conf\Catalina\localhost\myapp.xml
And also tried instead of 

I also tried all that with the org.gjt.mm.mysql.Driver

Regards,
I.

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




-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: Setting environment variables in server.xml.

2005-10-04 Thread andy gordon
David, 
 
Just in case you haven't done this yet, have you checked to see if the 
environment variable shows up as a catalina:type=Environment MBean? if so you 
should be able to access it. Hope this helps. 
 
- andy gordon

David Kerber [EMAIL PROTECTED] wrote:
If I'm reading it correctly, according to the docs, I should be able to 
set an environment variable in server.xml, like the built-in example:




Unfortunately, I can't get this to work; I can't read in simpleValue, or 
the ones I really want to do when they are defined in server.xml. But I 
have no problems when I put them into the application's web.xml; they 
come in just fine using the InitialContext stuff from the docs. Is 
there something extra I need to do to make them visible from server.xml?

Thanks,
Dave

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



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: Setting environment variables in server.xml.

2005-10-04 Thread andy gordon
if you are using 5.5x you can look at the mbean with jmxproxy which is part of 
the manager app.

David Kerber [EMAIL PROTECTED] wrote:Nope, never heard of that one. I'll see 
if I can figure out how to get 
at that type.


andy gordon wrote:

David, 
 
Just in case you haven't done this yet, have you checked to see if the 
environment variable shows up as a catalina:type=Environment MBean? if so you 
should be able to access it. Hope this helps. 
 
- andy gordon

David Kerber wrote:
If I'm reading it correctly, according to the docs, I should be able to 
set an environment variable in server.xml, like the built-in example:




Unfortunately, I can't get this to work; I can't read in simpleValue, or 
the ones I really want to do when they are defined in server.xml. But I 
have no problems when I put them into the application's web.xml; they 
come in just fine using the InitialContext stuff from the docs. Is 
there something extra I need to do to make them visible from server.xml?

Thanks,
Dave
 




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




-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: JMX Method to check JDBC connection acivity?

2005-09-28 Thread andy gordon
Edmon, 
 
Did you get an answer to your question?
 
I found your question quite interesting. I ran some tests and received the same 
error (RMI permission) as you. I used JConsole as well as looked at JMXProxy 
and could not determine if my datasource (in this case MySQL) was running or 
not. The informatio available via JMX was the same whether MySQL was started or 
not. 
 
I am wondering if creating your own MBean is the appropriate way to test the 
connection.   
 
Let me know how this comes out. 
 
- Andy Gordon

Edmon Begoli [EMAIL PROTECTED] wrote:
Is there a handy MBean in Tomcat that would allow me to do on demand check
if the connection to the database is up?

I've looked at DataSource but that one does not expose getConnection, and
the one that requires username and password throws RMI permission exception.
I would really like to have something simple as can connect or similar.

--
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: How to configure a single JDBC connection via Tomcat's JDBC JNDI configurations for Oracle

2005-09-27 Thread andy gordon
The attribute maxactive controls how big the pool is. if maxactive is set to 1 
then there can be only 1 per time. There are also non-dbcp solutions which have 
oracle examples described under JDBC datasources link in tomcat 5.5 doc at 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
good luck
 
- andy gordon

Edmon Begoli [EMAIL PROTECTED] wrote:
Anyone,

I want to configure Tomcat 5.5.x to access each database in the Oracle
cluster, and not using the pool.
This configuration is for database diagnostic puproses, so I need to create
a single connection everytime.

What is the most appropriate way to this using Oracle driver?

Currently I am doing this:

 
auth=Container
driverClassName=oracle.jdbc.driver.OracleDriver
type=javax.sql.DataSource
username=
password=

url=jdbc:oracle:thin:@
maxActive=1
maxIdle=1
maxWait=-1
removeAbandoned=true
logAbandoned=true
removeAbandonedTimeout=300 /

--
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: someone familar with this error?

2005-09-22 Thread andy gordon
Leon, 
 
Not sure if this will help, but it looks like there was an error when 
registering MBeans. Did make any modifications with the Coyote Connnector? This 
is the connector that integrates with Apachr or IIS for example. 
 
- andy

Leon Rosenberg [EMAIL PROTECTED] wrote:
starting tomcat:

22.09.2005 12:41:27 org.apache.coyote.tomcat5.MapperListener init
WARNUNG: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603)
at mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1510)

tomcat 5.0.25, jdk1.4, winxp

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Asking again: index.jsp and virtual directories

2005-09-22 Thread andy gordon
David, 
 
Have you looked at setting up virtual hosts in tomcat as this seems to be what 
you are looking for.
 
- andy gordon

David Thielen [EMAIL PROTECTED] wrote:
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/



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



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread andy gordon
Dirk is correct you need to check out the doc in order to understand your 
options. To add a little specificity to your challenge, you need to do at least 
the following to get going: 
 
1) set remote monitoring options when you are starting the JVM. This can be 
accomplished multiple ways. One place is in catalina.bat

1) set remote monitoring port   -Dcom.sun.management.jmxremote.port=
2) turn on remote monitoring-Dcom.sun.management.jmxremote

there are others for SSL and authentication and you have to decide if 
they are needed.

2)  create the RMI connector client in a very small bit of java code as well as 
establish as use the MBeanServerConnection class to access TOMCAT domains and 
MBeans.

 

THis is probably about a 1/2 dozen LOC to gain access and there are examples to 
be found.

 

You can use JConsole (JMX monitoring from SUN)  which is located in the JDK 1.5 
BIN directory to validate configuration tasks without any coding or installing 
any other software. 

 

hope this helps. 

 

- andy  
 

Dirk Weigenand [EMAIL PROTECTED] wrote:
Hi,

 --- Ursprüngliche Nachricht ---
 Von: jiang ying 
 An: tomcat-user@jakarta.apache.org
 Betreff: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
 Datum: Wed, 21 Sep 2005 16:26:00 +0800
 
 hi, I know the way to access Tomcat JMX support via http adaptor.
 I also know how to monitor an application via JMX by registering an 
 mbeanserver.
 But I really confused about accessing Tomcat JMX support via RMI
 connector:
 1. how to configure Mx4j RMI connector with Tomcat 5.5, since only 
 Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
 2. after configuring RMI connector, how can I access Tomcat JMX support 
 programmatically? I am not clear about the mbeanserver that tomcat mbeans 
 has been registed. How can I make use of the connector, thread pool, 
 servlet information that Tomcat has already monitored and controlled.
 Thank you. 
 :)
 

Have a look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html.

You can then use e.g. MC4J (http://mc4j.org/confluence/display/MC4J/Home?)
for monitoring Tomcat.

Regards
Dirk

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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





-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: conf/tomcat-users.xml syntax and semantics

2005-09-21 Thread andy gordon

A realm, in this case the UserDatabase realm is simply a collection of users, 
passwords, and roles. You could also think of a role as a group. It identifies 
valid users of a web application (or set of web applications), plus an 
enumeration of the list of roles associated with each valid user.

 

You should be able to assign user names and passwords ok. Then you assign users 
to responsibilities i.e. roles such as manager. 

 

Realms may be defined at the Engine, Host, or Context level. The UserDataBase 
realm is at the engine level i..e the top level. Host and context are 
subordinate levels and their scope is limited to the host or web application 
(context) level and are defined there (with the web app or host). 

 

listed below is an example: 

 

tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=singleton password=paul roles=admin,manager/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
  user username=admin password=admin roles=admin,manager/
/tomcat-users 

 

 

notice that userid singleton has a password of paul and has the role of admin 
and manager meaning that singleton can access applications that require admin 
or manager privileges in order to be used.

 

hope this helps.

 

- andy


Paul Singleton [EMAIL PROTECTED] wrote:
What is the correct syntax (for 5.5.9 and later) of
conf/tomcat-users.xml, and what do the entries mean?
(I've read the docs, but still don't really get it)

Should I put
or

Are these entries




purely illustrative and can they be deleted? (I prefer to keep
documentation elsewhere)

Is 'standard' a built-in role, and if so what is it for?

Finally (for now) I don't understand why my tomcat-users.xml
gets touched (at least) at each restart, and has its permissions
reset (from -rw--- to -rw-rw-r--)

Paul Singleton


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/Sep/2005


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



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: Unable to login Tomcat Manager?

2005-09-21 Thread andy gordon
if you enable the jdbc realm then authentication and authorizaiton comes from a 
jdbc datasource not the tomcat.uses.xml file. This is why tomcat keeps asking 
you for a user name and password. I suggest you read the realm how to on the 
tomcat website so you can correct your problem.
 
- andy

±ç¬±³õ [EMAIL PROTECTED] wrote:
I have enabled JDBCRealm with MD5 in server.xml Tomcat 5.5.
Then I am not able to login Tomcat Manager.
When I click Tomcat Manager,
I input the username and password in tomcat-users.xml,
it keeps on prompting me username and password.
I wonder if the old password is not encrypted by MD5.
Then I encrypt the password by MD5 and put into tomcat-users.xml.



Still the same?

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Unable to login Tomcat Manager?

2005-09-21 Thread andy gordon
I suggest you read the JDBC realm documentation and be exact about what it 
says. 
Do you have a table called USERS?  Make sure its populated correctly. 
do you have a table called USER_ ROLES? Make sure it is populated correctly. 
You should be able to understand the relationships between the two tables 
Username to Username/Role
 
I think you are close but off just a bit.
 
again follow the quick start guide in the documentation and you should have it.
 
good luck, 
 
Andy Gordon

±ç¬±³õ [EMAIL PROTECTED] wrote:
However I go into http://localhost:8080/erp
It is ok.

I have added record to user_profile, user_role

Table: user_role
usernm role_name
admin Administrator
admin Manager
admin admin

The error message becomes
Access to the requested resource has been denied

Why?


2005/9/22, æ¢ç‚³å ´ 
:
 However I go into http://localhost:8080/erp
 It is ok.

 I have added record to user_profile, user_role

 Table: user_role
 usernm role_name
 admin Administrator
 admin Manager
 admin admin

 The error message becomes
 Access to the requested resource has been denied

 Why?


 2005/9/22, andy gordon :
  if you enable the jdbc realm then authentication and authorizaiton comes
  from a jdbc datasource not the tomcat.uses.xml file. This is why tomcat
  keeps asking you for a user name and password. I suggest you read the realm
  how to on the tomcat website so you can correct your problem.
 
  - andy
 
  ±ç¬±³õ 
wrote:
  I have enabled JDBCRealm with MD5 in server.xml Tomcat 5.5.
  Then I am not able to login Tomcat Manager.
  When I click Tomcat Manager,
  I input the username and password in tomcat-users.xml,
  it keeps on prompting me username and password.
  I wonder if the old password is not encrypted by MD5.
  Then I encrypt the password by MD5 and put into tomcat-users.xml.
 
 
 
  Still the same?
 
  -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
  __
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: jdbc driver

2005-09-19 Thread andy gordon
is the MySQL Connector Jar file in the $CATALINA_HOME/common/lib  directory?

Kito Holliday [EMAIL PROTECTED] wrote:Attempting to use connector-java-3.3.10 
with tomcat 4.0 and mysql and
servlets. The Java code:
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)lookup(jdbc/TestDB);

throws the exception:
Exception creating DataSource: org.hsql.jdbcDriver

The problem is that my .xml files never mentions the hsql jdbcDriver.
Obviously tomcat is ignoring my 

Specifically, I have a web.xml having:
**

PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;


DB Connection
jdbc/TestDB
javax.sql.DataSource
Container


***

and a server.xml having

*Sorry for the long server.xml**



port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443 acceptCount=10
debug=0 connectionTimeout=6 /

prefix=standaloneEngine_log. suffix=.txt
timestamp=true/


directory=logs prefix=localhost_access_log. suffix=.txt
pattern=common /
directory=logs prefix=standaloneHost_log. suffix=.txt
timestamp=true /

privileged=true
prefix=standalone_manager_log. suffix=.txt
timestamp=true /

reloadable=true crossContext=true
prefix=standalone_examples_log. suffix=.txt
timestamp=true /
value=15 /

override=false /
type=javax.mail.Session /


mail.smtp.host
localhost




crossContext=true
prefix=standalone_DBTest_log. suffix=.txt
timestamp=true /
type=javax.sql.DataSource
driverClassName=com.mysql.jdbc.Driver /



factory
org.apache.commons.dbcp.BasicDataSourceFactory




factory
com.mysql.jdbc.jdbc2.optional.
MysqlConnectionPoolDataSource




maxActive
100




maxIdle
30




maxWait
1




username
javauser




password
javadude




driverClassName
com.mysql.jdbc.Driver




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




removeAbandoned
true




removeAbandonedTimeout
60




logAbandoned
true








prefix=tomcat_apache_service. suffix=.txt
timestamp=true/
port=8008 minProcessors=5 maxProcessors=75
enableLookups=true appBase=webapps acceptCount=10
debug=0 /
name=Apache localHost=127.0.0.1 debug=5
prefix=tomcatapacheEngine. suffix=.txt timestamp=true/

unpackWARs=true
directory=logs prefix=tomcatapacheHost_log.
suffix=.txt timestamp=true /

reloadable=true crossContext=true useNaming=false
prefix=tomcatapache_DBTest_log. suffix=.txt
timestamp=true /
type=javax.sql.DataSource
driverClassName=com.mysql.jdbc.Driver
username=javauser password=javadude
url=jdbc:mysql://localhost:3306
/javatest?autoReconnect=true
factory=org.apache.commons.dbcp.
BasicDataSourceFactory
maxActive=100
maxIdle=30
validationQuery=SELECT 1
testOnBorrow=true
testWhileIdle=true
timeBetweenEvictionRunsMillis=1
minEvictableIdletime=6
maxWait=1
removeAbandoned=true
removeAbandonedTimeout=60
logAbandoned=true /

- privileged=true
prefix=apachetomcat_manager_log. suffix=.txt
timestamp=true /

reloadable=true crossContext=true
prefix=apachetomcat_examples_log. suffix=.txt
timestamp=true /
value=15 /

override=false /
type=javax.mail.Session /



mail.smtp.host
localhost









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



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

mysql, Tomcat and Connector/mxj

2005-08-19 Thread andy gordon
All, 
 
Has anyone successfully run Connector MXJ successfully with Tomcat, Standalone, 
or with JBoss? 
Connector MXJ allows you to manage MySQL databases through JDBC or JMX MBeans.
 
- andy



-
 Start your day with Yahoo! - make it your home page 

How do you set up JMX remote for Tomcat 5.5.9?

2005-07-07 Thread andy gordon
 Help, 
 
How do you set up JMX remote for Tomcat 5.5.9? 
 
For instance where do you specify the JVM startup option 
 
-Dcom.sun.management.jmxremote.port=9998 
 
that enables remote monitoring and management? 
 
THank you 
 
- andy



-
 Sell on Yahoo! Auctions  - No fees. Bid on great items.

Re: How do you set up JMX remote for Tomcat 5.5.9?

2005-07-07 Thread andy gordon
Thank you for the info but I don't think it helped. Your insight is valued. 
 
I set an environment variable called JAVA_OPTS to 
 
-Dcom.sun.management.jmxremote.port=9998 
 
and started tomcat using startup.bat.  The cmd window opened and closed. 
Meaning tomcat didn't start. Suggestions?  
 
I have not done anything else at this point with respect to enabling JMX remote.
 
Thank you 
 
- andy

Tim Funk [EMAIL PROTECTED] wrote:
http://jakarta.apache.org/tomcat/faq/misc.html#properties

-Tim

andy gordon wrote:

 Help, 
 
 How do you set up JMX remote for Tomcat 5.5.9? 
 
 For instance where do you specify the JVM startup option 
 
 -Dcom.sun.management.jmxremote.port=9998 
 
 that enables remote monitoring and management? 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com