Re: Please Help

2001-12-20 Thread Micael Padraig Og mac Grene

At 01:13 PM 12/20/01 +0530, you wrote:
Hi To All,

What is TC Stand alone Servlet Contairs

Please help

Vikas


Cannot imagine what the fire is, but I assume that you mean Tomcat for TC 
and by stand alone using the Tomcat server without a J2EE application?


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




System crash with Tomcat 4.0.1

2001-12-20 Thread Rami Developer

Hi,
System Spec: I am using a Windows 2000 Local system,
where the local is Arabic. I installed Tomcat 4.0.1
using the .exe installer. Moreover, I installed Tomcat
as a service. The JDK version is 1.3.1_01

Problem: when I run tomcat as a service. Every thing
up to now is OK, but when I open IE and type in the
URL http://localhost:8080;. The system reboots
without any error or notefication. Then, I stpped the
service and used start.bat and shutdown.bat
provided with Tomcat. However, the problem is also
there.

PS: I used a nother machine with the same Spec, the
same problem occured. I also tried to call the URL
from a nother machine on the LAN. The system that had
the Tomcat was rebooted automatically.

Thank you in advance,

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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




Re: mail.jar

2001-12-20 Thread Jayashree Gopal

mail.jar is the jar file which is referred by the java
programs/applications which use the javamil.api. I
guess ur using tomcat and hence the q of common/libs
comes. Any program which runs thru ur tomcat refers to
common/lib for the appropriate .jar files.

--- E B [EMAIL PROTECTED] wrote:
 Why is mail.jar put in common/libs ?
 
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


=
Best Regards,
Jayashree

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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




VERY VERY URGENT!!! PLEASE HELP!!!

2001-12-20 Thread Jayashree Gopal

Hello,
I have Tomcat version 4.0 installed which supports
servlet 2.3 API and JSP 1.2 specifications.

I am writing a servlet which creates a session and
includes the username and password inside this
session. I am passing the session ID to the other html
pages generated thru a servlet. However when i try to
compile the first servlet which creates a session,It
gives me a compilation error at the putAttribute()
methods. The putAttribute() method is a replacement
for the putValue() method in Servlet 1.2. Is not
servlet.jar in tomcat 4.0 the servlet 2.3 .class
files.

Please let me know how do i rectify this error.

Thanks!
Jayashree.



=
Best Regards,
Jayashree

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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




RE: Problems running Tomcat4.0 under WindowsXP

2001-12-20 Thread Rama

what is the value of: type %CATALINA_HOME% ?


Rama

 -Original Message-
 From: Paul Bundick [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, December 19, 2001 11:29 PM
 To: [EMAIL PROTECTED]
 Subject: Problems running Tomcat4.0 under WindowsXP
 
 
 Has anyone experienced problems with the following command in 
 the shutdown.bat file:
 
 C:\Tomcat40\binC:\Tomacat40\bin\catalina stop
 
 basically, CATALINA_HOME is set to C:\Tomcat40 and once it 
 gets to this point in the shutdown.bat process (or 
 startup.bat process for that matter) it bombs because it 
 doesn't understand this string for some reason.  If I execute 
 the following command:
 
 C:\Tomcat40\bincatalina stop
 
 it runs until a point that it hits another one of these strings.
 
 Any ideas?
 
 Thanks,
 
 Paul
 
 
 
 
 



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Tomcat 4 mod_webapp in Win2k

2001-12-20 Thread Rama

Hi,

Can anyone explain to me what I should do to make Apache 1.3.22, Tomcat
4.01, and mod_webapp work in my Win2k system?

Please do not tell me to read the documentation. I've done exactly what
the documentation told me but it seems Apache is always taking 99% of
system resource (in other words, it doesn't work!).


Rama



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




File upload won't work with Tomcat4 ...

2001-12-20 Thread martin eberle

Hi,

i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
doesn't matter which filetype, the result
is always the same:

Apache Tomcat/4.0.1 - HTTP Status 404 -
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)
type Status report
message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
not found)
description The requested resource
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)) is not available.

I know, that the file has not been found, cause i try to create it ;)
... 

Tomcat directory structure to .jsp files (oh, directory / file user
rights, etc. has been set correctly!):
/var/tomcat4/webapps/mywebapp/

Tomcat directory structure to data (upload) files:
/var/tomcat4/webapps/mywebapp/data/attachements/

In my upload class, i've defined the var SAVEPATH which contain's the
store path as string ... :
String savePath=../webapps/mywebapp/data/attachements/;

Question 1:
From which base directory does tomcat try to access the data dir?
(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...

Question 2:
Is my savePath definition just wrong?

What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
well 

Thx for any answers ...

Regards,
-martin

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




RE: Tomcat 4 mod_webapp in Win2k

2001-12-20 Thread Diego Castillo

Just read the comments of the server.xml file from your Tomcat installation.
It worked just fine for me and I have exactly the same software you talk
about.


Diego

-Message d'origine-
De : Rama [mailto:[EMAIL PROTECTED]]
Envoye : jeudi 20 decembre 2001 09:26
A : [EMAIL PROTECTED]
Objet : Tomcat 4  mod_webapp in Win2k


Hi,

Can anyone explain to me what I should do to make Apache 1.3.22, Tomcat
4.01, and mod_webapp work in my Win2k system?

Please do not tell me to read the documentation. I've done exactly what
the documentation told me but it seems Apache is always taking 99% of
system resource (in other words, it doesn't work!).


Rama



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
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: File upload won't work with Tomcat4 ...

2001-12-20 Thread Lester June Cabrera


Try to upload to upload your data files in the apache htdocs directory and 
access them via your JSP files from there. This is our setup in our 
webhosting company. All our JSP apps are in /webapps directory. And all the 
rest of the files (*.html, *gif, *.jpg, *.zip) are in /htdocs.



At 09:42 AM 12/20/01 +0100, martin eberle wrote:
Hi,

i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
doesn't matter which filetype, the result
is always the same:

Apache Tomcat/4.0.1 - HTTP Status 404 -
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)
type Status report
message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
not found)
description The requested resource
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)) is not available.

I know, that the file has not been found, cause i try to create it ;)
...

Tomcat directory structure to .jsp files (oh, directory / file user
rights, etc. has been set correctly!):
/var/tomcat4/webapps/mywebapp/

Tomcat directory structure to data (upload) files:
/var/tomcat4/webapps/mywebapp/data/attachements/

In my upload class, i've defined the var SAVEPATH which contain's the
store path as string ... :
String savePath=../webapps/mywebapp/data/attachements/;

Question 1:
 From which base directory does tomcat try to access the data dir?
(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...

Question 2:
Is my savePath definition just wrong?

What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
well 

Thx for any answers ...

Regards,
-martin

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




Please help me on NT Authentication

2001-12-20 Thread ans M

Hi,
  
I am building a system for the Intranet. We have a NT network. I wanted to know if by 
any means I can use the username and password that is registered in the NT Server, so 
that when a user logs in to NT system, he should be automatically logged in to my 
application built on Tomcat?

Can anybody guide me on how to go abt it?

Thanks in anticipation




--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation (up 
to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/

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




google

2001-12-20 Thread E B

google doesnt  index this tomcat mailing list from
some archive; wouldnt it be nice if it does. It would
be easy for me to search there first b4 posting
here.

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




AW: File upload won't work with Tomcat4 ...

2001-12-20 Thread martin eberle

I've thinked about /htdocs dir, too ..
But: why does tomcat tries to access the file in
../webapps/mywebapp/data/attachements/ ??

In result, how should the /htdocs directory labeled?
/usr/local/httpd/htdocs/webapps/mywebapp/data/attachements/ ??

Or anything else?

regards,
-martin


-Ursprüngliche Nachricht-
Von: Lester June Cabrera [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. Dezember 2001 09:45
An: Tomcat Users List; martin eberle
Betreff: Re: File upload won't work with Tomcat4 ...



Try to upload to upload your data files in the apache htdocs directory
and 
access them via your JSP files from there. This is our setup in our 
webhosting company. All our JSP apps are in /webapps directory. And all
the 
rest of the files (*.html, *gif, *.jpg, *.zip) are in /htdocs.



At 09:42 AM 12/20/01 +0100, martin eberle wrote:
Hi,

i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
doesn't matter which filetype, the result
is always the same:

Apache Tomcat/4.0.1 - HTTP Status 404 -
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)
type Status report
message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
not found)
description The requested resource
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)) is not available.

I know, that the file has not been found, cause i try to create it ;)
...

Tomcat directory structure to .jsp files (oh, directory / file user
rights, etc. has been set correctly!):
/var/tomcat4/webapps/mywebapp/

Tomcat directory structure to data (upload) files:
/var/tomcat4/webapps/mywebapp/data/attachements/

In my upload class, i've defined the var SAVEPATH which contain's the
store path as string ... :
String savePath=../webapps/mywebapp/data/attachements/;

Question 1:
 From which base directory does tomcat try to access the data dir?
(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...

Question 2:
Is my savePath definition just wrong?

What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
well 

Thx for any answers ...

Regards,
-martin

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




shlow(some times never) shutdown

2001-12-20 Thread E B


tomcat shuts down slowly on my linux. It shows 
'Stopping service Tomcat-Standalone' and doesnt
say anything about Tomcat-Apache.

btw, what are these two?

 

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




Re: google

2001-12-20 Thread antony

http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2


E B wrote:

 google doesnt  index this tomcat mailing list from
 some archive; wouldnt it be nice if it does. It would
 be easy for me to search there first b4 posting
 here.
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 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]




google

2001-12-20 Thread E B

google doesnt  index this tomcat mailing list from
some archive; wouldnt it be nice if it does. It would
be easy for me to search there first b4 posting
here.

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




Re: AW: File upload won't work with Tomcat4 ...

2001-12-20 Thread Lester June Cabrera


Our setup in our web hosting company is if we have a /webapps/data 
directory, we should also have a /htdocs/data directory. All JSP's and 
classes reside in the /webapps directory while the rest are in /htdocs 
directory.

Lester

At 09:57 AM 12/20/01 +0100, martin eberle wrote:
I've thinked about /htdocs dir, too ..
But: why does tomcat tries to access the file in
../webapps/mywebapp/data/attachements/ ??

In result, how should the /htdocs directory labeled?
/usr/local/httpd/htdocs/webapps/mywebapp/data/attachements/ ??

Or anything else?

regards,
-martin


-Ursprüngliche Nachricht-
Von: Lester June Cabrera [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. Dezember 2001 09:45
An: Tomcat Users List; martin eberle
Betreff: Re: File upload won't work with Tomcat4 ...



Try to upload to upload your data files in the apache htdocs directory
and
access them via your JSP files from there. This is our setup in our
webhosting company. All our JSP apps are in /webapps directory. And all
the
rest of the files (*.html, *gif, *.jpg, *.zip) are in /htdocs.



At 09:42 AM 12/20/01 +0100, martin eberle wrote:
 Hi,
 
 i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
 doesn't matter which filetype, the result
 is always the same:
 
 Apache Tomcat/4.0.1 - HTTP Status 404 -
 ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
 found)
 type Status report
 message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
 not found)
 description The requested resource
 ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
 found)) is not available.
 
 I know, that the file has not been found, cause i try to create it ;)
 ...
 
 Tomcat directory structure to .jsp files (oh, directory / file user
 rights, etc. has been set correctly!):
 /var/tomcat4/webapps/mywebapp/
 
 Tomcat directory structure to data (upload) files:
 /var/tomcat4/webapps/mywebapp/data/attachements/
 
 In my upload class, i've defined the var SAVEPATH which contain's the
 store path as string ... :
 String savePath=../webapps/mywebapp/data/attachements/;
 
 Question 1:
  From which base directory does tomcat try to access the data dir?
 (/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...
 
 Question 2:
 Is my savePath definition just wrong?
 
 What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
 well 
 
 Thx for any answers ...
 
 Regards,
 -martin
 
 --
 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: google

2001-12-20 Thread E B

I know, but why doesnt google index these archives?


 --- [EMAIL PROTECTED] wrote: 
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2
 
 
 E B wrote:
 
  google doesnt  index this tomcat mailing list from
  some archive; wouldnt it be nice if it does. It
 would
  be easy for me to search there first b4 posting
  here.
  
  __
  Do You Yahoo!?
  Everything you'll ever need on one web page
  from News and Sport to Email and Music Charts
  http://uk.my.yahoo.com
  
  --
  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]
  

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




AW: Tomcat 4 mod_webapp in Win2k

2001-12-20 Thread Lauer, Oliver

Hi, 

I had similar problems and switched to mod_jk which works fine for that
purpose ! 

Oliver 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Rama [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. Dezember 2001 09:26
An: [EMAIL PROTECTED]
Betreff: Tomcat 4  mod_webapp in Win2k


Hi,

Can anyone explain to me what I should do to make Apache 1.3.22, Tomcat
4.01, and mod_webapp work in my Win2k system?

Please do not tell me to read the documentation. I've done exactly what
the documentation told me but it seems Apache is always taking 99% of
system resource (in other words, it doesn't work!).


Rama



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.
---



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




Re: Tomcat 4 mod_webapp in Win2k

2001-12-20 Thread Bruno VERNAY

Hi,
I got the same configuration working.
I just write a little doc covering only this configuration. Little 
changes are needed from default configuration :
http://bruno.vernay.free.fr/HowTo/index.html

What I can't do is change the default directory of the WebApps.

Can someone help me on this.

Thank


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




Re: shlow(some times never) shutdown

2001-12-20 Thread Bruno VERNAY

You can use Tomcat only (without Apache) as a complete web server. 
This is stand alone.

You can use Tomcat with Apache with a connector. WARP (mod_webapps) for 
example. In this case you can delete the whole service stand-alone ...
in the server.xml. And leave only the service tomcat-Apache.

Now my problem is to change the WebApps directory in order to have the 
application tomcat on a parition and the webapps on an other partition.

Thanks


E B wrote:

 tomcat shuts down slowly on my linux. It shows 
 'Stopping service Tomcat-Standalone' and doesnt
 say anything about Tomcat-Apache.
 
 btw, what are these two?
 
  
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


-- 
**
Bruno Mizzi-Vernay
[EMAIL PROTECTED]
#ICQ : 1923685
**


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




Re: VERY VERY URGENT!!! PLEASE HELP!!!

2001-12-20 Thread James Williamson


- Original Message - 
From: Jayashree Gopal [EMAIL PROTECTED]

 Hello,
 I have Tomcat version 4.0 installed which supports
 servlet 2.3 API and JSP 1.2 specifications.
 
 I am writing a servlet which creates a session and
 includes the username and password inside this
 session. I am passing the session ID to the other html
 pages generated thru a servlet. However when i try to
 compile the first servlet which creates a session,It
 gives me a compilation error at the putAttribute()
 methods. The putAttribute() method is a replacement

No, setAttribute is, check out the API:

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html


 for the putValue() method in Servlet 1.2. Is not

putValue is deprecated, although the compiler will print a warning
about using a deprecated API during compiliation (but won't prevent it).

 servlet.jar in tomcat 4.0 the servlet 2.3 .class
 files.
 
 Please let me know how do i rectify this error.
 




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




black magic mystery

2001-12-20 Thread E B

This is about classloaders again. Same old problem
about message style soap services, and soap classes
in soap/WEB-INF/classes.

1. How do I find out which classloader loaded the 
classes shown in the stack trace?

2. In the stack trace that is shown below, 
   the class MessageServer is in the common/classes, 
   but soap is in its web-inf/classes. So soap's 
   class loader should be able to take the help of
   common classloader to load the MessageServer class.
   Why then does it complain?



  ?xml version=1.0 encoding=UTF-8 ? 
- SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;
- SOAP-ENV:Body
- SOAP-ENV:Fault
  faultcodeSOAP-ENV:Server/faultcode 
  faultstringException while handling service
request:
MessageServer.processMessage(org.apache.soap.Envelope,org.apache.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext)
-- no signature match/faultstring 
  faultactor/soap/servlet/messagerouter/faultactor

- detail
  stackTracejava.lang.NoSuchMethodException:
MessageServer.processMessage(org.apache.soap.Envelope,org.apache.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext)
-- no signature match at
org.apache.soap.util.MethodUtils.getEntryPoint(MethodUtils.java:194)
at
org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:548)
at
org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:528)
at
org.apache.soap.server.MessageRouter.invoke(MessageRouter.java:54)
at
org.apache.soap.providers.MsgJavaProvider.invoke(MsgJavaProvider.java:125)
at
org.apache.soap.server.http.MessageRouterServlet.doPost(MessageRouterServlet.java:268)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code) at
javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java,
Compiled Code) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java,
Compiled Code) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code) at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java,
Compiled Code) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code) at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java,
Compiled Code) at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java,
Compiled Code) at java.lang.Thread.run(Thread.java,
Compiled Code)/stackTrace 
  /detail
  /SOAP-ENV:Fault
  /SOAP-ENV:Body
  /SOAP-ENV:Envelope

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




request-simulation

2001-12-20 Thread Michael Remme

Hi all,

for testing-purpose i would like to simulate a request for my servlet. Do
you know, wether i have a chance to create a request-object
pragrammatically? i tried already to serialize a request from realtime, but
serialization isn't supported, there.

Thanks in advance,

Michael

Virengeprüft vom G DATA AntiVirenKit


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




Re: request-simulation

2001-12-20 Thread Jim Cheesman

At 10:40 AM 20/12/01, you wrote:
Hi all,

for testing-purpose i would like to simulate a request for my servlet. Do
you know, wether i have a chance to create a request-object
pragrammatically? i tried already to serialize a request from realtime, but
serialization isn't supported, there.


Have you checked out cactus (at jakarta.apache.org)? It may help with the 
testing you want to do. I think there's also a link from there to Mock 
Objects, which are skeleton implementations* of things like requests for 
use in testing.

* There's a bit more to them than that. You can set values, add attributes 
etc. to them. A quick web search at google, for example, will give you all 
the info.


HTH,
Jim




--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Cooperation can only be 
reached if we work together.



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




Permissions for file created by tomcat on Solaris system

2001-12-20 Thread Hitchman, Peter

Hi,
We have tomcat app creating files, which get created with permissions
rw-r--r--, the default 
according to the system umask 022. Is it possible to configure tomcat to
change the permissions used
when it creates a file?

Thanks.

Pete 

[END]



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**




Any one knows a good Web hosting service?

2001-12-20 Thread yilmaz

Hi all,
The subject may sound a trivial subject for you, please be patient with me.
if you are providing this kind of service or would like to suggest me a good
JSP ISP please do continue reading:
You can reply to my private email address :
[EMAIL PROTECTED]
Our company is located in taipei/taiwan
We have already finished an application program written in JSP 1.2 using
tomcat 4 and Mysql 3.23 on win 2000.
for a week i have been looking for  a reasonable web hosting service on the
internet but all my efforts are in vain.
i have searched the archives , the list of the JSP ISPs in servlets.com and
adrenalin.com, i found a few
reasonable and suitable companies.However, i wrote to those adresses four
times but couldn't get any reply,
it seems that they already have enough customers, and don't need (want ?)
new  ones.
 As a result i decided to bring the issue up here, hoping that one of yours'
companies wants to offer an inexpensive  web hosting for us.
Our requirements :
0) Inexpensive (around 10 to 20 USD /month including all the features below)
1) Isp should be supporting at least JSP 1.1 (JSP 1.2 is preferable)
2) Any servlet engine compatible with tomcat 4 (tomcat 4 is preferable)
our application is bundled as a war file, the ISP servlet engine should be
able to
automatically open and deploy this war file at their sites
3) Any OS, but windows is preferable.
4) a suitable administration interface through web (e.g a control panel) for
both Jsp files and the database.
5) 50 M space for java server , 50 M for the web server
We need to put media files (mp3 or mpg) on the web server (either apache or
IIS)
6) we already have two registered domain names, we need hosting for both in
a single space.
7) ISP should be supporting MySQL database version 3.23 or higher.
8) We need a trial period, at least one day. First we want to upload and
install our
program and database on the server, try and test everything. If everything
works well
we will purchase one year service.
9) one month money back guarantee.
10) at least two ftp accounts , if on unix a telnet account.


thank you very much for bearing me.
best regards  :)
yilmaz



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




Re: Imported classes run, but not under Tomcat

2001-12-20 Thread Leandro

Or you con put them on %tomcat_home%/lib

[]s
Leandro

- Original Message -
From: Kendal L. Montgomery [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 19, 2001 10:25 PM
Subject: RE: Imported classes run, but not under Tomcat


 Put your compile class file in
 c:\progra~1\tomcat4\webapps\sqaa\web-inf\classes\classes\test.java.

 Since you used classes as your package name you have to put it in the
 classes package.

 The WEB-INF\classes directory is a root or just the beginning of where
 Tomcat looks for standalone classes (not jarred).

 Hope this helps.


 Kendal L. Montgomery
 ...the comPuter Wizard...
 [EMAIL PROTECTED]
 _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
 Click here for Qwest's 5 cent State-to-State flat rate calling plan, plus
 get your own 800 number at no charge!
 http://qwesteferral.com/r.jsp?a=RyYO5xpYanlfVU541Lz2HA$$
 _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_

 -Original Message-
 From: Gilmore, Phil [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 6:48 PM
 To: Tomcat User Mailing List (E-mail)
 Subject: Imported classes run, but not under Tomcat

 I have a class method that works under a container class,
 but Tomcat returns NoClassDefFound on the imported class method when it's
 called from a servlet (which is nearly identical to the container class)
 inside Tomcat.  I searched the archive before subscribing here, but
 couldn't find any questions on this since Dec 1.
 Sorry if this message is lengthy but here goes...

 I have a public class (thelper.java) with class method ssiServe.
 This method reads a file, replaces keys with new values and outputs the
 contents to System.err.  I have a test.java that calls the
 thelper.ssiserve() class method and it works well.

 I now call thelper from a simple servlet (getimage.java), derived
 from test.java, changing the thelper class's output object from
 System.err to a the servlet's PrintWriter object.
 When I run it from my browser, I get a two stack traces
 (with http error 500, reported by Tomcat).

 The first line of the first (labeled exception) is:
 javax.servlet.ServletException: Servlet execution threw an exception

 The first line of the second (labeled root cause) is:
 java.lang.NoClassDefFoundError: classes/thelper

 So it would seem to me that the thelper class cannot be seen by
 tomcat, though it is seen in the JVM otherwise.  I've tried
 everything I know how, though I'm very new to Java and JSP.  I can
 incorporate this class method into the calling class and solve the
 problem, but I wrote it this way because the method will be used by
 quite a few different servlets (10), and I need it to be centralized
 for obvious reasons.

 My J2SE is installed in c:\javakit and my J2EE is in c:\javaee.

 classpath =
 c:\;d:\;c:\javakit\src.jar;c:\javakit\lib\tools.jar;
 c:\javaee\lib\j2ee.jar;c:\progra~1\tomcat4\webapps\sqaa\WEB-INF;

 java_home =
 c:\javakit

 Tomcat 4.0.1 is installed in c:\progra~1\tomcat4.
 Java -version:
   java version 1.3.1_01
   Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
   Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)


 This obviously seems like a problem with my classpath or with pack names
and
 class locations, but it makes no sense to me that it would work outside of
 Tomcat.   I deduce that it's a problem with my tomcat configuration (it
 doesn't know to look for it) or there's some cardinal rule that I've
 overlooked.  Any other ideas?  I've been up and down the tomcat and apache
 docs, finding exactly the same information on configuration everywhere on
 the web and in a few books I have (and in the config file comments!).
 They're all the same, and my standalone servlets work, so I'm pretty sure
I
 have those instructions down alright.

 Below are my sources and their locations.  If you see any mistakes, bear
in
 mind that I've moved these things from heck to breakfast, always with the
 same result no matter what package, path or name I give this import.  It's
 been in $tomcat_home\webapps\sqaa..classes\,
 $tomcat_home\webapps\sqaa\WEB-INF\libs\, c:\, c:\include, etc.  Always the
 same error, with the NoClassDefFoundError reporting the current class I'm
 trying to import.

 (Irrelevant code omitted:)


 ---
 c:\progra~1\tomcat4\webapps\sqaa\web-inf\classes\test.java:
 ---
 //package classes   /* I've tried w/ and w/o package spec,
 though examples don't use one.
 This class works either way. */
 import java.io.*;
 import java.util.*;
 import classes.*;

 public class test {
 public test(){
 }
 public static void main(String args[]) {
 Vector ssi = new Vector();
 ssi.add(!--SSI:FILENAME--=c:/sample.tif);
 thelper.ssiServe(c:/html/test.html,ssi);
 }
 }

 

Tomcat hangs due to mistyped Oracle login until that servelt completes !!!??

2001-12-20 Thread Vesna Milosavljevic

   Hello to the list

   Problem :
  
Whenever a  servlet/jsp that connects  to oracle
is  executed with
mistyped  login/passwd,  no  other/same
servlet/jsp  dealing  with
Oracle  on  that  Tomcat   instance  can  be 
executed,  till  the
processing of that request completes.

That  is to  say :  something is  preventing
db-servlets  to start
running (or  to send their output  ?), while
tomcat  is handling a
servlet that tries to connect to Oracle with
mistyped name/pass. I
say   handling,   for   this   processing  can  
last   even   5
min. (particularly  after Tomcat hasn't been
restarted  for a long
time).

After  restarting  tomcat  it  takes  relatively 
reasonable  time
(1-5sec) but as  the time passes by, processing 
time increases to
minutes and that is very  annoying and
inconvenient for all users.
At  the same time  static contents  and
servlets/jsps  not dealing
with oracle are handled properly.


   Environment:

 www: Apache-1.3.14+mod_jk,  
 jsp: Tomcat-3.3 (two  instances) with oracle's 
jdbcclasses12.jar,  
 server : HP-UX B11.0  U  9000/800,  DB
 server : Oracle 8.0.6
   
   Im  running  two Tomcat  instances 
(max_thread=200).  First has  7
   web-apps and second only one.  Almost all web-apps
are dealing with
   oracle 8.0.6 over jdbc, and there  are a bunch of
servlets and jsps
   written  by  various authors  (including  me), 
creating oracle  DB
   connections.


   So far, I have tested this  behavior on two HP
servers each running
   two tomcat-3.3 instances and unfortunately this
nasty behavior seem
   to  be a  rule. Whether  one connects  directly to 
tomcat  or over
   apache makes no  difference (the problem is in 
Tomcat). The number
   of concurrent  users shouldn't be  more than 50.  I
 haven't tested
   tomcat on any other platform or with another
database.


Typical peace of code from one of my servlets
connecting to oracle:

---
try {

db_driver = new oracle.jdbc.driver.OracleDriver();
DriverManager.registerDriver(db_driver);

con =
DriverManager.getConnection(jdbc:oracle:thin:@l2000:1521:WFI_T8,db_id,db_pw);


//... do something

}
catch (SQLException ex) {
...
}
finaly {
   if(stmt != null)
  stmt.close();
   if(con != null)
  con.close();
}   

--

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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




RE: AW: Classloader question

2001-12-20 Thread Arnaud Héritier

The simpliest solution is to rename your WEB-INF/lib/classes12.zip to 
WEB-INF/lib/classes12.jar and it works.

 -Message d'origine-
 De:   Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 20 décembre 2001 03:31
 À:Tomcat Users List
 Cc:   Lauer, Oliver
 Objet:Re: AW: Classloader question
 
 
 
 On Wed, 19 Dec 2001, David Morsberger wrote:
 
  Date: Wed, 19 Dec 2001 21:19:16 -0500
  From: David Morsberger [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED],
   Lauer, Oliver [EMAIL PROTECTED]
  Subject: Re: AW: Classloader question
 
  I ran into a similar problem today that I can not explain while upgrading to
  tomcat 3.3. The JSP we created accesses a bean that uses the oracle 1.2 JDBC
  driver, classes12.zip.
 
  I placed the Oracle classes12.zip file in the myapp/WEB-INF/lib directory
  and then I got the NoClassDef exception.
 
 
 This is the expected behavior.
 
  I unjar'd the .zip file in the myapp/WEB-INF/lib directory and still got the
  NoClassDef exception.
 
 
 So is this.
 
  I unjar'd the .zip file in the myapp/WEB-INF/classes directory and it
  worked.
 
 
 And this.  As an alternative, if you had put the JDBC driver in a JAR file
 in the /WEB-INF/lib directory, it also would have worked.
 
 See the Servlet Specification for more details about where web
 applications load classes from (unpacked classes under /WEB-INF/classes or
 ***JAR FILES*** under /WEB-INF/lib).
 
  Where should the .zip file be placed for inclusion in a bean? I recycled
  Tomcat after every attempt.
 
 Nowhere.
 
 Servlet containers look for JAR files, not ZIP files.  Why Oracle persists
 in shipping their JDBC drivers in ZIP format is a mystery to me -- but the
 complaints should go to them.
 
 Craig McClanahan
 
 
 --
 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]




mod_jk and Tomcat 4.0.1 on Linux

2001-12-20 Thread Tore Skogly

I am using Tomcat 4.0.1 and Apache 1.3.20 on a RedHat 7.2 system.
Does anyone know how to integrate Tomcat and Apache using mod_jk?
I would like to have Apache handle my static html pages and Tomcat to handle 
my jsps. and servlets, and to be able to place all my web content in 
directories under /var/www/html.

I have it working with Tomcat3.3.3, but the configuration between 3.3.3. and 
4.0.1 is quite different.

Any help is apreciated!

Regards
Tore Skogly

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




AW: Contrary Login Use Case

2001-12-20 Thread Ralph Einfeldt

Just one idea:

Define two jsp's:

/public/jsp/foowrapper.jsp
/member/jsp/foowrapper.jsp

Both JSP' contain just an include
to /jsp/foo.jsp

Let the login link point to
the /member/jsp/foowrapper.jsp

Let /member/jsp/foowrapper.jsp be 
protected by tomcat.

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 19. Dezember 2001 23:19
 An: [EMAIL PROTECTED]
 Betreff: Contrary Login Use Case
 
 
 In the standard use case for declarative security:
 
  1.  The user accesses a page
  2.  Tomcat uses web.xml-based Security Constraints and 
 session data about
 authenticated users to determine whether to fulfill the 
 request or redirect
 to a login or error page.
 
 This is good.  But let's say a business analyst decides that 
 in her webapp,
 every user should see page Foo without logging in.  In 
 addition a button
 shall be provided in Foo so that the lowly unauthenticated user can be
 authorized to see the page in its full glory, with all the 
 superuser bells
 and whistles.  (An example could be how Jive Forums work out 
 of the box.)
 
 In this case, say we are starting at Page A, clicking on a 
 link to some
 login servlet/jsp, and after authenticating, refreshing Page 
 A.  This seems
 to me like an awkward case for declarative security, but I 
 don't expect
 sympathy from this hypothetical business analyst.  So has 
 anyone advice for
 how to do this?  TIA.
 
 
 
 
 --
 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: Stability of Tomcat 3.3 vs. 4.0

2001-12-20 Thread GOMEZ Henri

Load balancing can be simulate it with several warp connectors 
and virtual
host, the load balancing is not more than a very good 
configured pooling
connection, that's what is in 4.x

It's not totally true. VirtualHost and warp connectors didn't
do a real load-balancing.

ie: If you have 500 clients to use a web-application on
your system, www.myapp.com/myapp/, you couldn't have
250 on one tomcat and 250 else on another tomcat.

And I feel that if you also need fault-tolerance, you should
use mod_jk

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




RE: AW: Classloader question

2001-12-20 Thread Justin Rowles

 Servlet containers look for JAR files, not ZIP files.  Why 
 Oracle persists
 in shipping their JDBC drivers in ZIP format is a mystery to 
 me -- but the
 complaints should go to them.

As I understand it, .zip files can be renamed to .jar files without a
problem.  The manifesto is missing, but it works anyway.

Anyone ever tried?

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: Illegal State Exception

2001-12-20 Thread tomcat-user-return-5492-archive=jab . org

 I would begin by examining the form on which the error 
 occured as indicated by the message. You should locate the source code
under the
 TOMCAT_HOME/work/{webcontext}/.../form_jsp_{Highest 
 number}.java That should
 show the source of the problem form and from there you should 
 be able to determine the cause

Unfortunately that form is only mentioned in the server error message cos
that is the one that was called.  The stack trace (see previous message)
does not mention my form at all.

FWIW, I am familiar with checking the generated servlet.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: Illegal State Exception - Further information.

2001-12-20 Thread tomcat-user-return-5493-archive=jab . org

 The Servlet spec says that you can not call
 HttpServletResponse.sendError() once output has been
 committed to the browser.  If you do so, you get
 the IllegalStateException you are seeing.  With
 content already sent, it is too late to do a 
 redirection.

AH!  *So*, the theory here is that I am generating more than the 8kb of
data, which is being autocommited to the browser, then an error occurs and
the servlet cannot send the error, but instead raises this exception.  Got
it.

In fact, I write a large form back in html.  If the last element were to be
null, and I try to write out a value thus:

%= myObject.myProperty %

then I would get this error as the servlet cannot raise a null pointer
exception as it would generally do.  Is that right?

I shall try this today, as it may well explain everything.

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: AW: Classloader question

2001-12-20 Thread Arnaud Héritier

I tried and it works.
The manifest isn't used here so you can only rename the file.

If you want to be clean you must unzip the file and recreate the jar but it's 
pointless.

arno

 -Message d'origine-
 De:   Justin Rowles [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 20 décembre 2001 11:09
 À:'Tomcat Users List'
 Objet:RE: AW: Classloader question
 
  Servlet containers look for JAR files, not ZIP files.  Why 
  Oracle persists
  in shipping their JDBC drivers in ZIP format is a mystery to 
  me -- but the
  complaints should go to them.
 
 As I understand it, .zip files can be renamed to .jar files without a
 problem.  The manifesto is missing, but it works anyway.
 
 Anyone ever tried?
 
 J.
 -- 
 You're only jealous cos the little penguins are talking to me. 
 
 
 
 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***
 
 
 
 
 --
 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 hangs due to mistyped Oracle login until that servelt completes !!!??

2001-12-20 Thread Vesna Milosavljevic


   Seems that this could be a buffering problem !

   Here is the output of a simple serlvet named DBping
 that accepts the oracle name/pass, connects to
database and execute a simple query. When started
DBping gets its ID (Random) so I can identify the
output in the log file. In the following example there
is the output of two instances of DBping servlet, both
started at about the same time  11:37:15  :

  DBping(14484884)  - wrong oracle login data
  DBping(12176391)  - correct oracle login data

I interpret this as :

  DBping(12176391) completes with no waiting, but its
response seem to be somehow prevented of being sent
back to the user until DBping(14484884) completes.
  

Tomcat.log

Thu Dec 20 11:37:15 CET 2001: DBping(14484884):
oracle.jdbc.driver.OracleDriver registered
Thu Dec 20 11:37:15 CET 2001: DBping(12176391):
oracle.jdbc.driver.OracleDriver registered
Thu Dec 20 11:37:23 CET 2001: DBping(14484884): SQL
Error: java.sql.SQLException: ORA-01017: invalid
username/password; logon denied

Thu Dec 20 11:37:15 CET 2001: DBping(12176391):
connected to Oracle
Thu Dec 20 11:37:15 CET 2001: DBping(12176391): query
executed
Thu Dec 20 11:37:15 CET 2001: DBping(12176391): ok
---

Is there a way to force Tomcat-3.3 to flush the
output???

Regards

Aleksandar Kostic


DBping.java source:
---
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.io.*;
import java.util.Date;
import java.util.Random;

public class DBping extends HttpServlet {

public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, java.io.IOException {
doGet(req,res);
}

public void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, java.io.IOException {
res.setContentType(text/html);
ServletOutputStream out = res.getOutputStream();

// Define Variables
// Initialise everything required for database
connection
String address = new String();
String db_id   = null;
String db_pw   = null;
String db_host = null;
String db_port = null;
String db_sid  = null;

String m_drivername = oracle;
String m_address= jdbc:oracle:thin:;
String sql  = SELECT SYSDATE FROM dual;

Driver db_driver = null;
Connection con   = null;
Statement stmt   = null;
ResultSet rs = null;

Random randGen=new Random(); // Random generator to
get unique ID
Date   today  =new Date();   // Get current date

int id = randGen.nextInt();

out.println(HTML);
out.println(HEADTITLEORA-ping
program/TITLE/HEAD);
out.println(BODY);

try {
// register the oracle driver driver
db_driver = new
oracle.jdbc.driver.OracleDriver();
DriverManager.registerDriver(db_driver);
// Get parameters
db_id   = req.getParameterValues(db_id)[0];
db_pw   = req.getParameterValues(db_pw)[0];
db_host = req.getParameterValues(db_host)[0];
db_port = req.getParameterValues(db_port)[0];
db_sid  = req.getParameterValues(db_sid)[0];
// make driver init string
m_address += @+db_host+:+db_port+:+db_sid;

db_driver = new
oracle.jdbc.driver.OracleDriver();
DriverManager.registerDriver(db_driver);
System.out.println(today.toString() + :
DBping(+id+): oracle.jdbc.driver.OracleDriver
registered );

// Open Connection
con =
DriverManager.getConnection(m_address,db_id,db_pw);
System.out.println(today.toString() +:
DBping(+id+): connected to Oracle);
// Create and Execute stmt
stmt = con.createStatement();
rs = stmt.executeQuery(sql);
System.out.println(today.toString() +:
DBping(+id+): query executed);
int i=0;
while (rs.next()) { // Print result
out.println(SYSDATE : '+rs.getObject(1).toString()
+ ' br);
i = i + 1;
}
System.out.println(today.toString() +:
DBping(+id+): ok);
}

catch (SQLException ex) {
// Print error
today = new Date();
System.out.println(today.toString() +:
DBping(+id+): SQL Error: +ex.toString());
out.println(H1An Error Occurred/H1);
out.println(DB ping - SQL Exception :
+ex.toString() +BR);
}
catch (Exception ex) {
// Print error
today = new Date();
System.out.println(today.toString() +:
DBping(+id+): Error: +ex.toString());
out.println(H1An Error Occurred/H1);
out.println(DB 

RE: AW: Classloader question

2001-12-20 Thread Justin Rowles

 I tried and it works.
 The manifest isn't used here so you can only rename the file.
 
 If you want to be clean you must unzip the file and recreate 
 the jar but it's pointless.

Thanks for that - that was my understanding.  Nice to have it confirmed.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




subfolder in WEB-INF

2001-12-20 Thread Ralf Praschak

hello!

i´ve a problem to solve. all me ideas doesn´t work ;(

i have a folder projekt in the webapps
the servlet classes are in the classes folder of the WEB-INF
- webapps/projekt/WEB-INF/classes

a servlet called Hello.class in the classes folder runs perfect
- http://server/projekt/servlet/Hello

but what i want to achive is that subfolders of projekt can contain their
own servlets
this subfolders are symbolic links

for example there is a projekt called test
it is accessable via http://server/projekt/test

now i want to serv servlets like this
- http://server/projekt/test/servlet/Hello

how can i to this???

i tried it with subfolders in the classes directory
i tried it with subfolders in the projekt directory and making their own
WEB-INF

nothing works. i am getting every time a 404
2001-12-20 13:28:25 - Ctx( /projekt ): 404 R( /projekt + /test/servlet/Hello
+ null) null
2001-12-20 13:41:15 - Ctx( /projekt ): 404 R( /projekt + /servlet/test +
/Hello) null

any suggestions?
i am using tomcat 3.2.4, apache 1.3.19 with mod_jk and cocoon 1.8.2

*.xml, *.jsp files are no problem, they are working in the subfolders but
the servelts ;(

tnx ralf




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




RE: Clear Cache In IE5

2001-12-20 Thread Guido Medina

The last thing you can do is to stop tomcat, erase everything inside
TOMCAT_HOME/work and start it again.

-Original Message-
From: Yiu Wing [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 10:00 PM
To: 'Tomcat Users List'
Subject: Re: Clear Cache In IE5


 Go to server.xml and add this property to your context 
 reloadable=true .../

Actually, I've already got that in place.  Here's what I have in the
server.xml file

Context path= docBase=ERPS debug=0 reloadable=true/

but TomCat still gives me the old page.  Maybe someone on the list can tell
me why.

Anyway, thanks all the same.


 -Original Message-
 From: Yiu Wing [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 12:19 AM
 To: Tomcat Users List
 Subject: Re: Clear Cache In IE5


  1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit
to
  the Page.
 
  2)Tools/Internet Options/Temporary Internet Files/Delete Files/All
offline
  content.
 
  And after Refresh for every page. Do it, I had that problem before and
 more
  if you use any caching server like squid, etc.
 
  Guido

 Thanks for that.  But my problem turns out that TomCat gives the older
 version of my webapp.  Actually, I replaced a new jsp file in my webapp
with
 exactly the same name as the old jsp file.  However, TomCat4.0 still gives
 me the older version.  This is really annoying, why TomCat does something
 like that?  I thought IE was the culprit but it's not. I'd really
appreciate
 it, if someone can help me with this.

 Thanks a lot.

  -Original Message-
  From: Yiu Wing [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 19, 2001 5:07 PM
  To: [EMAIL PROTECTED]
  Subject: Clear Cache In IE5
 
 
  Hello all,
 
  This is a little bit off topic. Can you tell me how can I clear the
cache
 in
  IE so that I can see the change I've in made in my webapp after invoking
  TomCat4.0 again?  Thanks in advance.
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 
  --
  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 4 mod_webapp in Win2k

2001-12-20 Thread Bruno VERNAY

At least I solved my problem !
I was trying to put the webapps in a different directory. I use Tomcat 4 
and Apache 1.3.22 with an WARP connector (mod_webapps.)

First : I totaly delete the Stand-alone service in the server.xml. It 
worked. Then I moved the WebApps directory and here is my new server.xml .
As you can see I added a Host and a context. It seems to work so far. It 
is a good or bad solution, any idea ?
(I explain the whole thing in http://bruno.vernay.free.fr/HowTo/index.html)

   Service name=Tomcat-Apache

 Connector className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/

 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0 defaultHost=123.137.245.357
  appBase=D:/bruno/doc/Dev/web/webapps

Host name=123.137.245.357 debug=0
 appBase=D:/bruno/doc/Dev/web/webapps unpackWARs=true

 !-- Tomcat Examples Context --
 Context path=/examples
docBase=D:/bruno/doc/Dev/web/webapps/examples debug=0
  reloadable=true/
/Host

   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/

   Realm className=org.apache.catalina.realm.MemoryRealm /
 /Engine
   /Service

**
Bruno Mizzi-Vernay
[EMAIL PROTECTED]
#ICQ : 1923685
**


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




Re: subfolder in WEB-INF

2001-12-20 Thread Vesna Milosavljevic

As far as I know (I'm mostly CGI programer), you
shlould put subproject servlets into  package named
for example test_srv, and upload servlets (and other
related classes) in :

  webapps/projekt/WEB-INF/classes/test_srv/...

Now you can call your servlets:

   http://server/projekt/servlet/test_svr.Hello

all this is because  (as far as I know) In one
context ther mey be only one WEB-INF/classe dir.

Regards

Aleksadrad Kostic

--- Ralf Praschak [EMAIL PROTECTED] wrote:
 hello!
 
 i´ve a problem to solve. all me ideas doesn´t work
 ;(
 
 i have a folder projekt in the webapps
 the servlet classes are in the classes folder of the
 WEB-INF
 - webapps/projekt/WEB-INF/classes
 
 a servlet called Hello.class in the classes folder
 runs perfect
 - http://server/projekt/servlet/Hello
 
 but what i want to achive is that subfolders of
 projekt can contain their
 own servlets
 this subfolders are symbolic links
 
 for example there is a projekt called test
 it is accessable via http://server/projekt/test
 
 now i want to serv servlets like this
 - http://server/projekt/test/servlet/Hello
 
 how can i to this???
 
 i tried it with subfolders in the classes directory
 i tried it with subfolders in the projekt directory
 and making their own
 WEB-INF
 
 nothing works. i am getting every time a 404
 2001-12-20 13:28:25 - Ctx( /projekt ): 404 R(
 /projekt + /test/servlet/Hello
 + null) null
 2001-12-20 13:41:15 - Ctx( /projekt ): 404 R(
 /projekt + /servlet/test +
 /Hello) null
 
 any suggestions?
 i am using tomcat 3.2.4, apache 1.3.19 with mod_jk
 and cocoon 1.8.2
 
 *.xml, *.jsp files are no problem, they are working
 in the subfolders but
 the servelts ;(
 
 tnx ralf
 
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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




RE: Problems executing Conn Pool example that comes with JSQLConnect

2001-12-20 Thread Guido Medina

put this file also inside TOMCAT_HOME/common/lib or /lib

-Original Message-
From: Rudi Doku [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 8:28 PM
To: [EMAIL PROTECTED]
Subject: Problems executing Conn Pool example that comes with
JSQLConnect


Greetings,

I'm currently evaluating the JSQLConnect Driver. I downloaded jndi1_2_1.zip 
from the sun site, followed the instructions and installed it in the 
following directory - C:\jdk1.3\jre\lib\ext\jndi.jar; I also added this path

to my classpath.

My problem is that I get the following exception when I run 
ExampleConnectionPool.java from the command line.

Error:init JNDI  javax.naming.NoInitialContextException: Cannot instantiate 
class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.
lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]
Error:Register Datasources  java.lang.NullPointerException
JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class:

com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.C
lassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]


Any feedback will be very much appreciated.

Cheers,

Rudi


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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



Re: google

2001-12-20 Thread Bruno VERNAY

I didn't find any newsgroup too.
Is there only http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2
to avoid the mailing-list ?

I have try comp.lang.java.programmer but it's too general. I don't thing 
that it is the right place to discuss Tomcat-Apache WARP connector.

Thanks




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




RE: AW: Classloader question

2001-12-20 Thread Guido Medina

a piece of advise is to unzip it and create a jar file with the unzipped
files...it is easy with the jar tool.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 10:31 PM
To: Tomcat Users List
Cc: Lauer, Oliver
Subject: Re: AW: Classloader question




On Wed, 19 Dec 2001, David Morsberger wrote:

 Date: Wed, 19 Dec 2001 21:19:16 -0500
 From: David Morsberger [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED],
  Lauer, Oliver [EMAIL PROTECTED]
 Subject: Re: AW: Classloader question

 I ran into a similar problem today that I can not explain while upgrading
to
 tomcat 3.3. The JSP we created accesses a bean that uses the oracle 1.2
JDBC
 driver, classes12.zip.

 I placed the Oracle classes12.zip file in the myapp/WEB-INF/lib directory
 and then I got the NoClassDef exception.


This is the expected behavior.

 I unjar'd the .zip file in the myapp/WEB-INF/lib directory and still got
the
 NoClassDef exception.


So is this.

 I unjar'd the .zip file in the myapp/WEB-INF/classes directory and it
 worked.


And this.  As an alternative, if you had put the JDBC driver in a JAR file
in the /WEB-INF/lib directory, it also would have worked.

See the Servlet Specification for more details about where web
applications load classes from (unpacked classes under /WEB-INF/classes or
***JAR FILES*** under /WEB-INF/lib).

 Where should the .zip file be placed for inclusion in a bean? I recycled
 Tomcat after every attempt.

Nowhere.

Servlet containers look for JAR files, not ZIP files.  Why Oracle persists
in shipping their JDBC drivers in ZIP format is a mystery to me -- but the
complaints should go to them.

Craig McClanahan


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



RE: mod_jk / EAPI for Win NT

2001-12-20 Thread Larry Isaacs

I'm probably not as well informed on this one as I
should be.  I haven't yet tried to build an Apache with
mod_ssl, which I assume is where the EAPI is coming in.

I wouldn't thing that mod_jk operation would be
affected, so I think the warning could be ignored.

I'll try to install mod_ssl on a Win32 platform at
some point and see if I find any issues.

Cheers,
Larry

 -Original Message-
 From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 1:53 AM
 To: 'Tomcat Users List'
 Subject: AW: mod_jk / EAPI for Win NT
 
 
 Laryy, 
 I understand, so the given warning while starting up Apache/TC doesn't
 matter at all ? 
 Oliver
 
  AXA eSolutions GmbH
  AXA Konzern AG Germany
  Oliver Lauer 
  Web Architect
  Wörthstraße 34
  D-50668 Köln
  Germany
  Tel.: +49 221 148 31277
  Fax: +49 221 148 43963
  Mobil: +49 179 59 064 59
  e-Mail: [EMAIL PROTECTED]
  _
  
 
 
 -Ursprüngliche Nachricht-
 Von: Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 19. Dezember 2001 15:15
 An: 'Tomcat Users List'
 Betreff: RE: mod_jk / EAPI for Win NT
 
 
 You can try mod_jk.dll from Tomcat 3.3, found at:
 
 http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/
 bin/win32/i386
 /
 
 Cheers,
 Larry
 
 P.S. EAPI doesn't apply to Win32 platforms.  It's all DLL's.
 
  -Original Message-
  From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 19, 2001 2:41 AM
  To: Tomcat Users List (E-Mail)
  Subject: mod_jk / EAPI for Win NT
  
  
  Hi all, 
  
  can somebody provide me with a mod_jk-module for EAPI or tell 
  me where I can
  found the source to build it on my own (with EAPI support). 
  Plattform ist
  Win NT.
  
  Thanks in advance ! 
  
  Thanks
  Oliver
  
   AXA eSolutions GmbH
   AXA Konzern AG Germany
   Oliver Lauer 
   Web Architect
   Wörthstraße 34
   D-50668 Köln
   Germany
   Tel.: +49 221 148 31277
   Fax: +49 221 148 43963
   Mobil: +49 179 59 064 59
   e-Mail: [EMAIL PROTECTED]
   _
   
   
  
  --
  
  Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail 
  gegebene Information nicht rechtsverbindlich. Eine 
  rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf 
  Anforderung in schriftlicher Form nach. Beachten Sie bitte, 
  dass jede Form der unautorisierten Nutzung, 
  Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
  Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  
  ist ausschliesslich fuer den bezeichneten Adressaten oder 
  dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene 
  Adressat dieser E-Mail oder dessen Vertreter sein, so bitten 
  wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen.
  
  For legal and security reasons the information provided in 
  this e-mail is not legally binding. Upon request we would be 
  pleased to provide you with a legally binding confirmation in 
  written form. Any form of unauthorised use, publication, 
  reproduction, copying or disclosure of the content of this 
  e-mail is not permitted. This message is exclusively for the 
  person addressed or their representative. If you are not the 
  intended recipient of this message and its contents, please 
  notify the sender immediately.
  
  ==
  
  
  
  --
  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]
 
 
 
 Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail 
 gegebene Information nicht rechtsverbindlich. Eine 
 rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf 
 Anforderung in schriftlicher Form nach. Beachten Sie bitte, 
 dass jede Form der unautorisierten Nutzung, 
 Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
 Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  
 ist ausschliesslich fuer den bezeichneten Adressaten oder 
 dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene 
 Adressat dieser E-Mail oder dessen Vertreter sein, so bitten 
 wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen.
 
 For legal and security reasons the information provided in 
 this e-mail is not legally binding. Upon request we would be 
 pleased to provide you with a legally binding confirmation in 
 written form. Any form of unauthorised use, publication, 
 reproduction, copying or disclosure of the content of this 
 e-mail is not permitted. This message is exclusively for the 
 person addressed or their representative. If you are not the 
 intended recipient of this message and its 

RE: AW: Classloader question

2001-12-20 Thread Guido Medina

the manifest.dtd can be generated with the jar tool, don't invent, just
follow the standards...unzip, jar -c somedir somefile.jar

That's it

-Original Message-
From: Justin Rowles [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 6:09 AM
To: 'Tomcat Users List'
Subject: RE: AW: Classloader question


 Servlet containers look for JAR files, not ZIP files.  Why 
 Oracle persists
 in shipping their JDBC drivers in ZIP format is a mystery to 
 me -- but the
 complaints should go to them.

As I understand it, .zip files can be renamed to .jar files without a
problem.  The manifesto is missing, but it works anyway.

Anyone ever tried?

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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



RE: subfolder in WEB-INF

2001-12-20 Thread Larry Isaacs

The URL would be http://server/projekt/servlet/test.Hello
if you don't want to use a servlet mapping in web.xml.

Cheers,
Larry

 -Original Message-
 From: Ralf Praschak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 7:35 AM
 To: Tomcat Mailinglist
 Subject: subfolder in WEB-INF
 
 
 hello!
 
 i´ve a problem to solve. all me ideas doesn´t work ;(
 
 i have a folder projekt in the webapps
 the servlet classes are in the classes folder of the WEB-INF
 - webapps/projekt/WEB-INF/classes
 
 a servlet called Hello.class in the classes folder runs perfect
 - http://server/projekt/servlet/Hello
 
 but what i want to achive is that subfolders of projekt can 
 contain their
 own servlets
 this subfolders are symbolic links
 
 for example there is a projekt called test
 it is accessable via http://server/projekt/test
 
 now i want to serv servlets like this
 - http://server/projekt/test/servlet/Hello
 
 how can i to this???
 
 i tried it with subfolders in the classes directory
 i tried it with subfolders in the projekt directory and 
 making their own
 WEB-INF
 
 nothing works. i am getting every time a 404
 2001-12-20 13:28:25 - Ctx( /projekt ): 404 R( /projekt + 
 /test/servlet/Hello
 + null) null
 2001-12-20 13:41:15 - Ctx( /projekt ): 404 R( /projekt + 
 /servlet/test +
 /Hello) null
 
 any suggestions?
 i am using tomcat 3.2.4, apache 1.3.19 with mod_jk and cocoon 1.8.2
 
 *.xml, *.jsp files are no problem, they are working in the 
 subfolders but
 the servelts ;(
 
 tnx ralf
 
 
 
 
 --
 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]




Unknown error

2001-12-20 Thread JBrawner

I have Tomcat 4 running standalone. The error message below is in my
catalina_log file many times and I don't know what the problem is.  All my
JSP's and servlets run fine.


2001-12-20 07:53:45 HttpProcessor[80][3] process.invoke
java.lang.NullPointerException
 at
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Thread.java:484)


Any idea's on how to fix this?

Thanks,
Jason E. Brawner



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




RE: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Hi there,
I can give you all the help you need -- I just did that. You will need to 
create a custom realm (not tough), and then there are some infrastructure dependent 
details to consider. Email me back if you want info.


Chris




-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:55 AM
To: [EMAIL PROTECTED]
Subject: Please help me on NT Authentication


Hi,
  
I am building a system for the Intranet. We have a NT network. I wanted to know if by 
any means I can use the username and password that is registered in the NT Server, so 
that when a user logs in to NT system, he should be automatically logged in to my 
application built on Tomcat?

Can anybody guide me on how to go abt it?

Thanks in anticipation




--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation (up 
to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/

--
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: File upload won't work with Tomcat4 ...

2001-12-20 Thread Bongiorno.Christian

I sniffed around google for 10 minutes and came up with perfect and simple code for 
this task.

Look under 
java servlet http upload



-Original Message-
From: martin eberle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:42 AM
To: [EMAIL PROTECTED]
Subject: File upload won't work with Tomcat4 ...


Hi,

i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
doesn't matter which filetype, the result
is always the same:

Apache Tomcat/4.0.1 - HTTP Status 404 -
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)
type Status report
message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
not found)
description The requested resource
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)) is not available.

I know, that the file has not been found, cause i try to create it ;)
... 

Tomcat directory structure to .jsp files (oh, directory / file user
rights, etc. has been set correctly!):
/var/tomcat4/webapps/mywebapp/

Tomcat directory structure to data (upload) files:
/var/tomcat4/webapps/mywebapp/data/attachements/

In my upload class, i've defined the var SAVEPATH which contain's the
store path as string ... :
String savePath=../webapps/mywebapp/data/attachements/;

Question 1:
From which base directory does tomcat try to access the data dir?
(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...

Question 2:
Is my savePath definition just wrong?

What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
well 

Thx for any answers ...

Regards,
-martin

--
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 4.01 tag renders in wrong place

2001-12-20 Thread RSEQUEIRA


Thanks Craig. PageContext.include() can be a boon and a bane as well :-)





Craig R. McClanahan [EMAIL PROTECTED]@localhost on 12/19/2001
08:52:11 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

Sent by:  craigmcc@localhost


To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  Re: Tomcat 4.01 tag renders in wrong place



On Wed, 19 Dec 2001, Bill Pfeiffer wrote:

 Date: Wed, 19 Dec 2001 21:44:14 -0500
 From: Bill Pfeiffer [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Tomcat 4.01 tag renders in wrong place

 David,

 My architecture is pretty straightforward.  I have a jsp page.  It
contains
 my tag.  My tag does a RequestDispatcher.inlcude() to another jsp page
based
 on whether a user is logged in.  Nothing tricky here.

 Well, except for the trick of the included content magically appearing in
 the wrong spot!


There were a couple of bug fixes in this area that will show up in Tomcat
4.0.2 shortly (and are also fixed in the HEAD branch, which is what you
get when you download a nightly build).

You should also be aware, in case it matters to your application logic,
that calling PageContext.include() causes the response to be committed
first.  This is due to a requirement that remains in the Javadocs for
PageContext.include() from JSP 1.1 days -- even though that is no longer
the desired behavior, the requirement is still there and still has to be
enforced.


 Thanks for your response,
 Bill Pfeiffer

Craig


--
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: Please help me on NT Authentication

2001-12-20 Thread Bruno VERNAY

I would be interested too, if you can share it.
Thanks.

Bongiorno.Christian wrote:

 Hi there,
   I can give you all the help you need -- I just did that. You will need to 
create a custom realm (not tough), and then there are some infrastructure dependent 
details to consider. Email me back if you want info.
 
 
 Chris
 
 
 
 
 -Original Message-
 From: ans M [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 3:55 AM
 To: [EMAIL PROTECTED]
 Subject: Please help me on NT Authentication
 
 
 Hi,
   
 I am building a system for the Intranet. We have a NT network. I wanted to know if 
by any means I can use the username and password that is registered in the NT Server, 
so that when a user logs in to NT system, he should be automatically logged in to my 
application built on Tomcat?
 
 Can anybody guide me on how to go abt it?
 
 Thanks in anticipation
 
 
 
 
 --
 You Win!  We Donate.
 Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation 
(up to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/
 
 --
 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]
 
 


-- 
**
Bruno Mizzi-Vernay
[EMAIL PROTECTED]
#ICQ : 1923685
**


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




AW: File upload won't work with Tomcat4 ...

2001-12-20 Thread martin eberle

hmmm, thx for the hint, but i've checked out google by nearly the same
keywords and websites in result  ;)

i'm in position to think, it's any logical error in my code, not
caused by tomcat .. hmm .. anyway, thx for supporting me ... 

-martin

-Ursprüngliche Nachricht-
Von: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. Dezember 2001 14:43
An: Tomcat Users List
Betreff: RE: File upload won't work with Tomcat4 ...


I sniffed around google for 10 minutes and came up with perfect and
simple code for this task.

Look under 
java servlet http upload



-Original Message-
From: martin eberle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:42 AM
To: [EMAIL PROTECTED]
Subject: File upload won't work with Tomcat4 ...


Hi,

i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
doesn't matter which filetype, the result
is always the same:

Apache Tomcat/4.0.1 - HTTP Status 404 -
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)
type Status report
message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
not found)
description The requested resource
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)) is not available.

I know, that the file has not been found, cause i try to create it ;)
... 

Tomcat directory structure to .jsp files (oh, directory / file user
rights, etc. has been set correctly!):
/var/tomcat4/webapps/mywebapp/

Tomcat directory structure to data (upload) files:
/var/tomcat4/webapps/mywebapp/data/attachements/

In my upload class, i've defined the var SAVEPATH which contain's the
store path as string ... :
String savePath=../webapps/mywebapp/data/attachements/;

Question 1:
From which base directory does tomcat try to access the data dir?
(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...

Question 2:
Is my savePath definition just wrong?

What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
well 

Thx for any answers ...

Regards,
-martin

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




Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

I am a programmer, not an html guy. And as such, I am having some problems
getting jsps to work correctly with a frame set. Here is a sample of a web
page with the html I need


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN

HTML
HEAD
 META HTTP-EQUIV=Content-Type CONTENT=text/html;CHARSET=iso-8859-1
 META NAME=GENERATOR Content=Visual Page 2.0 for Windows
 TITLE/TITLE

/HEAD
FRAMESET   COLS = 100%   
 FRAMESET  ROWS = 60,99%,50BORDER=0 FRAMESPACING=0
FRAMEBORDER=NO
  FRAME SRC=header.html NAME=Header MARGINWIDTH=5 MARGINHEIGHT=5
NORESIZE
  FRAMESET   COLS = 200,100%   
   FRAME SRC=menu.html NAME=Menu SCROLLING=NO MARGINWIDTH=3
MARGINHEIGHT=10 NORESIZE

   FRAME SRC=main.html NAME=Data MARGINWIDTH=5 MARGINHEIGHT=5
RESIZE

  /FRAMESET
  FRAME SRC=footer.html NAME=Footer MARGINWIDTH=5 MARGINHEIGHT=5
RESIZE
 /FRAMESET
/FRAMESET
NOFRAMES
BODY

P

/BODY

/NOFRAMES

/HTML



Right where it say
   FRAME SRC=main.html NAME=Data MARGINWIDTH=5 MARGINHEIGHT=5
RESIZE

I need to insert jsp stuff. Here is the jsp file that works. Now to
integrate. I basically want the login jsp to be centered in these frames

center
   form method=POST action='j_security_check' 
  table border=0 cellspacing=5
tr
   th align=rightUsername:/th
   td align=leftinput type=text name=j_username/td
/tr
tr
   th align=rightPassword:/th
   td align=leftinput type=password name=j_password/td
/tr
tr
   td colspan=2
 center
  pinput type=submit value=Log Innbsp;input
type=reset
 /center
 /td
  /tr
  /table
   /form
   /center

would someone help a poor java hack with html?


Chris


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




RE: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Since this is a security sensitive issue, if you would like to email me offline to 
discuss that would be cool.
If not, we can discuss on mailing-group. Let me know and then I have some questions


Chris

-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 8:50 AM
To: Tomcat Users List
Subject: Re: Please help me on NT Authentication


I would be interested too, if you can share it.
Thanks.

Bongiorno.Christian wrote:

 Hi there,
   I can give you all the help you need -- I just did that. You will need to 
create a custom realm (not tough), and then there are some infrastructure dependent 
details to consider. Email me back if you want info.
 
 
 Chris
 

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




RE: Tomcat memory setup

2001-12-20 Thread Randy Layman


There seems to be an echo, because this question was asked and
answered (by myself) yesterday.  Pass the -Xmx and -Xms options to the call
to the JVM in tomcat.sh, or set TOMCAT_OPTS (for TC 3.x) or CATALINA_OPTS
(for TC 4.x) to be the command line switches mentioned above in your
startup.sh file (or your shell environment).

Randy

 -Original Message-
 From: Gilles Hooghe [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 9:33 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat memory setup
 
 
 How can I set manually the memory used by Tomcat.
 I would like to do it into the startup.sh script.
 
 Thanks
 G+
 
 
 --
 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: black magic mystery

2001-12-20 Thread Cox, Charlie

I'm not familiar with soap, but when you say soap is in its
web-inf/classes, the MessageServer class should not be included in
web-inf/classes, otherwise that one will be loaded and the common one will
be ignored. this is better explained in the classloader doc.

Charlie

 -Original Message-
 From: E B [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 4:39 AM
 To: [EMAIL PROTECTED]
 Subject: black magic mystery 
 
 
 This is about classloaders again. Same old problem
 about message style soap services, and soap classes
 in soap/WEB-INF/classes.
 
 1. How do I find out which classloader loaded the 
 classes shown in the stack trace?
 
 2. In the stack trace that is shown below, 
the class MessageServer is in the common/classes, 
but soap is in its web-inf/classes. So soap's 
class loader should be able to take the help of
common classloader to load the MessageServer class.
Why then does it complain?
 
 
 
   ?xml version=1.0 encoding=UTF-8 ? 
 - SOAP-ENV:Envelope
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/1999/XMLSchema;
 - SOAP-ENV:Body
 - SOAP-ENV:Fault
   faultcodeSOAP-ENV:Server/faultcode 
   faultstringException while handling service
 request:
 MessageServer.processMessage(org.apache.soap.Envelope,org.apac
he.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext)
 -- no signature match/faultstring 
   faultactor/soap/servlet/messagerouter/faultactor
 
 - detail
   stackTracejava.lang.NoSuchMethodException:
 MessageServer.processMessage(org.apache.soap.Envelope,org.apac
he.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext)
 -- no signature match at
 org.apache.soap.util.MethodUtils.getEntryPoint(MethodUtils.java:194)
 at
 org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:548)
 at
 org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:528)
 at
 org.apache.soap.server.MessageRouter.invoke(MessageRouter.java:54)
 at
 org.apache.soap.providers.MsgJavaProvider.invoke(MsgJavaProvid
 er.java:125)
 at
 org.apache.soap.server.http.MessageRouterServlet.doPost(Messag
 eRouterServlet.java:268)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled Code) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled Code) at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java,
 Compiled Code) at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java,
 Compiled Code) at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java,
 Compiled Code) at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code) at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code) at
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java,
 Compiled Code) at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code) at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java,
 Compiled Code) at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code) at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code) at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code) at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java,
 Compiled Code) at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code) at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java,
 Compiled Code) at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code) at
 

RE: File upload won't work with Tomcat4 ...

2001-12-20 Thread Bongiorno.Christian

Here is the code I use for uploading... It's like 5 lines...Ok, I made it a smidge 
more complicated -- this is the cool-kid version. You know, production quality

Didn't mean to be a pain -- didn't feel like openning my IDE and logging into the 
network

Chris


  private void upLoadZipFile(String zipFileName,HttpServletResponse response)
  {
byte[] data   = null;
try
{
  ServletOutputStream stream= response.getOutputStream();
  BufferedInputStream fromFile  = new BufferedInputStream(new 
FileInputStream(this.pathToZips + zipFileName));

  response.setContentType(application/x-zip-compressed);
  response.setHeader(Content-Disposition, attachment; filename= + zipFileName 
+ ;);

  while(fromFile.available()  0)
  {
data = new byte[fromFile.available()];
fromFile.read(data,0,fromFile.available());
stream.write(data);
  }
}
catch(IOException e) {
  e.fillInStackTrace().printStackTrace();
}
finally {
  try {
fromFile.close();
stream.close();
  }
  catch(Exception exc) {
   exc.fillInStackTrace().printStackTrace();
  }
}

  }





-Original Message-
From: martin eberle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 8:49 AM
To: Tomcat Users List
Subject: AW: File upload won't work with Tomcat4 ...


hmmm, thx for the hint, but i've checked out google by nearly the same
keywords and websites in result  ;)

i'm in position to think, it's any logical error in my code, not
caused by tomcat .. hmm .. anyway, thx for supporting me ... 

-martin

-Ursprüngliche Nachricht-
Von: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. Dezember 2001 14:43
An: Tomcat Users List
Betreff: RE: File upload won't work with Tomcat4 ...


I sniffed around google for 10 minutes and came up with perfect and
simple code for this task.

Look under 
java servlet http upload



-Original Message-
From: martin eberle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:42 AM
To: [EMAIL PROTECTED]
Subject: File upload won't work with Tomcat4 ...


Hi,

i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
doesn't matter which filetype, the result
is always the same:

Apache Tomcat/4.0.1 - HTTP Status 404 -
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)
type Status report
message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
not found)
description The requested resource
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)) is not available.

I know, that the file has not been found, cause i try to create it ;)
... 

Tomcat directory structure to .jsp files (oh, directory / file user
rights, etc. has been set correctly!):
/var/tomcat4/webapps/mywebapp/

Tomcat directory structure to data (upload) files:
/var/tomcat4/webapps/mywebapp/data/attachements/

In my upload class, i've defined the var SAVEPATH which contain's the
store path as string ... :
String savePath=../webapps/mywebapp/data/attachements/;

Question 1:
From which base directory does tomcat try to access the data dir?
(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...

Question 2:
Is my savePath definition just wrong?

What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
well 

Thx for any answers ...

Regards,
-martin

--
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: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bruno VERNAY

Can you replace the src=main.html by src=yourfile.jsp ?
It should work


**
Bruno Mizzi-Vernay
[EMAIL PROTECTED]
**


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




RE: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

and then for the login page in the web.xml I just put my html page? I thought that 
might work. I will try!

-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:00 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Can you replace the src=main.html by src=yourfile.jsp ?
It should work


**
Bruno Mizzi-Vernay
[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: Unknown error

2001-12-20 Thread Larry Isaacs

This is a bug in ErrorDispatcherValve that occurs if
the request doesn't map to a context, i.e. line 280
is:

ErrorPage errorPage = context.findErrorPage(statusCode);

and context is null.  This bug has been fixed and appears
in the current Tomcat 4.0-dev and will appear in the next
4.1 and 4.0.2 releases.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 8:12 AM
 To: [EMAIL PROTECTED]
 Subject: Unknown error
 
 
 I have Tomcat 4 running standalone. The error message below is in my
 catalina_log file many times and I don't know what the 
 problem is.  All my
 JSP's and servlets run fine.
 
 
 2001-12-20 07:53:45 HttpProcessor[80][3] process.invoke
 java.lang.NullPointerException
  at
 org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDi
 spatcherValve.java:280)
  at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:180)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:462)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:163)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1011)
  at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1106)
  at java.lang.Thread.run(Thread.java:484)
 
 
 Any idea's on how to fix this?
 
 Thanks,
 Jason E. Brawner
 
 
 
 --
 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: Any one knows a good Web hosting service?

2001-12-20 Thread Keith Morgan

check out kgbinternet.com.  Servlet support, mysql, very low rates made even
lower by being in Canadian $.  I've been using it for several months with no
complaints.

-Original Message-
From: yilmaz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 5:33 AM
To: Tomcat Users List
Subject: Any one knows a good Web hosting service?


Hi all,
The subject may sound a trivial subject for you, please be patient with me.
if you are providing this kind of service or would like to suggest me a good
JSP ISP please do continue reading:
You can reply to my private email address :
[EMAIL PROTECTED]
Our company is located in taipei/taiwan
We have already finished an application program written in JSP 1.2 using
tomcat 4 and Mysql 3.23 on win 2000.
for a week i have been looking for  a reasonable web hosting service on the
internet but all my efforts are in vain.
i have searched the archives , the list of the JSP ISPs in servlets.com and
adrenalin.com, i found a few
reasonable and suitable companies.However, i wrote to those adresses four
times but couldn't get any reply,
it seems that they already have enough customers, and don't need (want ?)
new  ones.
 As a result i decided to bring the issue up here, hoping that one of yours'
companies wants to offer an inexpensive  web hosting for us.
Our requirements :
0) Inexpensive (around 10 to 20 USD /month including all the features below)
1) Isp should be supporting at least JSP 1.1 (JSP 1.2 is preferable)
2) Any servlet engine compatible with tomcat 4 (tomcat 4 is preferable)
our application is bundled as a war file, the ISP servlet engine should be
able to
automatically open and deploy this war file at their sites
3) Any OS, but windows is preferable.
4) a suitable administration interface through web (e.g a control panel) for
both Jsp files and the database.
5) 50 M space for java server , 50 M for the web server
We need to put media files (mp3 or mpg) on the web server (either apache or
IIS)
6) we already have two registered domain names, we need hosting for both in
a single space.
7) ISP should be supporting MySQL database version 3.23 or higher.
8) We need a trial period, at least one day. First we want to upload and
install our
program and database on the server, try and test everything. If everything
works well
we will purchase one year service.
9) one month money back guarantee.
10) at least two ftp accounts , if on unix a telnet account.


thank you very much for bearing me.
best regards  :)
yilmaz



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



RE: HELP - URGENT : Stability of Tomcat if compare with JBOSS or JRUN

2001-12-20 Thread Kemp Randy-W18971

I have never used Tomcat for large scale projects like this, but some on the list 
have.  But I will ask a few questions.  Do you plan on using EJB or just JSP and 
servlets?  If so, look at Resin at www.caucho.com as another option.  This can be 
hooked up to Jboss but not in the same VM.  If budget constraints are not an issue, 
given the amount of people this would serve, I would seriously look at Weblogic and 
Oracle.  

-Original Message-
From: Frans Thamura [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 8:03 PM
To: Tomcat Users List
Subject: HELP - URGENT : Stability of Tomcat if compare with JBOSS or
JRUN


Dear All,

I am in a decision to buy a software or use tomcat in real production.. I am
very familiar with tomcat 3.2, but never try 3.3, and tomcat 4 still in
progress (i cannot recommended tomcat 3.3 and 4 because i still cannot
install cocoon 1.8.2, and the cocoon list still not response)..Because our
content management system is run on top of cocoon 1.8.2 and cocoon 2 is not
compatible. :(

I want to create a portal, category: intranet, with staff more than 10.000.
This will become nationally project that handle more than millions people...

The country for implementation is Indonesia. This is not a internet portal,
but will be intranet portal with private B2B marketplace inside it. This
project must run on the Net at April, and the prototype of this B2B using
Tomcat :)

The project will serve approx half of Indonesian citizen ( I think this is
database problem right) and there will be instance problem there...
Indonesia have 250 millions citizen, and there will be 120million citizen,
the database will include all parents and children.

Current System is using Oracle Developer, ORacle Database, and SUN (more
than 20 SUNs was used there)... and there will be more than 24 points of
Frame Relay connection.

I need you question. The category is URGENT.. if you can recommended it
using Tomcat, I will use it.. or may be using JRUN if the answer is not
satified enough.. sorry for this wording. -- I just want to show to the
world that tomcat is good and qualified enough to run in real production --

The final decision is using Java as standard programming, because the
multiplatform of that client environment.

We are JRUN partner, and I want to try tomcatany comment??

Question:
Do you have a try to use tomcat in a production with user more than 1000
concurrent user in one time?

can I use tomcat?

or I must buy a JRUN??? or JBOSS + Tomcat?

Because with this business case, i think tomcat is enough, because the
project is look like data warehousing...

We are studying Weblogic, and has contact Weblogic Singapore.. but I still
interest with tomcat or may be JBoss+tomcat..


Thanks

Frans Thamura
[EMAIL PROTECTED]
CTO Adelva.com
Jakarta
Indonesia



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: HELP - URGENT : Stability of Tomcat if compare with JBOSS or JRUN

2001-12-20 Thread Pae Choi

No WebSphere or any other? Just BEA and Oracle? :-)


Pae


- Original Message -
From: Kemp Randy-W18971 [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 6:03 AM
Subject: RE: HELP - URGENT : Stability of Tomcat if compare with JBOSS or
JRUN


 I have never used Tomcat for large scale projects like this, but some on
the list have.  But I will ask a few questions.  Do you plan on using EJB or
just JSP and servlets?  If so, look at Resin at www.caucho.com as another
option.  This can be hooked up to Jboss but not in the same VM.  If budget
constraints are not an issue, given the amount of people this would serve, I
would seriously look at Weblogic and Oracle.

 -Original Message-
 From: Frans Thamura [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 8:03 PM
 To: Tomcat Users List
 Subject: HELP - URGENT : Stability of Tomcat if compare with JBOSS or
 JRUN


 Dear All,

 I am in a decision to buy a software or use tomcat in real production.. I
am
 very familiar with tomcat 3.2, but never try 3.3, and tomcat 4 still in
 progress (i cannot recommended tomcat 3.3 and 4 because i still cannot
 install cocoon 1.8.2, and the cocoon list still not response)..Because our
 content management system is run on top of cocoon 1.8.2 and cocoon 2 is
not
 compatible. :(

 I want to create a portal, category: intranet, with staff more than
10.000.
 This will become nationally project that handle more than millions
people...

 The country for implementation is Indonesia. This is not a internet
portal,
 but will be intranet portal with private B2B marketplace inside it. This
 project must run on the Net at April, and the prototype of this B2B using
 Tomcat :)

 The project will serve approx half of Indonesian citizen ( I think this is
 database problem right) and there will be instance problem there...
 Indonesia have 250 millions citizen, and there will be 120million citizen,
 the database will include all parents and children.

 Current System is using Oracle Developer, ORacle Database, and SUN (more
 than 20 SUNs was used there)... and there will be more than 24 points of
 Frame Relay connection.

 I need you question. The category is URGENT.. if you can recommended it
 using Tomcat, I will use it.. or may be using JRUN if the answer is not
 satified enough.. sorry for this wording. -- I just want to show to the
 world that tomcat is good and qualified enough to run in real
production --

 The final decision is using Java as standard programming, because the
 multiplatform of that client environment.

 We are JRUN partner, and I want to try tomcatany comment??

 Question:
 Do you have a try to use tomcat in a production with user more than 1000
 concurrent user in one time?

 can I use tomcat?

 or I must buy a JRUN??? or JBOSS + Tomcat?

 Because with this business case, i think tomcat is enough, because the
 project is look like data warehousing...

 We are studying Weblogic, and has contact Weblogic Singapore.. but I still
 interest with tomcat or may be JBoss+tomcat..


 Thanks

 Frans Thamura
 [EMAIL PROTECTED]
 CTO Adelva.com
 Jakarta
 Indonesia



 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 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: black magic mystery

2001-12-20 Thread James Williamson

From: E B [EMAIL PROTECTED]

 This is about classloaders again. Same old problem
 about message style soap services, and soap classes
 in soap/WEB-INF/classes.

 1. How do I find out which classloader loaded the
 classes shown in the stack trace?

Have you tried starting up Tomcat under a debugger (gdb) and then telling it
to break when
certain exceptions are thrown? When you get your exception you look at the
classloader of the class on the
top of the stack by doing something like this:

print this.getClass().getClassLoader()

Move up and down the stack to see which classes have been loaded by what


 2. In the stack trace that is shown below,
the class MessageServer is in the common/classes,
but soap is in its web-inf/classes. So soap's
class loader should be able to take the help of
common classloader to load the MessageServer class.
Why then does it complain?


I'm not an expert but isn't there some known issue with SOAP and
classloading?


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




AW: File upload won't work with Tomcat4 ...

2001-12-20 Thread martin eberle

Thanks for the source, but in Tomcat3.x my own code worked well 
So, i dunno, what i've made wrong in Tomcat4 ... it's the same stuff
as ever  :(

-Ursprüngliche Nachricht-
Von: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. Dezember 2001 14:53
An: Tomcat Users List
Betreff: RE: File upload won't work with Tomcat4 ...


Here is the code I use for uploading... It's like 5 lines...Ok, I made
it a smidge more complicated -- this is the cool-kid version. You know,
production quality

Didn't mean to be a pain -- didn't feel like openning my IDE and logging
into the network

Chris


  private void upLoadZipFile(String zipFileName,HttpServletResponse
response)
  {
byte[] data   = null;
try
{
  ServletOutputStream stream= response.getOutputStream();
  BufferedInputStream fromFile  = new BufferedInputStream(new
FileInputStream(this.pathToZips + zipFileName));

  response.setContentType(application/x-zip-compressed);
  response.setHeader(Content-Disposition, attachment; filename=
+ zipFileName + ;);

  while(fromFile.available()  0)
  {
data = new byte[fromFile.available()];
fromFile.read(data,0,fromFile.available());
stream.write(data);
  }
}
catch(IOException e) {
  e.fillInStackTrace().printStackTrace();
}
finally {
  try {
fromFile.close();
stream.close();
  }
  catch(Exception exc) {
   exc.fillInStackTrace().printStackTrace();
  }
}

  }





-Original Message-
From: martin eberle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 8:49 AM
To: Tomcat Users List
Subject: AW: File upload won't work with Tomcat4 ...


hmmm, thx for the hint, but i've checked out google by nearly the same
keywords and websites in result  ;)

i'm in position to think, it's any logical error in my code, not
caused by tomcat .. hmm .. anyway, thx for supporting me ... 

-martin

-Ursprüngliche Nachricht-
Von: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. Dezember 2001 14:43
An: Tomcat Users List
Betreff: RE: File upload won't work with Tomcat4 ...


I sniffed around google for 10 minutes and came up with perfect and
simple code for this task.

Look under 
java servlet http upload



-Original Message-
From: martin eberle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:42 AM
To: [EMAIL PROTECTED]
Subject: File upload won't work with Tomcat4 ...


Hi,

i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
doesn't matter which filetype, the result
is always the same:

Apache Tomcat/4.0.1 - HTTP Status 404 -
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)
type Status report
message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
not found)
description The requested resource
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)) is not available.

I know, that the file has not been found, cause i try to create it ;)
... 

Tomcat directory structure to .jsp files (oh, directory / file user
rights, etc. has been set correctly!):
/var/tomcat4/webapps/mywebapp/

Tomcat directory structure to data (upload) files:
/var/tomcat4/webapps/mywebapp/data/attachements/

In my upload class, i've defined the var SAVEPATH which contain's the
store path as string ... :
String savePath=../webapps/mywebapp/data/attachements/;

Question 1:
From which base directory does tomcat try to access the data dir?
(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...

Question 2:
Is my savePath definition just wrong?

What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
well 

Thx for any answers ...

Regards,
-martin

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


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




Re: Please help me on NT Authentication

2001-12-20 Thread Bruno VERNAY

Can't you change the IP adresses and other passwords ? I guess they are 
too numerous ?
I was asking for an intranet project, but I can't begin testing right 
now. I wouldn't even have enough right to access to our NT server.
I would have keep your information for later use.


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




RE: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

Bruno
That sorta works. When I load it in IE (no tomcat, just straight page) it 
looks great. When I go to try using it from TC I.E goes into some sorta freak-out mode 
and spins -- taking up all my cpu and never producing the page?

Ideas?

Here is everything in zip form

Chris


-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:00 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Can you replace the src=main.html by src=yourfile.jsp ?
It should work


**
Bruno Mizzi-Vernay
[EMAIL PROTECTED]
**


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




stuff.zip
Description: stuff.zip

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


RE: Please help me on NT Authentication

2001-12-20 Thread Jim Urban

I would like this info too.

Thanks,
Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


-Original Message-
From: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 7:37 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Please help me on NT Authentication


Hi there,
I can give you all the help you need -- I just did that. You will need to
create a custom realm (not tough), and then there are some infrastructure
dependent details to consider. Email me back if you want info.


Chris




-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:55 AM
To: [EMAIL PROTECTED]
Subject: Please help me on NT Authentication


Hi,

I am building a system for the Intranet. We have a NT network. I wanted to
know if by any means I can use the username and password that is registered
in the NT Server, so that when a user logs in to NT system, he should be
automatically logged in to my application built on Tomcat?

Can anybody guide me on how to go abt it?

Thanks in anticipation




--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish
Foundation (up to $20,000 in total).  Limit of one registration per person.
Go to http://shop.lycos.com/holidays/sweeps/

--
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: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Are these questions on NT authentication directed at me? Not that I mind, I just need 
to know my audience




-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:23 AM
To: Tomcat Users List
Subject: Re: Please help me on NT Authentication


Can't you change the IP adresses and other passwords ? I guess they are 
too numerous ?
I was asking for an intranet project, but I can't begin testing right 
now. I wouldn't even have enough right to access to our NT server.
I would have keep your information for later use.


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




logging a user out on session timeout with tomcat 3.2.3

2001-12-20 Thread ian silvester

Hi all,

I have an implementation of Tomcat 3.2.3 on NT4sp6a. I would like for a
user's browser to visually tell them that they've been 'logged out' of the
system if their session times out. I do not want to put a test on a session
attribute on every page with a redirect if fail, because that's just old and
clunky and I'm sure there is a better way.

I have created a bean that implements the HttpSessionBindingListener
interface, which successfully writes to the console on session end - so far
so good - but the console is at the server (obviously).

My problem is that I would like to write to the browser window. I am of the
understanding that beans are stored client-side, so that's looking good, but
I can't find a way of getting an output stream from the bean to the browser
window (something equivalent to response.getOutputStream).

I'm aware BTW that Tomcat 4.0.1 (and therefore Servlets 2.3) offers much
richer lifecycle objects, but an upgrade is unfortunately not an option
(unless someone has a complete solution to the above under 4.0.1. I'm
prepared to put forward the business case but only if its a surefire
winner!)

Any information about this would be very greatly appreciated.

regards,

Dr. Ian Silvester



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




Re: Tomcat memory setup

2001-12-20 Thread Gilles Hooghe

Sorry but I just register today so I didn't received these messages.

But thanks
Gilles

On Thu, 20 Dec 2001 08:08:15 -0500
Randy Layman [EMAIL PROTECTED] wrote:

 
   There seems to be an echo, because this question was asked and
 answered (by myself) yesterday.  Pass the -Xmx and -Xms options to the call
 to the JVM in tomcat.sh, or set TOMCAT_OPTS (for TC 3.x) or CATALINA_OPTS
 (for TC 4.x) to be the command line switches mentioned above in your
 startup.sh file (or your shell environment).
 
   Randy
 
  -Original Message-
  From: Gilles Hooghe [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 20, 2001 9:33 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat memory setup
  
  
  How can I set manually the memory used by Tomcat.
  I would like to do it into the startup.sh script.
  
  Thanks
  G+
  
  
  --
  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: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bruno VERNAY

It looks good on my machine (IE6 or Mozilla latest build.)
But it won't hurt if
- you close the head element in login.jsp. just put /head before 
body
- for the frame set, simply use :

FRAMESET  ROWS=60,99%,50 BORDER=0 FRAMESPACING=0 FRAMEBORDER=NO  
 
FRAME SRC=header.html NAME=Header MARGINWIDTH=5 MARGINHEIGHT=5 
NORESIZE   
FRAME SRC=login.jsp NAME=Data MARGINWIDTH=5 MARGINHEIGHT=5 RESIZE
 
FRAME SRC=footer.html NAME=Footer MARGINWIDTH=5 MARGINHEIGHT=5 
RESIZE 
/FRAMESET

hope it helps


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




Re: Mildly off topic, but there are too many smart people here

2001-12-20 Thread ian silvester

Which version of IE (and Tomcat while we're asking :-)) does it fail in?
Please give the absurdly long version number you'll find in the Help..
About.. dialog..

ian

- Original Message -
From: Bongiorno.Christian [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 2:28 PM
Subject: RE: Mildly off topic, but there are too many smart people here


Bruno
That sorta works. When I load it in IE (no tomcat, just straight page) it
looks great. When I go to try using it from TC I.E goes into some sorta
freak-out mode and spins -- taking up all my cpu and never producing the
page?

Ideas?

Here is everything in zip form

Chris


-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:00 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Can you replace the src=main.html by src=yourfile.jsp ?
It should work


**
Bruno Mizzi-Vernay
[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: Please help me on NT Authentication

2001-12-20 Thread Bruno VERNAY

Yes ... you said that you did it.

Bongiorno.Christian wrote:

 Are these questions on NT authentication directed at me? Not that I mind, I just 
need to know my audience



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




AW: logging a user out on session timeout with tomcat 3.2.3

2001-12-20 Thread Ralph Einfeldt

beans are on the server side.

For that what you wan't you need either an applet
or you need some javascript that polls on the server.

 -Ursprüngliche Nachricht-
 Von: ian silvester [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 20. Dezember 2001 15:36
 An: Tomcat User Mailing List
 Betreff: logging a user out on session timeout with tomcat 3.2.3
 
 
 Hi all,
 
 I have an implementation of Tomcat 3.2.3 on NT4sp6a. I would 
 like for a
 user's browser to visually tell them that they've been 
 'logged out' of the
 system if their session times out. I do not want to put a 
 test on a session
 attribute on every page with a redirect if fail, because 
 that's just old and
 clunky and I'm sure there is a better way.
 
 I have created a bean that implements the HttpSessionBindingListener
 interface, which successfully writes to the console on 
 session end - so far
 so good - but the console is at the server (obviously).
 
 My problem is that I would like to write to the browser 
 window. I am of the
 understanding that beans are stored client-side, so that's 
 looking good, but
 I can't find a way of getting an output stream from the bean 
 to the browser
 window (something equivalent to response.getOutputStream).
 
 I'm aware BTW that Tomcat 4.0.1 (and therefore Servlets 2.3) 
 offers much
 richer lifecycle objects, but an upgrade is unfortunately not 
 an option
 (unless someone has a complete solution to the above under 4.0.1. I'm
 prepared to put forward the business case but only if its a surefire
 winner!)
 
 Any information about this would be very greatly appreciated.
 
 regards,
 
 Dr. Ian Silvester
 
 
 
 --
 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: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Well, if you create a custom realm you can specify anything your 'lil heart desires in
the config.xml file.

You have all the right you need to access your NT domain controller if you can log onto
the network with your domain username and password.

Are you using a 2K domain or an NT domain. Ask your admin if you're not sure.



-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:23 AM
To: Tomcat Users List
Subject: Re: Please help me on NT Authentication


Can't you change the IP adresses and other passwords ? I guess they are 
too numerous ?
I was asking for an intranet project, but I can't begin testing right 
now. I wouldn't even have enough right to access to our NT server.
I would have keep your information for later use.


--
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: Illegal State Exception - Even more!

2001-12-20 Thread Justin Rowles

 AH!  *So*, the theory here is that I am generating more than 
 the 8kb of data, which is being autocommited to the browser, 
 then an error occurs and the servlet cannot send the error, 
 but instead raises this exception.  Got it.
 
 In fact, I write a large form back in html.  If the last 
 element were to be
 null, and I try to write out a value thus:

Sadly, I raised the memory to 500kb, carried on developing and just got this
a fwe minutes ago:

Error: 500

Location: /pod_users/justin/jsp/form.jsp

Internal Servlet Error:

java.lang.IllegalStateException: Response has already been committed
at
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon
seFacade.java:157)
at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Thread.java:484)

Which again leaves me none the wiser in terms of tracing the error.

HOWEVER I have just had a realisation.  I had just altered and rebuilt some
of the classes that operate behind the scenes and one of them had failed and
so wasn't present in the .jar file.  I corrected it and rebuild the .jar and
the error went away.

Now, I would have expected an error about not being able to instantiate the
class, but the above is what I got (simply reproduceable too I should
think).  Is this a bug?  I guess not, just a feature of how the containter
falls over when you pull the rug out from under its feet.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

I am using I.E 6.0.2479.0006C0

I am using TC 4.1??  This is being called from my machine directly through TC:8080  I 
am not using localhost for url. I use my qualified machine name


I tried brunos suggestions and it works no better.

here is the updated login.html


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN
HTML
HEAD
 META HTTP-EQUIV=Content-Type CONTENT=text/html;CHARSET=iso-8859-1
 META NAME=GENERATOR Content=Visual Page 2.0 for Windows
  TITLEENSCO Workforce Management/TITLE
/HEAD

FRAMESET  ROWS=60,99%,50 BORDER=0 FRAMESPACING=0 FRAMEBORDER=NO
FRAME SRC=header.html NAME=Header MARGINWIDTH=5 MARGINHEIGHT=5 
NORESIZE
FRAME SRC=login.jsp NAME=Data MARGINWIDTH=5 MARGINHEIGHT=5 RESIZE
FRAME SRC=footer.html NAME=Footer MARGINWIDTH=5 MARGINHEIGHT=5 RESIZE
/FRAMESET

BODY
P
/BODY
/HTML

-Original Message-
From: ian silvester [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:54 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Which version of IE (and Tomcat while we're asking :-)) does it fail in?
Please give the absurdly long version number you'll find in the Help..
About.. dialog..

ian

- Original Message -
From: Bongiorno.Christian [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 2:28 PM
Subject: RE: Mildly off topic, but there are too many smart people here


Bruno
That sorta works. When I load it in IE (no tomcat, just straight page) it
looks great. When I go to try using it from TC I.E goes into some sorta
freak-out mode and spins -- taking up all my cpu and never producing the
page?

Ideas?

Here is everything in zip form

Chris


-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:00 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Can you replace the src=main.html by src=yourfile.jsp ?
It should work


**
Bruno Mizzi-Vernay
[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]


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




Re: logging a user out (thanks)

2001-12-20 Thread ian silvester

Many thanks Ralph.

I'll post the solution if I find an elegant one - I just like the idea that
a user goes away for lunch and comes back to see that they've been logged
out, without clicking a link to try to carry on what they were doing.

ian


- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 2:55 PM
Subject: AW: logging a user out on session timeout with tomcat 3.2.3


beans are on the server side.

For that what you wan't you need either an applet
or you need some javascript that polls on the server.

 -Ursprüngliche Nachricht-
 Von: ian silvester [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 20. Dezember 2001 15:36
 An: Tomcat User Mailing List
 Betreff: logging a user out on session timeout with tomcat 3.2.3


 Hi all,

 I have an implementation of Tomcat 3.2.3 on NT4sp6a. I would
 like for a
 user's browser to visually tell them that they've been
 'logged out' of the
 system if their session times out. I do not want to put a
 test on a session
 attribute on every page with a redirect if fail, because
 that's just old and
 clunky and I'm sure there is a better way.

 I have created a bean that implements the HttpSessionBindingListener
 interface, which successfully writes to the console on
 session end - so far
 so good - but the console is at the server (obviously).

 My problem is that I would like to write to the browser
 window. I am of the
 understanding that beans are stored client-side, so that's
 looking good, but
 I can't find a way of getting an output stream from the bean
 to the browser
 window (something equivalent to response.getOutputStream).

 I'm aware BTW that Tomcat 4.0.1 (and therefore Servlets 2.3)
 offers much
 richer lifecycle objects, but an upgrade is unfortunately not
 an option
 (unless someone has a complete solution to the above under 4.0.1. I'm
 prepared to put forward the business case but only if its a surefire
 winner!)

 Any information about this would be very greatly appreciated.

 regards,

 Dr. Ian Silvester



 --
 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: subfolder in WEB-INF

2001-12-20 Thread Ralf Praschak

hello!
okay this url http://server/projekt/servlet/test.Hello works but now i am
getting a 500

java.lang.NullPointerException
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:588)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:430)
at
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad
er.java:174)
at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

do i have to edit the web.xml somehow
Hello.class is just a simple hello world servlet ;(

tnx ralf


-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 2:26 PM
To: 'Tomcat Users List'
Subject: RE: subfolder in WEB-INF


The URL would be http://server/projekt/servlet/test.Hello
if you don't want to use a servlet mapping in web.xml.

Cheers,
Larry



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




Re: Any one knows a good Web hosting service?

2001-12-20 Thread yilmaz

hi keith,
thanks for your suggestion,
but i already wrote email  to them twice, but they didn't even reply to me .

Cheers :)
- Original Message -
From: Keith Morgan [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 9:59 PM
Subject: RE: Any one knows a good Web hosting service?


 check out kgbinternet.com.  Servlet support, mysql, very low rates made
even
 lower by being in Canadian $.  I've been using it for several months with
no
 complaints.

 -Original Message-
 From: yilmaz [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 5:33 AM
 To: Tomcat Users List
 Subject: Any one knows a good Web hosting service?


 Hi all,
 The subject may sound a trivial subject for you, please be patient with
me.
 if you are providing this kind of service or would like to suggest me a
good
 JSP ISP please do continue reading:
 You can reply to my private email address :
 [EMAIL PROTECTED]
 Our company is located in taipei/taiwan
 We have already finished an application program written in JSP 1.2 using
 tomcat 4 and Mysql 3.23 on win 2000.
 for a week i have been looking for  a reasonable web hosting service on
the
 internet but all my efforts are in vain.
 i have searched the archives , the list of the JSP ISPs in servlets.com
and
 adrenalin.com, i found a few
 reasonable and suitable companies.However, i wrote to those adresses four
 times but couldn't get any reply,
 it seems that they already have enough customers, and don't need (want ?)
 new  ones.
  As a result i decided to bring the issue up here, hoping that one of
yours'
 companies wants to offer an inexpensive  web hosting for us.
 Our requirements :
 0) Inexpensive (around 10 to 20 USD /month including all the features
below)
 1) Isp should be supporting at least JSP 1.1 (JSP 1.2 is preferable)
 2) Any servlet engine compatible with tomcat 4 (tomcat 4 is preferable)
 our application is bundled as a war file, the ISP servlet engine should be
 able to
 automatically open and deploy this war file at their sites
 3) Any OS, but windows is preferable.
 4) a suitable administration interface through web (e.g a control panel)
for
 both Jsp files and the database.
 5) 50 M space for java server , 50 M for the web server
 We need to put media files (mp3 or mpg) on the web server (either apache
or
 IIS)
 6) we already have two registered domain names, we need hosting for both
in
 a single space.
 7) ISP should be supporting MySQL database version 3.23 or higher.
 8) We need a trial period, at least one day. First we want to upload and
 install our
 program and database on the server, try and test everything. If everything
 works well
 we will purchase one year service.
 9) one month money back guarantee.
 10) at least two ftp accounts , if on unix a telnet account.


 thank you very much for bearing me.
 best regards  :)
 yilmaz



 --
 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: Please help me on NT Authentication

2001-12-20 Thread Bruno VERNAY

It's still a NT Domain. But my PC is an 2k workstation.

Bongiorno.Christian wrote:

 Well, if you create a custom realm you can specify anything your 'lil heart desires 
in
 the config.xml file.
 
 You have all the right you need to access your NT domain controller if you can log 
onto
 the network with your domain username and password.
 
 Are you using a 2K domain or an NT domain. Ask your admin if you're not sure.
 



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




help - tomcat config

2001-12-20 Thread Matthew Du Plessis

hi

tomcat 3.2.4
apache 1.3.22
mod_ssl
open_ssl
mandrake linux 8
mod_jk

I installed\configured the above packages on mandrake. I can run the
examples without a problem but when i try to access jsp pages in a different
context I get a Error: 500

Location: /test/jsp/testBean.jsp

Internal Servlet Error:

javax.servlet.ServletException:  Cannot create bean of class TestBean
at .etc

The jsp\beans are working on other win  linux servers with similar
configurations which makes me think its a config problem, but I don't seem
to be able to pinpoint it. Any suggestions on what I'm doing wrong or where
I can look further would be appreciated.

regards

matthew




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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




RE: Illegal State Exception - Even more!

2001-12-20 Thread Larry Isaacs

The increase in memory probably didn't affect the buffer
size.  For JSP, the JspWriter's buffer may be increased
with:

%@ page buffer=size %

where the size is a value in kbytes, i.e. 32 or 32kb.
The default is 8kb.

For servlets, you can use:

ServletResponse.setBufferSize(size);

where size is in bytes.  The default is also 8k.  Be sure
to call setBufferSize() before writting any content or you
will get another form of IllegalStateException.

Cheers,
Larry




 -Original Message-
 From: Justin Rowles [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 10:03 AM
 To: 'Tomcat Users List'
 Subject: RE: Illegal State Exception - Even more!
 
 
  AH!  *So*, the theory here is that I am generating more than 
  the 8kb of data, which is being autocommited to the browser, 
  then an error occurs and the servlet cannot send the error, 
  but instead raises this exception.  Got it.
  
  In fact, I write a large form back in html.  If the last 
  element were to be
  null, and I try to write out a value thus:
 
 Sadly, I raised the memory to 500kb, carried on developing 
 and just got this
 a fwe minutes ago:
 
 Error: 500
 
 Location: /pod_users/justin/jsp/form.jsp
 
 Internal Servlet Error:
 
 java.lang.IllegalStateException: Response has already been committed
 at
 org.apache.tomcat.core.HttpServletResponseFacade.sendError(Htt
 pServletRespon
 seFacade.java:157)
 at
 org.apache.jasper.runtime.JspServlet.unknownException(JspServl
 et.java:299)
 at 
 org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
 pper.java:503)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at
 org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
 cessConnection
 (Ajp12ConnectionHandler.java:156)
 at
 org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
 point.java:338
 )
 at java.lang.Thread.run(Thread.java:484)
 
 Which again leaves me none the wiser in terms of tracing the error.
 
 HOWEVER I have just had a realisation.  I had just altered 
 and rebuilt some
 of the classes that operate behind the scenes and one of them 
 had failed and
 so wasn't present in the .jar file.  I corrected it and 
 rebuild the .jar and
 the error went away.
 
 Now, I would have expected an error about not being able to 
 instantiate the
 class, but the above is what I got (simply reproduceable too I should
 think).  Is this a bug?  I guess not, just a feature of how 
 the containter
 falls over when you pull the rug out from under its feet.
 
 J.
 -- 
 You're only jealous cos the little penguins are talking to me. 
 
 
 
 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***
 
 
 
 
 --
 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: help - tomcat config

2001-12-20 Thread ian silvester

just a quick one off the top of my head - have you tried stopping tomcat,
deleting the contents of the 'work' dir and restarting? I've sometimes seen
class instantiation problems fixed this way...

ian


- Original Message -
From: Matthew Du Plessis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 3:40 PM
Subject: help - tomcat config


 hi

 tomcat 3.2.4
 apache 1.3.22
 mod_ssl
 open_ssl
 mandrake linux 8
 mod_jk

 I installed\configured the above packages on mandrake. I can run the
 examples without a problem but when i try to access jsp pages in a
different
 context I get a Error: 500

 Location: /test/jsp/testBean.jsp

 Internal Servlet Error:

 javax.servlet.ServletException:  Cannot create bean of class TestBean
 at .etc

 The jsp\beans are working on other win  linux servers with similar
 configurations which makes me think its a config problem, but I don't seem
 to be able to pinpoint it. Any suggestions on what I'm doing wrong or
where
 I can look further would be appreciated.

 regards

 matthew




 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **


 --
 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: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Well, for Bruno and Group, here is what we did. I don't know if it is going to work 
out for you.
And Yes, this is a TC solution not weblogic. Don't be miserable!

We had two implementations since we were in the middle of an exchange upgrade and just 
rolled out 
a 2K domain. We use exchange and are setup for NT authentication on exchange. Given 
this information


Implementation 
1)  My first realm pop-ed off the exchange server with domain username and pass. 
Since the exchange server uses NT authentication that worked. It is/was kinda hackey, 
but it did for a few weeks until we rolled out exchange 2K.
to get the roles, the realm then went and looked into a company wide addressbook (an 
LDAP server) for a particular attribute 
that had been reserved for just such purposes. In there we added roles with ';' 
semi-colons as delimiters.
so

if(popOffExchange(username,pass) == GOOD)
{
roles = checkLDAPforRoles(attribute,ssearchbase);
}


We couldn't use the JNDI realm with TC because our LDAP at the time required no 
authentication.

2) Win2k domain with Active Directory (AD) and exchange 2k. Similar to above, but with 
everything
being one-stop login. Because AD is an LDAP server, and requires domain logon to get 
into it, 
authenticating against it using the credentials supplied and then going straight to 
the user branch 
of the LDAp tree was great. Exchange 2K was essential because it adds a field in AD 
for customAttributes
which we use for roles. We couldn't use JNDI realm here as we don't have a single user 
account to lookup info
and neither our admin nor I knew were (or if) the passwds for NT were in AD.


if you are short on time you can probably buy the bins from my company, but they only 
work with exch 2k, and win2k domain
with AD. If you are in that situation then this will just plug in.

Chris


-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 10:24 AM
To: Bongiorno.Christian
Subject: RE: Please help me on NT Authentication


 Hey
Don't tell me how to do this in Weblogic
I had mentioned it clearly that I am Using Tomcat and don't forget that U are in 
Tomcat User List
--

On Thu, 20 Dec 2001 10:05:30  
 Bongiorno.Christian wrote:
What mail servers do you run and how do they authenticate?

I.E... exchange 5.5 exchange 2K

Hack-ware pop what?

-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:57 AM
To: Bongiorno.Christian
Subject: RE: Please help me on NT Authentication


I am using NT Domain
--

On Thu, 20 Dec 2001 09:24:57  
 Bongiorno.Christian wrote:
First thing, are you using Win NT domain Controllers or Win2k ?

If win2k, do you have Active Directory installed?

What mail servers do you run? How do they authenticate?




-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:14 AM
To: Bongiorno.Christian
Subject: RE: Please help me on NT Authentication


 HI
Thanks for helping me.
Please tell me how to do it in detail. Also tell me if any document available?

Thanks
Reply soon

--

On Thu, 20 Dec 2001 08:37:07  
 Bongiorno.Christian wrote:
Hi there,
 I can give you all the help you need -- I just did that. You will need to 
create a custom realm (not tough), and then there are some infrastructure dependent 
details to consider. Email me back if you want info.


Chris




-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:55 AM
To: [EMAIL PROTECTED]
Subject: Please help me on NT Authentication


Hi,
  
I am building a system for the Intranet. We have a NT network. I wanted to know if 
by any means I can use the username and password that is registered in the NT Server, 
so that when a user logs in to NT system, he should be automatically logged in to my 
application built on Tomcat?

Can anybody guide me on how to go abt it?

Thanks in anticipation




--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation 
(up to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/

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




--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation 
(up to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/



--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation 
(up to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/



--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to 

RE: Illegal State Exception - Even more!

2001-12-20 Thread Justin Rowles

 The increase in memory probably didn't affect the buffer
 size.  For JSP, the JspWriter's buffer may be increased
 with:
 %@ page buffer=size %

Whoops, didn't say what I meant.  That (the above) is exactly what I did -
to 500kb

I can get a Response has already been committed exception at will by
compiling the jsp, then removing a class file from a jar.  Putting the class
file back in the jar again removes the error.

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

P.S. The classes for NT authentication in JAAS are WINDOWS dependent. They use a 
native DLL and JNI. Sorry, been there


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




RE: subfolder in WEB-INF

2001-12-20 Thread Larry Isaacs

Did you restart Tomcat?  Class reloading isn't always
successful in Tomcat 3.2.x.  Otherwise make sure the
servlet compiled successfully.  This isn't an error I
encounter often enough to recall its typical causes.

Editing the web.xml to add a servlet mapping allows
you to specify the URL you want to use to invoke a
servlet.  This is the expected way to invoke servlets
in the Servlet 2.2 and later specs.  Use of /servlet
to invoke a servlet is not part of the spec, but
is a extra feature provided by default.

Cheers,
Larry

 -Original Message-
 From: Ralf Praschak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 10:17 AM
 To: Tomcat Users List
 Subject: RE: subfolder in WEB-INF
 
 
 hello!
 okay this url http://server/projekt/servlet/test.Hello works 
 but now i am
 getting a 500
 
 java.lang.NullPointerException
 at java.lang.ClassLoader.resolveClass0(Native Method)
 at java.lang.ClassLoader.resolveClass(ClassLoader.java:588)
 at
 org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Adaptiv
 eClassLoader.j
 ava:430)
 at
 org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Adapt
 iveServletLoad
 er.java:174)
 at
 org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapp
 er.java:265)
 at
 org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
 at org.apache.tomcat.core.Handler.service(Handler.java:254)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
 org.apache.tomcat.core.ContextManager.internalService(ContextM
 anager.java:81
 2)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
 org.apache.tomcat.service.http.HttpConnectionHandler.processCo
 nnection(HttpC
 onnectionHandler.java:213)
 at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
 t.java:416)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
 ol.java:501)
 at java.lang.Thread.run(Thread.java:484)
 
 do i have to edit the web.xml somehow
 Hello.class is just a simple hello world servlet ;(
 
 tnx ralf
 
 
 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 2:26 PM
 To: 'Tomcat Users List'
 Subject: RE: subfolder in WEB-INF
 
 
 The URL would be http://server/projekt/servlet/test.Hello
 if you don't want to use a servlet mapping in web.xml.
 
 Cheers,
 Larry
 
 
 
 --
 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: help - tomcat config

2001-12-20 Thread Matthew Du Plessis

yes, i have tried deleting the work dirs contents - no luck though.

-Original Message-
From: ian silvester
To: Tomcat Users List
Sent: 12/20/01 5:41 PM
Subject: Re: help - tomcat config

just a quick one off the top of my head - have you tried stopping
tomcat,
deleting the contents of the 'work' dir and restarting? I've sometimes
seen
class instantiation problems fixed this way...

ian


- Original Message -
From: Matthew Du Plessis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 3:40 PM
Subject: help - tomcat config


 hi

 tomcat 3.2.4
 apache 1.3.22
 mod_ssl
 open_ssl
 mandrake linux 8
 mod_jk

 I installed\configured the above packages on mandrake. I can run the
 examples without a problem but when i try to access jsp pages in a
different
 context I get a Error: 500

 Location: /test/jsp/testBean.jsp

 Internal Servlet Error:

 javax.servlet.ServletException:  Cannot create bean of class TestBean
 at .etc

 The jsp\beans are working on other win  linux servers with similar
 configurations which makes me think its a config problem, but I don't
seem
 to be able to pinpoint it. Any suggestions on what I'm doing wrong or
where
 I can look further would be appreciated.

 regards

 matthew




 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **


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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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




RE: Illegal State Exception - Even more!

2001-12-20 Thread Larry Isaacs

If the class in question isn't involved in the amount
of content written, then I don't have an explanation.

If possible, you could sprinkle some JspWriter.getRemaining()
calls around to see if you can detect any differences
when the class is present or not.

Cheers,
Larry

 -Original Message-
 From: Justin Rowles [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 10:44 AM
 To: 'Tomcat Users List'
 Subject: RE: Illegal State Exception - Even more!
 
 
  The increase in memory probably didn't affect the buffer
  size.  For JSP, the JspWriter's buffer may be increased
  with:
  %@ page buffer=size %
 
 Whoops, didn't say what I meant.  That (the above) is exactly 
 what I did -
 to 500kb
 
 I can get a Response has already been committed exception at will by
 compiling the jsp, then removing a class file from a jar.  
 Putting the class
 file back in the jar again removes the error.
 
 Justin.
 -- 
 You're only jealous cos the little penguins are talking to me. 
 
 
 
 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***
 
 
 
 
 --
 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]




xml conflict

2001-12-20 Thread Scott Weaver

I'm working with TC 3.2.4

I've encountered this error: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found when I run a servlet that uses
the xerces package.

Now the xerces.jar is in the lib web-inf/lib for this servlet. This is a 3rd
party servlet that is in a jar also in the web-inf/lib folder. Where is the
conflict and how do I get around this?

Thanks,
Scott


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




Can you view SSL without the https prefix?

2001-12-20 Thread Richard S. Huntrods

Greetings!

Is it possible to view an SSL document without using the https prefix?

Before I enabled SSL on my servlets, I was using port 8080.  Now I have
SSL working, and have disabled the normal non-SSL port 8080.  Instead,
I am using SSL on port 8080.  This makes my application ONLY run with
SSL.

I can change any references internal to my system (index.html, etc) to
use https, but some clients have bookmarked the servlet page, rather
than the access page.  Is there a way to redirect
http://xx.xx.xx.xx:8080/index.html; to *actually* call up the page
https://xx.xx.xx.xx:8080/index.html; ?

Thanks very much in advance,

-Richard




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




Re: Any one knows a good Web hosting service?

2001-12-20 Thread ian silvester

No personal experience, but these guys seem to fulfill your requirements...

http://www.2020media.com

ian


- Original Message -
From: yilmaz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 3:27 PM
Subject: Re: Any one knows a good Web hosting service?


 hi keith,
 thanks for your suggestion,
 but i already wrote email  to them twice, but they didn't even reply to me
.
 
 Cheers :)
 - Original Message -
 From: Keith Morgan [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, December 20, 2001 9:59 PM
 Subject: RE: Any one knows a good Web hosting service?


  check out kgbinternet.com.  Servlet support, mysql, very low rates made
 even
  lower by being in Canadian $.  I've been using it for several months
with
 no
  complaints.
 
  -Original Message-
  From: yilmaz [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 20, 2001 5:33 AM
  To: Tomcat Users List
  Subject: Any one knows a good Web hosting service?
 
 
  Hi all,
  The subject may sound a trivial subject for you, please be patient with
 me.
  if you are providing this kind of service or would like to suggest me a
 good
  JSP ISP please do continue reading:
  You can reply to my private email address :
  [EMAIL PROTECTED]
  Our company is located in taipei/taiwan
  We have already finished an application program written in JSP 1.2 using
  tomcat 4 and Mysql 3.23 on win 2000.
  for a week i have been looking for  a reasonable web hosting service on
 the
  internet but all my efforts are in vain.
  i have searched the archives , the list of the JSP ISPs in servlets.com
 and
  adrenalin.com, i found a few
  reasonable and suitable companies.However, i wrote to those adresses
four
  times but couldn't get any reply,
  it seems that they already have enough customers, and don't need (want
?)
  new  ones.
   As a result i decided to bring the issue up here, hoping that one of
 yours'
  companies wants to offer an inexpensive  web hosting for us.
  Our requirements :
  0) Inexpensive (around 10 to 20 USD /month including all the features
 below)
  1) Isp should be supporting at least JSP 1.1 (JSP 1.2 is preferable)
  2) Any servlet engine compatible with tomcat 4 (tomcat 4 is preferable)
  our application is bundled as a war file, the ISP servlet engine should
be
  able to
  automatically open and deploy this war file at their sites
  3) Any OS, but windows is preferable.
  4) a suitable administration interface through web (e.g a control panel)
 for
  both Jsp files and the database.
  5) 50 M space for java server , 50 M for the web server
  We need to put media files (mp3 or mpg) on the web server (either apache
 or
  IIS)
  6) we already have two registered domain names, we need hosting for both
 in
  a single space.
  7) ISP should be supporting MySQL database version 3.23 or higher.
  8) We need a trial period, at least one day. First we want to upload and
  install our
  program and database on the server, try and test everything. If
everything
  works well
  we will purchase one year service.
  9) one month money back guarantee.
  10) at least two ftp accounts , if on unix a telnet account.
 
 
  thank you very much for bearing me.
  best regards  :)
  yilmaz
 
 
 
  --
  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: Can you view SSL without the https prefix?

2001-12-20 Thread Justin Rowles

 I can change any references internal to my system (index.html, etc) to
 use https, but some clients have bookmarked the servlet page, rather
 than the access page.  Is there a way to redirect
 http://xx.xx.xx.xx:8080/index.html; to *actually* call up the page
 https://xx.xx.xx.xx:8080/index.html; ?

Can't you make whatever handles the http requests on 8080 return a redirect
to the same page but with an https protocol request?

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: Illegal State Exception - Even more!

2001-12-20 Thread tomcat-user-return-5557-archive=jab . org

 If the class in question isn't involved in the amount
 of content written, then I don't have an explanation.

The method I was calling returns a String which is returned to a method in
another class and returned again to the call in the jsp where it is written
out as output.

Does that count?! ;-)

 If possible, you could sprinkle some JspWriter.getRemaining()
 calls around to see if you can detect any differences
 when the class is present or not.

Whassat then?  fx: goes and searches like a good little boy

Oh, right, yeah, OK, I can do that, and send the output to our logging
facility.  I'll let you know the results.  Do please (anyone) answer the
above first though, in case it makes the rest irrelevent.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




Tompcat - Manager Functions without the Manager?

2001-12-20 Thread Richard S. Huntrods

Greetings!

For security purposes, my tomcat server is behind a firewall, with the
firewall forwarding port 8080 requests to the server (as port 8080).
All works very well. FTP and Telnet are blocked by the firewall as
well.  Only port 80 (another machine running Apache to serve a web site)
and port 8080 are open on this firewall.

Also for security, I have removed the original webapps directory and
replaced it with my own webapps directory with just my servlets and
such in it.  Again, all works very, very well.

NOW - I would like to track who is currently using the system.  Apache
is not running - only Tomcat.  Rather than try to track users internally
with my servlets, I would like to be able to use the Tomcat manager
functions to do this. Is there a way to use manager functions without
the original webapps/manager directory - i.e. ONLY from behind the
firewall, perhaps even only when logged on to the server as root?  My
understanding is that if I put the manager directory back, then it is
open to the world (password protection is rarely enough, I've found).

Thanks in advance,

-Richard



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




Re: xml conflict

2001-12-20 Thread Pae Choi

It is a well known problem when you are using multiple XML parsers.
For example, COCOON, SOAP, TC, et al. You just have to know which
parser you need to keep it as a common parser and make others
available as needed.

Check your environment sysmbols to see what are the parsers are
running and in what order. See also what other parsers are added to
the environment when the applications are invoked.

Hoep this helps,


Pae



- Original Message -
From: Scott Weaver [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 8:10 AM
Subject: xml conflict


 I'm working with TC 3.2.4

 I've encountered this error: SAX2 driver class
 org.apache.xerces.parsers.SAXParser not found when I run a servlet that
uses
 the xerces package.

 Now the xerces.jar is in the lib web-inf/lib for this servlet. This is a
3rd
 party servlet that is in a jar also in the web-inf/lib folder. Where is
the
 conflict and how do I get around this?

 Thanks,
 Scott


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




  1   2   >