RE: Tomcat JNDI Realm + Active Directory Server

2005-07-20 Thread Kal Govindu
Two things that I noticed. I don't know how correct they are, but it seems to 
work in my environment.
1. In my Realm definition Realm I have connectionName and connectionPassword 
attributes which specify the user that can login to AD and query  and 
authenticate others.
2. My Realm definition is in the context of my webapp and my web.xml 
configuration looks something like the following:
  security-constraint^M  
  web-resource-collection^M  
  web-resource-nameLogin Screen/web-resource-name^M
  url-pattern/Login.jsp/url-pattern^M   
  /web-resource-collection^M 
  ^M   
  auth-constraint   ^M   
  role-nameMIS Distribution/role-name^M
  /auth-constraint^M 
  /security-constraint^M  

I never use the context name in my web.xml like you have setup with 
moretests. 

Hope this helps.

Kal  

-Original Message-
From: Luis Durán [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 19, 2005 6:23 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat JNDI Realm + Active Directory Server


I had a hard time trying to configure Tomcat to authenticate with MS
Active Directory Service, i tried a lot of samples, i edited them but i
didn't get nothing. This is the last configuration i tried:

/META-INF/context-xml:

?xml version=1.0 encoding=UTF-8?

Context path=/moretests
Realm className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=ldap://192.168.200.2:389;
referrals=follow
userBase=cn=Users,dc=w2ksvr,dc=local
userSearch=(sAMAccountName={0})
userSubtree=true
userRoleName=memberOf
roleBase=cn=Users,dc=w2ksvr,dc=local
roleSearch=(sAMAccountName={0})
roleSubtree=true
rolename=cn /
/Context

I gave the shot to the bind mode and to the password comparison mode
with any results.

/WEB-INF/web.xml:

?xml version=1.0 encoding=UTF-8?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
login-config
auth-methodBASIC/auth-method
realm-namemoretests/realm-name
/login-config
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-file
index.jsp
/welcome-file
/welcome-file-list
security-constraint
web-resource-collection
web-resource-namewhole site/web-resource-name
url-pattern/*/url-pattern
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-nameprueba/role-name
/auth-constraint
/security-constraint
security-role
descriptionUsuario/description
role-nameprueba/role-name
/security-role
/web-app

Of course, i have created that group inside ADS and populated it with a
user called elebis with a simple password. I even browsed ADS with ldap
browser and everything seemed ok,

Does anybody know why am I doing wrong? Can anybody help me to work
around it?

Thanks in advanced, pals

-- 

Luis Edgardo Durán Lebis
Soporte Técnico y Sistemas
http://mipagina.cantv.net/elebis
[EMAIL PROTECTED]
0416-7580991


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




CONFIDENTIALITY NOTE:  All e-mail sent to or from this address will be received 
by the Waterfield Group corporate e-mail system and is subject to archival, 
monitoring, and/or review by someone other than the recipient or the sender.

This e-mail and any of its attachments may contain proprietary information, 
which is privileged and confidential.  This e-mail is intended solely for the 
use of the individual or entity to which it is addressed.  If you are not the 
intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying, or action taken in relation to the 
contents of and attachments to this e-mail is strictly prohibited and may be 
unlawful.  If you have received this e-mail in error, please notify the sender 
immediately and permanently delete the original and any copy of this e-mail and 
any printout.  Thank you.


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



Tomcat5 - LDAP question.

2004-07-07 Thread Kal Govindu
Hi All,

Is there a way of setup a user account in Active Directory that can query other user 
info and does not have permission to update that information.

Background:

I am trying to setup LDAP authentication on Tomcat5 connecting to Active Directory.

When I bind to active directory as common user account I can query my own account and 
get the kmemberOf field for role information. I can query and get memberOf field 
for Administrator accounts. I can NOT get memberOf field for other user accounts 
that are not administrators ( just regular users ).

When I bind to active directory as an admin account I can query all accounts and get 
the memberOf for role information.

But the catch is admin account also has permissions to update this information.

I need one of the following:

1. An account on active directry that can query all users and get memberOf field but 
cannot update.
2. An admin account where the password does not have to be setup in clear text in 
Server.xml.

Thanks
Kal


CONFIDENTIALITY NOTE:  All e-mail sent to or from this address will be received by the 
Waterfield Group corporate e-mail system and is subject to archival, monitoring, 
and/or review by someone other than the recipient or the sender.

This e-mail and any of its attachments may contain proprietary information, which is 
privileged and confidential.  This e-mail is intended solely for the use of the 
individual or entity to which it is addressed.  If you are not the intended recipient 
of this e-mail, you are hereby notified that any dissemination, distribution, copying, 
or action taken in relation to the contents of and attachments to this e-mail is 
strictly prohibited and may be unlawful.  If you have received this e-mail in error, 
please notify the sender immediately and permanently delete the original and any copy 
of this e-mail and any printout.  Thank you.



RE: LDAP - newbee help

2004-07-06 Thread Kal Govindu
Thank you very much, that helped a lot. I have it working and authenticating 
correctly. Appreciate your help. A tool to look at your Active Directory setup is very 
useful to setting this stuff up. I used ldp and it worked great in telling me what to 
fill in.

Thanks again.
kal

-Original Message-
From: Ross Rankin [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 12:23 PM
To: Kal Govindu; 'Tomcat Users List (E-mail)'
Subject: RE: LDAP - newbee help


To authenticate users you will need an account / password that has read
privileges and a base DN.  You will need to configure Tomcat with that info
in the server.xml.   

So you will need to ask for an account that has access to the group you will
to authenticate from and the user needs to be a member.  

Here's a good idea of what need to be configured:
Realm className=org.apache.catalina.realm.JNDIRealm 
connectionURL=ldap://[Windows 2000 Domain Controller]:389
userBase=CN=Users,dc=[domain name],dc=com
userSearch=(userPrincipalName={0})
userRoleName=member
roleBase=CN=Users,dc=[domain name],dc=com
roleName=cn
roleSearch=(member={0})
connectionName=CN=[jndi account username],CN=Users,DC=[domain name],DC=com
connectionPassword=[jndi account password]
roleSubtree=true
userSubtree=true /

Replace [Windows 2000 Domain Controller] with the name of one of your domain
controller
Replace [domain name] with the name of your network domain. If you aren't
sure about what your domain name is, open up ADSI edit, choose the defaults,
and look at what it says next to the Domain NC icon.
Replace [jndi account username] with the name of the user you requested
Replace [jndi account password] with the password of user you requested



-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 8:50 AM
To: Tomcat Users List (E-mail)
Subject: RE: LDAP - newbee help

Thank you for clearing that up.

I will take a look at that document. I have made a connection to the Active
Directory, but am not able to authenticate users yet, probably since I don't
know details about how user or members and their corresponding role
information is store in our Directory Server. I will need to contact the
tech guys for that. In Microsoft Active Directory terms, where is this
information stored? and what is called? so I can ask the right questions.

Thanks
Kal

-Original Message-
From: Ross Rankin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 2:09 PM
To: Kal Govindu; 'Tomcat Users List (E-mail)'
Subject: RE: LDAP - newbee help



LDAP, Lightweight Directory Access Protocol, is a protocol that other
programs use to look up contact information from a server, such as Microsoft
Active Directory.  It is a service provided by a server, not a server.  An
LDAP server is a server that provides LDAP services...  The Microsft AD
service is LDAP-compatible.  

http://www.microsoft.com/windowsserver2003/techinfo/overview/ldapcomp.mspx

Ross

-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 01, 2004 1:51 PM
To: Tomcat Users List (E-mail)
Subject: LDAP - newbee help

Hello all,

I am trying to setup tomcat 5 to authenticate against Microsoft Directory
Server through LDAP. I have found a very detailed document for tomcat 5 and
JNDI realm. One question before I go any further: Is LDAP server a server
that needs to be started separately from directory server? If so, where can
I get that?

Thanks
Kal


CONFIDENTIALITY NOTE:  All e-mail sent to or from this address will be
received by the Waterfield Group corporate e-mail system and is subject to
archival, monitoring, and/or review by someone other than the recipient or
the sender.

This e-mail and any of its attachments may contain proprietary information,
which is privileged and confidential.  This e-mail is intended solely for
the use of the individual or entity to which it is addressed.  If you are
not the intended recipient of this e-mail, you are hereby notified that any
dissemination, distribution, copying, or action taken in relation to the
contents of and attachments to this e-mail is strictly prohibited and may be
unlawful.  If you have received this e-mail in error, please notify the
sender immediately and permanently delete the original and any copy of this
e-mail and any printout.  Thank you.






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



RE: LDAP - newbee help

2004-07-02 Thread Kal Govindu
Thank you for clearing that up.

I will take a look at that document. I have made a connection to the Active Directory, 
but am not able to authenticate users yet, probably since I don't know details about 
how user or members and their corresponding role information is store in our Directory 
Server. I will need to contact the tech guys for that. In Microsoft Active Directory 
terms, where is this information stored? and what is called? so I can ask the right 
questions.

Thanks
Kal

-Original Message-
From: Ross Rankin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 2:09 PM
To: Kal Govindu; 'Tomcat Users List (E-mail)'
Subject: RE: LDAP - newbee help



LDAP, Lightweight Directory Access Protocol, is a protocol that other
programs use to look up contact information from a server, such as Microsoft
Active Directory.  It is a service provided by a server, not a server.  An
LDAP server is a server that provides LDAP services...  The Microsft AD
service is LDAP-compatible.  

http://www.microsoft.com/windowsserver2003/techinfo/overview/ldapcomp.mspx

Ross

-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 01, 2004 1:51 PM
To: Tomcat Users List (E-mail)
Subject: LDAP - newbee help

Hello all,

I am trying to setup tomcat 5 to authenticate against Microsoft Directory
Server through LDAP. I have found a very detailed document for tomcat 5 and
JNDI realm. One question before I go any further: Is LDAP server a server
that needs to be started separately from directory server? If so, where can
I get that?

Thanks
Kal


CONFIDENTIALITY NOTE:  All e-mail sent to or from this address will be
received by the Waterfield Group corporate e-mail system and is subject to
archival, monitoring, and/or review by someone other than the recipient or
the sender.

This e-mail and any of its attachments may contain proprietary information,
which is privileged and confidential.  This e-mail is intended solely for
the use of the individual or entity to which it is addressed.  If you are
not the intended recipient of this e-mail, you are hereby notified that any
dissemination, distribution, copying, or action taken in relation to the
contents of and attachments to this e-mail is strictly prohibited and may be
unlawful.  If you have received this e-mail in error, please notify the
sender immediately and permanently delete the original and any copy of this
e-mail and any printout.  Thank you.




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



LDAP - newbee help

2004-07-01 Thread Kal Govindu
Hello all,

I am trying to setup tomcat 5 to authenticate against Microsoft Directory Server 
through LDAP. I have found a very detailed document for tomcat 5 and JNDI realm. One 
question before I go any further: Is LDAP server a server that needs to be started 
separately from directory server? If so, where can I get that?

Thanks
Kal


CONFIDENTIALITY NOTE:  All e-mail sent to or from this address will be received by the 
Waterfield Group corporate e-mail system and is subject to archival, monitoring, 
and/or review by someone other than the recipient or the sender.

This e-mail and any of its attachments may contain proprietary information, which is 
privileged and confidential.  This e-mail is intended solely for the use of the 
individual or entity to which it is addressed.  If you are not the intended recipient 
of this e-mail, you are hereby notified that any dissemination, distribution, copying, 
or action taken in relation to the contents of and attachments to this e-mail is 
strictly prohibited and may be unlawful.  If you have received this e-mail in error, 
please notify the sender immediately and permanently delete the original and any copy 
of this e-mail and any printout.  Thank you.



RE: Can't access tomcat manager

2004-04-12 Thread Kal Govindu
If you had logged in to another application before you try Tomcat manager the 
authentication would not allow you to go through. You will have to close the browser 
and relaunch it again and go to Tomcat Manager first.

Hope this helps.
Kal

-Original Message-
From: Mario St-Gelais [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 3:22 PM
To: Tomcat Users List
Subject: Can't access tomcat manager


As soon as I click on Tomcat Magager, I get the message The request 
requires HTTP authentication without even being ask for username and 
password.  I just reinstalled Tomcat 5.0.19 because I wasa getting that 
messge, but the problem did not get solved.

Curiously enough, if I acces Tomcat from another machine, then I have no 
problem getting to the manager.  So it must be a machine issue???

-- 
_
Mario St-Gelais
Good judgment comes from
experience- usually experience
which was the result of poor judgment
Bill Putnam



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



CONFIDENTIALITY NOTE:  All e-mail sent to or from this address will be received by the 
Waterfield Group corporate e-mail system and is subject to archival, monitoring, 
and/or review by someone other than the recipient or the sender.

This e-mail and any of its attachments may contain proprietary information, which is 
privileged and confidential.  This e-mail is intended solely for the use of the 
individual or entity to which it is addressed.  If you are not the intended recipient 
of this e-mail, you are hereby notified that any dissemination, distribution, copying, 
or action taken in relation to the contents of and attachments to this e-mail is 
strictly prohibited and may be unlawful.  If you have received this e-mail in error, 
please notify the sender immediately and permanently delete the original and any copy 
of this e-mail and any printout.  Thank you.


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



RE: Connection Pool setup.

2004-04-02 Thread Kal Govindu
Hi,

Hello, 

I'd like to know how to implement connection pooling in my
application.
This is what I had done so far.  Pls let me know what I need to change

to use the pooling mechanism.

1.  I created a singleton class: DatabaseOperations.
2.  It has an Connection instance: conn.
3.  During initialization, it gets connection as follows:
 DataSource ds  = (DataSource)
ctx.lookup(java:comp/env/jdbc/mySQLDatabase);
 conn = ds.getConnection();

4.  I have several public operations method (e.g selectOperations(...),
insertOperations(...)).
5.  Let's say I'd like to perform a select statement.  Inside my
selectOperations(...):
 Statement stmt = conn.createStatement();
 ResultSet rs = stmt.executeQuery(...);
 process the result

 In my finally block, I have:
 rslt.close();
 stmt.close();

Questions:
1.  Do I need to code any different to enable the connection pooling?
NO

2.  When I called ds.getConnection(), does it opens up several
connections for pooling
 or just one connection?
Depends on how you have it configured. maxActive and maxIdle settings for the 
resource.

3.  Do I need to close conn every time as well?  Since conn is an
instance, 
 how does it gets connection everytime an operation method is
called? (insert, select, update).

Yes, you have to close the connection each time, which returns the connection 
to the pool for
other processes to use. 

I have the following methods in my generic DataBase Operations class.
static public Connection getConnection() throws SQLException {
Connection conn = null;
try{
conn = ds.getConnection();
}
catch (Exception e) {
e.printStackTrace();
}
return conn;
}

static public void releaseConnection(Connection con){
try{
if (con != null)
con.close();
}
catch (Exception e) {
e.printStackTrace();
}
}

which get and close my connections for me. So, when I am in the selectOperations(..) I 
call the getConnetion()
to get a connection and in the finally block I call the releaseConnection() method.


Hope this helps.
Kal.


CONFIDENTIALITY NOTE:  All e-mail sent to or from this address will be received by the 
Waterfield Group corporate e-mail system and is subject to archival, monitoring, 
and/or review by someone other than the recipient or the sender.

This e-mail and any of its attachments may contain proprietary information, which is 
privileged and confidential.  This e-mail is intended solely for the use of the 
individual or entity to which it is addressed.  If you are not the intended recipient 
of this e-mail, you are hereby notified that any dissemination, distribution, copying, 
or action taken in relation to the contents of and attachments to this e-mail is 
strictly prohibited and may be unlawful.  If you have received this e-mail in error, 
please notify the sender immediately and permanently delete the original and any copy 
of this e-mail and any printout.  Thank you.


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



RE: One user seeing another user's data

2004-02-17 Thread Kal Govindu
We had this problem on our first JSP application. One of the things we
had to fix it was to remove all variable definitions from %!...% and
move them to %...%.

Kal

-Original Message-
From: Antonio Fiol Bonnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 2:17 AM
To: Tomcat Users List
Subject: Re: One user seeing another user's data


Hi Kuloth,

Seatch Tomcat-user for concurrency problems or threading issues. 
There has been recent discussion on the topic.

Concurrency problems are the main source of session mix-up. Also look 
for instance variables (hint: avoid them in Servlets)

Antonio Fiol



Anbu wrote:

Hello Bill and All,
 
Could any one of you throw some light on a problem that I am facing on
Apache 1.3.28/Mod-jk 1.2.0/Tomcat 4.0.6 setup?
 
The problem is that an user could see someother user's data (some kind
of session mix up). When I searched the tomcat-dev list I found that
Bill had replied that the problem could be related to error handling and
it is not a synchorinazation problem.
 
Bill, as you have already seen and analyized this issue, could you
please help me on this issue ?

 
Thank you all in advance.
 
Regards,
Kuloth
  




CONFIDENTIALITY NOTE:  All e-mail sent to or from this address will be received by the 
Waterfield Group corporate e-mail system and is subject to archival, monitoring, 
and/or review by someone other than the recipient or the sender.

This e-mail and any of its attachments may contain proprietary information, which is 
privileged and confidential.  This e-mail is intended solely for the use of the 
individual or entity to which it is addressed.  If you are not the intended recipient 
of this e-mail, you are hereby notified that any dissemination, distribution, copying, 
or action taken in relation to the contents of and attachments to this e-mail is 
strictly prohibited and may be unlawful.  If you have received this e-mail in error, 
please notify the sender immediately and permanently delete the original and any copy 
of this e-mail and any printout.  Thank you.


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



RE: Problem Compiling JSP under TOMCAT 5.0.18; please help me

2004-02-04 Thread Kal Govindu
You can try this and restart tomcat.
1. Copy tools.jar from your-jsdk\lib\tools.jar to your-
tomcat\common\lib\tools.jar This may not be necessary, but the installer
does 
attempt to copy this file so it won't hurt to do the same.

And if that does not work try this step next and restart tomcat.
2.Change registry entry for 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Apache Tomcat 4.1\Parameters\JVM Library

from (adjust these paths to your machine and java version)
C:\Program Files\Java\j2re1.4.1_02\bin\client\jvm.dll

to
C:\j2sdk1.4.1_02\jre\bin\server\jvm.dll

Hope that helps
Kal

-Original Message-
From: De Toffoli Garry [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 11:59 AM
To: [EMAIL PROTECTED]
Subject: Problem Compiling JSP under TOMCAT 5.0.18; please help me


Hi to all,

I would like to pass from tomcat 3.2.x to tomcat 5.0.18;

under tomcat 3.2.x I have some package under the WEB-INF/classes of 
all my sites, and run OK;

passing to tomcat 5.0.18 I have changed only tomcat, leaving 
untouched all the directory where resides the sites; but when I call a 
.jsp that use a package, I have this error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 6 in the jsp file: /tst_sitengine/testDB.jsp

Generated servlet error:
[javac] Compiling 1 source file

/usr/jakarta-tomcat-5.0.18/work/Catalina/www.test.it/_/org/apache/jsp/ts
t_005fsitengine/testDB_jsp.java:7: package db does not exist
import db.*;
^

On catalina.log I have a detail about the error, where is reported the 
classpath where jasper is looking for, and doesn't appear WEB-INF;
I think that this is why I have the error;

but How can I correct this?

Please, could someone help me? I have the same error with tomcat 5.0.16;

here there is the content of catalina.log
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Javac exception
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:390)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)at

org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:552)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:291)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:284)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:257)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
64)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:245)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:199)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:509)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
64)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
64)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:195)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:164)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
64)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:156)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
64)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)

HOST - DNS setup

2004-01-29 Thread Kal Govindu
Hi all,

Our company has just started into Java based web applications. Our
current methodology for deploying to production is to setup a DNS like
say
firstapp.mycompany.com and define a Host entry in the server.xml with
aliases to respond to the new DNS. We do this purely for the capability
of typing http://firstapp.mycompany.com in a web browser and getting to
the application.

But this is kind of cumbersome and time consuming setup when ever we
deploy to production. As we have more applications this way we will end
up with several Host's which does not seem like a good thing. Is there
a better way to do this?

Please help. Thanks
Kal


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



RE: How to get two version of xalan/xerces together in Tomcat?

2004-01-29 Thread Kal Govindu
You can put a version of the Jar in the WEB-INF/lib directory of the
application itself which comes before the common/endorsed libraries in
the classpath.

Hope this helps
Kal

-Original Message-
From: Salvador Santander Gutierrez
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 3:18 AM
To: Tomcat List
Subject: How to get two version of xalan/xerces together in Tomcat?


Hello.
I've to install a web application wich uses a xalan/xerces version
different
of the installed in Tomcat. I don´t want to replace the libraries in
endorsed directories because other applications only can use the
installed
version of xerces/xalan in Tomcat.
Is there any way to do that this application take the new libraries of
xalan/xerces from other directories?
We've Tomcat 4.1.27
Thanks.


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



Server has closed the current connection

2004-01-22 Thread Kal Govindu
Hi All,

I have IIS redirecting to tomcat 4.1.12 and I keep seeing these warning
message in the log file. Is this something that I have to be worried
about? Is there a fix for it?

Warning: Server has closed the current connection (-1)

Thanks
Kal


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



RE: tomcat 4.1 on JDK1.4

2003-12-19 Thread Kal Govindu
Thanks for the reply, I will give that a try.
Kal

-Original Message-
From: Howard Jim [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 3:44 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1 on JDK1.4


I had a similar problem, and although I don't feel that I figured it out
completely, perhaps I can point you in the right direction.  It has to
do with the classloader, and different bundled functions in 1.4.x vs
1.3.  I would look in you lib directories in either your app, or in a
combination of the tomcat server lib, common lib, and endorsed to see if
you have any older versions of the xml parsers laying around.  Many
things are in 1.4 that were not in 1.3.  If these were included with
your build, there are areas of override in the class loader where the
older class may have gotten loaded.

Check this page out for more info:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Hope this was of some assistance.

Jim


-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 2:36 PM
To: Tomcat Users List (E-mail)
Subject: tomcat 4.1 on JDK1.4


Hi all,

I am moving from JDK1.3.1 to JDK1.4 on my Unix AIX machine. I am having
problems start tomcat 4.1 which used to work fine on JDK1.3.1.

I get this exception java.lang.reflect.InvocationTargetException and
further down I see java.lang.NullPointerException

at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:141
)

Please help, Thanks
Kal


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



tomcat 4.1 on JDK1.4

2003-12-18 Thread Kal Govindu
Hi all,

I am moving from JDK1.3.1 to JDK1.4 on my Unix AIX machine. I am having
problems start tomcat 4.1 which used to work fine on JDK1.3.1.

I get this exception java.lang.reflect.InvocationTargetException and
further down I see java.lang.NullPointerException

at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:141
)

Please help, Thanks
Kal


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



RE: tomcat 4.1 on JDK1.4

2003-12-18 Thread Kal Govindu
Version 4.1.12
Kal

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 3:42 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1 on JDK1.4



Howdy,
What version of tomcat 4.1?  Not an -LE edition?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 3:36 PM
To: Tomcat Users List (E-mail)
Subject: tomcat 4.1 on JDK1.4

Hi all,

I am moving from JDK1.3.1 to JDK1.4 on my Unix AIX machine. I am having
problems start tomcat 4.1 which used to work fine on JDK1.3.1.

I get this exception java.lang.reflect.InvocationTargetException and
further down I see java.lang.NullPointerException

at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:14
1
)

Please help, Thanks
Kal


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



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



RE: Good sites that show you EJB stuff

2003-09-09 Thread Kal Govindu
www.ejbtut.com
kal

-Original Message-
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 6:49 AM
To: Tomcat Users List
Subject: Good sites that show you EJB stuff


Hi,

I want to know if anyone, could show me, or recommend me any sites
that
show you how to use JavaBeans and what the Beans are for?

Regards,


Anson







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



RE: tomcat shutdown

2003-08-14 Thread Kal Govindu
As far as I know, there are to different kinds of ports that need to be
changed to run two instances of Tomcat.

1. Connector Port : usually 8080 or 80 - Can be changed to 8080 (First
tomcat) and 8081 ( second Tomcat ).
2. Server Port: Usually 8005 - can be changed to 8005 (First Tomcat) and
8006 (Second Tomcat).

And, I think you will have to manually stop the processes that are
currently running.
Hope this helps.
Kal

-Original Message-
From: Chris Daly [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:05 AM
To: mailto:@magic.lif.icnet.uk
Subject: tomcat shutdown


hi

i have two instances of tomcat runnign as a stand olone but on different

ports - i can neither stop nor start either tomcat as all that i'm
getting is

Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
 at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
 at java.net.Socket.init(Socket.java:273)
 at java.net.Socket.init(Socket.java:100)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
 at
org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
 at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

how do i stop the service  ?  i'm trying to use bin/shutdown.sh but its
not 
working.

i have two instances of tomcat runnign as a stand olone but on different
ports

cheers

chris


-
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: Persistent Sessions

2003-08-05 Thread Kal Govindu
Hi,

First, thanks to all of you.

Now, I have class which implements HttpSessionListener and
HttpSessionActivationListener. In the sessionCreated method I have the
following line to bind the current class to the session.

CODE:
event.getSession().setAttribute(getClass().getName(), this);

My sessionDidActivate method does not seem to be invoked, I have logging
message in both the methods and I can sessionCreated being called in the
Log but not sessionDidActivate.

Please, help
Thanks
Kal




-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 4:09 AM
To: Tomcat Users List
Subject: Re: Persistent Sessions


Your HttpSessionActivationListener must be an object bound to the
session.

So, in your HttpSessionListener's sessionCreated method add the 
HttpSessionActivationListener to the session as an attribute.

HTH,

Jon

Kal Govindu wrote:

 Hi Yoav,
 
 Ok, now my listener class implements a HttpSessionActivationListener
and
 neither of the function;
 sessionDidActivate or sessionWillPassivate are being called. Do I need
 anything special to implement this and so that Did Activate and will
 Passivate events fire?
 
 I am running on Tomcat4.1.12, if that matter.
 
 Thanks
 Kal
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 04, 2003 2:35 PM
 To: Tomcat Users List
 Subject: RE: Persistent Sessions
 
 
 
 Howdy,
 I'm sorry, I meant use an activation listener instead of the context
 listener to invalidate them.  That should work.  contextDestroyed() is
 too late as all the session handling has already happened.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 




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



Persistent Sessions

2003-08-04 Thread Kal Govindu
I am trying to clean-up ( invalidate ) all the session when Tomcat is
restarted for any reason. I have the following Tag in my server.xml. The
session created for my web application still seem to persist, is there
another place or way the session is being store or persisted?

Please help, thanks in advance.
Kal

Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager


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



RE: Persistent Sessions

2003-08-04 Thread Kal Govindu
Hi Yoav,

Thank you for you suggestion, I have it implemented and seem to be
having some problem with it. Below is the code I have in my listener. I
have collection of Session Objects and I am adding an removing the
Sessions from the collection as required but, when I get to my
contextDestroyed method and try to invalidate all the remaining session
, I get the message listed below in log.

Thanks for all your help.
Kal

Log:

SessionListener: --Invalidating all exisiting Session!
SessionListener: Removing session : null


Code for Listener:

public void sessionCreated(HttpSessionEvent event) {

sessions.add(event.getSession());
log(sessionCreated(' + event.getSession().getId() + '));
Iterator i = sessions.iterator();
log(---Collection Contains---);
while ( i.hasNext() ){
log (((HttpSession)i.next()).getId());
}

}
public void sessionDestroyed(HttpSessionEvent event) {

sessions.remove(event.getSession());
log(sessionDestroyed(' + event.getSession().getId() + '));
Iterator i = sessions.iterator();
log(---Collection Contains---);
while ( i.hasNext() ){
log (((HttpSession)i.next()).getId());
}

}
public void contextInitialized(ServletContextEvent event) {

this.context = event.getServletContext();
log(contextInitialized());

}
public void contextDestroyed(ServletContextEvent event) {

log(--Invalidating all exisiting Session!);
Iterator i = this.sessions.iterator();
while (i.hasNext()){
HttpSession s = (HttpSession)i.next();
log(Removing session :  + s.getId());
s.invalidate();
}
log(contextDestroyed());
this.context = null;

}


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 11:13 AM
To: Tomcat Users List
Subject: RE: Persistent Sessions



Howdy,
Consider a container-independent approach instead: write an
HttpSessionListener that's also a ServletContextListener.  Have it keep
a static list of HttpSession objects, adding the session to the list on
its creation and removing on its destruction.  Then, have the
contextDestroyed method go through the list and invalidate all the
remaining sessions.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 11:09 AM
To: Tomcat Users List (E-mail)
Subject: Persistent Sessions

I am trying to clean-up ( invalidate ) all the session when Tomcat is
restarted for any reason. I have the following Tag in my server.xml.
The
session created for my web application still seem to persist, is there
another place or way the session is being store or persisted?

Please help, thanks in advance.
Kal

Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager


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



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



RE: Persistent Sessions

2003-08-04 Thread Kal Govindu
Hi Yoav,

Ok, now my listener class implements a HttpSessionActivationListener and
neither of the function;
sessionDidActivate or sessionWillPassivate are being called. Do I need
anything special to implement this and so that Did Activate and will
Passivate events fire?

I am running on Tomcat4.1.12, if that matter.

Thanks
Kal

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 2:35 PM
To: Tomcat Users List
Subject: RE: Persistent Sessions



Howdy,
I'm sorry, I meant use an activation listener instead of the context
listener to invalidate them.  That should work.  contextDestroyed() is
too late as all the session handling has already happened.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Shapira, Yoav
Sent: Monday, August 04, 2003 3:32 PM
To: Tomcat Users List
Subject: RE: Persistent Sessions


Howdy,
It could be that my advice was slightly off in terms of timing: try to
substitute a SessionActivationListener instead of the SessionListener,
and using the sessionWillPassivate event to invalidate.

Although come to think of it, that will be too late as well as the
container has already decided to persist your session.  Hmm...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 3:24 PM
To: Tomcat Users List
Subject: RE: Persistent Sessions

Hi Yoav,

Thank you for you suggestion, I have it implemented and seem to be
having some problem with it. Below is the code I have in my listener.
I
have collection of Session Objects and I am adding an removing the
Sessions from the collection as required but, when I get to my
contextDestroyed method and try to invalidate all the remaining
session
, I get the message listed below in log.

Thanks for all your help.
Kal

Log:

SessionListener: --Invalidating all exisiting Session!
SessionListener: Removing session : null


Code for Listener:

public void sessionCreated(HttpSessionEvent event) {

sessions.add(event.getSession());
log(sessionCreated(' + event.getSession().getId() + '));
Iterator i = sessions.iterator();
log(---Collection Contains---);
while ( i.hasNext() ){
log (((HttpSession)i.next()).getId());
}

}
public void sessionDestroyed(HttpSessionEvent event) {

sessions.remove(event.getSession());
log(sessionDestroyed(' + event.getSession().getId() + '));
Iterator i = sessions.iterator();
log(---Collection Contains---);
while ( i.hasNext() ){
log (((HttpSession)i.next()).getId());
}

}
public void contextInitialized(ServletContextEvent event) {

this.context = event.getServletContext();
log(contextInitialized());

}
public void contextDestroyed(ServletContextEvent event) {

log(--Invalidating all exisiting Session!);
Iterator i = this.sessions.iterator();
while (i.hasNext()){
HttpSession s = (HttpSession)i.next();
log(Removing session :  + s.getId());
s.invalidate();
}
log(contextDestroyed());
this.context = null;

}


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 11:13 AM
To: Tomcat Users List
Subject: RE: Persistent Sessions



Howdy,
Consider a container-independent approach instead: write an
HttpSessionListener that's also a ServletContextListener.  Have it
keep
a static list of HttpSession objects, adding the session to the list
on
its creation and removing on its destruction.  Then, have the
contextDestroyed method go through the list and invalidate all the
remaining sessions.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 11:09 AM
To: Tomcat Users List (E-mail)
Subject: Persistent Sessions

I am trying to clean-up ( invalidate ) all the session when Tomcat is
restarted for any reason. I have the following Tag in my server.xml.
The
session created for my web application still seem to persist, is
there
another place or way the session is being store or persisted?

Please help, thanks in advance.
Kal

Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager


-
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

Deploying web apps - Help

2003-07-07 Thread Kal Govindu
hi all,

I am running multiple tomcat, one for each of the test environments we
have defined in the company.
In the each of the there Catalina_log files I have the following four
lines for each and every request to the web server.

2003-07-07 09:21:06 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:21 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:37 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:52 HostConfig[dev]: Deploying discovered web
applications  

I don't know what web application tomcat is trying to deploy, all of the
web apps running are already deployed. Is does not seem like common
functionality.
Please Help, any information would be appreciated.

Thanks
Kal 


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



Deploy web app - Help

2003-07-07 Thread Kal Govindu
hi all,

I am running multiple tomcat, one for each of the test environments we
have defined in the company.
In the each of the there Catalina_log files I have the following four
lines for each and every request to the web server.

2003-07-07 09:21:06 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:21 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:37 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:52 HostConfig[dev]: Deploying discovered web
applications  

I don't know what web application tomcat is trying to deploy, all of the
web apps running are already deployed. Is does not seem like common
functionality.
Please Help, any information would be appreciated.

Thanks
Kal 


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



RE: java.sql.SQLException: Update failed, possible duplicate entry

2003-03-25 Thread Kal Govindu
The SQL Insert statement usually looks like this:

Insert into info(referer) value('?');

Your statement looks like it is going try and update a field with name =
(what ever you pass in for referer). And no such field exists in your
db, moreover you are not providing a value for the field.

Hope this helps
Kal

-Original Message-
From: Wileynet [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 11:38 PM
To: 'Tomcat Users List'
Subject: RE: java.sql.SQLException: Update failed, possible duplicate
entry


Ok, I tried that. Here is the new code
public void addInfo( String referer )
  throws SQLException, Exception {
 if (con != null) {
try{

   PreparedStatement updateInfo;
   updateInfo = con.prepareStatement(
insert into info(?););
   updateInfo.setString(1, referer );
   updateInfo.execute();



}
   catch (SQLException sqle) {
   System.err.println( HELP + sqle );
   }
 } 
 else {
error = Connection with database was lost.;
throw new Exception( error );
 }
  }

Now, I get no error but the database does not get updated ? This is
basically my database - 
mysql desc info;
+-+---+--+-+-+---+
| Field   | Type  | Null | Key | Default | Extra |
+-+---+--+-+-+---+
| PRIMARY_KEY | int(11)   |  | PRI | 0   |   |
| REFERER | char(200) | YES  | | NULL|   |
+-+---+--+-+-+---+

Please help again :)




-Original Message-
From: Mark Matthews [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 7:26 PM
To: Wileynet
Cc: [EMAIL PROTECTED]
Subject: Re: java.sql.SQLException: Update failed, possible duplicate
entry

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wileynet wrote:
 Here is another beginner question of sorts I imagine.
 I receive this error.
 java.sql.SQLException: Update failed, possible duplicate entry
 
 
 
 I've got this code in a .jsp page.
 
 % String ref=request.getHeader(Referer);%
 BR
 % 
   count.addInfo( ref );
 %
 
 count is calling the method addInfo
 in a java bean...
 
 
 public void addInfo( String Referer )
   throws SQLException, Exception {
  if (con != null) {
 try{
 
PreparedStatement updateInfo;
updateInfo = con.prepareStatement(
 insert into info(?););
updateInfo.setString(1,Referer);
updateInfo.execute();
 
 }
catch (SQLException sqle) {
   error = Update failed, possible duplicate entry;
   throw new SQLException( error );
}
  } 
  else {
 error = Connection with database was lost.;
 throw new Exception( error );
  }
   }
 
 Can anyone see the mistake I am making here. My database has one table
 now called info with one String field which is the primary key also.
 
 Thanks if anyone can help or point me to a webpage or something.
 
 -wiley


Also, looking at your code, you have a SQL syntax error. Only the mysql 
command-line client requires statements terminated with a ;, so you 
should write:

updateInfo = con.prepareStatement(insert into info(?));

not:

updateInfo = con.prepareStatement(insert into info(?););

-Mark


- -- 
MySQL 2003 Users Conference - http://www.mysql.com/events/uc2003/

For technical support contracts, visit https://order.mysql.com/?ref=mmma

 __  ___ ___   __
/  |/  /_ __/ __/ __ \/ /  Mark Matthews [EMAIL PROTECTED]
   / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer - JDBC/Java
  /_/  /_/\_, /___/\___\_\___/ Flossmoor (Chicago), IL USA
 ___/ www.mysql.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.1.90 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+f8xFtvXNTca6JD8RAhArAJ98UE5FFTYc4iok9r62OgjJiIFm+QCgnnhk
oxDuUCf1Qz/tOIzNCkEQcV4=
=VwpN
-END PGP SIGNATURE-


-
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: tomcat manager

2003-03-18 Thread Kal Govindu
Hi,

You will need to put the manager.xml file in that webapps directory. I
don't know where your webapps directory is but you will need to changes
the manager.xml context docBase to point to
{Tomcat_Home}/server/webapps/manager. I am guessing you have another
separate host serving your webapps, besides LocalHost. Note: you
cannot two instances of manager for the same Host.

Hope this helps.
Kal

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 8:06 AM
To: Tomcat Users List
Subject: tomcat manager


Hi,
I have setup a tomcat manager to view active sessions. It shows the
active
sessions for /examples which is in tomcat default webapps base. How can
I
add more path like /foo in manager application. I have another webapps
directory under which I deploy application I would like to use tomcat
manager to show active sessions for application deployed under separate
directory.

kapil


-
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 with tomcat

2003-03-17 Thread Kal Govindu
Hi,

I had the same problem a long time ago when was getting started. I
narrowed down the problem to mismatched version of servlet.jar file,
which is in {Tomcat_Home}/common/lib directory. I switched this with
different version of the jar from a former installation of the Tomcat
and the problem was resolved. I am sorry, but I cannot give you a good
reason for this (don't remember all the issues) but, hopefully points
you in the right direction.

Good Luck
Kal

-Original Message-
From: rorios [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 16, 2003 4:06 PM
To: [EMAIL PROTECTED]
Subject: Problem with tomcat


Hi, am try to run the jsk2 in tomcat 4.1, but when am try tu run this in
IE 6
tomcat send me this error:
Please help me to resolv this problems. thanks!!

PD. my tomcat run in Win 2000 and win XP
Thanks!
HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:474)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:184)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(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.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(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:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
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.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:43
2)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53
4)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:530)
at java.lang.Thread.run(Unknown Source)








-
To unsubscribe, e-mail: [EMAIL 

RE: Problem with Tomcat Manager

2003-03-13 Thread Kal Govindu
Hi,
I don't which version of tomcat your are using, but the manager
application is usually ../server/webapps/manager relative to Tomcat's
home directory. I have never seen a HTML folder under manager before.
Usually when you have this error tomcat could not figure out the
location of your context. I would start from you context definition and
start determining where it points to relative to tomcat's home
directory.

Hope this helps
Kal

-Original Message-
From: Larry [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 3:06 PM
To: [EMAIL PROTECTED]
Subject: Problem with Tomcat Manager



I've read the HOWTO on installing manager, and I have the Tomcat Manager
running on 4 other boxes without any troubles.  But on the box I am
currently configuring I can not make manager work.  I always get:
The requested resource (/manager/html) is not available.

I checked my logs and found this (see below) in my local-host log at
startup of the tomcat service. Any ideas what I should be looking for
regarding the failures mentioned in the first few lines?  I am at a
loss.

The rest of tomcat and my distributed applications work fine.

Larry

2003-03-13 14:54:25 HostConfig[localhost]: Deploying configuration
descriptor admin.xml
2003-03-13 14:54:25 HostConfig[localhost]: Deploying configuration
descriptor manager.xml
2003-03-13 14:54:25 StandardContext[/manager]: Resources start failed:
2003-03-13 14:54:25 StandardContext[/manager]: Context startup failed
due to previous errors
2003-03-13 14:54:25 StandardContext[/manager]: Exception during cleanup
after start failed
LifecycleException:  Container StandardContext[/manager] has not been
started
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeplo
yer.java:529)
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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1514)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:335)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:452)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

RE: Problem installing Tomcat 4.06 on Windows 2000

2003-03-10 Thread Kal Govindu
All the environmental variables seem to be set correctly. Tomcat puts a
log in its /logs directory, containing startup information, look there
for more clues.
-Kal

-Original Message-
From: Venkatesh Brahmadesam [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 09, 2003 6:04 PM
To: [EMAIL PROTECTED]
Subject: Problem installing Tomcat 4.06 on Windows 2000


 I am new to using Tomcat
 I followed the instructions and extracted Tomcat to a folder in C:\
 
 I am using JDK 1.2.2 and set JAVA_HOME as the same
 
 The CATALINA_HOME is also set to my tomcat directory.
 
 When I execute startup a new console opens with Tomcat and 
 then closes. TOmcat doesn't start.
 
 Message from Command line
 C:\jakarta-tomcat-4.0.6\binstartup
 Using CATALINA_BASE:   C:\jakarta-tom
 Using CATALINA_HOME:   C:\jakarta-tom
 Using CATALINA_TMPDIR: C:\jakarta-tom
 Using JAVA_HOME:   C:\jdk1.2.2
 C:\jakarta-tomcat-4.0.6\bin


 
 Any help is appreciated.


Thanks

Venkatesh


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



Tomcat crashes on Reload

2003-03-07 Thread Kal Govindu
Tomcat 4.1.12 - Running 12 applications on 3 Virtual Hosts
Java 1.3
Recently, I went from 9 applications to 12 and tomcat started crash
every time I reload a context from the manager application. It
creates a Javacore file each time and I am attaching that if it can
help. I have brought the number of application down what is absolutely
necessary 9 and I don't have any problem at this time. If this a non
problem or there is a fix to it please help.
Thanks   javacore156038.1046875013.txt 
Kal


begin 666 javacore156038.1046875013.txt
M5V5D($UAB @-2 P.3HS-CHU,R R,# SE-)1TE,3!R96-E:79E9!A= P
M#,T-,P,#0P(EN(#QU;FMN;W=N/[EMAIL PROTECTED]')O8V5SVEN9R!T97)M:6YA=5D
[EMAIL PROTECTED])R96YT(%1HF5A9!$971A:6QSBTM+2TM+2TM+2TM+2TM+2TM+2TM
M+2T*( @()4:')E860M,R(@WES7W1HF5A9%]T.C!X,S8P031$,[EMAIL PROTECTED]2 M
[EMAIL PROTECTED]@+2TM+2T*75N879A:6QA8FQE(T@:6%R(#!X
M,S(V0S9%1C @;F]T(EN('1E'[EMAIL PROTECTED])E80HM+2TM+2TM+2TM+2TM+2TM+2TM
M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM
M+2TM+2TM+2T*3W!EF%T:6YG($5N=FER;VYM96YTBTM+2TM+2TM+2TM+2TM
M+2TM+2TM+0I(;W-T0D).B!OEE+G=A=5R9FEE;0N8V]M.C$W,BXQ-BXS
M+C0*3U,@35V96P)[EMAIL PROTECTED](#4N,2XP+C *4')O8V5SV]RR M@E!F-H
M:71E8W1UF4).B!03U=%4E]00R H:6UP;[EMAIL PROTECTED];F]W;[EMAIL PROTECTED];FMN
M;W=N*0H)2]W($UA;GD).B T@E%;F%B;5D0DZ(#0*57-EB!,:6UI=',@
M*EN()Y=5S(5X8V5P=!F;W(@3D]24Q%(%N9!.4%)/[EMAIL PROTECTED])4DQ)
M34E47T9325I%3H@:6YF:6YI='D*5),24U)5%]$051!3H@,C$T-S0X,S8T
M-0H)4DQ)34E47U-404-+3H@,S,U-30T,S(*5),24U)5%]#3U)%3H@,3 W
M,ST,3,Q,@H)4DQ)34E47TY/1DE,10DZ(#(P,# *4Y04D]#*UAD).B R
M-38*4%G92!3%C92 H:[EMAIL PROTECTED] M@DO95V+VAD-CH@VEZ93TR
M-C(Q-#0L(9R964],C0U-3T@DO95V+W!A9VEN9S P.B!S:7IE/3(V,C$T
M-[EMAIL PROTECTED])E93TR-#8S.34*2]D978O%G:6YG,#$Z('-IF4],C8R,30T+!F
MF5E/3(T-C0X,0H)+V1E=B]P86=I;FP,CH@VEZ93TR-C(Q-#0L(9R964]
M,C0V-3 QD%PQI8V%T:6]N($5N=FER;VYM96YTBTM+2TM+2TM+2TM+2TM
M+2TM+2TM+2TME-I9VYA;!(86YD;5RR M( H)4TE'2%500DZ(EN=')$
M:7-P871C:$U$(AL:6)HDN82D*5-)1TE.5 D).B!I;G1R1ES%T8VA-
M1 H;EB:'!I+F$I@E324=154E40DZ(EN=')$:7-P871C:$U$(AL:6)H
MDN82D*5-)1TE,3 D).B!I;G1R1ES%T8VA-1 H;EB:'!I+F$I@E3
M24=44D%00DZ($I)5%-I9U1R87!(86YD;5R(AL:6)J:71C+F$I@E324=!
M0E)40DZ(EN=')$:7-P871C:$U$(AL:6)HDN82D*5-)1T5-5 D).B!I
M;G1R1ES%T8VA-1 H;EB:'!I+F$I@E324=4$4)3H@:6YTD1IW!A
M=[EMAIL PROTECTED]QI8FAP:2YA*0H)4TE'0E530DZ(EN=')$:7-P871C:$U$(AL
M:6)HDN82D*5-)1U-%1U8)3H@:6YTD1IW!A=[EMAIL PROTECTED]QI8FAP:2YA
M*0H)4TE'4UE30DZ(EN=')$:7-P871C:$U$(AL:6)HDN82D*5-)1U!)
M4$4)3H@:6=N;W)E9 H)4TE'55-2,@D).B!*2513:6=54U(R2%N9QEB H
M;EB:FET8RYA*0H)4TE'5$5230D).B!I;G1R1ES%T8VA-1 H;EB:'!I
M+F$ID5N=FER;VYM96YT(%9AFEA8FQER ME\]+W5SB]J879A,3,Q+V)I
M;B]J879ADQ!3D]96Y?55,*3$]'24X]=]M8V%TDE-44-/3D9)1T-,/2]E
M=,O24U.4V5AF-H+V1B8W-H96QPD1/0U],04Y'/65N7U53E=22T1)4CTO
M')O=5M]WFL*4$%42#TO')O9W)EW,O')O.3%D9# U+V)I;CHO')O
M9W)EW,O')O.3%D9# U+V)I;CHO=7-R+V)I;CHO971C.B]UW(OV)I;CHO
M=7-R+VQO8V%L+V)I;CHO=7-R+W5C8CHO=7-R+V)I;B]8,3$Z+W-B:6XZ+W5S
MB]J879A,3,Q+VIR92]B:6XZ+W5SB]J879A,3,Q+V)I;CHO;W!T+V9R965W
M87)E+V)I;CHO87!P+W1O;6-A=]B:6XZ+V%P]T;VUC870O8FEN.B]UW(O
M=V=D8FEN.B]A' O=]M8V%T+U1O;6-A=#0N,2XQ,B]B:6XZ+V%P]T;VUC
M870O5]M8V%T-XQ+C$R+V)I;CHO87!P+W1O;6-A=]B:6XZ+W5SB]W9V1B
M:6XZ+V%P]T;VUC870O5]M8V%T-XQ+C$R+V)I;CHO87!P+W1O;6-A=]4
M;VUC870T+C$N,3(O8FENDQ#7U]05-435-'/71R=64*0T%404Q)3D%?2$]-
M13TO87!P+W1O;6-A=]4;VUC870T+C$N,3(*24U10T].1DE'4U)6/2]E=,O
M24U.4V5AF-HD-'25]$25)%0U1/4ED]+W5SB](5%104V5R=F5R+V-G:2UB
M:6X*141)5$]2/79IDQ/1TY!344]=]M8V%TE!23T5813TO')O9W)EW,O
M')O.3%D9# U+V)I;B]?')O9W)EPI$3$,]+W!R;V=R97-S+W!R;SDQ90P
M-0I,3T-0051(/2]UW(O;EB+VYLR]L;V,*1$]#54U%3E1?4T525D527TU!
M0TA)3D5?3D%-13UOEE+G=A=5R9FEE;0N8V]ME5315(]=]M8V%TD%5
M5$A35$%413UC;VUP870*1$5055,5%]4D]74T52/6YE='-C87!EE-(14Q,
M/2]UW(O8FEN+VMS: I/1$U$25(]+V5T8R]O8FIR97!OPI*059!7TA/344]
M+W5SB]J879A,3,QD1/0U5-14Y47U-%4E9%4E]03U)4/[EMAIL PROTECTED]DA/344]+V%P
M]T;VUC870*4%)/3$E/2]PF]GF5SR]PF\Y,61D,#4O')O;EBE1%
M4DT]9'[EMAIL PROTECTED])-0T%0/2]PF]GF5SR]PF]T97)M8V%P+G=FDE4
M14-/3D9)1U-25CTO971C+TE-3E-E87)C: I05T0]+V%P]T;VUC870*1$]#
M54U%3E1?1$E214-43U)9/2]UW(O2%144%-EG9EB]H=1O8W,*5%H]15-4
M-0I)5$5#3TY24=#3#TO971C+TE-3E-E87)C:]C;EE;G1SE!23TU31U,]
M+W!R;V=R97-S+W!R;SDQ90P-2]PF]MV=SDE415]$3T-?4T5!4D-(7TE.
M4U1!3D-%/7-E87)C: I81DE,15-%05)[EMAIL PROTECTED]B]J879A,3,Q+VIR
M92]L:6(O;]C86QE+R5,+R54+R5.)5,Z+W5SB]J879A,3,Q+VIR92]L:6(O
M;]C86QE+R5,+R54+R5.)5,ZDU!3$Q/0TU53%1)2$5!4#TQD%)6%1(4D5!
M1%]30T]013U3D%)6%1(4D5!1%]-551%6%]$14)51SU/1D8*04E85$A214%$
M7U)73$]#2U]$14)51SU/1D8*04E85$A214%$7T-/3D1?1$554]3T9DQ$
M4E]#3E123#U-05A$051!/3!X.# P,# P,# *3$E4$%42#TO=7-R+VIA=F$Q
M,S$O:G)E+V)I;CHO=7-R+VIA=F$Q,S$O:G)E+V)I;B]C;%SVEC.B]UW(O
M;]C86PO;EB.B]PF]GF5SR]PF\Y,61D,#4O;EB.B]PF]GF5SR]P
MF\Y,61D,#4O;EBDY,[EMAIL PROTECTED]B]L:6(O;FQS+VUS9R\E3\E3CHO
M=7-R+VQI8B]N;',O;7-G+R5,+R5.+F-A= I)0DU?2D%605]#3TU-04Y$7TQ)
M3D4]+W5SB]J879A,3,Q+V)I;B]J879A(U$:F%V82YE;F1OG-E9YD:7)S
M/2]A' O=]M8V%T+U1O;6-A=#0N,2XQ,B]B:6XZ+V%P]T;VUC870O5]M
M8V%T-XQ+C$R+V-O;6UO;B]E;F1OG-E9 M8VQAW-P871H(]UW(O:F%V
M83$S,2]L:6(O=]O;',N:F%R.B]A' O=]M8V%T+U1O;6-A=#0N,2XQ,B]B
M:6XO8F]O='-TF%P+FIAB 

RE: Server denies access to resource (mysql JDBC)

2003-03-05 Thread Kal Govindu
First of all it looks like you an extra parameter tag in your xml. As
long as the mysql deamon is running on your local machine the hostname
looks correct.


-Original Message-
From: Adam Denenberg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 5:26 PM
To: Tomcat Users List
Subject: Server denies access to resource (mysql JDBC)


org.apache.jasper.JasperException: java.sql.SQLException: Server
configuration denies access to data source

 IS the error I am getting for my mysql JDBC Connection.  I dropped the
mysql-connector-java-3.0.6-stable-bin.jar file in common/lib as per
instructions and have the following setup as one of my contexts.

 I can log in fine from the command line to mysql, just not thru JDBC.

 here is my server.xml snippet.. Anyone have similar issues with Mysql ?
I
am wondering if it is a hostname thing.

...

Context path=/testDB docBase=testDB debug=99 reloadable=true
 
 Resource name=jdbc/adamtest auth=Container
type=javax.sql.DataSource/

  ResourceParams name=jdbc/adamtest

   parameter
 namefactory/name
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

   parameter
   parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
   /parameter

   parameter
nameurl/name
valuejdbc:mysql://localhost:3306/testDB/value
   /parameter

   parameter
nameusername/name
valuetestDB/value
   /parameter

   parameter
namepassword/name
valuemypass/value
   /parameter

   parameter
namemaxActive/name
value50/value
   /parameter

   parameter
namemaxIdle/name
value10/value
   /parameter

   parameter
namemaxWait/name
value-1/value
   /parameter

 /ResourceParams

  /Context


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