Any DST issue

2006-09-19 Thread advait samant
Hello,
 
We are using Tomcat 5.x.
We would like to know if there are any known/fixed issues with DST changes for 
US timezone from 2007 to Tomcat.
Is there a Tomcat version that has fixes to this issues?
 
 
Thanks,
Advait

a noob question : Eclipse Tomcat Ant tasks

2006-09-19 Thread Pierre Goupil
 Hello all !I'm currently trying to use Tomcat Ant tasks from within Eclipse 3.2. (deploy, reload, start, stop, etc...). I join my build.xml for further insight.
I've added ant.jar, catalina-ant.jar  tools.jar to Window / Preferences / Ant / runtime / global entries, but no way. I'm still getting the following error :***BUILD FAILED
D:\workspace\springapp\build.xml:84: taskdef A class needed by class org.apache.catalina.ant.DeployTask cannot be found: org/apache/tools/ant/Task***The class org.apache.tools.ant.Task is part of the 
ant.jar package, so I've added it to my project buildpath, but still no way.If anyone had an idea... Thank you in advance, Pierre
P.S. : Sorry if this is a double-post, but I think the previous one isn't published yet.-- Rien de grand ne s'est accompli dans le monde sans passion.(G.W.F. Hegel, philosophe Allemand)
?xml version=1.0?

project name=springapp basedir=. default=usage
property file=build.properties/

property name=src.dir value=src/
property name=web.dir value=war/
property name=build.dir value=${web.dir}/WEB-INF/classes/
property name=name value=springapp/

path id=master-classpath
fileset dir=${web.dir}/WEB-INF/lib
include name=*.jar/
/fileset
!-- We need the servlet API classes:--
!--   for Tomcat 4.1 use servlet.jar--
!--   for Tomcat 5.0 use servlet-api.jar--
!--   for Other app server - check the docs --
fileset dir=${appserver.home}/common/lib
include name=servlet-api.jar/
/fileset
pathelement path=${build.dir}/
/path

target name=usage
echo message=/
echo message=${name} build file/
echo message=---/
echo message=/
echo message=Available targets are:/
echo message=/
echo message=build -- Build the application/
echo message=deploy-- Deploy application as directory/
echo message=deploywar -- Deploy application as a WAR file/
echo message=install   -- Install application in Tomcat/
echo message=reload-- Reload application in Tomcat/
echo message=start -- Start Tomcat application/
echo message=stop  -- Stop Tomcat application/
echo message=list  -- List Tomcat applications/
echo message=/
/target

target name=build description=Compile main source tree java files
mkdir dir=${build.dir}/
javac destdir=${build.dir} target=1.5 debug=true
   deprecation=false optimize=false failonerror=true
src path=${src.dir}/
classpath refid=master-classpath/
/javac
/target

target name=deploy depends=build description=Deploy application
copy todir=${deploy.path}/${name} preservelastmodified=true
fileset dir=${web.dir}
include name=**/*.*/
/fileset
/copy
/target

target name=deploywar depends=build description=Deploy application as a WAR file
war destfile=${name}.war
 webxml=${web.dir}/WEB-INF/web.xml
fileset dir=${web.dir}
include name=**/*.*/
/fileset
/war
copy todir=${deploy.path} preservelastmodified=true
fileset dir=.
include name=*.war/
/fileset
/copy
/target

!-- == --
!-- Tomcat tasks - remove these if you don't have Tomcat installed --
!-- == --


	path id=pathsOfAnt
		pathelement location=${appserver.home}/server/lib/catalina-ant.jar/
	pathelement location=D:\Zala\Programmation\apache-ant-1.6.5-bin\apache-ant-1.6.5\lib\ant.jar/
	/path

taskdef name=install classpathref=pathsOfAnt classname=org.apache.catalina.ant.DeployTask/

taskdef name=reload classname=org.apache.catalina.ant.ReloadTask
classpath
path location=${appserver.home}/server/lib/catalina-ant.jar/
/classpath
/taskdef
taskdef name=list classname=org.apache.catalina.ant.ListTask
classpath
path location=${appserver.home}/server/lib/catalina-ant.jar/
/classpath
/taskdef
taskdef name=start classname=org.apache.catalina.ant.StartTask
classpath
path location=${appserver.home}/server/lib/catalina-ant.jar/
/classpath
/taskdef
taskdef name=stop classname=org.apache.catalina.ant.StopTask
classpath
path location=${appserver.home}/server/lib/catalina-ant.jar/
/classpath
/taskdef

target name=install description=Install application in Tomcat
install url=${tomcat.manager.url}
 username=${tomcat.manager.username}
 password=${tomcat.manager.password}
 path=/${name}
 war=${name}/
/target

target 

Re: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Sameer Acharya
Instead of defining the username and password as attributes have you tried 
defining them as resource parameters  ? just a hunch ..

parameter
 nameusername/name
 valuemyoracleuser/value
/parameter

-Sameer

Parsons Technical Services [EMAIL PROTECTED] wrote: Try this:

http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq_0.htm#05_03

Otherwise there is some differences in the parameter names. Others have used 
connectionUser and connectionPassword , I think it was.

You can search the archives for OracleDriver to see what I mean.

Sorry, I do not use oracle, so I cannot say what is right.

Doug


- Original Message - 
From: Darren Hall 
To: 'Tomcat Users List' 
Sent: Monday, September 18, 2006 4:38 PM
Subject: RE: Database connection pooling in Tomcat 5.5


Further progress...
When I connect to the database directly (not using a connection pool) and
specify the same username and password below, the code executes fine. When I
try to do the context lookup and connect to the database via the connection
pool, I get the invalid username/password; logon denied error. This leads
me to believe the error is in my configuration (or my code).
What am I doing wrong here??

Thanks,
Darren


-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 2:45 PM
To: 'Tomcat Users List'
Subject: RE: Database connection pooling in Tomcat 5.5

 You are likely connecting to the wrong catalog.  Is the pool parameter
 defaultCatalog set?

That's specified in my Context, correct? If so, then no, I don't have my
defaultCatalog parameter set.

Here is my context.xml file (comments removed, as well as domain uname and
passwd)


debug=5 reloadable=true crossContext=true

   
  type=javax.sql.DataSource
  driverClassName=oracle.jdbc.OracleDriver
  url=jdbc:oracle:thin:@devdb1.(mydomain).com:1521:flcdb
  username=(uname) password=(passwd)
  maxActive=20 maxIdle=10
  maxWait=-1 removeAbandoned=true
  moveAbandonedTimeout=180
  logAbandoned=true/



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Bob Hall
--- Darren Hall [EMAIL PROTECTED] wrote:

 Further progress...
 When I connect to the database directly (not using a
 connection pool) and
 specify the same username and password below, the
 code executes fine. When I
 try to do the context lookup and connect to the
 database via the connection
 pool, I get the invalid username/password; logon
 denied error. This leads
 me to believe the error is in my configuration (or
 my code).
 What am I doing wrong here??

Is the DB url *exactly* the same in the two cases,
DBCP and non-DBCP?

-Bob

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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to trim Catalina.out ?

2006-09-19 Thread shashidhar.vutukuru

Hi,

I have my application running on tomcat for quite a long time.

I discovered a large amount of space taken up by the tomcat logs like
catalina.out.

Is there any way to trim catalina.out..?

I am quite new to this and was not able to go further on how to trim.

Please let me know if you have any ideas on this.


Thanks in advance.

Regards,
Shashi


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: a noob question : Eclipse Tomcat Ant tasks

2006-09-19 Thread Alex Hepp

Hi!

Pierre Goupil schrieb:



path id=pathsOfAnt
pathelement 
location=${appserver.home}/server/lib/catalina-ant.jar/
pathelement 
location=D:\Zala\Programmation\apache-ant-1.6.5-bin\apache-ant-1.6.5\lib\ant.jar/
/path


I am not sure, but try using slashes instead of backslashes...

HTH
regds. alex

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to trim Catalina.out ?

2006-09-19 Thread Peter Rossbach

Use rotatelogs from apache or cronlog at catalina.sh|bat

Regards
Peter




Am 19.09.2006 um 10:01 schrieb [EMAIL PROTECTED]:



Hi,

I have my application running on tomcat for quite a long time.

I discovered a large amount of space taken up by the tomcat logs like
catalina.out.

Is there any way to trim catalina.out..?

I am quite new to this and was not able to go further on how to trim.

Please let me know if you have any ideas on this.


Thanks in advance.

Regards,
Shashi


The information contained in this electronic message and any  
attachments to this message are intended for the exclusive use of  
the addressee(s) and may contain proprietary, confidential or  
privileged information. If you are not the intended recipient, you  
should not disseminate, distribute or copy this e-mail. Please  
notify the sender immediately and destroy all copies of this  
message and any attachments.


WARNING: Computer viruses can be transmitted via email. The  
recipient should check this email and any attachments for the  
presence of viruses. The company accepts no liability for any  
damage caused by any virus transmitted by this email.


www.wipro.com

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Re: JSessionId and Google

2006-09-19 Thread Mikolaj Rydzewski

Simon wrote:
According to the Google Information for Webmasters page, it appears 
that Google will not index/crawl pages correctly with the JSessionId 
appended to the
You don't get it. They say, that your site should work correctly (i.e. 
the navigation should work, the content should be correct) even if user 
agent doesn't support cookies and sessionIds in the URLs.


--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


change cookie domain

2006-09-19 Thread Rafal Zawadzki
Hi. I need to set cookie domain in my application to .example.com (not 
example.com). How can I do it deploying under tomcat?

Thanks,

-- 
Rafał Zawadzki
Release Manager


pgpeUY14BifEg.pgp
Description: PGP signature


Re: a noob question : Eclipse Tomcat Ant tasks

2006-09-19 Thread Pierre Goupil

Hi !

No, sorry, it makes no difference...

Regards,


 Pierre


--
Rien de grand ne s'est accompli dans le monde sans passion.

(G.W.F. Hegel, philosophe Allemand)


RE: Tomcat and multiple IP addresses

2006-09-19 Thread Peter Crowther
 From: Ping Yu [mailto:[EMAIL PROTECTED] 
   I would like to transfer a file from Machine A to Machine 
 B. In Machine A, there are several IP addresses. However, the 
 IP address launched by Tomcat might be different from the IP 
 address I choose to transfer the file. Are there any ways 
 that I can get to know which IP address that Tomcat starts 
 with in a single machine? Are there any APIs or classes for 
 this? Then I can use the IP address started by Tomcat to 
 transfer my file.

As Chuck pointed out, by default Tomcat will listen on all addresses -
unless you have a very odd IP stack.  Why are you expecting Tomcat only
to bind to one of the addresses?

If you know what port Tomcat's on, and that port is unique on your
machine, you could run netstat -an on Windows or most UNIXes to obtain
the list of IP address and port mappings, then match on the port number
and extract the local IP address for the LISTENING socket.  But it's a
horrible hack.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any DST issue

2006-09-19 Thread David Smith
Somehow I doubt this is an issue with tomcat.  Date processing is 
handled by the underlying JVM.


--David

advait samant wrote:


Hello,

We are using Tomcat 5.x.
We would like to know if there are any known/fixed issues with DST changes for 
US timezone from 2007 to Tomcat.
Is there a Tomcat version that has fixes to this issues?


Thanks,
Advait
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and multiple IP addresses

2006-09-19 Thread David Smith

So let's see if I read your message correctly:

You want to upload a file from Machine A to Machine B. Machine A has 
several IP addresses and you aren't sure which one Tomcat will use to 
attempt contact with Machine B.


I think from the receiving end, you can use request.getRemoteAddr() to 
know where a request came from. On the sending end, I don't think there 
is much you can do to control which IP is the source.


--David

Ping Yu wrote:


Hi,
  
 I have a question that I would like ask help or suggestions from people in this maillist. 
  
 I would like to transfer a file from Machine A to Machine B. In Machine A, there are several IP addresses. However, the IP address launched by Tomcat might be different from the IP address I choose to transfer the file. Are there any ways that I can get to know which IP address that Tomcat starts with in a single machine? Are there any APIs or classes for this? Then I can use the IP address started by Tomcat to transfer my file.
  
 Thank you very much!
  
 Ping



-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any DST issue

2006-09-19 Thread advait samant
Thanks for the reply David,
 
Java 1.4.2_11 has support for new DST.
I just want to make sure that there is no issue with DST changes in tomcat.
If tomcat is using JVM for zone/time/date processing entirely then there 
shouldn't be any issue. 
 
~Advait 


- Original Message 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 4:48:12 PM
Subject: Re: Any DST issue


Somehow I doubt this is an issue with tomcat.  Date processing is 
handled by the underlying JVM.

--David

advait samant wrote:

Hello,
 
We are using Tomcat 5.x.
We would like to know if there are any known/fixed issues with DST changes for 
US timezone from 2007 to Tomcat.
Is there a Tomcat version that has fixes to this issues?
 
 
Thanks,
Advait
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

System requirements

2006-09-19 Thread DEMESY Nicolas

Hi,

I would like to know what are the system requirements for using Tomcat 
in a production server, with 50-100 users, on a Red Hat Advanced Server 3.

Where can I find benchmarks ?

Thank you for your advices,
Nicolas DEMESY


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System requirements

2006-09-19 Thread Mikolaj Rydzewski

DEMESY Nicolas wrote:
I would like to know what are the system requirements for using Tomcat 
in a production server, with 50-100 users, on a Red Hat Advanced 
Server 3.

Where can I find benchmarks ?
It depends. Mostly on the application you want to use. But you didn't 
bother to tell it.


--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


RE: System requirements

2006-09-19 Thread Peter Crowther
 From: DEMESY Nicolas [mailto:[EMAIL PROTECTED] 
 I would like to know what are the system requirements for 
 using Tomcat 
 in a production server, with 50-100 users, on a Red Hat 
 Advanced Server 3.
 Where can I find benchmarks ?

It depends.  I have a webapp (almost entirely static content) that will
happily run on a P133 with 64 Mbytes of RAM serving 100 concurrent
users.  I have another (a simulation app) that overloads a
quad-processor 4 Gbyte box serving 5 users.

Your application's profile will be 99% of your performance variation.
We can't benchmark that for you; only you can do that.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System requirements

2006-09-19 Thread Andrew Miehs

Hi Nicolas,

Tomcat works best with large hardware. I have found that using a Sun  
Enterprise 15K with 1 processor per online user gives me the best  
performance.


Regards

Andrew

PS: Maybe you should give us slightly more detailed information about  
your requirements if you want someone to be able to help you



On 19/09/2006, at 2:26 PM, DEMESY Nicolas wrote:


Hi,

I would like to know what are the system requirements for using  
Tomcat in a production server, with 50-100 users, on a Red Hat  
Advanced Server 3.

Where can I find benchmarks ?

Thank you for your advices,
Nicolas DEMESY



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System requirements

2006-09-19 Thread Martin Gainty
Nicolas-
I found a link which displays the 'upper limits'
(at the bottom of the page are Required Minimums)
http://www.redhat.com/rhel/details/limits/
HTH,
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: DEMESY Nicolas [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 8:26 AM
Subject: System requirements


 Hi,
 
 I would like to know what are the system requirements for using Tomcat 
 in a production server, with 50-100 users, on a Red Hat Advanced Server 3.
 Where can I find benchmarks ?
 
 Thank you for your advices,
 Nicolas DEMESY
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: System requirements

2006-09-19 Thread David Kerber

Andrew Miehs wrote:


Hi Nicolas,

Tomcat works best with large hardware. I have found that using a Sun  
Enterprise 15K with 1 processor per online user gives me the best  
performance.


Don't forget the 1GB of RAM per user...  That combination would giive 
terrific performance ;-)




Regards

Andrew

PS: Maybe you should give us slightly more detailed information about  
your requirements if you want someone to be able to help you



On 19/09/2006, at 2:26 PM, DEMESY Nicolas wrote:


Hi,

I would like to know what are the system requirements for using  
Tomcat in a production server, with 50-100 users, on a Red Hat  
Advanced Server 3.

Where can I find benchmarks ?

Thank you for your advices,
Nicolas DEMESY




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System requirements

2006-09-19 Thread DEMESY Nicolas

Thank you for yours answers.

I have one context for a web portal with servlet pages and one context 
for an axis web server .

Sorry for the missing information .

Nicolas DEMESY

Mikolaj Rydzewski a écrit:


DEMESY Nicolas wrote:

I would like to know what are the system requirements for using 
Tomcat in a production server, with 50-100 users, on a Red Hat 
Advanced Server 3.

Where can I find benchmarks ?


It depends. Mostly on the application you want to use. But you didn't 
bother to tell it.





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: System requirements

2006-09-19 Thread Peter Crowther
 From: DEMESY Nicolas [mailto:[EMAIL PROTECTED] 
 I have one context for a web portal with servlet pages and 
 one context for an axis web server .

OK... you still need more information here, I'm afraid.  Axis is pretty
small and pretty quick, but the web services that are running in it
could be tiny or huge; you will need to profile those.  Portals range
from lightweight to horrible, and you don't say *which* portal.
However, the portlets that are running inside them - and the number of
those shown on a page, and the complexity of the portlet interaction -
will generally overwhelm the small overhead of the portal framework and
app server.

You will have to benchmark your application in your environment, with
your web services and your portlets - and your expected number of page
views per hour (of different pages if they are of differing complexity)
for your users.  We cannot even guess at any of those variables, and
they will make a difference that dwarfs the overhead of Tomcat.  This is
not something to ask a mailing list; if you need a realistic answer and
cannot get it yourself, you should engage a consultant who knows about
Tomcat to size your system for you.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Serlet Jean-Claude
Have you tried
username=myuserid password=mypassword
instead  username=(myuserid) password=(mypassword)


Jean-Claude

-Message d'origine-
De : Sameer Acharya [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 19 septembre 2006 08:49
À : Tomcat Users List
Objet : Re: Database connection pooling in Tomcat 5.5

Instead of defining the username and password as attributes have you tried
defining them as resource parameters  ? just a hunch ..

parameter
 nameusername/name
 valuemyoracleuser/value
/parameter

-Sameer

Parsons Technical Services [EMAIL PROTECTED] wrote: Try this:

http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq_0.htm#0
5_03

Otherwise there is some differences in the parameter names. Others have used
connectionUser and connectionPassword , I think it was.

You can search the archives for OracleDriver to see what I mean.

Sorry, I do not use oracle, so I cannot say what is right.

Doug


- Original Message -
From: Darren Hall 
To: 'Tomcat Users List' 
Sent: Monday, September 18, 2006 4:38 PM
Subject: RE: Database connection pooling in Tomcat 5.5


Further progress...
When I connect to the database directly (not using a connection pool) and
specify the same username and password below, the code executes fine. When I
try to do the context lookup and connect to the database via the connection
pool, I get the invalid username/password; logon denied error. This leads
me to believe the error is in my configuration (or my code).
What am I doing wrong here??

Thanks,
Darren


-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 2:45 PM
To: 'Tomcat Users List'
Subject: RE: Database connection pooling in Tomcat 5.5

 You are likely connecting to the wrong catalog.  Is the pool parameter
 defaultCatalog set?

That's specified in my Context, correct? If so, then no, I don't have my
defaultCatalog parameter set.

Here is my context.xml file (comments removed, as well as domain uname and
passwd)


debug=5 reloadable=true crossContext=true

   
  type=javax.sql.DataSource
  driverClassName=oracle.jdbc.OracleDriver
  url=jdbc:oracle:thin:@devdb1.(mydomain).com:1521:flcdb
  username=(uname) password=(passwd)
  maxActive=20 maxIdle=10
  maxWait=-1 removeAbandoned=true
  moveAbandonedTimeout=180
  logAbandoned=true/



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone call
rates.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and multiple IP addresses

2006-09-19 Thread Martin Gainty
server.xml
Host spec for Standalone configuration
Engine name=Standalone defaultHost=localhost jvmRoute=jvm1 

Host for top level Catalina container
Engine name=Catalina defaultHost=localhost

HTH
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, September 18, 2006 8:42 PM
Subject: RE: Tomcat and multiple IP addresses


 From: Ping Yu [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat and multiple IP addresses
 
 Are there any ways that I can get to know which IP address
 that Tomcat starts with in a single machine?

Unless a specific IP address is configured for a connector, Tomcat
listens on all IP addresses on the machine.  If Tomcat is set up for a
specific address, you'll have to know that address or a DNS name that
resolves to it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Darren Hall
 Have you tried
 username=myuserid password=mypassword
 instead  username=(myuserid) password=(mypassword)

Yes Jean-Claude. In fact, I don't use the parenthesis around the username
and password in my context.xml file. I just listed it that way here in the
list so people would understand the content was changed from the way it
actually appeared in my context.xml. Looking back now, perhaps not such a
good idea, huh?
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSessionId and Google

2006-09-19 Thread Filip Hanik - Dev Lists
couldn't you simply create a HttpServletResponseWrapper object in a 
filter, this object could overwrite the method that encodes the URL and 
remove the JSESSIONID from it


Filip


Simon wrote:

Hi,

According to the Google Information for Webmasters page, it appears 
that Google will not index/crawl pages correctly with the JSessionId 
appended to the URL, ie.:
http://www.stroke-education.com/product/ProductList.do;jsessionid=A2F6590DAC37E55651060DE6922B972D.tomcat36 



The guidelines can be found at: 
http://www.google.com/intl/en/webmasters/guidelines.html. The key part 
of the page is:
Allow search bots to crawl your sites without session IDs or arguments 
that track their path through the site. These techniques are useful 
for tracking individual user behavior, but the access pattern of bots 
is entirely different. Using these techniques may result in incomplete 
indexing of your site, as bots may not be able to eliminate URLs that 
look different but actually point to the same page


Search engine rankings are very important for the site (to sell 
products :), and it has not indexed my pages correctly just like it 
said it wouldn't in the paragraph above. I have tried adding a 
sitemap.xml.gz file to help Google along, but to no avail.


The question is, is it possible to disable cookieless session tracking 
for search engine bots? If so how? If not, is it possible to turn off 
cookieless session tracking all together? Yes, unfortunately at the 
crux of it, search engine rankings are more important than users with 
cookies disabled for this particular site.


Thanks, and Kind Regards,
Simon.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with path

2006-09-19 Thread Raffaele Viola

Hi all,

I have Apache/2.0.54 mod_jk/1.2.18 and tomcat 5.5.9 installed on Sun
Solaris8.

I've inserted the rows
JkAutoAlias /usr/local/tomcat/webapps
and
JkMount /My_application default
JkMount /My_application/* default
in the httpd.conf and
workers.tomcat_home=$CATALINA_HOME
workers.catalina_home=$CATALINA_HOME
workers.java_home=$JAVA_HOME
ps=/
worker.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1
in the workers.properties.
When I try to load the /My_application/index.html with Apache the page can't
load the images but if I try to load by Tomcat the page works correctly.

Can someone help me?

Thanks
Raffo


Apache httpd + (internal) Tomcat + virtual hosts

2006-09-19 Thread Carlos A. Carnero Delgado

Hello,

I have a Tomcat box (running 5.0.30) for production code. There, our
dev team deploys applications as they finish them, under different
contexts. We want these applications to be available under an Apache
httpd (2.0.55) Internet-facing server, each on a virtual host:

 http://dev.box:8180/app-one/
 http://dev.box:8180/app-two/
 etc.

will be seen as:

 http://www.app-one-domain.com
 http://www.app-two-domain.com
 etc.

Using JK we have had success doing the connection, but the best we've
come up with is:

 http://www.app-one-domain.com/app-one/

Is this thing that we want even possible?

Best regards,
Carlos.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0.28: ROOT.Context Error - application listeners issue.

2006-09-19 Thread Todd Patrick

Tomcat 5.0.28
Eclipse Version: 3.2.0

When I start Tomcat from within Eclipse, I receive the following in my
Console. My application still works fine, but I have no clue on what
could be causing this error to be displayed?

2006-09-19 08:46:20,079 INFO
[org.apache.catalina.core.StandardHostDeployer] - Installing web
application at context path  from URL
file:C:\javaworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ROOT

2006-09-19 08:46:20,157 ERROR [tomcat.localhost.ROOT.Context] -
Skipped installing application listeners due to previous error(s)

2006-09-19 08:46:20,157 ERROR [tomcat.localhost.ROOT.Context] - Error
listenerStart

2006-09-19 08:46:20,157 ERROR [tomcat.localhost.ROOT.Context] -
Context startup failed due to previous errors

In the 
C:\javaworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ROOT
directory there is a WEB-INF directory that contains a web.xml file.
The web.xml file contains:

?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4
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;
/web-app


I'd greatly appreciate any help.

Thanks,
--
--Todd

[EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Martin Grogan

Hi Darren,
See below for some code that I recently sent to the list in relation to 
this problem. It helped with the other person, might work for you too.

Regards,
Martin


--
// fragment from web.xml
resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/dbname/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref


// context.xml
?xml version=1.0 encoding=UTF-8?
Context path=/contextname
Logger className=org.apache.catalina.logger.FileLogger 
prefix=contextname. suffix=.log timestamp=true/
Resource auth=Container driverClassName=com.mysql.jdbc.Driver 
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory 
maxActive=30 maxIdle=10 maxWait=1 name=jdbc/dbname 
password=** removeAbandoned=true removeAbandonedTimeout=60 
type=javax.sql.DataSource url=jdbc:mysql://localhost:3306/database 
username=user/

/Context


// sample servlet
public class myservlet extends HttpServlet {
  private static DataSource ds=null; public void init(ServletConfig 
config) throws ServletException {

  try
  {
  Context ctx = new InitialContext();
  this.ds = (DataSource)ctx.lookup(java:comp/env/jdbc/dbname);
  }
  catch (Exception e) { e.printStackTrace(); }
  super.init(config);  }
public void destroy() {
  ds=null;
  }
protected void processRequest(HttpServletRequest request, 
HttpServletResponse response)

  throws ServletException, IOException {
  response.setContentType(text/html;charset=UTF-8);
  PrintWriter out = response.getWriter();  Connection 
connection=null;

  try
  {
  connection=ds.getConnection();  Statement 
statement = connection.createStatement();

  // execute queries here...
  statement.close();
  connection.close();
  }
  catch(Exception e) { out.println(e.getMessage()); }
  finally { try{connection.close(); } catch(Exception e) {} }
  out.close();  }
}


Darren Hall wrote:

Have you tried
username=myuserid password=mypassword
instead  username=(myuserid) password=(mypassword)



Yes Jean-Claude. In fact, I don't use the parenthesis around the username
and password in my context.xml file. I just listed it that way here in the
list so people would understand the content was changed from the way it
actually appeared in my context.xml. Looking back now, perhaps not such a
good idea, huh?
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



--

Martin Grogan
Keizen Software

[EMAIL PROTECTED]
www.keizensoftware.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache httpd + (internal) Tomcat + virtual hosts

2006-09-19 Thread Bruno Georges

Have a look at  mod- rewrite


Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Carlos A. Carnero Delgado [EMAIL PROTECTED]
Sent: 19.09.2006 15:50
To: users@tomcat.apache.org
Subject: Apache httpd + (internal) Tomcat + virtual hosts

Hello,

I have a Tomcat box (running 5.0.30) for production code. There, our
dev team deploys applications as they finish them, under different
contexts. We want these applications to be available under an Apache
httpd (2.0.55) Internet-facing server, each on a virtual host:

 http://dev.box:8180/app-one/
 http://dev.box:8180/app-two/
 etc.

will be seen as:

 http://www.app-one-domain.com
 http://www.app-two-domain.com
 etc.

Using JK we have had success doing the connection, but the best we've
come up with is:

 http://www.app-one-domain.com/app-one/

Is this thing that we want even possible?

Best regards,
Carlos.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



URL Redirection

2006-09-19 Thread Ashirvad Uniyal

Hello All,

There is a bug that i have to fix, please help.

There is an application made in Tomcat in the webapps\Mondrian 
directory, the application is already being used by the clients,
the problem is the client has to always type 
http://abc.com/Mondrian/index.jsp in the address bar, rather than typing 
only
http://abc.com/index.jsp. Please help me where to change the code so as 
to omit typing Mondrian every time in the address bar.


Thanks in advance,
Ash

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Martin Gainty
As it appears you may be missing the parameter(s)

parameter
nameusername/name
valuePutYourUsernameHere/value
/parameter
  parameter
namepassword/name
valuePutYourPasswordHere/value
/parameter

can you print the contents of context.xml?
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Darren Hall [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 9:24 AM
Subject: RE: Database connection pooling in Tomcat 5.5


 Have you tried
 username=myuserid password=mypassword
 instead  username=(myuserid) password=(mypassword)
 
 Yes Jean-Claude. In fact, I don't use the parenthesis around the username
 and password in my context.xml file. I just listed it that way here in the
 list so people would understand the content was changed from the way it
 actually appeared in my context.xml. Looking back now, perhaps not such a
 good idea, huh?
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Tomcat 5.0.28: ROOT.Context Error - application listeners issue.

2006-09-19 Thread Martin Gainty
Todd

Here is the web.xml from my root webapp
?xml version=1.0 encoding=ISO-8859-1?
!--
  Copyright 2004 The Apache Software Foundation
  Licensed under the Apache License, Version 2.0 (the License);
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
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
  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description

!-- JSPC servlet mappings start --
servlet
servlet-nameorg.apache.jsp.index_jsp/servlet-name
servlet-classorg.apache.jsp.index_jsp/servlet-class
/servlet
servlet-mapping
servlet-nameorg.apache.jsp.index_jsp/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping
!-- JSPC servlet mappings end --
/web-app

So my question is What happens when you deploy the root.war (normally)?

M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Todd Patrick [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 9:50 AM
Subject: Tomcat 5.0.28: ROOT.Context Error - application listeners issue.


 Tomcat 5.0.28
 Eclipse Version: 3.2.0
 
 When I start Tomcat from within Eclipse, I receive the following in my
 Console. My application still works fine, but I have no clue on what
 could be causing this error to be displayed?
 
 2006-09-19 08:46:20,079 INFO
 [org.apache.catalina.core.StandardHostDeployer] - Installing web
 application at context path  from URL
 file:C:\javaworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ROOT
 
 2006-09-19 08:46:20,157 ERROR [tomcat.localhost.ROOT.Context] -
 Skipped installing application listeners due to previous error(s)
 
 2006-09-19 08:46:20,157 ERROR [tomcat.localhost.ROOT.Context] - Error
 listenerStart
 
 2006-09-19 08:46:20,157 ERROR [tomcat.localhost.ROOT.Context] -
 Context startup failed due to previous errors
 
 In the 
 C:\javaworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ROOT
 directory there is a WEB-INF directory that contains a web.xml file.
 The web.xml file contains:
 
 ?xml version=1.0 encoding=UTF-8?
 web-app id=WebApp_ID version=2.4
 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;
 /web-app
 
 
 I'd greatly appreciate any help.
 
 Thanks,
 -- 
 --Todd
 
 [EMAIL PROTECTED]
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: URL Redirection

2006-09-19 Thread Mikolaj Rydzewski

Ashirvad Uniyal wrote:

There is a bug that i have to fix, please help.

Is there a bug?

You can deploy your app in the root context.

--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Darren Hall
 can you print the contents of context.xml?

Absolutely Martin,

The parameters are there, but they are included as attributes instead of
contained as the body of an element. I'm not sure if this matters or not,
but I have it implemented a way I saw it done in a JNDI Datasource How-To
on Apache's site.

Here's the context.xml file I'm currently using -

Context path=/flc docBase=flc debug=5 reloadable=true
crossContext=true
Resource name=jdbc/flc auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.OracleDriver
  url=jdbc:oracle:thin:@devdb1.mydomain.com:1521:flcdb
  username=myuser password=mypass maxActive=20
maxIdle=10
  maxWait=-1 removeAbandoned=true
removeAbandonedTimeout=180
  logAbandoned=true/ 
/Context


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache httpd + (internal) Tomcat + virtual hosts

2006-09-19 Thread Carlos A. Carnero Delgado

Hi,


Have a look at  mod- rewrite


We have looked into it (not in depth, granted.) But:

(1) We have seen that it is capable of proxying, not just
URL rewriting. If we using its proxying capabilites,
do we still need mod-jk?

(2) When we tried using it, some stuff worked all right,
but we had trouble with the cookies.

Thanks a lot,
Carlos.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connection pooling in Tomcat 5.5

2006-09-19 Thread David Smith
As the subject title implies, we are looking at 5.5.  In 5.5, the 
parameters on a resource are expressed as attributes on the Resource 
element.


--David

Martin Gainty wrote:


As it appears you may be missing the parameter(s)

   parameter
   nameusername/name
   valuePutYourUsernameHere/value
   /parameter
 parameter
   namepassword/name
   valuePutYourPasswordHere/value
   /parameter

can you print the contents of context.xml?
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Darren Hall [EMAIL PROTECTED]

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 9:24 AM
Subject: RE: Database connection pooling in Tomcat 5.5


 


Have you tried
username=myuserid password=mypassword
instead  username=(myuserid) password=(mypassword)
 


Yes Jean-Claude. In fact, I don't use the parenthesis around the username
and password in my context.xml file. I just listed it that way here in the
list so people would understand the content was changed from the way it
actually appeared in my context.xml. Looking back now, perhaps not such a
good idea, huh?



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   








-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache httpd + (internal) Tomcat + virtual hosts

2006-09-19 Thread Mikolaj Rydzewski

Carlos A. Carnero Delgado wrote:

(1) We have seen that it is capable of proxying, not just
URL rewriting. If we using its proxying capabilites,
do we still need mod-jk?
I'd use mod_proxy_ajp included in apache 2.2.x with AJP connector. There 
would no cookie problems.

(2) When we tried using it, some stuff worked all right,
but we had trouble with the cookies.
There are apache configuration directives dealing with cookies - look 
for ProxyPass* directives.


--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Martin Gainty
Please display the contents of your context.xml so we may assist you
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 10:27 AM
Subject: Re: Database connection pooling in Tomcat 5.5


 As the subject title implies, we are looking at 5.5.  In 5.5, the 
 parameters on a resource are expressed as attributes on the Resource 
 element.
 
 --David
 
 Martin Gainty wrote:
 
As it appears you may be missing the parameter(s)

parameter
nameusername/name
valuePutYourUsernameHere/value
/parameter
  parameter
namepassword/name
valuePutYourPasswordHere/value
/parameter

can you print the contents of context.xml?
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Darren Hall [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 9:24 AM
Subject: RE: Database connection pooling in Tomcat 5.5


  

Have you tried
username=myuserid password=mypassword
instead  username=(myuserid) password=(mypassword)
  

Yes Jean-Claude. In fact, I don't use the parenthesis around the username
and password in my context.xml file. I just listed it that way here in the
list so people would understand the content was changed from the way it
actually appeared in my context.xml. Looking back now, perhaps not such a
good idea, huh?



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Apache httpd + (internal) Tomcat + virtual hosts

2006-09-19 Thread Carlos A. Carnero Delgado

I'd use mod_proxy_ajp included in apache 2.2.x with AJP
connector. There would no cookie problems.


We will install Apache 2.2.x if we can't find a solution within 48
hours ;) Part of the problem is that it was decided, from on-high,
that the production HTTP server would be Apache 2.0.x, which does not
have neither the built-in ajp proxy nor the cookie-handling proxying
directives.

Thanks,
Carlos.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL Redirection

2006-09-19 Thread Caldarale, Charles R
 From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] 
 Subject: URL Redirection
 
 the problem is the client has to always type 
 http://abc.com/Mondrian/index.jsp in the address bar, rather 
 than typing only
 http://abc.com/index.jsp.

Rename your application to ROOT (case sensitive).  Apps deployed as ROOT
become the default application.  Alternatively, you could have a
ROOT/index.jsp that forwards the request to the proper app name.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache httpd + (internal) Tomcat + virtual hosts

2006-09-19 Thread Mikolaj Rydzewski

Carlos A. Carnero Delgado wrote:

We will install Apache 2.2.x if we can't find a solution within 48
hours ;) Part of the problem is that it was decided, from on-high,
that the production HTTP server would be Apache 2.0.x, which does not
have neither the built-in ajp proxy nor the cookie-handling proxying
directives.
Does setting proxyHost attribute in http connector helps? I think it 
should change cookie domains.


--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Re: URL Redirection

2006-09-19 Thread Markus Schönhaber
Ashirvad Uniyal wrote:
 There is an application made in Tomcat in the webapps\Mondrian
 directory, the application is already being used by the clients,
 the problem is the client has to always type
 http://abc.com/Mondrian/index.jsp in the address bar, rather than typing
 only
 http://abc.com/index.jsp. Please help me where to change the code so as
 to omit typing Mondrian every time in the address bar.

Typing the index.jsp-part should be unneccessary anyway. At least Tomcat 5.5 
contains an entry defining index.jsp as a welcome-file in the default 
server-wide conf/web.xml.
If you want to access your webapp without the need for it's name being present 
in the URL you could make it the ROOT context - as already suggested. Or you 
could create an index.jsp (or whatever you want to map as a welcome-file) in 
the ROOT webapp that does a redirect to your actual context.

Regards
  mks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache httpd + (internal) Tomcat + virtual hosts

2006-09-19 Thread ben short

Hi,

I have used virtual hosts configured as below on a Apache 1.3 server
to proxy to Tomcat. Maybe of interest to you.

VirtualHost 10.0.0.10:80
ServerName www.domain1.com
ProxyPass / http://192.168.100.20:8080/app1/
ProxyPassReverse / http://192.168.100.20:8080/app1/
ProxyRequests off
ErrorLog logs/domain1-error_log
TransferLog logs/domain1-access_log
/VirtualHost

I think you will need the following line also..

LoadModule proxy_module /usr/lib/apache/modules/libproxy.so

Regards

Ben

On 9/19/06, Mikolaj Rydzewski [EMAIL PROTECTED] wrote:

Carlos A. Carnero Delgado wrote:
 We will install Apache 2.2.x if we can't find a solution within 48
 hours ;) Part of the problem is that it was decided, from on-high,
 that the production HTTP server would be Apache 2.0.x, which does not
 have neither the built-in ajp proxy nor the cookie-handling proxying
 directives.
Does setting proxyHost attribute in http connector helps? I think it
should change cookie domains.

--
Mikolaj Rydzewski [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Solution suggestion for Invalid direct reference to form login page

2006-09-19 Thread Homer, Brad
Just some feedback for a new configurable feature which would solve a
common issue - you can take it or leave it.

Problem Description:

It's very easy to bookmark the form login page of a protected Tomcat
application.  Most users (even experienced ones) automatically assume
something is wrong with the Web application when subsequent visits to
the application produce an Error 400.

We have a demo application that we quickly put together on a Tomcat
server but we are now going to move it to WebSphere because the ease of
innocently generating error 400's is not acceptable to us.

We used Tomcat 4.1, but I see the Internet is filled with many Tomcat
developers complaining of this issue even with versions 5.5 and 6

Solution Suggestion:

A configurable redirect to be performed under the covers when a user
(innocently) directly references the form login would eliminate this
issue.  For example, we could configure Tomcat to redirect to the root
of the domain if a user directly references the form login via a
bookmark.  When they click their bookmark, Tomcat would say to itself
nope...not allowed - I'll redirect you to the root of the domain per my
default configuration setting Then, Tomcat would say nope...that's
protected - let me send you to the form login - and voila - a happy
user.



Brad Homer




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cannot load jdbc driver??

2006-09-19 Thread Darren Hall
Great - not only is the connection pool not working locally, but the drivers
cannot be loaded in my production environment.

I've packaged ojdbc14.jar into my war and it deploys into my WEB-INF/lib
directory. When Tomcat 5.5 starts up and I point a browser at my
application, I get a Cannot load JDBC driver class
'oracle.jdbc.OracleDriver' error.

I thought this should be automatic. My connection pool (as seen from my
connection pool thread) references the oracle.jdbc.OracleDriver and the
driver seems to reside in the ojdbc.jar file AND that jar lives in my
WEB-INF/lib folder on my server under my deployed app. Where am I going
wrong??

 

Thanks,

Darren

 

[more info]

java: version 1.5

server os: solaris 10

tomcat: version 5.5



RE: cannot load jdbc driver??

2006-09-19 Thread Derrick Koes

These jars must be accessible by tomcat to create the pool.  They should
be in common/lib. 

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 11:38 AM
To: 'Tomcat Users List'
Subject: cannot load jdbc driver??

Great - not only is the connection pool not working locally, but the
drivers cannot be loaded in my production environment.

I've packaged ojdbc14.jar into my war and it deploys into my WEB-INF/lib
directory. When Tomcat 5.5 starts up and I point a browser at my
application, I get a Cannot load JDBC driver class
'oracle.jdbc.OracleDriver' error.

I thought this should be automatic. My connection pool (as seen from my
connection pool thread) references the oracle.jdbc.OracleDriver and the
driver seems to reside in the ojdbc.jar file AND that jar lives in my
WEB-INF/lib folder on my server under my deployed app. Where am I going
wrong??

 

Thanks,

Darren

 

[more info]

java: version 1.5

server os: solaris 10

tomcat: version 5.5


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cannot load jdbc driver??

2006-09-19 Thread David Smith
ojdbc14.jar needs to be in common/lib to be visible to tomcat's database 
pooling mechanism.


--David

Darren Hall wrote:


Great - not only is the connection pool not working locally, but the drivers
cannot be loaded in my production environment.

I've packaged ojdbc14.jar into my war and it deploys into my WEB-INF/lib
directory. When Tomcat 5.5 starts up and I point a browser at my
application, I get a Cannot load JDBC driver class
'oracle.jdbc.OracleDriver' error.

I thought this should be automatic. My connection pool (as seen from my
connection pool thread) references the oracle.jdbc.OracleDriver and the
driver seems to reside in the ojdbc.jar file AND that jar lives in my
WEB-INF/lib folder on my server under my deployed app. Where am I going
wrong??



Thanks,

Darren



[more info]

java: version 1.5

server os: solaris 10

tomcat: version 5.5


 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cannot load jdbc driver??

2006-09-19 Thread Darren Hall
 did you not specify a JDBC connection in the Realm? server.xml in the conf
 file?

I have no Realm specified in server.xml, however I'm attempting to get
connection pooling set-up (see my connection pool thread) so I've created a
context.xml file and specified my connection information inside a Resource
element in that file. I thought that the two setups were mutually exclusive,
no?

 These jars must be accessible by tomcat to create the pool.  They should 
 be in common/lib.

Thanks Derek, I'll give this a try. But does this also mean that the drivers
cannot deploy with my war file?

-D


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cannot load jdbc driver??

2006-09-19 Thread Derrick Koes
They will be accessible by your war file code.  You do not need the jar
in both places.  Only common/lib 

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 12:03 PM
To: 'Tomcat Users List'
Subject: RE: cannot load jdbc driver??

 did you not specify a JDBC connection in the Realm? server.xml in the 
 conf file?

I have no Realm specified in server.xml, however I'm attempting to get
connection pooling set-up (see my connection pool thread) so I've
created a context.xml file and specified my connection information
inside a Resource element in that file. I thought that the two setups
were mutually exclusive, no?

 These jars must be accessible by tomcat to create the pool.  They 
 should be in common/lib.

Thanks Derek, I'll give this a try. But does this also mean that the
drivers cannot deploy with my war file?

-D


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



additional URL redirect question

2006-09-19 Thread Steacy, Christina
Hello,

I have just recently installed an application (astraweb) that uses
tomcat for its' web client.

 

I'm trying to setup events.mycompany.com to bring up the astraweb
client.  I already have one web server on the network which is the main
website (www.mycompany.com) and astraweb is a secondary website on a
totally different server.  The main website is running on Windows with
IIS.  The Astraweb client app is running on a Windows 2003 server with
only Tomcat installed.  Astraweb is installed under the webapps
directory under the directory of astraweb.  Also in the webapps
directory is the ROOT folder.  Right now if I were to go to the astraweb
server and type in localhost in the browser it would bring up the Tomcat
pages.  If I type in localhost/astraweb it brings up my astraweb
homepage.  How can I get http://events.mycompany.com
http://events.mycompany.com/  to bring up the homepage of my astraweb
hompage?  I've tried editing the only host information in the
server.xml I could find but nothing worked when I did that (I guarantee
I'm lost about what to put there).  In addition to this, I do have
'events' set up in the DNS servers to forward to my astraweb server.

 

I did read over the previous question on URL redirection but I'm still
at a bit of a loss but learning.

Please let me know if I need to submit further information.  Thank you
in advance for the help.

 

- Christy



RE: cannot load jdbc driver??

2006-09-19 Thread Darren Hall
In any case, moving the ojdbc14.jar file to the common/lib directory worked.
Thanks.


-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 12:09 PM
To: 'Tomcat Users List'
Subject: RE: cannot load jdbc driver??

 They will be accessible by your war file code.  You do not need the jar
 in both places.  Only common/lib 

No no. I understand that it will be available to my code (since the app
server will put the jar in my classpath), but it means I can't deploy
ojdbc14.jar with my war any longer. Correct?

-D


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cannot load jdbc driver??

2006-09-19 Thread David Smith
You can, but you'll have to handle database pooling on your own.  It's 
easy enough to do with a number of pooling projects out there -- c3p0 
and commons-dbcp to name a couple. 

Just write the code in a ServletContextListener and store the resulting 
DataSource in the ServletContext.  It won't be available via JNDI look 
up either.


--David

Darren Hall wrote:


They will be accessible by your war file code.  You do not need the jar
in both places.  Only common/lib 
   



No no. I understand that it will be available to my code (since the app
server will put the jar in my classpath), but it means I can't deploy
ojdbc14.jar with my war any longer. Correct?

-D


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cannot load jdbc driver??

2006-09-19 Thread Propes, Barry L
shouldn't it deploy automatically within your WAR file? I think it does.

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 11:09 AM
To: 'Tomcat Users List'
Subject: RE: cannot load jdbc driver??


 They will be accessible by your war file code.  You do not need the jar
 in both places.  Only common/lib 

No no. I understand that it will be available to my code (since the app
server will put the jar in my classpath), but it means I can't deploy
ojdbc14.jar with my war any longer. Correct?

-D


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.28: ROOT.Context Error - application listeners issue.

2006-09-19 Thread Todd Patrick

Martin: Thanks for the response. Your example helped me realized that
my install was really messed up.

Thanks,

--Todd

On 9/19/06, Martin Gainty [EMAIL PROTECTED] wrote:

Todd

Here is the web.xml from my root webapp
?xml version=1.0 encoding=ISO-8859-1?
!--
  Copyright 2004 The Apache Software Foundation
  Licensed under the Apache License, Version 2.0 (the License);
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
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
  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description

!-- JSPC servlet mappings start --
servlet
servlet-nameorg.apache.jsp.index_jsp/servlet-name
servlet-classorg.apache.jsp.index_jsp/servlet-class
/servlet
servlet-mapping
servlet-nameorg.apache.jsp.index_jsp/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping
!-- JSPC servlet mappings end --
/web-app

So my question is What happens when you deploy the root.war (normally)?

M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: Todd Patrick [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 9:50 AM
Subject: Tomcat 5.0.28: ROOT.Context Error - application listeners issue.


 Tomcat 5.0.28
 Eclipse Version: 3.2.0

 When I start Tomcat from within Eclipse, I receive the following in my
 Console. My application still works fine, but I have no clue on what
 could be causing this error to be displayed?

 2006-09-19 08:46:20,079 INFO
 [org.apache.catalina.core.StandardHostDeployer] - Installing web
 application at context path  from URL
 
file:C:\javaworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ROOT

 2006-09-19 08:46:20,157 ERROR [tomcat.localhost.ROOT.Context] -
 Skipped installing application listeners due to previous error(s)

 2006-09-19 08:46:20,157 ERROR [tomcat.localhost.ROOT.Context] - Error
 listenerStart

 2006-09-19 08:46:20,157 ERROR [tomcat.localhost.ROOT.Context] -
 Context startup failed due to previous errors

 In the 
C:\javaworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ROOT
 directory there is a WEB-INF directory that contains a web.xml file.
 The web.xml file contains:

 ?xml version=1.0 encoding=UTF-8?
 web-app id=WebApp_ID version=2.4
 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;
 /web-app


 I'd greatly appreciate any help.

 Thanks,
 --
 --Todd

 [EMAIL PROTECTED]

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





--
--Todd

[EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: additional URL redirect question

2006-09-19 Thread Caldarale, Charles R
 From: Steacy, Christina [mailto:[EMAIL PROTECTED] 
 Subject: additional URL redirect question
 
 How can I get http://events.mycompany.com
 http://events.mycompany.com/  to bring up the homepage of 
 my astraweb hompage?

1) Install your astraweb app in webapps/ROOT (or webapps/ROOT.war, if
packaged that way).

2) Place a ROOT.xml file in conf/Catalina/localhost containing a
Context element with its docBase attribute pointing to the location of
astraweb.  In this case, do not put astraweb under webapps, or it will
be deployed twice.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Darren Hall
More progress with this issue.
It seems that on our development server (solaris box running solaris 10) the
connection pool connects properly. However on my local box (a Windows XP SP2
box where I'm doing my development before I move it to dev) the connection
pool returns to me an invalid username/password error. Both environments
are using exactly the same web.xml, context.xml, database credentials, etc.
In fact I used the same war file compiled from my local box to get the
initial version of the code up on our dev box.

Obviously it's a configuration issue - but where? Why does it work on the
dev server and not on my local box?? I'm really scratching my head on this
one.

-D

Here's the context.xml file I'm currently using -

Context path=/flc docBase=flc debug=5 reloadable=true
crossContext=true
Resource name=jdbc/flc auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.OracleDriver
  url=jdbc:oracle:thin:@devdb1.mydomain.com:1521:flcdb
  username=myuser password=mypass maxActive=20
maxIdle=10
  maxWait=-1 removeAbandoned=true
removeAbandonedTimeout=180
  logAbandoned=true/ 
/Context


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Propes, Barry L
does your XP box give you any application log errors anywhere?

I wonder if Windows is looking for a domain authentication, that is a domain 
name stapled on to the user acct prior to authenticating the user?

Can you print out to the Tomcat logs the errors?

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 11:53 AM
To: 'Tomcat Users List'
Subject: RE: Database connection pooling in Tomcat 5.5


More progress with this issue.
It seems that on our development server (solaris box running solaris 10) the
connection pool connects properly. However on my local box (a Windows XP SP2
box where I'm doing my development before I move it to dev) the connection
pool returns to me an invalid username/password error. Both environments
are using exactly the same web.xml, context.xml, database credentials, etc.
In fact I used the same war file compiled from my local box to get the
initial version of the code up on our dev box.

Obviously it's a configuration issue - but where? Why does it work on the
dev server and not on my local box?? I'm really scratching my head on this
one.

-D

Here's the context.xml file I'm currently using -

Context path=/flc docBase=flc debug=5 reloadable=true
crossContext=true
Resource name=jdbc/flc auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.OracleDriver
  url=jdbc:oracle:thin:@devdb1.mydomain.com:1521:flcdb
  username=myuser password=mypass maxActive=20
maxIdle=10
  maxWait=-1 removeAbandoned=true
removeAbandonedTimeout=180
  logAbandoned=true/ 
/Context


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do I install custom protocol handler in my Tomcat (4.1.31)?

2006-09-19 Thread Aaron . Kats
Title: How do I install custom protocol handler in my Tomcat (4.1.31)?






Hi,


I have a need for a custom URLConnection class in my application. I have written a Handler class that returns one. I also set -Djava.protocol.handler.pkgs=com.ubs.fi.confine.networking in my startup script for Tomcat. However, no matter where I place the related classes (common, shared, or server directories) I am still getting java.net.MalformedURLException.

Any suggestion would be greatly appreciated.


Thanks,

Aaron 




Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: JK 1.2.18 win32 dll not working

2006-09-19 Thread Julie Szmyd
Finally solved this.  There is now a note at the bottom of the downloads 
page [not all mirrors show the readme notes right on the page, so if you 
don't see the note check the README.html  :(  ] that gives the resolution:


There is an error in 1.2.18 that requires the new feature 
rewrite_rule_file to be present in the Registry configuration, and it 
won't load JK without that file. However it can be an empty file.


So, create an empty rewrites.properties file and add rewrite_rule_file 
in the Jakarta Isapi Redirector\\1.0 registry that points to that file.


The next version will have that resolved by not requiring 
rewrite_rule_file to be present.


--Julie


Hi,

I tried to upgrade an older version of the win32 JK isapi_redirect.dll 
to the jk-1.2.18 version that I downloaded from 
http://mirrors.ibiblio.org/pub/mirrors/apache/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.18.  
For some reason, IIS is not able to load the ISAPI filter.  It errors 
out with the following message when I start IIS:


-

The HTTP Filter DLL C:\java\Tomcat\Jakarta Isapi 
Redirector\bin\isapi_redirect.dll failed to load.  The data is the error.


data in bytes: : 02 00 00 00   

-

I was able to successfully upgrade to the jk-1.2.15 version, which 
makes me think my setup is correct, and there could be  a problem with 
the binary for jk-1.2.18.  Has anyone else gotten the 1.2.18 version 
working on Windows XP IIS version 5.1?  Are there any differences in 
configuration from 1.2.15 to 1.2.18?


Thanks,
Julie Szmyd



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







--
*Julie Szmyd*
Software Developer
RealGo, Inc.
970.493.5177

www.coloproperty.com http://www.coloproperty.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Darren Hall
 does your XP box give you any application log errors anywhere?

I see no errors in the event viewer in any of the logs that are related to
this issue, but it was a good idea. (I didn't think of it.)

 I wonder if Windows is looking for a domain authentication, that is a 
 domain name stapled on to the user acct prior to authenticating the user?

No, there is no domain information used currently for the database
connection process. Another good idea. I'll speak with my network admin and
see if he believes this could be causing an issue.

 Can you print out to the Tomcat logs the errors?

Curiously, Tomcats logs show no errors relating to this issue. My
application log is the only place where the error is caught and logged.
Here is the relevant output from my log including the top of the stack
trace.

flc-event-2006-09-19.log
...
2006-09-19 13:07:44,670 DEBUG org.mydomian.labs.LaboratorySearchAction -
(exeucte) Retrieving database connection from the DataSource.
2006-09-19 13:07:45,826 DEBUG
org.apache.struts.util.PropertyMessageResources -
getMessage(en_US,unhandledException)
2006-09-19 13:07:45,841 WARN  org.apache.struts.action.RequestProcessor -
Unhandled Exception thrown: class
org.apache.tomcat.dbcp.dbcp.SQLNestedException
2006-09-19 13:07:45,857 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/flc].[primar
y-controller] - Servlet.service() for servlet primary-controller threw
exception
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (ORA-01017: invalid username/password; logon
denied
)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:855)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:540)
at
org.mydomain.labs.LaboratorySearchAction.execute(LaboratorySearchAction.java
:94)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:431)
...


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Propes, Barry L
I wonder, Darren, have you tried authenticating at all thru the JDBC realm?
I know you're ultimately wanting and needing to use the JNDI connection, but 
I'm just wondering if there was some other misconfiguration problem you could 
either rule out or in as a possibility.

That SQL Nested Exception thing in general looks like the root cause...any way 
to try going to the DOS prompt and connecting to SQL Plus with that 
username/pwd combo?

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 1:04 PM
To: 'Tomcat Users List'
Subject: RE: Database connection pooling in Tomcat 5.5


 does your XP box give you any application log errors anywhere?

I see no errors in the event viewer in any of the logs that are related to
this issue, but it was a good idea. (I didn't think of it.)

 I wonder if Windows is looking for a domain authentication, that is a 
 domain name stapled on to the user acct prior to authenticating the user?

No, there is no domain information used currently for the database
connection process. Another good idea. I'll speak with my network admin and
see if he believes this could be causing an issue.

 Can you print out to the Tomcat logs the errors?

Curiously, Tomcats logs show no errors relating to this issue. My
application log is the only place where the error is caught and logged.
Here is the relevant output from my log including the top of the stack
trace.

flc-event-2006-09-19.log
...
2006-09-19 13:07:44,670 DEBUG org.mydomian.labs.LaboratorySearchAction -
(exeucte) Retrieving database connection from the DataSource.
2006-09-19 13:07:45,826 DEBUG
org.apache.struts.util.PropertyMessageResources -
getMessage(en_US,unhandledException)
2006-09-19 13:07:45,841 WARN  org.apache.struts.action.RequestProcessor -
Unhandled Exception thrown: class
org.apache.tomcat.dbcp.dbcp.SQLNestedException
2006-09-19 13:07:45,857 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/flc].[primar
y-controller] - Servlet.service() for servlet primary-controller threw
exception
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (ORA-01017: invalid username/password; logon
denied
)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:855)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:540)
at
org.mydomain.labs.LaboratorySearchAction.execute(LaboratorySearchAction.java
:94)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:431)
...


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: configuration setting to disable URL sessions?

2006-09-19 Thread phishery

Did anyone ever find a easy/clean way to disable JSESSIONID on a standalone
tomcat server (so not using apache url rewriting)?

Thanks,
R


Chetan Sabnis wrote:
 
 Is there a way to disable the Tomcat server (5.5) from accepting
 sessions that are sent in the URL using jsessionid?  This would be
 useful in preventing certain session fixation attacks.  Basically, I
 would want sessions to be accepted only if they are sent using a
 cookie.
 
 Specifically, I am concerned about the following scenario:
 
 1) Attacker sends a simple HTTP Get to server
 (http://www.example.com/test).  The server returns a response with a
 Set-Cookie header for JSESSIONID.  Say that this cookie value is 1234.
 2) Attacker sends victim a link of the form
 http://www.example.com/test;jsessionid=1234
 3) Victim clicks the link.  The server accepts that its session with
 the victim is 1234 since it is a valid session.
 4) Victim authenticates to the site (presuming that jessionid is
 preserved in all interactions with the webapp)
 5) Attacker can impersonate victim since the attacker knows the
 session id of the victim.
 
 While the victim did make a mistake by clicking on the link, it is
 unlikely that the victim knew the implications of clicking on a link
 with a valid jsessionid in the URL.  This could be prevented at step 3
 by the server rejecting any sessions that are sent via URL.  I have
 not found this option in the docs, and looking through the code, there
 does not appear to be a way to prevent this behavior.
 
 The cookies attribute in the Context element does not change this
 behavior.  Even if cookies is set to true, sessions sent in the URL
 are accepted by Tomcat for determining the HttpSession of the request.
 
 It would be easy to do deny this in a servlet or in a filter by using
 the HttpServletRequest class's isRequestedSessionIdFromCookie()
 method.  However, I was hoping for a way to do this for all webapps
 and all servlets via configuration.  Thoughts?
 
 Thanks in advance for any help.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/configuration-setting-to-disable-URL-sessions--tf2235928.html#a6394208
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 won't auto-deploy my web app

2006-09-19 Thread Martin Gainty
yes
what happens when you specifically deploy the generated war 
i.e.
go to MANAGER
GO TO bottom of page
Browse for your NameOfWebapp.war and click Deploy
?
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Peter Ries [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 15, 2006 12:47 PM
Subject: RE: Tomcat 5.5 won't auto-deploy my web app


Sorry - I should have said. We do have the JDK 1.4 Compatibility files
installed within Tomcat 5.5.

So, this should work then?

~Peter


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 2:09 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 won't auto-deploy my web app

Or the compatibility package for use with JDK 1.4

--David

Gregor Schneider wrote:
 Hi Peter,

 don't know if this is the reson for your problem, however, afaik
 Tomcat 5.5.17 requires JDK 1.5

 Cheers

 Gregor


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Darren Hall
 That SQL Nested Exception thing in general looks like the root cause...any

 way to try going to the DOS prompt and connecting to SQL Plus with that 
 username/pwd combo?

Yes, using that username and password works fine through SQL Plus, and I've
connected to the database several times through SQL Plus using those
credentials. In fact connecting to the database through my code works fine
if I don't use connection pooling! In my test java class I've tried
connecting to the DB using connection pooling, and not using connection
pooling.

This way works fine with no errors:

Connection conn;
Driver driver;
String driverUsed = oracle.jdbc.OracleDriver;
String serverAddress = jdbc:oracle:thin:@devdb1.utrs.com:1521:flcdb;
try {
driver = (Driver)Class.forName(driverUsed).newInstance();
conn = DriverManager.getConnection(serverAddress, myuser,
mypass);
}
catch (Exception e) {
log.debug(Connection to database failed!, e);
}

This way fails with invalid username/password error:

DataSource ds = null;
String dsName = jdbc/flc;
try {
Context initContext = new InitialContext();
Context envContext  = (Context)initContext.lookup(java:/comp/env);
ds = (DataSource)envContext.lookup(dsName);
if (log.isDebugEnabled()) {
log.debug((exeucte) Retrieving database connection from the
DataSource.);
}
conn = ds.getConnection();
if (log.isDebugEnabled()) {
log.debug((exeucte) Connected.);
}
}
catch(javax.naming.NamingException nex) {
log.error(Context lookup failed for DataSource ' + dsName + ',
nex);
}



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Propes, Barry L
did you try printing out the username and password variables to see what 
credentials are coming through?

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 1:37 PM
To: 'Tomcat Users List'
Subject: RE: Database connection pooling in Tomcat 5.5


 That SQL Nested Exception thing in general looks like the root cause...any

 way to try going to the DOS prompt and connecting to SQL Plus with that 
 username/pwd combo?

Yes, using that username and password works fine through SQL Plus, and I've
connected to the database several times through SQL Plus using those
credentials. In fact connecting to the database through my code works fine
if I don't use connection pooling! In my test java class I've tried
connecting to the DB using connection pooling, and not using connection
pooling.

This way works fine with no errors:

Connection conn;
Driver driver;
String driverUsed = oracle.jdbc.OracleDriver;
String serverAddress = jdbc:oracle:thin:@devdb1.utrs.com:1521:flcdb;
try {
driver = (Driver)Class.forName(driverUsed).newInstance();
conn = DriverManager.getConnection(serverAddress, myuser,
mypass);
}
catch (Exception e) {
log.debug(Connection to database failed!, e);
}

This way fails with invalid username/password error:

DataSource ds = null;
String dsName = jdbc/flc;
try {
Context initContext = new InitialContext();
Context envContext  = (Context)initContext.lookup(java:/comp/env);
ds = (DataSource)envContext.lookup(dsName);
if (log.isDebugEnabled()) {
log.debug((exeucte) Retrieving database connection from the
DataSource.);
}
conn = ds.getConnection();
if (log.isDebugEnabled()) {
log.debug((exeucte) Connected.);
}
}
catch(javax.naming.NamingException nex) {
log.error(Context lookup failed for DataSource ' + dsName + ',
nex);
}



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Martin Gainty
1)
make SURE commons-pooling.jar, commons-dbcp.jar and commons-collections.jar are 
in your ./WEB-INF/lib folder
2)
Inside struts-config.xml can you show us what you have supplied for each value 
associated with the following properties
data-source type=org.apache.commons.dbcp.BasicDataSource key=TableName
  set-property property=driverClassName value=
  set-property property=url value=
  set-property property=username value=
  set-property property=validationQuery value=
/source

3)
have you used a DB utility such as tora/toad/sqlplus to successfully 
authenticate to your Database with the values for username and password?

Martin--
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Darren Hall [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 2:04 PM
Subject: RE: Database connection pooling in Tomcat 5.5


 does your XP box give you any application log errors anywhere?

I see no errors in the event viewer in any of the logs that are related to
this issue, but it was a good idea. (I didn't think of it.)

 I wonder if Windows is looking for a domain authentication, that is a 
 domain name stapled on to the user acct prior to authenticating the user?

No, there is no domain information used currently for the database
connection process. Another good idea. I'll speak with my network admin and
see if he believes this could be causing an issue.

 Can you print out to the Tomcat logs the errors?

Curiously, Tomcats logs show no errors relating to this issue. My
application log is the only place where the error is caught and logged.
Here is the relevant output from my log including the top of the stack
trace.

flc-event-2006-09-19.log
...
2006-09-19 13:07:44,670 DEBUG org.mydomian.labs.LaboratorySearchAction -
(exeucte) Retrieving database connection from the DataSource.
2006-09-19 13:07:45,826 DEBUG
org.apache.struts.util.PropertyMessageResources -
getMessage(en_US,unhandledException)
2006-09-19 13:07:45,841 WARN  org.apache.struts.action.RequestProcessor -
Unhandled Exception thrown: class
org.apache.tomcat.dbcp.dbcp.SQLNestedException
2006-09-19 13:07:45,857 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/flc].[primar
y-controller] - Servlet.service() for servlet primary-controller threw
exception
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (ORA-01017: invalid username/password; logon
denied
)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:855)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:540)
at
org.mydomain.labs.LaboratorySearchAction.execute(LaboratorySearchAction.java
:94)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:431)
...


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cannot load jdbc driver??

2006-09-19 Thread Martin Gainty
I would advise to not place app jars in common as it is used by TC Internals 
here is why (straight from TC5.5. Doc)
a.. Common - This class loader contains additional classes that are made 
visible to both Tomcat internal classes and to all web applications. Normally, 
application classes should NOT be placed here. All unpacked classes and 
resources in $CATALINA_HOME/common/classes, as well as classes and resources in 
JAR files under the $CATALINA_HOME/commons/endorsed, 
$CATALINA_HOME/commons/i18n and $CATALINA_HOME/common/lib directories, are made 
visible through this class loader. By default, that includes the following: 
  a.. commons-el.jar - Jakarta commons el, implementing the expression language 
used by Jasper. 
  b.. jasper-compiler.jar - The JSP 2.0 compiler. 
  c.. jasper-compiler-jdt.jar - The Eclipse JDT Java compiler. 
  d.. jasper-runtime.jar - The JSP 2.0 runtime. 
  e.. jsp-api.jar - The JSP 2.0 API. 
  f.. naming-common.jar - The JNDI implementation used by Tomcat 5 to represent 
in-memory naming contexts. 
  g.. naming-factory.jar - The JNDI implementation used by Tomcat 5 to resolve 
references to enterprise resources (EJB, connection pools). 
  h.. naming-factory-dbcp.jar - Jakarta commons DBCP, providing a JDBC 
connection pool to web applications. The classes have been moved out of their 
default org.apache.commons package. 
  i.. naming-java.jar - Handler for the java: namespace. 
  j.. naming-resources.jar - The specialized JNDI naming context implementation 
used to represent the static resources of a web application. This is not 
related to the support of the J2EE ENC, and cannot be removed. 
  k.. servlet-api.jar - The Servlet 2.4 API. 
  l.. tomcat-i18n-**.jar - Optional JARs containing resource bundles for other 
languages. As default bundles are also included in each individual JAR, they 
can be safely removed if no internationalization of messages is needed. 

  M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Darren Hall [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 12:09 PM
Subject: RE: cannot load jdbc driver??


 They will be accessible by your war file code.  You do not need the jar
 in both places.  Only common/lib 
 
 No no. I understand that it will be available to my code (since the app
 server will put the jar in my classpath), but it means I can't deploy
 ojdbc14.jar with my war any longer. Correct?
 
 -D
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Darren Hall
 did you try printing out the username and password variables to see what 
 credentials are coming through?

Well, yes and no. I've actually hard coded the username and password into my
code when I've tested *not* using connection pooling, so I know what they
are in that case. When using connection pooling the username and password
are stored in my context.xml file as attributes in a Resource element. I'm
not sure how to get the values of those attributes in my code to print them
out. Also, if I were more knowledgeable in Oracle, I'd love to check to the
database to verify the pool is being created, and possible to see if what
credentials are being used on the Oracle side when I attempt to connect
through the connection pool, but I'm not sure where to look to find that
information. I've looked at various logs on the db server, but none of them
seem to contain the information I'm looking for, so I'm sort of lost there.

-D


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cannot load jdbc driver??

2006-09-19 Thread Caldarale, Charles R
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Subject: Re: cannot load jdbc driver??
 
 I would advise to not place app jars in common as it is used 
 by TC Internals

No one has suggested putting app jars in common/lib; why did you bring
this up?

He has to put the JDBC driver jar there in order to enable
Tomcat-managed connection pooling.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Caldarale, Charles R
 From: Darren Hall [mailto:[EMAIL PROTECTED] 
 Subject: RE: Database connection pooling in Tomcat 5.5
 
 Well, yes and no. I've actually hard coded the username and 
 password into my code when I've tested *not* using connection
 pooling, so I know what they are in that case.

Have you tried a network sniffer (e.g., Ethereal) to see what's really
being passed to the DB as authentication credentials?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Darren Hall
(In reverse order)
 have you used a DB utility such as tora/toad/sqlplus to successfully 
 authenticate to your Database with the values for username and password?

Yes

 Inside struts-config.xml can you show us what you have supplied for each 
 value associated with the following properties
 data-source 
type=org.apache.commons.dbcp.BasicDataSource key=TableName
  set-property property=driverClassName value=
  set-property property=url value=
  set-property property=username value=
  set-property property=validationQuery value=
 /source

!-- = Data Source Configuration === --
data-sources /
My datasources element is empty. In my reading, I discovered that this was
no longer a preferred way to set up database connections for struts (in leiu
of other connection frameworks like Spring or custom connection layers) and
was kept in place for legacy applications. (Is this not correct?)

 make SURE commons-pooling.jar, commons-dbcp.jar and 
 commons-collections.jar are in your ./WEB-INF/lib folder

None of these jar files are in either my /WEB-INF/lib folder or my
/commons/lib folders. Are these necessary for implementing connection
pooling? They are not on my development server either, yet that connection
pool seems to be working?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Caldarale, Charles R
 From: Darren Hall [mailto:[EMAIL PROTECTED] 
 Subject: RE: Database connection pooling in Tomcat 5.5
 
  make SURE commons-pooling.jar, commons-dbcp.jar and 
  commons-collections.jar are in your ./WEB-INF/lib folder
 
 None of these jar files are in either my /WEB-INF/lib folder or my
 /commons/lib folders.

They are, you just don't know it.  From the doc:

These libraries are located in a single JAR at
$CATALINA_HOME/common/lib/naming-factory-dbcp.jar. However, only the
classes needed for connection pooling have been included, and the
packages have been renamed to avoid interfering with applications.

http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h
tml

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connection pooling in Tomcat 5.5

2006-09-19 Thread David Smith
Don't think so you need the commons-*.jar files.  Tomcat 5.5 refactored 
the commons-dbcp package internally so it wouldn't collide with webapps 
using the release version from http://jakarta.apache.org/commons/dbcp.


I don't have those and I've been using mysql without issue.

--David

Darren Hall wrote:


(In reverse order)
 

have you used a DB utility such as tora/toad/sqlplus to successfully 
authenticate to your Database with the values for username and password?
   



Yes

 

Inside struts-config.xml can you show us what you have supplied for each 
value associated with the following properties
data-source 
  type=org.apache.commons.dbcp.BasicDataSource key=TableName

set-property property=driverClassName value=
set-property property=url value=
set-property property=username value=
set-property property=validationQuery value=
/source
   



!-- = Data Source Configuration === --
data-sources /
My datasources element is empty. In my reading, I discovered that this was
no longer a preferred way to set up database connections for struts (in leiu
of other connection frameworks like Spring or custom connection layers) and
was kept in place for legacy applications. (Is this not correct?)

 

make SURE commons-pooling.jar, commons-dbcp.jar and 
commons-collections.jar are in your ./WEB-INF/lib folder
   



None of these jar files are in either my /WEB-INF/lib folder or my
/commons/lib folders. Are these necessary for implementing connection
pooling? They are not on my development server either, yet that connection
pool seems to be working?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Darren Hall
 They are, you just don't know it.  From the doc:
 
 These libraries are located in a single JAR at
 $CATALINA_HOME/common/lib/naming-factory-dbcp.jar.

Gotcha. Thanks, Chuck. 
The naming-factory-dbcp.jar is in my /commons/lib dir.

The bizarre thing about all of this is that 
A) I can connect to the database from my local machine a number of ways
using those same credentials - just not using the connection pool I've set
up through Tomcat.
And B) The connection pool - with absolutely no modifications from my local
machine - works fine in the Tomcat install on the development server.
??
I don't know where to go from here. I'm stumped.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Caldarale, Charles R
 From: Darren Hall [mailto:[EMAIL PROTECTED] 
 Subject: RE: Database connection pooling in Tomcat 5.5
 
 I don't know where to go from here. I'm stumped.

Which is why I suggested Ethereal to see what was really going over the
wire between your Windows box and the DB machine.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Darren Hall
 Which is why I suggested Ethereal to see what was really going over the
 wire between your Windows box and the DB machine.

Yep. I think you're right. I'll get that set up and take a look.
Be back in a while. Thanks for the help.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5 won't auto-deploy my web app

2006-09-19 Thread Peter Ries
Martin,
After a few moments of working on it, that works just fine.

What does that tell you?

Thanks for thinking about this.

~Peter



-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 11:36 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 won't auto-deploy my web app

yes
what happens when you specifically deploy the generated war 
i.e.
go to MANAGER
GO TO bottom of page
Browse for your NameOfWebapp.war and click Deploy
?
*
This email message and any files transmitted with it contain
confidential
information intended only for the person(s) to whom this email message
is
addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Peter Ries [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 15, 2006 12:47 PM
Subject: RE: Tomcat 5.5 won't auto-deploy my web app


Sorry - I should have said. We do have the JDK 1.4 Compatibility files
installed within Tomcat 5.5.

So, this should work then?

~Peter


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 2:09 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 won't auto-deploy my web app

Or the compatibility package for use with JDK 1.4

--David

Gregor Schneider wrote:
 Hi Peter,

 don't know if this is the reson for your problem, however, afaik
 Tomcat 5.5.17 requires JDK 1.5

 Cheers

 Gregor


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



INFO: XML validation disabled

2006-09-19 Thread Kevin Mullin

I'm seeing this message from the started
task the starts TOMCAT, is it something to be concerned about? What
does it mean?






Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]



Problems in TOMCAT

2006-09-19 Thread Kevin Mullin

I am seeing this in the log that tracks
the start of Tomcat:

SEVERE: End event threw exception 
  
 
java.lang.reflect.InvocationTargetException
  
 
.at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown
Source)  
...a host of java trace messages ...
.at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

Caused by: java.lang.IllegalArgumentException:
Servlet mapping specifies an servlet name CompressionFilterTestServlet


I can't find a CompressionFilterTestServlet.class,
and besides, if it were missing, I would have expected a classnotfound
exception, not this. Can anybody tell me what this complaining about?






Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]



Re: Problems in TOMCAT

2006-09-19 Thread Martin Gainty
Kevin-

When you deploy Tomcat 5.5 you should have jsp-examples webapp in your webapps 
folder e.g.
$TOMCAT_HOME/webapps/jsp-examples/WEB-INF/classes/compressionFilters

01/19/2005  04:40 PM 4,025 CompressionFilter.class
01/19/2005  04:40 PM 7,412 CompressionFilter.java
01/19/2005  04:40 PM 1,665 CompressionFilterTestServlet.class
01/19/2005  04:40 PM 1,787 CompressionFilterTestServlet.java

Some snooping about in $TOMCAT_HOME/webapps/jsp-examples/WEB-INF/web.xml you 
should see this specification

filter-mapping
  filter-nameCompression Filter/filter-name
  url-pattern/CompressionTest/url-pattern
/filter-mapping


so the resulting url would be displayed at
http://localhost:8080/jsp-examples/CompressionTest

which *should* display the text
gzip, deflate
gzip supported -- able to compress
Compression Filter Test 
Servletcomprenez?Martin--*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  - Original Message - 
  From: Kevin Mullin 
  To: users@tomcat.apache.org 
  Sent: Tuesday, September 19, 2006 5:46 PM
  Subject: Problems in TOMCAT



  I am seeing this in the log that tracks the start of Tomcat: 

  SEVERE: End event threw exception   
  java.lang.reflect.InvocationTargetException 
  .at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) 
  ...a host of java trace messages ... 
  .at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)   
  Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an  
servlet name CompressionFilterTestServlet 

  I can't find a CompressionFilterTestServlet.class, and besides, if it were 
missing, I would have expected a classnotfound exception, not this.  Can 
anybody tell me what this complaining about?



Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]   



Re: Database connection pooling in Tomcat 5.5

2006-09-19 Thread Martin Gainty
David--

The connection-pool is a series of preallocated Connection Resources which the 
ConnectionPoolManager dispatches to registered clients on as needed basis..The 
more sophisticated ConnectionPoolManagers have thread starvation metrics and 
monitoring built in so if there is no activity on a Connection Resource for n 
min the ConnectionPoolManager allocates to next requesting client

Oracle has a predefined view which will show you the information called V$ACCESS
(your username will of course need read access granted to V$Access Table 
beforehand)

Saludos
Martin--
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Darren Hall [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Tuesday, September 19, 2006 2:56 PM
Subject: RE: Database connection pooling in Tomcat 5.5


 did you try printing out the username and password variables to see what 
 credentials are coming through?

Well, yes and no. I've actually hard coded the username and password into my
code when I've tested *not* using connection pooling, so I know what they
are in that case. When using connection pooling the username and password
are stored in my context.xml file as attributes in a Resource element. I'm
not sure how to get the values of those attributes in my code to print them
out. Also, if I were more knowledgeable in Oracle, I'd love to check to the
database to verify the pool is being created, and possible to see if what
credentials are being used on the Oracle side when I attempt to connect
through the connection pool, but I'm not sure where to look to find that
information. I've looked at various logs on the db server, but none of them
seem to contain the information I'm looking for, so I'm sort of lost there.

-D


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [REPOST] Can't get apache and Tomcat to talk

2006-09-19 Thread brian bay

sorry I failed to mention that I was running tomcat5.5.17...  minor details.

On 9/15/06, Rob Tanner [EMAIL PROTECTED] wrote:


 Mark,

Thank you.  That took care of the problem.

-- Rob


On 09/15/2006 05:28 PM, Mark Thomas wrote:

Rob Tanner wrote:

 Brian,

Adding the Listener ... / parameter you suggest  generates a
java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig.
Where should I find the jarfile containing that class?  It's new to me
and I know I'm not using that listener in my install of Tomcat-4.1.31 on
another machine.  And when I modify the AJP/1.3 connector to include the
line: protocol=AJP/1.3.  I presume the two errors are related.  Is
this something new in 4.1.32?

 There is a bug in 4.1.32 that breaks the configuration of the AJP
connector. Use 4.1.34 instead. That will work with your 4.1.31 config.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Down to a single error

2006-09-19 Thread Kevin Mullin

Thank to all who have been watching
the problems I encountered. Thanks to a recent reply, I determined
that I had bad copy of tomcat in the tar.gz download from apache. I
download the .zip version and everything was fine. Well, almost everything.
I no longer got the class not found exceptions looking for CompressionFilter.
I'm down to a single error, and that is:

SEVERE: StandardServer.await: createÝ8005¨:
 
java.net.BindException: EDC5111I Permission
denied.  

The first SEVER message I'm assuming
was caused by the second message, the bind failure. Now, tomcat listens
on port 808, so I assumed this meant that port 8080 was in use, but its
not. I used netstat to verify this. Does this message indicate
something else?






Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]



Re: Down to a single error

2006-09-19 Thread David Smith

Don't forget 8005 -- the shutdown port.  That has to be clear as well.

--David

Kevin Mullin wrote:


Thank to all who have been watching the problems I encountered. 
 Thanks to a recent reply, I determined that I had bad copy of tomcat 
in the tar.gz download from apache.  I download the .zip version and 
everything was fine.  Well, almost everything.  I no longer got the 
class not found exceptions looking for CompressionFilter.  I'm down to 
a single error, and that is:


SEVERE: StandardServer.await: createÝ8005¨:  
java.net.BindException: EDC5111I Permission denied.  

The first SEVER message I'm assuming was caused by the second message, 
the bind failure.  Now, tomcat listens on port 808, so I assumed this 
meant that port 8080 was in use, but its not.  I used netstat to 
verify this.  Does this message indicate something else?

*


Kevin Mullin
Sr. Analyst
IBM Corporation**
(206) 345-7068
[EMAIL PROTECTED]   http://www.ibm.com/ibm/values/





--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSessionId and Google

2006-09-19 Thread Simon Pink

Thanks, I could try this, but I was kind of hoping for a more general Tomcat
solution (if there is one). I know Resin has a 'enable-url-rewriting' flag
that you can set in it's config.

I guess the question still is, does anyone definitively know if jsessionid
does have negative impact on Google results/rankings? It does seem that
Google thinks it is a bad idea.

Regards,
Simon.

On 9/20/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:


couldn't you simply create a HttpServletResponseWrapper object in a
filter, this object could overwrite the method that encodes the URL and
remove the JSESSIONID from it

Filip


Simon wrote:
 Hi,

 According to the Google Information for Webmasters page, it appears
 that Google will not index/crawl pages correctly with the JSessionId
 appended to the URL, ie.:

http://www.stroke-education.com/product/ProductList.do;jsessionid=A2F6590DAC37E55651060DE6922B972D.tomcat36


 The guidelines can be found at:
 http://www.google.com/intl/en/webmasters/guidelines.html. The key part
 of the page is:
 Allow search bots to crawl your sites without session IDs or arguments
 that track their path through the site. These techniques are useful
 for tracking individual user behavior, but the access pattern of bots
 is entirely different. Using these techniques may result in incomplete
 indexing of your site, as bots may not be able to eliminate URLs that
 look different but actually point to the same page

 Search engine rankings are very important for the site (to sell
 products :), and it has not indexed my pages correctly just like it
 said it wouldn't in the paragraph above. I have tried adding a
 sitemap.xml.gz file to help Google along, but to no avail.

 The question is, is it possible to disable cookieless session tracking
 for search engine bots? If so how? If not, is it possible to turn off
 cookieless session tracking all together? Yes, unfortunately at the
 crux of it, search engine rankings are more important than users with
 cookies disabled for this particular site.

 Thanks, and Kind Regards,
 Simon.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Upgrade from 2000 to 2003

2006-09-19 Thread Steven Bell
I use the redirector version 1.2.15 or 1.2.14,  with a binary installer 
(msi.)  1.2.18 does not appear to have a .msi installer yet.
I have Tomcat 5.5.17 running on several windows servers, some with IIS 
6, some with 5 and one with 5.1 (my windows xp system.) On all, I used 
the .msi installer.

I would recommend using 1.2.15 for ease of setup.

Here is a short guide to getting started.
First, download the msi package and run it. This will install the files, 
and make some necessary registry entries.

Then:
Steps in IIS (these steps are generally done for the default site by the 
installer.):
1a. Create a virtual directory called jakarta. Make sure it points to 
the bin directory from the install (typically this is x:\Program 
Files\Apache Software Foundation\Jakarta Isapi Redirector\bin)

2a. Add an ISAPI filter to the site.

Steps in the x:\Program Files\Apache Software Foundation\Jakarta Isapi 
Redirector\conf directory.
1b. Configure the worker files. (I can provide examples if you need some 
Windows specific)

2b. Configure the URIMap file. (Again I can provide examples.)

Steps to get everything working:
1c. Restart Tomcat (make sure that in server.xml you have uncommented 
the redirector connector, and specified a port (typically it points to 
8009). This port should be the same as the port for the worker in worker 
file in step 1b.

2c. Restart IIS Admin in Control Panel  Administration  Services.

You should now be able to browse over to any mapped url. I haven't tried 
to get the administration and manager web apps to work, figuring the 
less accessible they are the better off I am. Whenever you make a change 
to the files in 1b or 2b, you must restart IIS Admin (or world wide web 
publishing) for the changes to take effect.


In the system registry, HKey_Local_Machine\Software\Apache Software 
Foundation\Jakarta Isapi Redirector\1.0 there are several useful entries.
1. log_file - this key holds the file path to your log file. Very 
useful for tracking down why a redirect may not be working.
2. log_level - I set this to debug during setup and configuration. The 
most verbose output, the most detail. After everything is working, I 
change it to Info.

3. extension_uri, names the dll for redirection. I wouldn't change this.
4. worker_file, path to worker file. I wouldn't change this.
5. worker_mount_file, path to the URIMap file. I wouldn't change this.

I hope this helps out. If you have any questions, or would like to see 
some sample configs, please let me know I would be happy to share the 
information with you.


Steven.



Charles Morris wrote:

***
Your mail has been scanned by InterScan VirusWall.
***-***


Hi guys,
I am new to tomcat.

Trying to install TOMCAT 5.5.17 onto a Windows Server 2003 with Java
1.5.0_06 and a connector of 1.2.18.  We are using the Microsoft Web Services
(IIS 6.0).

Can't seem to find any complete installation instructions, specifically
regarding configuring the all the .properties and .xml files in the conf
directory as well as the registry.

I have been all over the apache web site and found some documentation but it
pertains to connector 2.0. the documentation talks about
isapi_redirector2.dll.  Some of the properties files were not included in
the download, just pathetic download.  I think I have all the pieces
downloaded now but I need some clear documentation about installing and
configuring it.

Any help would be appreciated.

--
Charles Morris
Programmer Analyst
Vertical Market Software
Pensacola, FL  32514
Phone: 850-476-0094





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]