RE: tomcat detecting http header

2005-09-20 Thread Murugan Pal
You can also add this routine within a code block at higher trace levels.  
This way you can turn on this routine for debugging or logging purposes and 
don't have to incur additional overheads during runtime.

Murugan  

 Hi, 
 
 When developing web app code I tend to enumerate on the headers coming in.
 
 Have a look at:
 public java.util.Enumeration getHeaderNames();
 
 So:
 
 // get the header names
 
 Enumeration ee = request.getHeaderNames();
 
 // then iterate through them
 
 for(;ee.hasMoreElements();){
   String header = (String)ee.nextElement();
   System.out.println(header +  =  + request.getHeader(header));
 }
 
 It's just good to get an overall picture of what is being  send in the 
 headers.  As for why the value is null, I don't know 100% but this link may 
or 
 may not help.
 
 http://forum.java.sun.com/thread.jspa?threadID=507098messageID=2404807
 
 
 
 I hope this helps in your quest.
 
 Kind regards
 Jason
 
 --
 Jason Bell
 Lead Architect, SpikeSource Europe
 e: [EMAIL PROTECTED]
 w: http://www.spikesource.com
 b: http://jasonbell.blog-city.com
 m: +44 (0)787 529 2693
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

Murugan Pal
Founder  CTO 
Spikesource, Inc.
1400 Seaport Blvd., South Bldg. #350,
Redwood City, CA 94063
Phone: 650 241 4006
www.spikesource.com

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



Realm tomcat

2004-02-20 Thread Pal Rouvillain
hello, 
 
I need some help on realm and tomcat
 
Here's my problem
 
I want to use tomcat to give permissions to certains people to access to my 
application via url.
I've got an external authentification server. This server can tell if my couple 
login/password is ok and return the information on the user (user group role).
 
I think so that the realm (of the authorised person) comes with the authentification ( 
can be xml). 
 
And I don't now how to configure tomcat in order to say here is my realm.
 
Can anybody give me a way to do it?
 
Regard's
 
Secam


-
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

RE: I get an exception java.io.FileNotFoundException: Tomcat 4 ss l

2002-02-22 Thread Pal, Anshu

Look at the keystoreFile attribute. You have 2 quotes () there in the
beginning.. If that is not a typo it may be the problem.

Hope it helps

Anshu Pal

-Original Message-
From: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 8:38 AM
To: tomcat
Subject: I get an exception java.io.FileNotFoundException: Tomcat 4 ssl


When Tomcat -4.0.2 starts up I get an exception 
java.io.FileNotFoundException:

System cannot find file etc etc I have added a keystoreFile attribute 
keystoreFile=C:\WINDOWS\Profile\chucka\.keystore

It still claims it can't find it - Thus basically how do i add it to the 
keystoreFile attribute as i am missing something quite obvisouly.

C:\WINDOWS\Profile\chucka\.keystore is the absolute path of my 
.keystore File

 !-- Define an SSL HTTP/1.1 Connector on port 8443 () --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port= minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false
keystoreFile=C:\WINDOWS\Profile\chucka\.keystore
keystorePass=test123
protocol=TLS/
/Connector

Any suggestions
Cheers Chuck Amadi
Systems Programmer


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JDBC OCI Client and Tomcat

2002-01-30 Thread Pal, Anshu


I had a question regarding the JDBC OCI driver and tomcat

OS Solaris 
Tomcat 3.3 (standalone mode)

I want to use the JDBC OCI driver  . For that I need to have the
libocijdbc.so and some other jars
 (class.jar class111.jar etc) files available to tomcat  . I have put the
jar files in the lib/common directory . Where should I put the libocijdbc.so
and other shared objects if any.

To put it in another way if the LD_LIBRARY_PATH variable is set in the
environment does tomcat recognize it ?


Thanks
Anshu


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JDBC OCI Client and Tomcat

2002-01-30 Thread Pal, Anshu

Please ignore this email.I think I have found the answer.

Thanks
Anshu
-Original Message-
From: Pal, Anshu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 12:23 PM
To: 'Tomcat Users List'
Subject: JDBC OCI Client and Tomcat



I had a question regarding the JDBC OCI driver and tomcat

OS Solaris 
Tomcat 3.3 (standalone mode)

I want to use the JDBC OCI driver  . For that I need to have the
libocijdbc.so and some other jars
 (class.jar class111.jar etc) files available to tomcat  . I have put the
jar files in the lib/common directory . Where should I put the libocijdbc.so
and other shared objects if any.

To put it in another way if the LD_LIBRARY_PATH variable is set in the
environment does tomcat recognize it ?


Thanks
Anshu


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Very basic problem

2002-01-02 Thread Pal, Anshu

Go to the directory where your test.class file is created .

Make sure that the test.class file is present

Type java test  in that directory.

Do you still get the error message ?

Thanks
Anshu Pal
-Original Message-
From: amol [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 10:22 AM
To: Tomcat Users List
Subject: Re: Very basic problem


you have to include JAVA_HOME in your autoexec.bat file
If the problem is not solved

just say java in dos promt and see what comes

- Original Message -
From: Jack Li [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 02, 2002 8:55 PM
Subject: Very basic problem


 Hello All,
 I have a very basic problem. I try to an java application under DOS
(Windows
 operating system is windows 2000 server). I got error:

 java.lang.NoClassDefFoundError: test.

 The application is a sample from text book, very simple:

 class test {
   public static void main(String args[]) {
 System.out.println(Hello, World!);
   }

 }

 I run it by java test. I installed jdk1.3, and setup the CLASSPATH point
 to d:\jdk1.3;d:\jdk1.3\bin;

 what do I missed ?

 Thanks,
 Jack


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Weird Tomcat 4.0 class exception?

2001-12-12 Thread Pal, Anshu

I had a similar problem with my servlet once. Turned out that I did not put
the class in my import statement.

Once I put the import statement ( import packagename.classname;)
it worked fine.

Hope it helps

Anshu 

Proprietary/Confidential Information belonging to CGI may be contained
in this message. If you are not a recipient indicated or intended in
this message (or responsible for delivery of this message to such
person), or you think for any reason that this message may have been
addressed to you in error, you may not use or copy or deliver this
message to anyone else. In such case, you should destroy this message
and kindly notify the sender by reply e-mail.


-Original Message-
From: Shashi Dookhee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 12:24 PM
To: [EMAIL PROTECTED]
Subject: Weird Tomcat 4.0 class exception?


 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

I have recently built and deployed Tomcat 4.0.1.  Everything seems to
go well when starting it, and I can access the examples, etc, but I
have a very weird problem when deploying my own application (which
runs fine under Tomcat 3.2):

I have a series of JSP and class files which are deployed as
followed:

webapps/jsp -- contains JSP files
webapps/jsp/WEB-INF/classes -- contains class files

My JSP files attempt to access the classes with the following
directive:

jsp:useBean id=someBean scope=session class=SomeBean /

When this gets executed, I get a ClassNotFound exception, even though
SomeBean.class is in the classes directory...  BUT the weird part is
that it doesnt look for SomeBean - it actually looks for
org.apache.jsp.SomeBean!!  (if I put the SomeBean.class in the
org.apache.jsp.* framework, it will find it - but then of course
complain that SomeBean.class is not of the required type!).

I know I am probably missing something pretty small - but I cant find
it!

Anyone got any ideas?

Thanks

Shashi Dookhee
Head of IT Infrastructure

e-mail:  [EMAIL PROTECTED]
Telephone (Direct Line):+44 (0)20 7298 8222

-BEGIN PGP SIGNATURE-
Version: PGP 7.1

iQA/AwUBPBeSrB81+wdHSEUlEQLLlACgq2zLyQPiwas5n6M8r3u9ER4GCVAAoNyQ
YtwYSGZM36BE8K7DFNVz0L1B
=MiIa
-END PGP SIGNATURE-


===

Traffic Proximity Limited
191 Old Marylebone Road
London
NW1 5DW
United Kingdom
Registered number: 3164767
Registered in England

Tel:+44 (0) 20 7298 8200
Fax:+44 (0) 20 7298 8201


This email its contents and any files or images with it are intended solely
for the addressee(s) and are confidential. If you have received this email
in error you may not copy or use the contents, attachments or information in
any way. Please destroy it and contact the sender on the number printed
above, via the Traffic Proximity switchboard or via email return.

DISCLAIMER
Material contained in this email may be copyright material of 
Traffic Proximity or protected by other intellectual property rights. It
may only be reproduced with the express permission of Traffic Proximity. 
Traffic Proxmity does not accept responsibility for any changes made to
this email by unauthorised parties after it was sent. Whilst Traffic
Proximity runs antivirus software on all Internet emails it is not
liable for any loss or damage caused by an infected email. The recipient
is advised to run their own antivirus software. All information contained
in this email has been prepared using information believed by the author
to be reliable and accurate, but Traffic Proximity makes no warranty as
to accuracy and completeness. Any opinions expressed in this email are
those of the author and do not necessarily reflect the opinions of Traffic
Proximity or its affiliates.


===


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




question

2001-10-24 Thread Pal, Anshu

Hi!
I recently installed Tomcat ( ver 3.3) . Where should I put the non -servlet
class files required by the servlets . I tried putting them under
WEB-INF/classes directory. I get a java.lang.NoClassDefFoundError Exception.
I tried putting them in the WEB-INF lib directory . doesn't work either.

Any suggestions ?
TIA


Anshu Pal

Proprietary/Confidential Information belonging to CGI may be contained in
this message. If you are not a recipient indicated or intended in
this message (or responsible for delivery of this message to such person),
or you think for any reason that this message may have been
addressed to you in error, you may not use or copy or deliver this message
to anyone else. In such case, you should destroy this message
and kindly notify the sender by reply e-mail.




mod_jserv.so compiled

2001-10-22 Thread Pal, Anshu

Hi ,
Does anyone have a compile version of mod_jserv.so.
The operating system is Solaris 2.6 . it is running on a sparc.

Thanks in Advance
Anshu Pal


Proprietary/Confidential Information belonging to CGI may be contained
in this message. If you are not a recipient indicated or intended in
this message (or responsible for delivery of this message to such
person), or you think for any reason that this message may have been
addressed to you in error, you may not use or copy or deliver this
message to anyone else. In such case, you should destroy this message
and kindly notify the sender by reply e-mail.


-Original Message-
From: Marjou Xavier [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 11:26 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Cannot load mod_webapp.so into server: __lshrdi3: reference
s ymbol not found


Hello,

FYI : I also have the same pb with: webapp-module-1.0-tc40-src.tar.gz,
libtool 1.4.2 and gcc 2.95.2 on Solaris 8 on sparc processor

 mod_webapp_pb.txt 
Xavier Marjou

 -Original Message-
 From: Pier Fumagalli [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, October 15, 2001 7:50 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Cannot load mod_webapp.so into server: __lshrdi3:
reference symbol not found
 
 eq at [EMAIL PROTECTED] wrote:
 
  
  Hi,
  
  I'm trying to get mod_webapp to work so that I can use Tomcat 4.0 with
  Apache 1.3.20. I'm using Solaris 8 on Sparc 5 and I've built apache with
  a Sun C compiler, and I'm using the Tomcat binary.
  
  If I use the binary from:
  
  http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0/bin/
  
  I get the following message when I do apachectl configtest:
  
  Syntax error on line 206 of /usr/local/apache/conf/httpd.conf
  Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
  ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file
  /usr/local/apache/libexec/mod_webapp.so: symbol __lshrdi3: referenced
  symbol not found
  
  
  If I try to build the module, the configure part works fine, but when I
  get to the make I get a lot of errors related to pr_warp.c:
  
  pr_warp.c: In function `headers':
  pr_warp.c:198: `TYPE_REQ_HEADER' undeclared (first use in this
  function)
  pr_warp.c:198: (Each undeclared identifier is reported only once
  pr_warp.c:198: for each function it appears in.)
  pr_warp.c: In function `warp_handle':
  pr_warp.c:245: `TYPE_REQ_INIT' undeclared (first use in this function)
  pr_warp.c:279: `TYPE_REQ_CONTENT' undeclared (first use in this
  function)
  pr_warp.c:291: `TYPE_REQ_SCHEME' undeclared (first use in this
  function)
  
  etc etc
  
  Could someone help me out please? gcc is not an option for me either.
 
 Darn :( I don't have access to the Sun C compiler... Those definitions,
 though, should be created automagically by configure in pr_warp.h... I
don't
 quite get why they aren't...
 
 Pier



SSI support on Tomcat !!!!

2001-01-05 Thread Pal

Dear Friends,

Can enyone tell me how to enable ssi support on Tomcat please.

thanx in advance

Pal

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





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




jhtml not working !! URGENT

2000-12-26 Thread Pal

Hi All,

I am using tomcat 3.2.1 and apache on my Linux server. jsp's and servlets are working 
fine. But my .jhtml files are not working. i placed 

ApacheJServAction .jhtml /test/servlet/org.apache.servlet.ssi.SSI

this line on the tomcat.conf file. here  /test is a context of tomcat. and I placed 
ApacheJSSI.jar file on /test/servlet context's directory. and also in tomcat/lib .
but after starting tomcat there is no entry of the same in tomcat-apache.conf file 
which i call from apache.conf file.

please guide me make it possible to use jhtml on tomcat. it's very urgent.

thanks in advance to all.

Paul

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com







Urgent JHTML help !!

2000-12-26 Thread Pal

Hi All,

I am using tomcat 3.2.1 and apache on my Linux server. jsp's and servlets are working 
fine. But my .jhtml files are not working. i placed 

ApacheJServAction .jhtml /test/servlet/org.apache.servlet.ssi.SSI

this line on the tomcat.conf file. here /test is a context of tomcat. and I placed 
ApacheJSSI.jar file on /test/servlet context's directory. and also in tomcat/lib .
but after starting tomcat there is no entry of the same in tomcat-apache.conf file 
which i call from apache.conf file.

please guide me make it possible to use jhtml on tomcat. it's very urgent.

thanks in advance to all.

Paul



_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com







tomcat Installaion on Win2000

2000-12-20 Thread Pal

Hello 

thanks for your help in advance.
I want to know from where can i get the installation version of tomcat. in the site i 
found only .dll's i couldn't found any thing which will install the home directory of 
tomcat and the initial configuration files.
just tell me from where can i get these please

Pal

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com