RE: Load Balancing Configuration

2007-02-06 Thread Narayanaswamy, Mohan

All the hardware load balancers are nowadays supporting SSL support.  It
uses hashing to support sticky session.

Check Alteon Load Balancer Home Page.

Regards,
Mohan

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 07, 2007 3:19 AM
To: Tomcat Users List; Rob Bugh
Subject: Re: Load Balancing Configuration

On 2/6/07, Rob Bugh [EMAIL PROTECTED] wrote:

 If all of the incoming connections are over SSL can a harware load
 balancer handle this?

Dunno -- my experience was a while back with Cisco Local Directors, and
SSL was never a requirement.

Hopefully someone else can chime in with relevant experience. Sorry!

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

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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 OutOfMemoryException PermGen

2007-01-24 Thread Narayanaswamy, Mohan

Have you tried - nntp://news.gmane.org/gmane.comp.jakarta.tomcat.user
?

-Original Message-
From: Ondrej Zizka [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 5:35 PM
To: users@tomcat.apache.org
Subject: Re: Tomcat OutOfMemoryException PermGen

Sorry for posting this twice, that was by accident.

By the way, does this mailing list have some newsgroup mirror so I
could use it through NNTP?  Thanks, Ondra
  - Original Message -
  From: Ondrej Zizka
  To: users@tomcat.apache.org
  Sent: Tuesday, January 23, 2007 12:46 PM
  Subject: Tomcat OutOfMemoryException PermGen
  ...
This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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 JDK upgrade

2007-01-17 Thread Narayanaswamy, Mohan

Dear All,

We are running more than 20 applications in shared environment (Same H/W
+ Linux + JDK1.4_2 + Apache + Tomcat/4.1.29-LE-jdk14 + Struts).

Questions 1) Is there any document or guidelines for migrating of web
applications using JDK1.4_2 to JDK1.5. I am searching Java sdn and Java
platform migration guide, but they are not really very useful related to
web application.

Couple of things I came across, Old code with enum as variable should be
refactored with different name and Comparable Interface in JDK1.5 is not
compatible with JDK1.4_2 because of Generic. Also assumed that we need
to change to exact type wherever we used java.lang.Object as variable
type. (Is Generics causing all the trouble, Generics going to be our
nightmare).

I am expecting some more guidelines like above (if possible migration
approach), Some of the open source project should have some guidelines,
but I am not able to grep it. Please help me by sending the appropriate
links.

---

Questions 2) Is there anything I should carefully consider to migrate
from Tomcat/4.1.29-LE-jdk14 to Tomcat_5.5.20?

---

Questions 3) Will I get any performance gain by the above migration?

Regards,
Mohan
This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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 JDK upgrade

2007-01-17 Thread Narayanaswamy, Mohan

1. Since it is shared environment, we have to allow JDK1.5 features for
future applications - So We have to compile them against JDK1.5_b10 (We
don't like to run multiple Tomcat JVM as of now)

Can you share past experiences in migrating JDK1.4 to JDK1.5 - projects.

2. Yes, We came across few codes are written against specific parser,
trying to package those parsers along with web application.

Regards,
Mohan

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 17, 2007 4:40 PM
To: Tomcat Users List
Subject: RE: Tomcat  JDK upgrade

 From: Narayanaswamy, Mohan
 Questions 1) Is there any document or guidelines for migrating of web
 applications using JDK1.4_2 to JDK1.5. I am searching Java sdn and
 Java platform migration guide, but they are not really very useful
 related to web application.

 Couple of things I came across, Old code with enum as variable should
 be refactored with different name and Comparable Interface in
 JDK1.5 is not
 compatible with JDK1.4_2 because of Generic. Also assumed that we need

 to change to exact type wherever we used java.lang.Object as variable
 type. (Is Generics causing all the trouble, Generics going to be our
 nightmare).

 I am expecting some more guidelines like above (if possible migration
 approach), Some of the open source project should have some
 guidelines, but I am not able to grep it. Please help me by sending 
 the appropriate links.

Just a quick question: Do you plan to:

- Upgrade Tomcat but continue to run the same compiled webapps (still
compiled under 1.4 or with 1.4 compatibility turned on in a later
compiler), or

- Upgrade Tomcat and compile the webapps with the 1.5 compiler in 1.5
mode?

These are two different options.  If you are concerned about your
webapps not compiling under 1.5, you may wish to go with the first
option - at least while you migrate the Tomcat version!

 Questions 2) Is there anything I should carefully consider to migrate
 from Tomcat/4.1.29-LE-jdk14 to Tomcat_5.5.20?

Library versions, especially those of the XML parser if you're using
that.  It's very easy to introduce dependencies on a specific XML parser
or parser version without intending to.

 Questions 3) Will I get any performance gain by the above migration?

There's been a lot of optimisation for 5.0 and 5.5.  You should expect
to see performance improvements in terms of memory use and request
overhead.  However, your webapp code is almost always the largest part
of any request's time and space cost, and Tomcat can't optimise that 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]

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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 PermGen OutOfMemoryException solution?

2007-01-17 Thread Narayanaswamy, Mohan

Question on point #4,
Do you mean that tomcat(or Java) will have multiple copies of the same
class, assuming same jar shipped with different applications, Can't
tomcat class loader identify  avoid them?

If there is a web hosting company, multiple application may use the same
jar (say struts1.x.jar) - so does JVM keep multiple copies of the class
in PermGen?

Kindly clarify me.

Regards,
Mohan


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 18, 2007 11:25 AM
To: Tomcat Users List
Subject: Re: Tomcat PermGen OutOfMemoryException solution?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ondrej,

Ondrej Zizka wrote:
 Suppose there is a school server where students (re)deploy their apps,

 each of which's classes definitions take about five to ten MB.
 Now we have dozens of students, who will deploy at least once, but
 rather several times a day. That means the server has to be restarted
 every few hours.

I was recently taken to task for asserting that Java holds on to
outdated java.lang.Class objects even after the ClassLoader is
discarded. (This might happen when a webapp is reloaded).

It turns out that I'm an old war horse and that problem was fixed a very
long time ago.

If you are having memory problems it is more likely that one of the
following is occurring:

1. You have one or more misbehaving webapps (they are retaining memory
   longer than they should).
2. You are running a very old and/or buggy version of Java
   and/or Tomcat.
3. The webapp reload procedure is not working as you expect.
4. You have tons of libraries that are being individually reloaded
   by each web application. Take the advice of your article and
   provide shared versions of many popular libraries.

 There is no way to automatically flush the PermGen somehow? Or, under
 which conditions can the GC collect undeployed app's classes data?

I'm pretty sure you can't do that unless you write some JNI code, and
you might not even be able to do it even then.

Another poster suggested that you have your students setup their own
Tomcat environments. I completely agree ;)

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFrwuj9CaO5/Lv0PARApS6AJ9a0NJROkyHw94AtRNMV7mHtravOgCfWCON
Jx0dBNtvOrY2aq/9v/CFBNI=
=j14Q
-END PGP SIGNATURE-

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

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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: web application - student need help Thank You's

2007-01-08 Thread Narayanaswamy, Mohan

Mike,

Using rdbms table for authentication isn't bad, but make sure you store
only the hashed password, So even DBA can't read them. When user enters
the password again hash it and compare with the db hashed password.

Make sure you enabled https, so that even network snuffers can't read
them.

In general, Organizations normally uses LDAP service to store password,
so every application can be accessed using same user-id and password (Or
using some sort of SSO application), If you need to know more about it,
dig-out openldap.

Storing roles (or permissions) in session is good, so it reduces the db
operation.

Hopefully you will also get more answers soon :). I am also curious to
know more about it from others.

Regards,
Mohan



-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 09, 2007 9:17 AM
To: users@tomcat.apache.org
Subject: RE: web application - student need help Thank You's

I just want to thank everyone who provided input to my question.  I am
going to try to set up the connection pool.

By the way. I have another question about authentication to websites.

For authentication, currently I bascially have a Person table, where
one field is your permission.

example  table person
   username = bob,
   password = wawawawa
   permission level = admin

So during login, after a person enters his username and password,  it
will check to see if the username exists in the person table.

If it does exist, it will verify the password and return his permission.

That permission is stored in the session, and each jsp page it will
check to see if his permission is correct.  If a person's permission is
wrong, it will redirect you to another page.

Although this method works, I dont know if it is very professional.
Does anyone have any ideas how to set up a professional style
authentication system?  Something a business would use where exposing
customer information is a liability.

mike

_
Communicate instantly! Use your Hotmail address to sign into Windows
Live Messenger now. http://get.live.com/messenger/overview


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

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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 disable default servlet?

2007-01-08 Thread Narayanaswamy, Mohan

I need to disable default servlet to restrict serving the static pages.

We use shared Apache+Tomcat, We need apache to serve static and tomcat
for dynamic, By no way tomcat should provide static resources.

Regards,
Mohan
This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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 disable default servlet?

2007-01-08 Thread Narayanaswamy, Mohan

I have removed the entry, but I am just getting 404 error alone for
dynamic and static request.

Regards,
Mohan

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 09, 2007 12:16 PM
To: Tomcat Users List
Subject: Re: How to disable default servlet?

On 1/8/07, Narayanaswamy, Mohan
[EMAIL PROTECTED] wrote:

 I need to disable default servlet to restrict serving the static
pages.

 We use shared Apache+Tomcat, We need apache to serve static and tomcat

 for dynamic, By no way tomcat should provide static resources.

If you've configured Apache httpd properly, Tomcat won't get any such
requests, eh? :-)

But you can also look at $CATALINA_HOME/conf/web.xml for the default
servlet's servlet-mapping...

HTH,
--
Hassan Schroeder  [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]

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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: Presentation on Tomcat

2007-01-04 Thread Narayanaswamy, Mohan

 
http://www.google.co.in/search?hl=enas_qdr=allq=Tomcat+filetype%3Appt+
inurl%3Aedumeta= - 908 valid presentations :) .

Regards,
Mohan

-Original Message-
From: Vijay Hatewar [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 04, 2007 3:10 PM
To: 'Tomcat Users List'
Subject: RE: Presentation on Tomcat

I am not sure if I should take effort, answering your question but
still...
Jerome ..
Yes you are right ,  I perhaps made very simple request. But is it fair
and right ,  you putting every Indian in the same bracket.

I believe everything is getting outsourced in India since long time and
we are doing good. If we had been as bad as you have mentioned this
process would not have had continued.
I believe this is a help group, and nobody have told me for what is the
level of help which this group can offer.

If you find this as very simple, not worth of concern you better ignore
it.
I don't really see you helping everyone and answering every
appropriate
question. What I can clearly see is you are High Time  frustrated person
who can not do anything but like a Old witch cursing a beautiful dream.

Regards
Vijay

-Original Message-
From: The Schneider Company [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 04, 2007 2:50 PM
To: users@tomcat.apache.org
Subject: Re: Presentation on Tomcat

On 1/4/07, Vijay Hatewar
[EMAIL PROTECTED] wrote:
 Hi All

 I am very new to Tomcat and working as a  QA
Engineer , I have to deliver
 presentation on How web application can be deployed
using tomcat , different
 configuration files and how they are used .
basically I want to cover high
 level functional aspect .

 Please help me  , as I am hardly acquainted to
tomcat

I really find it funny that so many jobs are being outsourced to
Bangalore and all those other places.
The reason we are told is always the same one:

Highly qualified ppl working there fore little money.

Now, what do we see here on the list? Guys who don't even bother to read
the docs, begging for help on the most simple questions, on the same
time showing off when it comes to outsourcing-contracts how smart and
capable they are.

Don't get me wrong, but do you really help that anyone here is trying to
help you killing his / her job?

Show at least a little effort!

SCNR

Jerome


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


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is
the property of Persistent Systems Pvt. Ltd. It is intended only for the
use of the individual or entity to which it is addressed. If you are not
the intended recipient, you are not authorized to read, retain, copy,
print, distribute or use this message. If you have received this
communication in error, please notify the sender and delete all copies
of this message. Persistent Systems Pvt. Ltd. does not accept any
liability for virus infected mails.

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

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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 switches off all the time

2006-12-07 Thread Narayanaswamy, Mohan

Is there any firewall running in your machine?

-Original Message-
From: Andreas Hess [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 5:20 PM
To: users@tomcat.apache.org
Subject: tomcat switches off all the time

I`m trying to install the tomcat 5.5.12 version on my computer, but I can not 
run tomcat automatically by changing the service-properties from manual to 
automatic. The tomcat service switches off after about 0.5 minutes. Even if i 
restart the computer, tomcat does not switch on again automatically.

Do you have any idea what the bug for this problem is?
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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: RE: RE: tomcat switches off all the time

2006-12-07 Thread Narayanaswamy, Mohan

Do you  find any clue from the Tomcat Logs?

Regards,
Mohan

-Original Message-
From: Andreas Hess [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 5:53 PM
To: Tomcat Users List
Subject: Re: RE: RE: tomcat switches off all the time

Unfortunately the tomcat still switches off although I turned of the firewall.

 Original-Nachricht 
Datum:  Thu, 7 Dec 2006 15:10:37 +0530
Von: Narayanaswamy, Mohan [EMAIL PROTECTED]
An: Tomcat Users List users@tomcat.apache.org
Betreff:  RE: RE: tomcat switches off all the time


 Yes, Turn of the Windows Firewall and test it. Firewall blocks when 
 Tomcat tries to listen a port.

 Regards,
 Mohan

 -Original Message-
 From: Andreas Hess [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 07, 2006 5:38 PM
 To: Tomcat Users List
 Subject: Re: RE: tomcat switches off all the time

 yes, I`m using the Windows Firewall... does a firewall have any
 influence on the activity of the tomcat-service?
  Original-Nachricht 
 Datum:  Thu, 7 Dec 2006 14:57:56 +0530
 Von: Narayanaswamy, Mohan
 [EMAIL PROTECTED]
 An: Tomcat Users List users@tomcat.apache.org
 Betreff:  RE: tomcat switches off all the time

 
  Is there any firewall running in your machine?
 
  -Original Message-
  From: Andreas Hess [mailto:[EMAIL PROTECTED]
  Sent: Thursday, December 07, 2006 5:20 PM
  To: users@tomcat.apache.org
  Subject: tomcat switches off all the time
 
  I`m trying to install the tomcat 5.5.12 version on my computer, but
  I can not run tomcat automatically by changing the
  service-properties from manual to automatic. The tomcat service
  switches off after about
 0.5 minutes.
  Even if i restart the computer, tomcat does not switch on again
 automatically.
 
  Do you have any idea what the bug for this problem is?
  --
  Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
  Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
 
  
  - To start a new topic, e-mail: users@tomcat.apache.org To
  unsubscribe,
  e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  This email is confidential. If you are not the addressee tell the 
  sender immediately and destroy this email without using, sending or
  storing it. Emails are not secure and may suffer errors, viruses, 
  delay, interception and amendment. Standard Chartered PLC and
  subsidiaries
  (SCGroup) do not accept liability for damage caused by this email
  and may monitor email traffic.
 
 
  
  - To start a new topic, e-mail: users@tomcat.apache.org To
  unsubscribe,
  e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 --
 Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
 Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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

 This email is confidential. If you are not the addressee tell the
 sender immediately and destroy this email without using, sending or 
 storing it. Emails are not secure and may suffer errors, viruses,
 delay, interception and amendment. Standard Chartered PLC and
 subsidiaries
 (SCGroup) do not accept liability for damage caused by this email 
 and may monitor email traffic.


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

--
Ein Herz für Kinder - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de 
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!

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

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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: Oracle JDBC OCI driver access in Tomcat

2006-11-30 Thread Narayanaswamy, Mohan

Below information may be useful to you.

abstract of oracle technical docs :
JDK Driver File Name JDBC Version
---  
1.1 classes111.zip 7.3.4 -
1.2 classes12.zip 8.1.6 -
1.3 classes12.zip 9.2 -
1.4 ojdbc14.zip 9.2 -

If you use oracle 9i and JDK 1.4 you must use ojdbc14.jar (and not
ojdbc14.zip as oracle says), classes12.zip also doesn't work.

Regards,
Mohan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, December 01, 2006 2:45 AM
To: users@tomcat.apache.org
Subject: Oracle JDBC OCI driver access in Tomcat





Hi,

I have a piece of code which I have to run in tomcat 5.5.7. This code is
using Oracle JDBC OCI driver for database access. For use of OCI driver,
the native library libocijdbc10.so has to be included.

When I run this code snippet as a standalone Java programme (standalone
JVM), I do the following:

a) Give the command line option -d64 while running the standalone
programme.
b) Set the LD_LIBRARY_PATH to include the path of libocijdbc10.so and
libocci.so

LD_LIBRARY_PATH=/opt/common/oracle_inst_client/instantclient_10_2

And

ls /opt/gmlc/common/oracle_inst_client/instantclient_10_2 ==

classes12.jar
libnnz10.so
libociei.so
ojdbc14.jar
libclntsh.so.10.1
libocci.so.10.1
libocijdbc10.so

The standalone JVM works fine with these changes.

Now incase of tomcat, I have set the following parameters in
catalina.sh
:

JAVA_OPTS=-d64 -
Djava.library.path=/opt/common/oracle_inst_client/instant
client_10_2

CATALINA_OPTS=-d64
-Djava.library.path=/opt/common/oracle_inst_client/ins
tantclient_10_2

I have copied all the jars and native libraries in
$CATALINA_HOME/shared/lib and $CATALINA_HOME/common/lib

But the same peice of code when deployed in tomcat (with above mentioned
settings) is not working.

Pls suggest a way out - some way to start tomcat application with -d64
option.

Thanx and Regards,
Gurpreet.



***  Aricent-Unclassified   ***

DISCLAIMER: This message is proprietary to Aricent  and is intended
solely for the use of the individual to whom it is addressed. It may
contain privileged or confidential information and should not be
circulated or used for any purpose other than for what it is intended.
If you have received this message in error, please notify the originator
immediately. If you are not the intended recipient, you are notified
that you are strictly prohibited from using, copying, altering, or
disclosing the contents of this message. Aricent accepts no
responsibility for loss or damage arising from the use of the
information transmitted by this email including damage from virus.




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

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


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



Request.getServerName() - Configuration

2006-11-29 Thread Narayanaswamy, Mohan

Dear All,

How to configure request.getServerName() to return based on the url?

--

Could someone of you help me to find all the combination (Tomcat 4.1.x +
mod_jk + Apache) of configuration for server name value.

We have following configuration in the server.

In httpd.conf
ServerName sampleserver.com:80

VirtualHost _default_:443
ServerName sampleserver.com:80
/VirtualHost _default_

But I am accessing application using MyServer.com (I have entry for
MyServer.com in hosts files), But When I access the application using
http://MyServer.com/jsp/showparam.jsp - it's request.getServerName()
returns sampleserver.com.

How can I force tomcat to return MyServer.com instead of
sampleserver.com for request.getServerName().

---

Because there is one more setup available, where it exactly returns
based on the requested domain, It returns request.getServerName value as
MyServer.com, all the configurations are same (httpd.conf, server.xml
are similar).

Regards,
Mohan


This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


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



Connector question

2006-11-29 Thread Narayanaswamy, Mohan

In one of my development server, we have the following two entry, Do we
need both of the below entries to support Apache + Tomcat4.1.x?

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009
minProcessors=50 maxProcessors=800 enableLookups=false
acceptCount=10 debug=0/

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8010 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8010 minProcessors=50 maxProcessors=800 enableLookups=false
redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


---

In http://tomcat.apache.org/tomcat-4.1-doc/config/connectors.html -
org.apache.coyote.tomcat4.CoyoteConnector has mentioned as HTTP
connector for modern browser, but when I send request to port 8010, I
did not get any valid output on my browser.

Regards,
Mohan
This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


-
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: Deploying apps outside of the Tomcat root

2006-11-26 Thread Narayanaswamy, Mohan

Place a context entry in server.xml and let its docBase point your
custom folder.

Regards,
Mohan

-Original Message-
From: Richard K Miller [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 26, 2006 10:21 AM
To: users@tomcat.apache.org
Subject: Deploying apps outside of the Tomcat root

Hi, I'm new to Tomcat and would appreciate any help with the following
question:

I have Tomcat 6 running on my Mac.  I can access http://localhost:
8080/docs, /examples, etc.

However, I would like to deploy a project in my home folder.  This
folder contains a WEB-INF folder and all the jsp files.  How can I
switch Tomcat to point to /Users/me/dev/myproject/web instead of /usr/
local/tomcat/webapps where it currently is?  (I can't move my project
into the webapps folder because it needs to be at the web root and I'd
prefer to keep it separate from the Tomcat installation anyway.)

Thanks for your help.

Best regards,
Richard



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

This email is confidential. If you are not the addressee tell the sender 
immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer 
errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) 
do not accept liability for
damage caused by this email and may monitor email traffic.


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