RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-14 Thread Manish Bhatnagar

Where are you putting your mylib.so library? It should be in $CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And I use this header in mylib.c
 
 Thanks in advance
 
 



RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-15 Thread Manish Bhatnagar

We have NOT made any changes to jni wrokers. What is the error that is being 
displayed? Is it 500 Internal Server Error?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve my library there, in $CATALINA_HOME\lib, and there´s mo way to make it
works... The System.loadLibrary() call works fine, but the problem is when I
call some native method. I´ve reading some responses in the mailing list
talking about jni workers or something like this, but always with Tomcat
3.2.3. In Tomcat 4.0.1, should I do something special in any configuration
file??

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 5:29 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Where are you putting your mylib.so library? It should be in
$CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And I use this header in mylib.c
 
 Thanks in advance
 
 



RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-15 Thread Manish Bhatnagar

I guess that is the message displayed when JNI performs some illegal operation. I 
suggest you to check your JNI code. The best thing would be to put *AfxMessageBox*es 
at different places. One more thing... have you generated the .h file?
-mb-

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 3:33 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Not exactly... the browser get stuck for some minutes, as if it was trying
to access the library methods; but when it finish, the error is: The page
cannot be displayed. I think this is because Tomcat is crashing, but I don´t
know why.

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 10:45 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


We have NOT made any changes to jni wrokers. What is the error that is being
displayed? Is it 500 Internal Server Error?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve my library there, in $CATALINA_HOME\lib, and there´s mo way to make it
works... The System.loadLibrary() call works fine, but the problem is when I
call some native method. I´ve reading some responses in the mailing list
talking about jni workers or something like this, but always with Tomcat
3.2.3. In Tomcat 4.0.1, should I do something special in any configuration
file??

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 5:29 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Where are you putting your mylib.so library? It should be in
$CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And I use this header in mylib.c
 
 Thanks in advance
 
 



RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-15 Thread Manish Bhatnagar

Okay... do this:
replace #include jni.h with #include jni.h. Does it work?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 4:05 PM
To: '[EMAIL PROTECTED]'
Subject: RV: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve tried with a function that only makes a return(); and it keeps on
crashing... I think the failure is not in JNI code, because it works with
Apache + Jserv, so that´s why I´m getting mad about this failure. The .h
file is like this:


/* DO NOT EDIT THIS FILE - it is machine generated */
#include jni.h
/* Header for class Libreria */

#ifndef _Included_Libreria
#define _Included_Libreria
#ifdef __cplusplus
extern C {
#endif
/*
 * Class: Libreria
 * Method:JAdd
 * Signature: (Lipfw/Regla;)V
 */
JNIEXPORT void JNICALL Java_Libreria_JAdd
  (JNIEnv *, jobject, jobject);

/*
 * Class: Libreria
 * Method:JInterfaces
 * Signature: ()Ljava/util/Vector;
 */
JNIEXPORT jobject JNICALL Java_Libreria_JInterfaces
  (JNIEnv *, jobject);

/*
 * Class: Libreria
 * Method:JListar
 * Signature: ([Ljava/lang/String;I)Ljava/util/Vector;
 */
JNIEXPORT jobject JNICALL Java_Libreria_JListar
  (JNIEnv *, jobject, jobjectArray, jint);

/*
 * Class: Libreria
 * Method:JResolver
 * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_Libreria_JResolver
  (JNIEnv *, jobject, jstring, jstring);

#ifdef __cplusplus
}
#endif
#endif



-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 10:58 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I guess that is the message displayed when JNI performs some illegal
operation. I suggest you to check your JNI code. The best thing would be to
put *AfxMessageBox*es at different places. One more thing... have you
generated the .h file?
-mb-

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 3:33 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Not exactly... the browser get stuck for some minutes, as if it was trying
to access the library methods; but when it finish, the error is: The page
cannot be displayed. I think this is because Tomcat is crashing, but I don´t
know why.

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 10:45 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


We have NOT made any changes to jni wrokers. What is the error that is being
displayed? Is it 500 Internal Server Error?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve my library there, in $CATALINA_HOME\lib, and there´s mo way to make it
works... The System.loadLibrary() call works fine, but the problem is when I
call some native method. I´ve reading some responses in the mailing list
talking about jni workers or something like this, but always with Tomcat
3.2.3. In Tomcat 4.0.1, should I do something special in any configuration
file??

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 5:29 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Where are you putting your mylib.so library? It should be in
$CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And I use this header in mylib.c
 
 Thanks in advance
 
 



RE: Jetty .vs. tomcat

2002-03-01 Thread Manish Bhatnagar

By any chance are you using JNI in your webapp?

-Original Message-
From: Steve Wong [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:10 PM
To: Tomcat Users List
Subject: RE: Jetty .vs. tomcat


Hi mingfai,

I am trying other application servers because I have some
problems using tomcat in a production environment.

The environment is Solaris 8, JRE1.2.2, tomcat3.3,
Apache1.3.23 with mod_ssl and mod_jk.
What I discovered is that when I use apache benchmark
tool(ab) to generate many requests on apache, the java heap
allocated
in tomcat continuously increases.  Up to a point that there
is OutOfMemoryError.
If I generate the requests on tomcat instead, there is no
problem.
I am using the OptimizeIt to see the above result.

And What I can find in cvs log of mod_jk is that there was
a memory leak bug in May last year.  But this bug is said to
be fixed.
If I use Apache1.3.23 without mod_ssl, I find that the java
heap remains stable.  However, I discovered that the
allocated memory
of the java process of tomcat continuously increases.
Because I am afraid that there will be OutOfMemeryError in
the production
environment.  So, I restart the tomcat process regularly.

Have you discovered the same things for your web
application??

Thx. and Regards.
Steve.

-Original Message-
From: Ming Fai [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 4:05 PM
To: Tomcat Users List
Subject: RE: Jetty .vs. tomcat


hi Steve,

I'm a Tomcat user. from what I read on the web, I believe
Jetty does
outperform Tomcat significantly in static pages and also
outperform Tomcat
to a unknown degree in dynamic pages. so, why i still choose
Tomcat?

My main consideration is in scalability. Multiple instance
of Tomcat can be
run and load balanced with Apache and mod_jk. I believe it
can achieve a
very high scalability in handling simultanceous requests.
Other
considerations are: good integration with other Apache and
commercial
products, better support (i personally think the 'support'
from Apache group
is better than other open src groups), full implementation
of JCP
specification etc.

And Tomcat should not be used together with Apache if there
is heavy loading
of static pages.

Other than Tomcat and Jetty, Resin is also quite famous. And
there are other
commercial choice like WebLogic, JRun and Orion.  You should
make decision
base on your need.

In my opinion, if your site is small in scale, and requires
a very good
response time, then Jetty or Resin are your choice.
Otherwise, Tomcat is a
good choice in general and it is a proven product. It
occupies about 50% of
the servlet engine market as of mid 2001.
(http://www.devx.com/judgingjava/articles/sixyears/printable
/sixyearsp2.asp#
fig7)

Any comment are welcome!

Regards,
mingfai






 -Original Message-
 From: Steve Wong [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 3:17 PM
 To: [EMAIL PROTECTED]
 Subject: Jetty .vs. tomcat



   How will you compare jetty with tomcat?
   Which one will you choose for a production environment?
Why?
   Any Performance figures about these 2 servlet containers?

 Thx. and Regards.
 Steve.

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



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




RE: Tomcat Memory usage(Urgent!)

2002-03-08 Thread Manish Bhatnagar

We faced this problem some time back. The memory usage
seemed to increase to the point where no other application
could be started. Many times we had to restart the NT
machine itself. We did a thorough code-review and fixed the
leaks. But even after that the Tomcat memory usage kept on
increasing, although it came down, all of a sudden, to a
very low value (600K). So garbage collection is being done
more frequently, I would say. When there are more users
connected to the Web server and accessing the Servlets/JSPs,
the memory usage keeps on increasing... just to give
numbers... we accessed our Web application using 50+
instances of browsers (IE, Netscape) and the memory shot to
200M. After some time (not immediately) when we stopped
accessing the Web server it came down to 24M. You can find
more pointers on JDC at http://java.sun.com. I remember
discussing this topic there.
Thanks
-mb-

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf
Of David Cassidy
Sent: Friday, March 08, 2002 4:35 PM
To: Tomcat Users List
Subject: Re: Tomcat Memory usage(Urgent!)


within your program you might want to check out

Runtime runtime = Runtime.getRuntime;
runtime.freeMemory() vs
runtime.totalMemory()

This will let you know what it's really using..
But as top says it's only 59M then I'd be looking at
other processes in your ps list

Hope this helps

D



Boily Sylvain wrote:

 hi all ,

 Well how is possible to give back memory ? Because after 2
days the
 memory is full.
 thx

 Chris Pheby wrote:

 Each of these processes correlates to a /thread/. The
processes are
 sharing
 memory for the most part - something that ps or top don't
make clear.
 
 Chris
 
 -Original Message-
 From:
[EMAIL PROTECTED]
org

[mailto:tomcat-user-return-13170-chris=tfe-group.com@jakart
a.apache.org
 ]
 On Behalf Of Galbayar
 Sent: 08 March 2002 09:24
 To: Tomcat Users List
 Subject: Tomcat Memory usage(Urgent!)
 
 
 Hello all
 
 Here is part of top output. Is it usual that java
processes eat all of
 memory? ? At now there are 50 java processes started that
running
 tomcat and
 each of them uses 59M memory. There is running apache
server with
 tomcat 4
 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed.
 
 Thx
 
 106 processes: 105 sleeping, 1 running, 0 zombie, 0
stopped
 CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
 Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd,
129004K buff
 Swap: 1020116K av, 0K used, 1020116K free 762320K cached
 
 3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
 3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
 3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 .
 .
 .
 
 
 
 --
 To unsubscribe:
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]
 

 --

 */Sylvain Boily/*
 /Administrateur Linux/

 cid:[EMAIL PROTECTED]

 /*Adresse :* 39, bd Anatole France -  93200 St-Denis -
France/
 /*tel :*0148131814/
 /*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 *web:*http://www.linkbynet.fr/


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




Excessive high usage of memory by Tomcat on NT

2002-01-21 Thread Manish Bhatnagar

Hello all:
We are facing the problem of excessive memory usage by our
servlets (that call JNI functions). The memory usage seems
to touch 50+ MB in 2000 Server but it drops down to 30 MB
soon. But, this does not happen in NT. The memory keeps on
increasing and there is a point in time when Tomcat occupies
*all* the available memory.
We are taking care of *garbage collecting* the objects
frequently(by calling Runtime.gc()). Is there any other way
by which we can have some kind of control over the usage of
memory?
Do we have to install a patch for NT (if something like this
is available)?

NT Server:
--
PIII 500 MHz, 256MB RAM, 40GB HDD

2000 Server:

PIII 700 MHz, 128MB RAM, 20GB HDD

Tomcat:
---
Version 3.2.1

JDK:

Sun's JDK 1.3

Any suggestions, pointers are appreciated.
Thanks
Manish


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




RE: Excessive high usage of memory by Tomcat on NT

2002-01-23 Thread Manish Bhatnagar

No, we are not running Tomcat as a service on NT.

-Original Message-
From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 2:04 AM
To: 'Tomcat Users List'
Subject: RE: Excessive high usage of memory by Tomcat on NT


out of curiosity, are you running tomcat as a service?

-Original Message-
From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 12:18 AM
To: Tomcat
Subject: Excessive high usage of memory by Tomcat on NT


Hello all:
We are facing the problem of excessive memory usage by our
servlets (that call JNI functions). The memory usage seems
to touch 50+ MB in 2000 Server but it drops down to 30 MB
soon. But, this does not happen in NT. The memory keeps on
increasing and there is a point in time when Tomcat occupies
*all* the available memory.
We are taking care of *garbage collecting* the objects
frequently(by calling Runtime.gc()). Is there any other way
by which we can have some kind of control over the usage of
memory?
Do we have to install a patch for NT (if something like this
is available)?

NT Server:
--
PIII 500 MHz, 256MB RAM, 40GB HDD

2000 Server:

PIII 700 MHz, 128MB RAM, 20GB HDD

Tomcat:
---
Version 3.2.1

JDK:

Sun's JDK 1.3

Any suggestions, pointers are appreciated.
Thanks
Manish


--
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: Where to Place Bean files

2001-06-06 Thread Manish Bhatnagar

Hello all!
I am facing the same problem. I created a bean that I am using in a JSP.
The JSPs are in
F:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\manish\jsp

I tried putting the Bean in the same directory where my JSP is present. It
doesn't work. Also I placed it in

E:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\manish\WEB-INF\jsp\bean
s
but that too of no avail.

Any suggestions?
Manish
- Original Message -
From: Hemant Singh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 12:21 PM
Subject: Where to Place Bean files


 HI ALL:
 Where do i need to place the JSP bean which i m going
 to use in JSP files.
 Cheers

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35
 a year!  http://personal.mail.yahoo.com/




Re: Where to Place Bean files

2001-06-06 Thread Manish Bhatnagar

Thanks to all of you. The problem is solved.
Manish
- Original Message -
From: Boris Niyazov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 8:27 PM
Subject: Re: Where to Place Bean files


 Beans should reside in WEB-INF/classes, so in you case (assuming the bean
belong
 to package jsp) in


F:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\manish\WEB-INF\classes\
jsp

 HTH
 *
 * Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
 * Systems Manager  Email: [EMAIL PROTECTED] *
 * Columbia Law School  URL: http://www.law.columbia.edu *
 *



 Hello all!
 I am facing the same problem. I created a bean that I am using in a JSP.
 The JSPs are in
 F:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\manish\jsp
 
 I tried putting the Bean in the same directory where my JSP is present.
It
 doesn't work. Also I placed it in
 
 
 s
 but that too of no avail.
 
 Any suggestions?
 Manish
 - Original Message -
 From: Hemant Singh [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 06, 2001 12:21 PM
 Subject: Where to Place Bean files
 
 
  HI ALL:
  Where do i need to place the JSP bean which i m going
  to use in JSP files.
  Cheers
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail - only $35
  a year!  http://personal.mail.yahoo.com/
 




RE: c++ dll

2001-07-05 Thread Manish Bhatnagar

Hi Arik!
Where did you place the dll in Tomcat? 
Try placing it in TOMCAT_HOME/lib.
..mb..

-Original Message-
From: Arik Levin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: c++ dll



Hi.

I have some c++ dll, which I use thru native java class
at my servlet. (I call it like.. System.loadLibrary(dll name))

When I use it at JRun env it works fine.

I have Jboss-Tomcat env, and at this env It just
wouldn't work. I have this Exception: UnsatisfiedLinkError.


Please ,,, HELP 
Thank's Arik 

 winmail.dat


IOException while downloading a file

2001-07-11 Thread Manish Bhatnagar



Hello 
all:
We get the 
following exception when we click on a link, that downlaods a file to the client 
machine, and instead of clicking "OK" we click "Cancel". The same exception is 
not thrown when "OK" is clicked. 

2001-07-12 10:19:19 - Ctx( /eztrack ): 
IOException in: R( /mycontext + /myproject/15/verify/0/abc.exe + null) Connection reset by peer: socket 
write error

Any idea why does 
it happen?
Tia,
Manish 
Bhatnagar


RE: IOException while downloading a file

2001-07-12 Thread Manish Bhatnagar

Thanks very much, Marcus, for your explanation.
Manish

-Original Message-
From: Deacon Marcus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 11:04 AM
To: [EMAIL PROTECTED]
Subject: RE: IOException while downloading a file


Hi,

-Original Message-
From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 6:57 AM
To: [EMAIL PROTECTED]
Subject: IOException while downloading a file


Hello all:
We get the following exception when we click on
a link, that downlaods a file to the client
machine, and instead of clicking OK we click
Cancel. The same exception is not thrown when
OK is clicked.

2001-07-12 10:19:19 - Ctx( /eztrack ):
IOException in: R( /mycontext +
/myproject/15/verify/0/abc.exe + null)
Connection reset by peer: socket write error

Any idea why does it happen?
Tia,
Manish Bhatnagar

That's exactly how it's supposed to be. Browsers start to download the file,
getting all the response headers etc, starting to download the data, and
then asks what to do. Have you noticed that sometimes after you click on a
link, wait a minute, then accept downloading starts at 10+% ? If you click
cancel, your browser discards downloaded data and closes connection, giving
connection reset by peer error.

Greetings, deacon Marcus




Re: Cache problem with IE

2001-03-14 Thread Manish Bhatnagar



Try the following code:
httpservletresponse.setHeader("Expires","0");httpservletresponse.setHeader("Cache-Control", 
"no-cache");httpservletresponse.setHeader("Cache-Control", 
"no-store");httpservletresponse.setHeader("Pragma", 
"no-cache");
It's working fine for me. 
IE5, NN4.7 on Win 98, Tomcat
Regards,
Manish

  - Original Message - 
  From: 
  Zsolt Koppany 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, March 13, 2001 9:43 
  PM
  Subject: Cache problem with IE
  Hi,with the code below I can get netscape not to cache 
  a jsp page but itdoes not work with Internet-Explorer.Does anybody 
  know why?response.setHeader("Cache-Control", 
  "no-cache");response.setHeader("Pragma", 
  "no-cache");\Zsolt-- Zsolt KoppanyIntland GmbH 
  www.intland.comSchulze-Delitzsch-Strasse 
  16D-70565 StuttgartTel: +49-711-7871080 Fax: 
  +49-711-7871017-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, email: [EMAIL PROTECTED]