Tomcat 4.0.1, mod_web_app, virtual hosts - Pier HELP!

2001-12-06 Thread Nikola Milutinovic

Hi all.
Hi Pier.

I have a problem and it could be a misconception in my head, so please tell me if I'm 
doing something obviuosly/potentially wrong.

WHAT I WANT TO DO
--
I am hosting several virtual hosts under one Apache web server. I'm also developing 
several web applications and I would like them kept separate. They will be under 
those Apache virtual hosts and each one of them has it's own database underneath.

I thought that idea of having virtual hosts on Apache and matching virtual hosts on 
Tomcat is a good one. Also, I would like to be able to separate Apache and Tomcat, to 
place them on different machines. Since I can laready move DBs around, I would be very 
mobile, allowing a DB to sit on high I/O bandwidth machine, and Tomcat on a CPU strong 
one, while Apache can be anywhere.

THE SETUP
-

OS: Digital UNIX 4.0D

HOST: Mercury.ev.co.yu
--
Running Apache 1.3.19 with virtual hosts, BUT this Apache is not connecting to Tomcat, 
right now!!!
Running Tomcat 4.0.1 with warp.jar of the mod_webapp that was built from source.
Tomcat is running BOTH HTTP-connector (port 8080) and WARP-connector
Tomcat has 3 virtual hosts:
- Mercury.ev.co.yu (OK in DNS)
- Test.ev.co.yu (OK in DNS)
- Legba.ev.co.yu (Not OK in DNS)
Virtual hosts Mercury.ev.co.yu and Test.ev.co.yu are defined inside Standalone 
service (HTTP connector), while Legba.ev.co.yu is defined inside Apache service 
(Warp connector). In Warp connector logs I can see the following getting deployed:

- explicit context, defined within virtual host Legba.ev.co.yu
- two implicit contexts, inside appBase for the virtual host.

Legba.ev.co.yu is another machine, I'm trying to connect Apache FROM IT to this 
Tomcat. I've made that virtual hosts cause I thought that taht was the problem, but it 
wasn't. Or maybe it is...

HOST: Legba.ev.co.yu

Has Apache 2.0.28 and Apache 1.3.22 installed. I have tried to connect to Tomcat from 
both of them. This is what I'm doing for connection:

VirtualHost 192.168.61.18:80
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /usr/local/apache2/htdocs
  ServerName Legba.ev.co.yu:80
  ErrorLog logs/Legba-error.log
  CustomLog logs/Legba-access.log common

  IfModule mod_webapp.c
ServerName  Legba.ev.co.yu:80
WebAppConnectionTomcat40warpMercury.ev.co.yu:8008
WebAppDeployaddr_book   Tomcat40/addr_book
WebAppDeploytomcat-docs Tomcat40/tomcat-docs
  /IfModule
/VirtualHost

THE PROBLEM
-
Well, this deosn't connect and the error occurs on the Tomcat side, this is what I see 
in WARP log:

2001-12-05 20:58:47 [org.apache.catalina.connector.warp.WarpConnector]
 Connection from Legba.ev.co.yu/192.168.61.18:1893 to 
Mercury.ev.co.yu/192.168.61.16:8008
2001-12-05 20:58:47 [org.apache.catalina.connector.warp.WarpConnector]
 Connection from Legba.ev.co.yu/192.168.61.18:1894 to 
Mercury.ev.co.yu/192.168.61.16:8008
2001-12-05 20:58:47 [org.apache.catalina.connector.warp.WarpConnector]
 Connection from Legba.ev.co.yu/192.168.61.18:1895 to 
Mercury.ev.co.yu/192.168.61.16:8008
2001-12-05 20:58:47 [org.apache.catalina.connector.warp.WarpConnector]
 Connection from Legba.ev.co.yu/192.168.61.18:1896 to 
Mercury.ev.co.yu/192.168.61.16:8008
2001-12-05 20:58:47 [org.apache.catalina.connector.warp.WarpConnector]
 Connection from Legba.ev.co.yu/192.168.61.18:1897 to 
Mercury.ev.co.yu/192.168.61.16:8008
2001-12-05 20:58:48 [org.apache.catalina.connector.warp.WarpConfigurationHandler] 
java.lang.IllegalArgumentException: addChild:  Child name 'legba.ev.co.yu' is not 
unique
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java, 
Compiled Code)
at org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java, 
Compiled Code)
at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfigurationHandler.java,
 Compiled Code)
at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.java,
 Compiled Code)
at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java, 
Compiled Code)
at java.lang.Thread.run(Thread.java:484)

I cannot percieve why is this occuring. I have looked at warp sources, the error 
occurs on the following lines:

WarpConfigurationHandler.java:253
-
private Context deploy(WarpConnection connection, WarpLogger logger,
   String applName, String hostName, String applPath)
throws IOException {
synchronized (connection.getConnector()) {

Container container=connection.getConnector().getContainer();

Host host=(Host)container.findChild(hostName);
if (host==null) {
WarpHost whost=new 

Re: Character Encoding problems 2

2001-12-06 Thread Gregor Kovac(

Hi!

Nikola Milutinovic wrote:

I have had similar problem with Cp1250 encoding(Tomcat and MySQL). You 
have to have in mind this was not done on Tomcat 4.x, but 3.x.
This is what I have done:
- %@page contentType=text/html; charset=windows-1250% on top of 
every JSP file


I don't think that is a correct character encoding as far as Java is concerned. I 
think Java supports only ISO-8859-* and UTF-*. Please correct me if I'm wrong



I'm sorry, butr you are wrong. You can convert between numerous 
encodings, but you have to have i18n.jar in your classpath.

 
 Hmm, I thought that Java community loathed anything but ISO, where can I find 
i18n.jar? I'll look for it on Sun's site, but if it is not there, drop me a line.
 

You can get it in jre/lib directory of your JDK install directory.


 
What I'm looking for is a politically correct solution. I have so far:

- PostgreSQL with one Unicode and one ISO-8859-2 databases, both with the same data 
in correct form.
- JDBC driver which is acting OK.
- JSP pages with correctly set pageEncoding
- Java Servlet with correctly set contentType/encoding

Still, Tomcat goes for default charset encoding and screwes up Latin-2 characters.


Have you tried putting %@page contentType=text/html; 
charset=iso8859-2% on top of your JSP's ?

 
 Always. And that is what is driving me crazy. I have even tested what is the 
character encoding of the ServletResponse object - it was OK, ISO-8859-2. The trouth 
is I'm running 4.0.1 and I have been looking at sources for 4.0. I'll test 4.0 and if 
it displays characters correctly, there's gonna be a bug report.
 
 Nix.
 

Best regards,
Kovi


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




RE: load balancing Multiple Tomcat instances

2001-12-06 Thread Ing. Gabriel Gajdos

Hi!

I don't have good news for you.

The support for AJP 13 in Tomcat 4 should be considered as beta...

And Tomcat 4.0.1 does not support load balancing...
If you really need this feature, stat at 3.x.

GG

| Hi,
| Loadbalancer worker can be set in Worker.properties in 3.x, but in 4.x 
| there
| is no documentation as to how we can use loadbalancer worker for load
| balancing between multiple instances of Tomcat. Please point me to the 
| right
| documentation in case I missed it. If load balancing is native to 4.x, then
| is there anything we need to do from our side at all? Please give me some
| information regarding that.
| Thanks



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




Calendar Boject behaves strange

2001-12-06 Thread Magnus Jansson

Hi!

When I use the GregorianCalendar and do a roll it doesnt switch month.

What I want to do is to have a selectbox and see all weeknumbers in selected year and 
after the weeknumber write the date of monday and friday in the week. But with this 
code below I only get the same dates all the time and it is for Januari.

Is this a normal behaviour for the GregorianCalendar object?

%
int i, ThisWeek = MyDate.get(GregorianCalendar.WEEK_OF_YEAR);
int MaxWeek = MyDate.getMaximum(GregorianCalendar.WEEK_OF_YEAR);
int SelectedYear = MyDate.get(GregorianCalendar.YEAR);
MyDate.set(SelectedYear, 0, 1);
if (MyDate.get(GregorianCalendar.DAY_OF_WEEK)  2)
{
for (i = MyDate.get(GregorianCalendar.DAY_OF_WEEK); i  2; i--)
{
MyDate.roll(Calendar.DATE, false);
} 
}
String DateStringStart = ;
String DateStringEnd = ;
for (i = 1; i = MaxWeek; i++)
{
DateStringStart = MyDate.get(Calendar.YEAR) + - + MyDate.get(Calendar.MONTH) + - + 
MyDate.get(Calendar.DATE);
while (MyDate.get(Calendar.DAY_OF_WEEK) != 6)
{
MyDate.roll(GregorianCalendar.DATE, true);
};
DateStringEnd = MyDate.get(Calendar.YEAR) + - + MyDate.get(Calendar.MONTH) + - + 
MyDate.get(Calendar.DATE);
if (i != ThisWeek)
out.print(option value=' + i + 'Vecka:  + i +  Datumintervall:  + 
DateStringStart +  -  + DateStringEnd + /option);
else
out.print(option value=' + i + ' selectedVecka:  + i +  Datumintervall:  + 
DateStringStart +  -  + DateStringEnd + /option);
while (MyDate.get(Calendar.DAY_OF_WEEK) != 2)
{
MyDate.roll(Calendar.DATE, true);
};  
}; 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - 
Magnus Jansson
IT-Manager
Väddö folkhögskola
760 40 Väddö
Sweden

Phone: +46 (0) 176-528 00
Cellular: +46 (0) 70-370 33 16
Fax: +46 (0) 176-528 28
http://www.vaddo.fhsk.se (work)
http://www.jason.pp.se (private)
ICQ: 52797837




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


Re: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.

2001-12-06 Thread vendo

Thanks a lot for this page,
I'll keep you informed on how it works for me

Vendo
- Original Message -
From: Mike Kelley [EMAIL PROTECTED]
To: Markus Baertschi [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 11:34 PM
Subject: FW: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.


Markus,
I got this HOW TO from a user who got TC 4.0.1 to work with Apache 1.3.22 on
a W2K machine ... He also claims to have gotten it running under AIX

It was  Arnaud Héritier [mailto:[EMAIL PROTECTED]]  that claims the
success story, however I used the directions provided below and got my
version of 1.3.22 + 4.0.1 + mod_jk + jdk1.3.1 working on a w2k platform 




-Original Message-
From: Arnaud Héritier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 11, 2001 4:31 AM
To: '[EMAIL PROTECTED]'
Subject: RE: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.


 -Message d'origine-
 De: Curley, Thomas [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 11 octobre 2001 12:05
 À: [EMAIL PROTECTED]
 Objet: RE: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.

 I realise there has been alot of chat ref integration but I would
 appreciate clarification for Win2K platform

 Qu:
 --
 I wish to integrate Apache 1.3 and Tomcat 4.0 for on Win 2000 (ie)
 static resources from apache, JSP and Servlets from TC

 a) Do I need to add AJP 1.3 support ?


It seems that there's no release for windows of the other connector :
mod_webapp.
So I think that is the only connector available today except that you want
and you can compile the mod_webapp connector under a Windows Plateform.

I followed instructions from this documents and adapted them for TC 4.0.

So here is what I done .


1) Tomcat 4.0 :
- Be carefull to do not install TC4 in a path with spaces   !
otherwise you should use the 8.3 directory names to configure TC
- In the server/lib subdirectory of TC4 add the ajp.jar and the
tomcat-util.jar
- in the conf subdirectory copy the workers.properties from a TC 3.2. Edit
it and fill the lines :

workers.tomcat_home=C:\Programs\Tomcat4.0
workers.java_home=C:\Programs\jdk1.3.1

with your own configuration.
- Edit the server.xml and add the AJP connector like this :

!-- Connector for AJP 1.3 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0 connectionTimeout=0 /

Now the tomcat server is ready

2) Apache
- firstly copy the mod_jk.dll from the TC3 distrib in the apache modules
subdirectory
- Configure Apache
Contrary to TC3, TC4 do not generate the Apache configuration. So you should
do it yourself.

At the end of your httpd.conf file you should add (and adapt)

# TC 4.0 settings

#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll

JkWorkersFile C:/Programs/Tomcat4.0/conf/workers.properties
JkLogFile C:/Programs/Tomcat4.0/logs/mod_jk.log

#
# Log level to be used by mod_jk
#
JkLogLevel error

#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

Then for each Context you had created in tomcat you should had a paragraph
like this (it's the same thong as in TC3):
Here my context is /pfe
and the directory of the web-app is C:/Work/Dev/pfe/stock/gui/dist/pfe-gui

#
# The following line makes apache aware of the location of the /pfe context
# Alias /pfe C:/Work/Dev/pfe/stock/gui/dist/pfe-gui
Directory C:/Work/Dev/pfe/stock/gui/dist/pfe-gui
Options Indexes FollowSymLinks
/Directory

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat #
JkMount /pfe/servlet/* ajp13 JkMount /pfe/*.jsp ajp13 JkMount /pfe/*.do
ajp13

#
# The following line prohibits users from directly accessing WEB-INF #
Location /pfe/WEB-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches #
Directory C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/WEB-INF/
AllowOverride None
deny from all
/Directory

#
# The following line prohibits users from directly accessing META-INF #
Location /pfe/META-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches #
Directory C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/META-INF/
AllowOverride None
deny from all
/Directory


You can also do the same type of things to deploy the web-app directly as
the root of apache.

To help you, I join my configuration files.




Wishing that this explainations will help you.

arno.



 (if yes the instructions below don't work - TC wont start - I
 guess the note applies only to linux build)

 b) Can I just follow the TC 3.3 doc for integrating Apache and
 mod_jk as outlined


 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.ht
 ml

 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html


 many thanks for this clarification



 Thomas Curley









 -Original Message-
 

Re: AW: AW: AW: TC 3.3 jsessionid

2001-12-06 Thread Erwin Ambrosch


Thanks Ralph, it works.



Ralph Einfeldt wrote:

Try to change the action to:

form method=POST action=%= response.encodeURL(j_security_check)
%

-Ursprüngliche Nachricht-
Von: Erwin Ambrosch [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 3. Dezember 2001 22:35
An: Tomcat Users List
Betreff: Re: AW: AW: TC 3.3 jsessionid

snip/ 

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




Certificate problem with Netscape 4.7 and IE 5.0

2001-12-06 Thread Tom Graf

Dear all,

I've got lots of problems with Tomcat 4.0.1. and my digital server certificate.

The following describes shortly the steps I've done so far:

First of all, I generated a self-signed certificate as described in the 
Tomcat documentation. Then, I created a Certificate Signing Request that I 
sent to the GlobalSign certificate authority. In return, I received my 
digital server certificate (in .pem format) and replaced the self-signed 
certificate with the new one (with keytool under Solaris 2.6).

So far so good.

When I start Internet Explorer, it shows the yellow padlock but the 
encrypted page doesn't appear and a double click on the padlock says This 
type of document does not have a security certificate.
The Netscape 4.7 message is even worse, it says Netscape and this server 
cannot communicate securely because they have no common encryption algorithms.

Can anybody on this list tell me what the problem is? What am I doing wrong?

Your help is very much appreciated.

Many thanks in advance. Kind regards,


/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
Chemins de fer luxembourgeois
9, place de la gare
L-1616 Luxembourg

Tom GRAF
Webmaster
E-mail: [EMAIL PROTECTED]
Internet: http://www.cfl.lu
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 


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




RE: Mailing list question

2001-12-06 Thread Justin Rowles

 What sort of turn-around time do you guys (and gals) usually see on
 messages?  

Up to a couple of hours.  I'm in the UK, I don't know where the mailing list
server is physically though.

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]




security issue: tomcat on port 80

2001-12-06 Thread E B

How safe is it to have tomcat listening on port 80
running on a RH6.2, which  is on the internet ?
Did anybody face any security problems ever ?




Nokia 5510 looks weird sounds great. 
Go to http://uk.promotions.yahoo.com/nokia/ discover and win it! 
The competition ends 16 th of December 2001.

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




Tomcat 4.0 + SSL: How to Configure Client Authentication

2001-12-06 Thread Gianluca D'Introno

Hi guy,
I'm using Tomcat 4.0 + SSL.
I have installed  the server certificate and everything work when I use
Https whitouth ClientAuthentication.
I should  have Client Authentication and so I have set the ClientAuth
attribute of the element HttpConnector in Server.xml to the value true.
When I try to connect to the Https site, the browser send  me this message:
1) No user certificate on Netscape
2) The  web site you want to view request identification on Explorer.

Certificate are installed on my browser, so I don't undertand why they don't
are accepted.

Is  there somethings to configure on Tomcat webserver?
Please Help me

Gianluca D'Introno


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




RE: Configure md_jk in http.conf

2001-12-06 Thread Arnaud Héritier

You should say to Apache to serve html files and images :

JkMount /examples/*.jsp ajp13

Alias /examples Path to the directory Tomcat4.0/webapps/examples
Directory Path to the directory Tomcat4.0/webapps/examples
 Options Indexes FollowSymLinks
/Directory

arno

 -Message d'origine-
 De:   Lauer, Oliver [SMTP:[EMAIL PROTECTED]]
 Date: mercredi 5 décembre 2001 18:58
 À:Tomcat Users List (E-Mail)
 Objet:Configure md_jk in http.conf

 Hi all,

 although I've done the following in http.conf for mod_jk:

   JkMount /examples/*.jsp ajp13

 I can even read *.html and *.gifs.

 Does somebody know why and what I've to do to prohibit that ?

 Thanx
 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]
  _
 
 #
 # The following line makes apache aware of the location of the /examples
 context
 #
 Alias /examples C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
 Directory C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
 Options Indexes FollowSymLinks
 /Directory

 #
 # The following line mounts all JSP files and the /servlet/ uri to tomcat
 #
 #JkMount /examples/servlet/* ajp13
 JkMount /examples/*.jsp ajp13

 #
 # The following line prohibits users from directly accessing WEB-INF
 #
 Location /examples/WEB-INF/
 AllowOverride None
 deny from all
 /Location
 #
 # Use Directory too. On Windows, Location doesn't work unless case 
matches
 #
 Directory 
C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples/WEB-INF/
 AllowOverride None
 deny from all
 /Directory

 #
 # The following line prohibits users from directly accessing META-INF
 #
 Location /examples/META-INF/
 AllowOverride None
 deny from all
 /Location
 #
 # Use Directory too. On Windows, Location doesn't work unless case 
matches
 #
 Directory 
C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples/META-INF/
 AllowOverride None
 deny from all
 /Directory


 
 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]




Re: JavaBean on Tomcat 4.0

2001-12-06 Thread Amine AMAR

I do not know exactly the reason but the solution is to explicitly import the packages 
of ALL the classes you are using (ex.
java.util.*)

- Original Message -
From: Wong, Ken LY [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 7:33 AM
Subject: JavaBean on Tomcat 4.0


 Dear all,

 I'm now trying the tomcat 4.0 and want to use JavaBean, what's
 the settings of it? How can I achieve in using this? As I've write
 a testing program, which works fine on tomcat 3.2.3, I don't know
 why it can't works on tomcat 4.0, below is the error reponse...

 Generated servlet error:
 C:\Program Files\Tomcat
 4.0\work\localhost\firstcall\inputValidate_0005fhtml$jsp.java:221: Class
 org.apache.jsp.FormBean not found.
 FormBean formHandler = null;
 ^


 An error occurred at line: 4 in the jsp file: /inputValidate_html.jsp

 Generated servlet error:
 C:\Program Files\Tomcat
 4.0\work\localhost\firstcall\inputValidate_0005fhtml$jsp.java:224: Class
 org.apache.jsp.FormBean not found.
 formHandler= (FormBean)
   ^


 An error occurred at line: 4 in the jsp file: /inputValidate_html.jsp

 Generated servlet error:
 C:\Program Files\Tomcat
 4.0\work\localhost\firstcall\inputValidate_0005fhtml$jsp.java:229: Class
 org.apache.jsp.FormBean not found.
 formHandler = (FormBean)
 java.beans.Beans.instantiate(this.getClass().getClassLoader(), FormBean);
^
 3 errors


 FormBean is the bean class that I wrritten. It seems related to
 the classpath settings, but I have put the FormBean into...
 webapps/app1/WEB-INF/classes/FormBean.class, why it still
 doesn't work? What's wrong with it?

 Thanks so much~~~

 --
 Best regards,

 Ken

 --
 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: security issue: tomcat on port 80

2001-12-06 Thread Chris Newland

Hi,

There are security implications for running *any* server process on *any*
port that is accessible by the public internet.

To run a server on UNIX/Linux on a port number of less than 1024 requires
root privileges. I would strongly recommend you do *NOT* run Tomcat as the
root user since if the server was compromised (by a buffer overflow attack
for instance) then the attacker would have root access to the entire
machine.

I personally run Tomcat behind an Apache web server (which runs on port 80
on a restricted user account) and use mod_webapp to connect the two.

Get a book on UNIX system administration and do some web searches, there's
plenty of information out there.

Hope this helps,

Chris

-Original Message-
From: E B [mailto:[EMAIL PROTECTED]]
Sent: 06 December 2001 09:55
To: Tomcat Users List
Subject: security issue: tomcat on port 80


How safe is it to have tomcat listening on port 80
running on a RH6.2, which  is on the internet ?
Did anybody face any security problems ever ?




Nokia 5510 looks weird sounds great.
Go to http://uk.promotions.yahoo.com/nokia/ discover and win it!
The competition ends 16 th of December 2001.

--
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: Configure md_jk in http.conf

2001-12-06 Thread Arnaud Héritier

I replyed to quickly :-)

If you want that TC serves html, gifs, jsp, etc you tell to Apache

JkMount /examples/* ajp13

All requests sends to /examples are transfered to Tomcat

If you want that Tomcat only serves servlet and JSP.

You tell to Apache :
JkMount /examples/*.jsp ajp13
JkMount /examples/servlet/* ajp13

And you add a new Alias

Alias /examples Path to the directory Tomcat4.0/webapps/examples
Directory Path to the directory Tomcat4.0/webapps/examples
  Options Indexes FollowSymLinks
/Directory

in order that Apache know where to find aother resources (html, gif, ...)

arno


 -Message d'origine-
 De:   Lauer, Oliver [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 6 décembre 2001 12:23
 À:'Tomcat Users List'; '[EMAIL PROTECTED]'
 Objet:AW: Configure md_jk in http.conf

 Hi Arno,

 thanx for your response but I don't know if you understood me or I
 understood you.

 If I want TC to serve the gifs and the htmls I do the following you've
 posted below but want should I do if I want to let Apache serve that.

 Do I just leave the statement away and then Apache looks in its own 
document
 root ?

 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: Arnaud Héritier [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 11:49
 An: 'Tomcat Users List'
 Betreff: RE: Configure md_jk in http.conf


 You should say to Apache to serve html files and images :

 JkMount /examples/*.jsp ajp13

 Alias /examples Path to the directory Tomcat4.0/webapps/examples
 Directory Path to the directory Tomcat4.0/webapps/examples
  Options Indexes FollowSymLinks
 /Directory

 arno

  -Message d'origine-
  De: Lauer, Oliver [SMTP:[EMAIL PROTECTED]]
  Date:   mercredi 5 décembre 2001 18:58
  À:  Tomcat Users List (E-Mail)
  Objet:  Configure md_jk in http.conf
 
  Hi all,
 
  although I've done the following in http.conf for mod_jk:
 
  JkMount /examples/*.jsp ajp13
 
  I can even read *.html and *.gifs.
 
  Does somebody know why and what I've to do to prohibit that ?
 
  Thanx
  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]
   _
  
  #
  # The following line makes apache aware of the location of the 
/examples
  context
  #
  Alias /examples C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
  Directory C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
  Options Indexes FollowSymLinks
  /Directory
 
  #
  # The following line mounts all JSP files and the /servlet/ uri to 
tomcat
  #
  #JkMount /examples/servlet/* ajp13
  JkMount /examples/*.jsp ajp13
 
  #
  # The following line prohibits users from directly accessing WEB-INF
  #
  Location /examples/WEB-INF/
  AllowOverride None
  deny from all
  /Location
  #
  # Use Directory too. On Windows, Location doesn't work unless case
 matches
  #
  Directory
 C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples/WEB-INF/
  AllowOverride None
  deny from all
  /Directory
 
  #
  # The following line prohibits users from directly accessing META-INF
  #
  Location /examples/META-INF/
  AllowOverride None
  deny from all
  /Location
  #
  # Use Directory too. On Windows, Location doesn't work unless case
 matches
  #
  Directory
 C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples/META-INF/
  AllowOverride None
  deny from all
  /Directory
 
 
  
  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: Configure md_jk in http.conf

2001-12-06 Thread Arnaud Héritier

With this configuration Tomcat shouldn't serve html and gifs .

Why are you thinking that it is TC which is serving html and gifs and not 
Apache ???

 -Message d'origine-
 De:   Lauer, Oliver [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 6 décembre 2001 12:30
 À:'[EMAIL PROTECTED]'
 Objet:AW: Configure md_jk in http.conf

 But at the moment TC serves even the gifs and htmls although I've only 
done
 the following and I don't understand why. I thought I've oly allowed 
*.jsp
 and everthing within servlet context.


 # The following line makes apache aware of the location of the /examples
 context
 #
 Alias /examples C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
 Directory C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
 Options Indexes FollowSymLinks
 /Directory

 #
 # The following line mounts all JSP files and the /servlet/ uri to tomcat
 #
 JkMount /examples/servlet/* ajp13
 JkMount /examples/*.jsp ajp13

 #
 # The following line prohibits users from directly accessing WEB-INF
 #
 Location /examples/WEB-INF/
 AllowOverride None
 deny from all
 /Location
 #
 # Use Directory too. On Windows, Location doesn't work unless case 
matches
 #
 Directory 
C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples/WEB-INF/
 AllowOverride None
 deny from all
 /Directory


  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: Arnaud Héritier [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 12:26
 An: 'Lauer, Oliver'
 Betreff: RE: Configure md_jk in http.conf


 If you want that TC serve JSP, gifs , html, etc
 you must do (I think ) :

 JkMount /examples/* ajp13

 or

 JkMount /examples/*.jsp ajp13
 JkMount /examples/*.gif ajp13
 JkMount /examples/*.html ajp13

 arno


  -Message d'origine-
  De: Lauer, Oliver [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 6 décembre 2001 12:23
  À:  'Tomcat Users List'; '[EMAIL PROTECTED]'
  Objet:  AW: Configure md_jk in http.conf
 
  Hi Arno,
 
  thanx for your response but I don't know if you understood me or I
  understood you.
 
  If I want TC to serve the gifs and the htmls I do the following you've
  posted below but want should I do if I want to let Apache serve that.
 
  Do I just leave the statement away and then Apache looks in its own
 document
  root ?
 
  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: Arnaud Héritier [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Dezember 2001 11:49
  An: 'Tomcat Users List'
  Betreff: RE: Configure md_jk in http.conf
 
 
  You should say to Apache to serve html files and images :
 
  JkMount /examples/*.jsp ajp13
 
  Alias /examples Path to the directory Tomcat4.0/webapps/examples
  Directory Path to the directory Tomcat4.0/webapps/examples
   Options Indexes FollowSymLinks
  /Directory
 
  arno
 
   -Message d'origine-
   De:   Lauer, Oliver [SMTP:[EMAIL PROTECTED]]
   Date: mercredi 5 décembre 2001 18:58
   À:Tomcat Users List (E-Mail)
   Objet:Configure md_jk in http.conf
  
   Hi all,
  
   although I've done the following in http.conf for mod_jk:
  
 JkMount /examples/*.jsp ajp13
  
   I can even read *.html and *.gifs.
  
   Does somebody know why and what I've to do to prohibit that ?
  
   Thanx
   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]
_
   
   #
   # The following line makes apache aware of the location of the
 /examples
   context
   #
   Alias /examples C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
   Directory C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
   Options Indexes FollowSymLinks
   /Directory
  
   #
   # The following line mounts all JSP files and the /servlet/ uri to
 tomcat
   #
   #JkMount /examples/servlet/* ajp13
   JkMount /examples/*.jsp ajp13
  
   #
   # The following line prohibits users from directly accessing WEB-INF
   #
   Location /examples/WEB-INF/
   AllowOverride None
   deny from all
   /Location
   #
   # Use Directory too. On Windows, Location doesn't work unless case
  matches
   #
   Directory
  C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples/WEB-INF/
   AllowOverride None
   deny from all
   /Directory
  
   #
   # The following line prohibits users from directly accessing META-INF

RE: Configure md_jk in http.conf

2001-12-06 Thread Arnaud Héritier

But if you added an Alias in Apache, you don't need to have your images in 
the Apache document root.

When an alias is defined Apache will load all ressources from the directory 
given.

With

Alias /examples C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples

Apache will get all data required by /examples in the directory 
C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples

You don't need a subdirectory examples in your apache root directory.

arno


 -Message d'origine-
 De:   Lauer, Oliver [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 6 décembre 2001 12:39
 À:'[EMAIL PROTECTED]'
 Objet:AW: Configure md_jk in http.conf

 Due to I don't have those htmls and gifs in the Apache document root...!?

  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: Arnaud Héritier [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 12:37
 An: 'Lauer, Oliver'
 Cc: 'Tomcat Users List (Adresse de messagerie)'
 Betreff: RE: Configure md_jk in http.conf


 With this configuration Tomcat shouldn't serve html and gifs .

 Why are you thinking that it is TC which is serving html and gifs and not 
 Apache ???

  -Message d'origine-
  De: Lauer, Oliver [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 6 décembre 2001 12:30
  À:  '[EMAIL PROTECTED]'
  Objet:  AW: Configure md_jk in http.conf
 
  But at the moment TC serves even the gifs and htmls although I've only
 done
  the following and I don't understand why. I thought I've oly allowed
 *.jsp
  and everthing within servlet context.
 
 
  # The following line makes apache aware of the location of the 
/examples
  context
  #
  Alias /examples e gifs and the htmls I do the following 
you've
   posted below but want should I do if I want to let Apache serve that.
  
   Do I just leave the statement away and then Apache looks in its own
  document
   root ?
  
   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: Arnaud Héritier [mailto:[EMAIL PROTECTED]]
   Gesendet: Donnerstag, 6. Dezember 2001 11:49
   An: 'Tomcat Users List'
   Betreff: RE: Configure md_jk in http.conf
  
  
   You should say to Apache to serve html files and images :
  
   JkMount /examples/*.jsp ajp13
  
   Alias /examples Path to the directory Tomcat4.0/webapps/examples
   Directory Path to the directory Tomcat4.0/webapps/examples
Options Indexes FollowSymLinks
   /Directory
  
   arno
  
-Message d'origine-
De: Lauer, Oliver [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 5 décembre 2001 18:58
À:  Tomcat Users List (E-Mail)
Objet:  Configure md_jk in http.conf
   
Hi all,
   
although I've done the following in http.conf for mod_jk:
   
JkMount /examples/*.jsp ajp13
   
I can even read *.html and *.gifs.
   
Does somebody know why and what I've to do to prohibit that ?
   
Thanx
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]
 _

#
# The following line makes apache aware of the location of the
  /examples
context
#
Alias /examples 
C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
Directory C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples
Options Indexes FollowSymLinks
/Directory
   
#
# The following line mounts all JSP files and the /servlet/ uri to
  tomcat
#
#JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13
   
#
# The following line prohibits users from directly accessing 
WEB-INF
#
Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
   matches
#
Directory
   C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples/WEB-INF/
AllowOverride None
deny from all
/Directory
   
#
# The following line prohibits users from directly accessing 
META-INF
#
Location /examples/META-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
   matches
#
Directory
   C:/Programme/ApacheGroup/Tomcat4.0/webapps/examples/META-INF/
AllowOverride None
deny from all

Re: security issue: tomcat on port 80

2001-12-06 Thread Attila Szegedi

Java VM actually shields you from buffer overflow attacks, since you cannot
overflow an array, let alone do it so that it overwrites code segments. So
in case of Tomcat (or any Java-written server), buffer overflow attacks are
out of question. Other attacks are still possible, though.

Attila.

- Original Message -
From: Chris Newland [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: 2001. december 6. 12:18
Subject: RE: security issue: tomcat on port 80


 Hi,

 There are security implications for running *any* server process on *any*
 port that is accessible by the public internet.

 To run a server on UNIX/Linux on a port number of less than 1024 requires
 root privileges. I would strongly recommend you do *NOT* run Tomcat as the
 root user since if the server was compromised (by a buffer overflow attack
 for instance) then the attacker would have root access to the entire
 machine.

 I personally run Tomcat behind an Apache web server (which runs on port 80
 on a restricted user account) and use mod_webapp to connect the two.

 Get a book on UNIX system administration and do some web searches, there's
 plenty of information out there.

 Hope this helps,

 Chris





smime.p7s
Description: application/pkcs7-signature


Re: Certificate problem with Netscape 4.7 and IE 5.0

2001-12-06 Thread Bernhard Wraase

Tom,

I have also trouble to generate a proper .keystore file.
I couldn't make it with keytool(win/IBM).
Try:
http://www.comu.de/docs/tomcat_ssl.htm
This works for me.
-- 
HTH Bernhard Wraase
NET.KOSMOS Projektentwicklung und Management GmbH

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




tomcat-apache doc

2001-12-06 Thread E B

where in the tomcat 4.0.1 docs, is the documentation
to configure tomcat to work behind apache server ?
I couldnt find it on the main doc page.
  


Nokia 5510 looks weird sounds great. 
Go to http://uk.promotions.yahoo.com/nokia/ discover and win it! 
The competition ends 16 th of December 2001.

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




Re: security issue: tomcat on port 80

2001-12-06 Thread E B

 --- Attila Szegedi [EMAIL PROTECTED] wrote: 
Java VM actually shields you from buffer overflow
 attacks, since you cannot
 overflow an array, let alone do it so that it
 overwrites code segments. So
 in case of Tomcat (or any Java-written server),
 buffer overflow attacks are
 out of question. Other attacks are still possible,
 though.
 

Can u list some of the other attacks ?


Nokia 5510 looks weird sounds great. 
Go to http://uk.promotions.yahoo.com/nokia/ discover and win it! 
The competition ends 16 th of December 2001.

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




RE: tomcat-apache doc

2001-12-06 Thread Arnaud Héritier

You can use the mod-jk connector :

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/doc/

or the mod_webapp :

http://nagoya.apache.org/~pier/

arno

 -Message d'origine-
 De:   E B [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 6 décembre 2001 13:14
 À:Tomcat Users List
 Objet:tomcat-apache doc
 
 where in the tomcat 4.0.1 docs, is the documentation
 to configure tomcat to work behind apache server ?
 I couldnt find it on the main doc page.
   
 
 
 Nokia 5510 looks weird sounds great. 
 Go to http://uk.promotions.yahoo.com/nokia/ discover and win it! 
 The competition ends 16 th of December 2001.
 
 --
 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: Certificate problem with Netscape 4.7 and IE 5.0

2001-12-06 Thread Madhav Tadikonda

Tom,

Is the certificate you received a test certificate or the full commercial 
release?  If it was a test certificate, I think you need to download the 
test root ID and install it in your browser for the test certificate to 
work.  I know on Thawte and Verisign you can get this ID off of their 
website.


From: Tom Graf [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Certificate problem with Netscape 4.7 and IE 5.0
Date: Thu, 06 Dec 2001 10:11:14 +0100
MIME-Version: 1.0
Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
MHotMailBDD8814200BC4004370BC0123183F92F0; Thu, 06 Dec 2001 01:11:31 -0800
Received: (qmail 18998 invoked by uid 97); 6 Dec 2001 09:11:26 -
Received: (qmail 18987 invoked from network); 6 Dec 2001 09:11:26 -
From tomcat-user-return-4055-madhavt Thu, 06 Dec 2001 01:11:41 -0800
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Delivered-To: mailing list [EMAIL PROTECTED]
Message-Id: [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

Dear all,

I've got lots of problems with Tomcat 4.0.1. and my digital server 
certificate.

The following describes shortly the steps I've done so far:

First of all, I generated a self-signed certificate as described in the
Tomcat documentation. Then, I created a Certificate Signing Request that I
sent to the GlobalSign certificate authority. In return, I received my
digital server certificate (in .pem format) and replaced the self-signed
certificate with the new one (with keytool under Solaris 2.6).

So far so good.

When I start Internet Explorer, it shows the yellow padlock but the
encrypted page doesn't appear and a double click on the padlock says This
type of document does not have a security certificate.
The Netscape 4.7 message is even worse, it says Netscape and this server
cannot communicate securely because they have no common encryption 
algorithms.

Can anybody on this list tell me what the problem is? What am I doing 
wrong?

Your help is very much appreciated.

Many thanks in advance. Kind regards,


/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
Chemins de fer luxembourgeois
9, place de la gare
L-1616 Luxembourg

Tom GRAF
Webmaster
E-mail: [EMAIL PROTECTED]
Internet: http://www.cfl.lu
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /


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



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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




Documentation for VM crash under Linux

2001-12-06 Thread Renato

Hi all,

I saw people telling about documentation of VM crashes under Linux and that 
there are some workarounds on the release notes. It doesn't seem to be 
there. Could anyone point me out where I could find this docs ?

Thanks
Renato.

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




Unable to include *.sum files

2001-12-06 Thread Kusel, Jonathan J


Hi all,

I'm trying to include normal text files with .sum  extensions using the
jsp:include directive:
   'jsp:include page=testTxt.sum flush=true /'
but tomcat throws an exception(see bottom for the exception). When I change
the file's extension to .txt for example it works, but the files that I
wan't to include are generated by another program on a daily basis so
changing the extension is not an option.

When I use the '%@include file=testTxt.sum %' directive it works, but I
need to use the jsp:include since the filenames are dynamically generated.

Is this a bug or am I doing something wrong? I'm using tomcat4.0 for NT 4.0.

THE STACKTRACE:


ApplicationDispatcher[/interestrates]: Servlet.service() for servlet default
threw exception
java.lang.IllegalStateException
at
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(Serv
letResponseWrapperInclude.java:109)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav
a:1143)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:570)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:493)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
18)
at org.apache.jsp.test$jsp._jspService(test$jsp.java:67)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
at java.lang.Thread.run(Thread.java:484)
StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException
java.lang.IllegalStateException
at
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(Serv
letResponseWrapperInclude.java:109)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav
a:1143)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:570)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:493)
at

Documentation for VM crash under Linux

2001-12-06 Thread Renato

Hi all,

I saw people telling about documentation of VM crashes under Linux and that 
there are some workarounds on the release notes. It doesn't seem to be 
there. Could anyone point me out where I could find this docs ?

Thanks
Renato.

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




AW: security issue: tomcat on port 80

2001-12-06 Thread Ralph Einfeldt

I wouldn't beg on that.

Java VM are programs that are implemente in C or C++ or
other 'classic' languages. So Bugs introduces here 
can open the server to overflow attacks.

Other problems:

With a wrong configuration it may be possible, that a 
attacker can place a jsp on your server. If the server
is running under root he can run any command he likes.

With a wrong configration it may be possible that
an attacker can read the source of jsp's and see
some information that he better not see (This problem
is independent from the user the server runs under).

 -Ursprüngliche Nachricht-
 Von: Attila Szegedi [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 12:57
 An: Tomcat Users List
 Betreff: Re: security issue: tomcat on port 80
snip/ 
 Java VM actually shields you from buffer overflow attacks, 
 since you cannot overflow an array, let alone do it so that
 it overwrites code segments.

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




Re: Can't find web.xml

2001-12-06 Thread Brian Elliott

Yes I did it things working. I think this fix was part of it - web-inf
was not all caps - WEB-INF.

thanks,

brian

Sriram Narayanan wrote:
 
 Hi,
 
 This is a blind shot, but have you checked that the WEB-INF name is in capital ?
 
 And that the web.xml is a valid one ? TC 4 is stricter with this file.
 
 Sriram
 
 30/11/2001 5:27:01 PM, Brian Elliott [EMAIL PROTECTED] wrote:
 
 Brian Elliott wrote:
 
  I am trying to install Tomcat 4 with a content management system called
  Stellent. Stellent runs Tomcat as a service. But I am getting an error
  when I try to request a JSP page:
 
  Can't find WEB-INF/web.xml
 
 Here is more of the actual error message:
 
 11-29 16:48:52 StandardHost[localhost]: Installing web application at
 context path  from URL
 file:D:\Stellent\tomcat4\webapps\ROOT
 2001-11-29 16:48:52 WebappLoader[]: Deploying class repositories to work
 directory
 D:\Stellent\tomcat4\work\localhost\_
 2001-11-29 16:48:52 StandardManager[]: Seeding random number generator
 class
 java.security.SecureRandom
 2001-11-29 16:48:52 StandardManager[]: Seeding of random number
 generator has been completed
 2001-11-29 16:48:52 ContextConfig[]: Missing application web.xml, using
 defaults only
 2001-11-29 16:48:52 StandardWrapper[:default]: Loading container servlet
 default
 2001-11-29 16:48:52 default: init
 2001-11-29 16:48:52 StandardWrapper[:invoker]: Loading container servlet
 invoker
 2001-11-29 16:48:52 invoker: init
 2001-11-29 16:48:52 StandardWrapper[:jsp]: Using Jasper classloader for
 servlet jsp
 2001-11-29 16:48:52 jsp: init
 2001-11-29 16:48:52 StandardWrapper[:ssi]: Loading container servlet ssi
 2001-11-29 16:48:52 ssi: init
 2001-11-29 16:48:52 Internal Error: File /WEB-INF/web.xml not found
 2001-11-29 16:48:52
 
 
 As for the logger, here is what I try - the catalina log works but the
 JASPER_LOG (which I hope contains the Tomcat CLASSPATH) gives me the
 following error:
 
 server.xml:
 
 !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt
   timestamp=true verbosityLevel = DEBUG/
 
   Logger name=JASPER_LOG verbosityLevel=WARNING
 timestamp=yes/
 
 
 error:
 
 ERROR reading d:\stellent\config\server.xml
 At Line 17 /Server/Service/Engine/Logger/ name=JASPER_LOG
 verbosityLevel=WARNING
  timestamp=yes
 
 java.lang.NullPointerException
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
 org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
 at
 org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
 
 --
 
 Any help on the why of the /WEB-INF/web.xml error or the JASPER_LOG
 error would be appreciated.
 
 Brian
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 _
 
 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]

-- 
Brian Elliott
President  CTO
Unplugged Systems
[EMAIL PROTECTED]
http://www.unpluggedsystems.com
719.339.1204 (cell)
719.487.1437 (office)

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




Re: Documentation for VM crash under Linux

2001-12-06 Thread Weiqi Gao

On Thu, 2001-12-06 at 04:55, Renato wrote:
 
 I saw people telling about documentation of VM crashes under Linux and that 
 there are some workarounds on the release notes. It doesn't seem to be 
 there. Could anyone point me out where I could find this docs ?

The release notes are available from the J2SE download page.  For J2SE
1.3.1_01, it's at http://java.sun.com/j2se/1.3/relnotes.html.  The
Vertual Machine section mentions several problems with various
versions of Linux.

-- 
Weiqi Gao
[EMAIL PROTECTED]


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




Re: Documentation for VM crash under Linux

2001-12-06 Thread Renato

Thanks !!


What about IBM's ? Any issues we shold be aware of ?


 On Thu, 2001-12-06 at 04:55, Renato wrote:
  
  I saw people telling about documentation of VM crashes under Linux and 
that 
  there are some workarounds on the release notes. It doesn't seem to be 
  there. Could anyone point me out where I could find this docs ?
 
 The release notes are available from the J2SE download page.  For J2SE
 1.3.1_01, it's at http://java.sun.com/j2se/1.3/relnotes.html.  The
 Vertual Machine section mentions several problems with various
 versions of Linux.
 
 -- 
 Weiqi Gao
 [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 configuration error

2001-12-06 Thread Larry Isaacs

Note that you say you are configuring Tomcat 3.2.4
but are setting TOMCAT_HOME to tomcat-3.2.1.

If you are copying Tomcat 3.2.4 on top of a
Tomcat 3.2.1 installation, be aware that this is
an untested form of installation.  I would recommend
installing Tomcat 3.2.4 in a new directory and
updating the configuration and web apps to match
your 3.2.1 installation.

Normally the Unable to set CLASSPATH dynamically ...
Setting your CLASSPATH statically message is just
a warning.  However, in Tomcat 3.2.4 this represents
an error.

Tomcat 3.2.4 includes JAXP 1.1 as the XML parser
(consisting of jaxp.jar and crimson.jar) where
Tomcat 3.2.3 and earlier included JAXP 1.0.1
(consisting of jaxp.jar and parser.jar).  Note that
with 3.2.4, it is crimson.jar that is found in the 
TOMCAT_HOME/lib, not parser.jar.

There is a bug in the tomcat.bat file where it tries
to build the CLASSPATH setting staticially, i.e. with
a bunch of SET commands.  This portion of the batch
file is only used on Win9x systems when a directory
in the TOMCAT_HOME path isn't a DOS 8.3 name.  This
portion of tomcat.bat still specifies parser.jar instead
of crimson.jar.  Change all parser.jar references to
crimson.jar in tomcat.bat and you should be okay.

You could also do what the message says and
manually set your TOMCAT_HOME using DOS 8.3 names,
(i.e. SET TOMCAT_HOME=C:\TOMCAT~1 ), or make sure
all directories in the path to Tomcat are DOS
8.3 names, (i.e. C:\Jakarta\Tc324 ).  This would
allow the CLASSPATH to be build automatically
to include all jars found in TOMCAT_HOME\lib.

Hope this helps.

Cheers,
Larry

 -Original Message-
 From: gaurang khatri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 1:45 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration error
 
 
 hello all,
 
 I am gaurang. I am new to this group. I am trying to
 configure tomcat 3.2.4. My JAVA_HOME is c:\jdk1.3.1_01
 and TOMCAT_HOME is tomcat-3.2.1. I have set JAVA_HOME
 and TOMCAT_HOME in tomcat.bat. I have also tried
 tomcat~1.4 in TOMCAT_HOME but getting the same result.
 Now when I am trying to run tomcat start or
 startup from the bin directory
 of tomcat, I am getting following error. I dont know
 why I am getting this error. 
 
 --
 Unable to set CLASSPATH dynamically.
 Note: To set the CLASSPATH dynamically on Win9x
 systems
   only DOS 8.3 names may be used in TOMCAT_HOME!
 Setting your CLASSPATH statically.
 
 Using CLASSPATH:
 
 Starting Tomcat in new window
 --
 
 and the tomcat is not started in new window. I am
 using the japanese version of windows 98. Can anybody
 tell me what is wrong with this. It is very urgent.
 So, please help me.
 
 Thanks to all
 gaurang.
 
 
 __
 __
 For Stock Quotes, Finance News, Insurance, Tax Planners, 
 Mutual Funds...
 Visit http://in.finance.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: JavaBean on Tomcat 4.0

2001-12-06 Thread Larry Isaacs

In Tomcat 3.x, if the JSP is in the root directory of the
web application, the JSP's servlet is created without
a package.  This allows beans that aren't in a package
to be accessible without further effort.

Tomcat 4.x *always* puts the JSP's servlet in a package,
so beans without a package are never accessible automatically.
You should add:

%@ page import=FormBean %

Without this, the Java compiler will assume that FormBean
is in the JSP's package, which isn't true.

Cheers,
Larry


 -Original Message-
 From: Wong, Ken LY [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 2:34 AM
 To: '[EMAIL PROTECTED]'
 Subject: JavaBean on Tomcat 4.0
 
 
 Dear all,
 
 I'm now trying the tomcat 4.0 and want to use JavaBean, what's
 the settings of it? How can I achieve in using this? As I've write
 a testing program, which works fine on tomcat 3.2.3, I don't know
 why it can't works on tomcat 4.0, below is the error reponse...
 
 Generated servlet error:
 C:\Program Files\Tomcat
 4.0\work\localhost\firstcall\inputValidate_0005fhtml$jsp.java:
 221: Class
 org.apache.jsp.FormBean not found.
 FormBean formHandler = null;
 ^
 
 
 An error occurred at line: 4 in the jsp file: /inputValidate_html.jsp
 
 Generated servlet error:
 C:\Program Files\Tomcat
 4.0\work\localhost\firstcall\inputValidate_0005fhtml$jsp.java:
 224: Class
 org.apache.jsp.FormBean not found.
 formHandler= (FormBean)
   ^
 
 
 An error occurred at line: 4 in the jsp file: /inputValidate_html.jsp
 
 Generated servlet error:
 C:\Program Files\Tomcat
 4.0\work\localhost\firstcall\inputValidate_0005fhtml$jsp.java:
 229: Class
 org.apache.jsp.FormBean not found.
 formHandler = (FormBean)
 java.beans.Beans.instantiate(this.getClass().getClassLoader(),
  FormBean);
^
 3 errors
 
 
 FormBean is the bean class that I wrritten. It seems related to
 the classpath settings, but I have put the FormBean into...
 webapps/app1/WEB-INF/classes/FormBean.class, why it still
 doesn't work? What's wrong with it?
 
 Thanks so much~~~
 
 --
 Best regards,
 
 Ken
 
 --
 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]




Narrowed down my warp/WebApp config error

2001-12-06 Thread Cross Fire Labs B.A. Lambrechts

Ok - I have narrowed down my warp/webapp error:

With the WebAppDeploy directive in the httpd.conf file, I get the occasional 
web-application not deployed yet error and the associated warp errors:  
cannot receive handshake WARP packet and cannot configure connection 
warpConnection

When I leave out the directive - I have no errors except for the occasional 
tomcat error IOException: Socket closed which I suspect is a timing issue.

Now that I have reduced the problem to this does anyone have any idea what 
is going on?

Thanks.


Beth Anne Lambrechts
Cross Fire Labs, Inc.
e-mail: [EMAIL PROTECTED]
Phone/Fax: 703-724-9210


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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




Need your help...

2001-12-06 Thread rickarde

Hi!

Can someone explain how to setup TC 3.2.2 with NS Enterprise Server 3.6 running 
two webapps that each of them should be started and closed separately.
I know that I should configure at least workers.properties (TC) and obj.conf 
(NS) but not exactly how.
By the way, App1 is using the default TC files (server.xml) and App2 is using 
its own TC structure which is being pointed at from App2's startup script.
Both servers are running from the same machine (UNIX).
For the moment it works just fine using TC own webserver (App1=8080/8007  
App2=8082/8009) but I need help changing the configuration when integrating 
with NS ES 3.6.

/Rickard E

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




Solaris VM crash? Full docs included

2001-12-06 Thread Yoav Shapira

Hi there,
So last night the JVM crashed on one of our big servers.  It had been
running without a problem for a while, but we've been experimenting
with tuning garbage collection, as this particular JVM is typically
around ~400MB in memory during the day.  Here are the details (sorry
for this long message, but I know it's a pointless question without
all the details I can provide).

Tomcat: 4.0.1 ($JAVA_HOME = /dvl/info/prj/infra/jdk1.3.1)
JVM: Sun JVM v1.3.1-b24 for Solaris
Server uname -a output: SunOS serverName 5.8 Generic_108528-04 sun4u
sparc SUNW,Ultra-Enterprise
(The server is a 12-CPU, 2GB RAM, big machine, and it had plenty of
available
memory, CPU usage was low all night without any spikes, nothing
suspicious)
(Java runtime parameters below)

Relevant catalina.out section:
---
Unexpected Signal : 11 occurred at PC=0xfe0c7d18
Function name=JVM_ArrayCopy
Library=/dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/server/libjvm.so

Current Java thread:

Dynamic libraries:
0x1
/dvl/info/prj/infra/jdk1.3.1/bin/../bin/sparc/native_threads/jav
a
0xff35  /usr/lib/libthread.so.1
0xff39  /usr/lib/libdl.so.1
0xff20  /usr/lib/libc.so.1
0xff33  /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
0xfe00 
/dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/server/libjvm.so
0xff2d  /usr/lib/libCrun.so.1
0xff1e  /usr/lib/libsocket.so.1
0xff10  /usr/lib/libnsl.so.1
0xff0d  /usr/lib/libm.so.1
0xff30  /usr/lib/libw.so.1
0xff0b  /usr/lib/libmp.so.2
0xff08 
/dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/native_threads/libhpi
.so
0xff05  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libverify.so
0xfe7c  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libjava.so
0xff02  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libzip.so
0xfccd  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libnet.so
0xfccb  /usr/lib/nss_files.so.1
0xda3e  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libawt.so
0xd668 
/dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/motif21/libmawt.so
0xda39 
/dvl/info/prj/infra/jdk1.3.1/bin/../jre/lib/sparc/libmlib_image.
so
0xd640  /usr/dt/lib/libXm.so.4
0xd9c9  /usr/openwin/lib/libXt.so.4
0xda15  /usr/openwin/lib/libXext.so.0
0xda13  /usr/openwin/lib/libXtst.so.1
0xd740  /usr/openwin/lib/libX11.so.4
0xd9ee  /usr/openwin/lib/libSM.so.6
0xd97d  /usr/openwin/lib/libICE.so.6
0xd97a  /usr/openwin/lib/libdga.so.1
0xd630 
/dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libfontmanager.so
0xd942  /usr/openwin/lib/libdps.so.5

Local Time = Thu Dec  6 06:50:32 2001
Elapsed Time = 24574
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002CC 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.3.1-b24 mixed mode)
#
# An error report file has been saved as hs_err_pid15459.log.
# Please refer to the file for further information.
#

-
End catalina.out excerpt
-

The error report file hs_err_pid15459.log contains a verbatim
copy of the above, no additional information.

Needless to say, the server died immediately, which I suppose is OK
to expect from Tomcat given such an internal JVM crash.  So no 
complaints, I'm just wondering if anyone has seen this crash before?

My theory is that it had to do with us slightly tweaking the
Java runtime parameters we'd been using, in an effort to improve
garbage collection on the machine.  
Previous CATALINA_OPTS=
CATALINA_OPTS='-server -Xms300m -Xmx500m -Xmaxf0.30 -Xminf0.10
-XX:NewRatio=1 -verbose:gc'
New ones, started last night, that probably caused the error:
CATALINA_OPTS='-server -Xms300m -Xmx500m -Xmaxf0.30 -Xminf0.10 -Xincgc
-verbose:gc -XX:MaxNewSize=100m -XX:NewSize=10m'

I realize this is as much a question to Sun as to tomcat-users, so
I'm reporting this bug there as well.  Thanks in advance for any
ideas,

Yoav

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




Senior Web Applications Architecture/Developer's needed for full time position.

2001-12-06 Thread Carl Boudreau

Minnesota, based company has positions opened now, for these people.
Please pass the word, and my telephone number. 612-220-8720

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




vurtual hosting

2001-12-06 Thread Rams

Hi,

Does Tomcat support Virtual Hosting?
lf yes, how?
could anyone please give the config. snippet?

Thanq

Rams



winmail.dat
Description: application/ms-tnef

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


CPU utilization on NT with 2 processors

2001-12-06 Thread Tomasz Janyska

Hi
Does anybody know the reason why on 2 CPU my Tomcat is after few hours running like 
crazy, utilizing 50% of CPU's power. My servlets don't show anything waiting for 
something. When I restart Tomcat everything is ok. I added ROOT Context and it didn't 
help. I tried to upgrade versions, but I finished on the 4.0.1 and my ideas came to 
the end. With the same configuration on machine with single CPU Tomcat works fine. 
Thanks
Tom



RE: CPU utilization on NT with 2 processors

2001-12-06 Thread Karl Oie

sounds more like a jvm issue... have you tried with other applications?

-Original Message-
From: Tomasz Janyska [mailto:[EMAIL PROTECTED]]
Sent: 6. desember 2001 15:55
To: [EMAIL PROTECTED]
Subject: CPU utilization on NT with 2 processors


Hi
Does anybody know the reason why on 2 CPU my Tomcat is after few hours
running like crazy, utilizing 50% of CPU's power. My servlets don't show
anything waiting for something. When I restart Tomcat everything is ok. I
added ROOT Context and it didn't help. I tried to upgrade versions, but I
finished on the 4.0.1 and my ideas came to the end. With the same
configuration on machine with single CPU Tomcat works fine.
Thanks
Tom


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




Include mod_webapp in Apache DSO

2001-12-06 Thread Kemp Randy-W18971

When my Unix Admin build Apache 1.3.22, the LDAP module was build when a particular 
Apache option was used.  I understand that the new Apache 2X uses libtools and 
autoconfig, which are used to build mod_webapp.  Couldn't the mod_webapp be included 
automatically when Apache 2X is build with DSO (so option)?  Am I missing something 
here? 

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




Last attempt before I heave sun box out of the window!

2001-12-06 Thread Cross Fire Labs B.A. Lambrechts

Ok -

No more apache/tomcat errors - through hokey measures - things seem to be 
quiet on that front - got no answers to any of those questions..

I have a JDBCRealm configured into the Context, Host and Engine levels in my 
server.xml

I have the security constraints set and the login authentication set to 
BASIC

I verify all of this with debug set at every level to 99.

Still can't get login dialog box to come up.

WHAT IS GOING ON?


Beth Anne Lambrechts
Cross Fire Labs, Inc.
e-mail: [EMAIL PROTECTED]
Phone/Fax: 703-724-9210


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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




AW: Solaris VM crash? Full docs included

2001-12-06 Thread Ralph Einfeldt

Is completely a question to sun.

I suspect that it is a bug in the incremental gc.

May be you should upgrade to JVM 1.3.1_01
There two bugs fixed that might help you:

(Don't know if this changes where between v1.3.1-b24 and 1.3.1_01)

   http://developer.java.sun.com/developer/bugParade/bugs/4469343.html
  (Might solve the problem)
   http://developer.java.sun.com/developer/bugParade/bugs/4450681.html
  (Might give better information what caused the signal)


 -Ursprüngliche Nachricht-
 Von: Yoav Shapira [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 15:30
 An: Tomcat Users List
 Betreff: Solaris VM crash? Full docs included
 
 
 Hi there,
 So last night the JVM crashed on one of our big servers.  It had been
 running without a problem for a while, but we've been experimenting
 with tuning garbage collection, as this particular JVM is typically
 around ~400MB in memory during the day.  Here are the details (sorry
 for this long message, but I know it's a pointless question without
 all the details I can provide).
 
 Tomcat: 4.0.1 ($JAVA_HOME = /dvl/info/prj/infra/jdk1.3.1)
 JVM: Sun JVM v1.3.1-b24 for Solaris
 Server uname -a output: SunOS serverName 5.8 Generic_108528-04 sun4u
 sparc SUNW,Ultra-Enterprise
 (The server is a 12-CPU, 2GB RAM, big machine, and it had plenty of
 available
 memory, CPU usage was low all night without any spikes, nothing
 suspicious)
 (Java runtime parameters below)
 
 Relevant catalina.out section:
 ---
 Unexpected Signal : 11 occurred at PC=0xfe0c7d18
 Function name=JVM_ArrayCopy
 Library=/dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/server/libjvm.so
 
 Current Java thread:
 
 Dynamic libraries:
 0x1
 /dvl/info/prj/infra/jdk1.3.1/bin/../bin/sparc/native_threads/jav
 a
 0xff35  /usr/lib/libthread.so.1
 0xff39  /usr/lib/libdl.so.1
 0xff20  /usr/lib/libc.so.1
 0xff33  /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
 0xfe00 
 /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/server/libjvm.so
 0xff2d  /usr/lib/libCrun.so.1
 0xff1e  /usr/lib/libsocket.so.1
 0xff10  /usr/lib/libnsl.so.1
 0xff0d  /usr/lib/libm.so.1
 0xff30  /usr/lib/libw.so.1
 0xff0b  /usr/lib/libmp.so.2
 0xff08 
 /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/native_threads/libhpi
 .so
 0xff05  
 /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libverify.so
 0xfe7c  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libjava.so
 0xff02  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libzip.so
 0xfccd  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libnet.so
 0xfccb  /usr/lib/nss_files.so.1
 0xda3e  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libawt.so
 0xd668 
 /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/motif21/libmawt.so
 0xda39 
 /dvl/info/prj/infra/jdk1.3.1/bin/../jre/lib/sparc/libmlib_image.
 so
 0xd640  /usr/dt/lib/libXm.so.4
 0xd9c9  /usr/openwin/lib/libXt.so.4
 0xda15  /usr/openwin/lib/libXext.so.0
 0xda13  /usr/openwin/lib/libXtst.so.1
 0xd740  /usr/openwin/lib/libX11.so.4
 0xd9ee  /usr/openwin/lib/libSM.so.6
 0xd97d  /usr/openwin/lib/libICE.so.6
 0xd97a  /usr/openwin/lib/libdga.so.1
 0xd630 
 /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libfontmanager.so
 0xd942  /usr/openwin/lib/libdps.so.5
 
 Local Time = Thu Dec  6 06:50:32 2001
 Elapsed Time = 24574
 #
 # HotSpot Virtual Machine Error : 11
 # Error ID : 4F530E43505002CC 01
 # Please report this error at
 # http://java.sun.com/cgi-bin/bugreport.cgi
 #
 # Java VM: Java HotSpot(TM) Server VM (1.3.1-b24 mixed mode)
 #
 # An error report file has been saved as hs_err_pid15459.log.
 # Please refer to the file for further information.
 #
 
 -
 End catalina.out excerpt
 -
 
 The error report file hs_err_pid15459.log contains a verbatim
 copy of the above, no additional information.
 
 Needless to say, the server died immediately, which I suppose is OK
 to expect from Tomcat given such an internal JVM crash.  So no 
 complaints, I'm just wondering if anyone has seen this crash before?
 
 My theory is that it had to do with us slightly tweaking the
 Java runtime parameters we'd been using, in an effort to improve
 garbage collection on the machine.  
 Previous CATALINA_OPTS=
 CATALINA_OPTS='-server -Xms300m -Xmx500m -Xmaxf0.30 -Xminf0.10
 -XX:NewRatio=1 -verbose:gc'
 New ones, started last night, that probably caused the error:
 CATALINA_OPTS='-server -Xms300m -Xmx500m -Xmaxf0.30 -Xminf0.10 -Xincgc
 -verbose:gc -XX:MaxNewSize=100m -XX:NewSize=10m'
 
 I realize this is as much a question to Sun as to tomcat-users, so
 I'm reporting this bug there as well.  Thanks in advance for any
 ideas,
 
 Yoav
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL 

Re: CPU utilization on NT with 2 processors

2001-12-06 Thread Bo Xu

- Original Message -
From: "Tomasz Janyska" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 9:54 AM
Subject: CPU utilization on NT with 2 processors


Hi
Does anybody know the reason why on 2 CPU my Tomcat is after few hours
running like crazy, utilizing 50% of CPU's power. My servlets don't show
anything waiting for something. When I restart Tomcat everything is ok. I
added ROOT Context and it didn't help. I tried to upgrade versions, but I
finished on the 4.0.1 and my ideas came to the end. With the same
configuration on machine with single CPU Tomcat works fine.
Thanks
Tom



I don't know why,  but I find some good papers and books about JMM(Java
Memory Model)
on different kinds Processor(s)/memory-model,   and Thread-Design-Pattern,
as a good
reference to you   :-)

(Doug Lea)http://g.oswego.edu/
(Bill Pugh)  http://www.cs.umd.edu/~pugh/
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel/
(double-checking)
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
(Joshua Bloch) Effective Java(this is a book, not a paper)


Bo
Dec.06, 2001



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




Re: AW: Solaris VM crash? Full docs included

2001-12-06 Thread Yoav Shapira

Hi,
Thanks a bunch for the quick reply.  It seems relevant and I'll try
updating the system.

Yoav

Ralph Einfeldt wrote:
 
 Is completely a question to sun.
 
 I suspect that it is a bug in the incremental gc.
 
 May be you should upgrade to JVM 1.3.1_01
 There two bugs fixed that might help you:
 
 (Don't know if this changes where between v1.3.1-b24 and 1.3.1_01)
 
http://developer.java.sun.com/developer/bugParade/bugs/4469343.html
   (Might solve the problem)
http://developer.java.sun.com/developer/bugParade/bugs/4450681.html
   (Might give better information what caused the signal)
 
  -Ursprüngliche Nachricht-
  Von: Yoav Shapira [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Dezember 2001 15:30
  An: Tomcat Users List
  Betreff: Solaris VM crash? Full docs included
 
 
  Hi there,
  So last night the JVM crashed on one of our big servers.  It had been
  running without a problem for a while, but we've been experimenting
  with tuning garbage collection, as this particular JVM is typically
  around ~400MB in memory during the day.  Here are the details (sorry
  for this long message, but I know it's a pointless question without
  all the details I can provide).
 
  Tomcat: 4.0.1 ($JAVA_HOME = /dvl/info/prj/infra/jdk1.3.1)
  JVM: Sun JVM v1.3.1-b24 for Solaris
  Server uname -a output: SunOS serverName 5.8 Generic_108528-04 sun4u
  sparc SUNW,Ultra-Enterprise
  (The server is a 12-CPU, 2GB RAM, big machine, and it had plenty of
  available
  memory, CPU usage was low all night without any spikes, nothing
  suspicious)
  (Java runtime parameters below)
 
  Relevant catalina.out section:
  ---
  Unexpected Signal : 11 occurred at PC=0xfe0c7d18
  Function name=JVM_ArrayCopy
  Library=/dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/server/libjvm.so
 
  Current Java thread:
 
  Dynamic libraries:
  0x1
  /dvl/info/prj/infra/jdk1.3.1/bin/../bin/sparc/native_threads/jav
  a
  0xff35  /usr/lib/libthread.so.1
  0xff39  /usr/lib/libdl.so.1
  0xff20  /usr/lib/libc.so.1
  0xff33  /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
  0xfe00
  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/server/libjvm.so
  0xff2d  /usr/lib/libCrun.so.1
  0xff1e  /usr/lib/libsocket.so.1
  0xff10  /usr/lib/libnsl.so.1
  0xff0d  /usr/lib/libm.so.1
  0xff30  /usr/lib/libw.so.1
  0xff0b  /usr/lib/libmp.so.2
  0xff08
  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/native_threads/libhpi
  .so
  0xff05
  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libverify.so
  0xfe7c  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libjava.so
  0xff02  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libzip.so
  0xfccd  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libnet.so
  0xfccb  /usr/lib/nss_files.so.1
  0xda3e  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libawt.so
  0xd668
  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/motif21/libmawt.so
  0xda39
  /dvl/info/prj/infra/jdk1.3.1/bin/../jre/lib/sparc/libmlib_image.
  so
  0xd640  /usr/dt/lib/libXm.so.4
  0xd9c9  /usr/openwin/lib/libXt.so.4
  0xda15  /usr/openwin/lib/libXext.so.0
  0xda13  /usr/openwin/lib/libXtst.so.1
  0xd740  /usr/openwin/lib/libX11.so.4
  0xd9ee  /usr/openwin/lib/libSM.so.6
  0xd97d  /usr/openwin/lib/libICE.so.6
  0xd97a  /usr/openwin/lib/libdga.so.1
  0xd630
  /dvl/info/prj/infra/jdk1.3.1/jre/lib/sparc/libfontmanager.so
  0xd942  /usr/openwin/lib/libdps.so.5
 
  Local Time = Thu Dec  6 06:50:32 2001
  Elapsed Time = 24574
  #
  # HotSpot Virtual Machine Error : 11
  # Error ID : 4F530E43505002CC 01
  # Please report this error at
  # http://java.sun.com/cgi-bin/bugreport.cgi
  #
  # Java VM: Java HotSpot(TM) Server VM (1.3.1-b24 mixed mode)
  #
  # An error report file has been saved as hs_err_pid15459.log.
  # Please refer to the file for further information.
  #
 
  -
  End catalina.out excerpt
  -
 
  The error report file hs_err_pid15459.log contains a verbatim
  copy of the above, no additional information.
 
  Needless to say, the server died immediately, which I suppose is OK
  to expect from Tomcat given such an internal JVM crash.  So no
  complaints, I'm just wondering if anyone has seen this crash before?
 
  My theory is that it had to do with us slightly tweaking the
  Java runtime parameters we'd been using, in an effort to improve
  garbage collection on the machine.
  Previous CATALINA_OPTS=
  CATALINA_OPTS='-server -Xms300m -Xmx500m -Xmaxf0.30 -Xminf0.10
  -XX:NewRatio=1 -verbose:gc'
  New ones, started last night, that probably caused the error:
  CATALINA_OPTS='-server -Xms300m -Xmx500m -Xmaxf0.30 -Xminf0.10 -Xincgc
  -verbose:gc -XX:MaxNewSize=100m -XX:NewSize=10m'
 
  I realize this is as much a question to Sun as to tomcat-users, so
  I'm reporting this bug 

Re: Last attempt before I heave sun box out of the window!

2001-12-06 Thread Denis Balazuc

Have you set the trusted flag to true for your context in server.xml ?
That might do the job...

- Original Message -
From: Cross Fire Labs B.A. Lambrechts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 10:27 AM
Subject: Last attempt before I heave sun box out of the window!


 Ok -

 No more apache/tomcat errors - through hokey measures - things seem to be
 quiet on that front - got no answers to any of those questions..

 I have a JDBCRealm configured into the Context, Host and Engine levels in
my
 server.xml

 I have the security constraints set and the login authentication set to
 BASIC

 I verify all of this with debug set at every level to 99.

 Still can't get login dialog box to come up.

 WHAT IS GOING ON?


 Beth Anne Lambrechts
 Cross Fire Labs, Inc.
 e-mail: [EMAIL PROTECTED]
 Phone/Fax: 703-724-9210


 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


 --
 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: Last attempt before I heave sun box out of the window!

2001-12-06 Thread Cross Fire Labs B.A. Lambrechts

Is that for TC4?  Can't find any documentation on it?


Beth Anne Lambrechts
Cross Fire Labs, Inc.
e-mail: [EMAIL PROTECTED]
Phone/Fax: 703-724-9210



From: Denis Balazuc [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Last attempt before I heave sun box out of the window!
Date: Thu, 6 Dec 2001 10:44:21 -0500

Have you set the trusted flag to true for your context in server.xml ?
That might do the job...

- Original Message -
From: Cross Fire Labs B.A. Lambrechts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 10:27 AM
Subject: Last attempt before I heave sun box out of the window!


  Ok -
 
  No more apache/tomcat errors - through hokey measures - things seem to 
be
  quiet on that front - got no answers to any of those questions..
 
  I have a JDBCRealm configured into the Context, Host and Engine levels 
in
my
  server.xml
 
  I have the security constraints set and the login authentication set to
  BASIC
 
  I verify all of this with debug set at every level to 99.
 
  Still can't get login dialog box to come up.
 
  WHAT IS GOING ON?
 
 
  Beth Anne Lambrechts
  Cross Fire Labs, Inc.
  e-mail: [EMAIL PROTECTED]
  Phone/Fax: 703-724-9210
 
 
  _
  Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp
 
 
  --
  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]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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




AW: Last attempt before I heave sun box out of the window!

2001-12-06 Thread Ralph Einfeldt

Please wait until I'm ready to catch it under your window... :)

 -Ursprüngliche Nachricht-
 Von: Cross Fire Labs B.A. Lambrechts
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 16:28
 An: [EMAIL PROTECTED]
 Betreff: Last attempt before I heave sun box out of the window!
 
 
 Ok -
 
 No more apache/tomcat errors - through hokey measures - 
 things seem to be 
 quiet on that front - got no answers to any of those questions..
 
 I have a JDBCRealm configured into the Context, Host and 
 Engine levels in my 
 server.xml
 
 I have the security constraints set and the login 
 authentication set to 
 BASIC
 
 I verify all of this with debug set at every level to 99.
 
 Still can't get login dialog box to come up.
 
 WHAT IS GOING ON?
 
 
 Beth Anne Lambrechts
 Cross Fire Labs, Inc.
 e-mail: [EMAIL PROTECTED]
 Phone/Fax: 703-724-9210
 
 
 _
 Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp
 
 
 --
 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_jserv.so vs mod_webapp.so

2001-12-06 Thread Chuck Van Buren

I am setting up Tomcat 4.0.1 with Apache 1.3.1 on Linux (RedHat 7.1).

What are the reasons (issues, improvements, etc) for using mod_webapp
instead of mod_jserv/mod_jk?

What are the major differences in the configuration of Tomcat (and Apache)
when using mod_webapp instead of mod_jserv?

There's a lot more documentation on mod_jserv and mod_jk than there is on
mod_webapp.  Please feel free to point me to any documentation that might
also help answer these questions.

Chuck




Chuck Van Buren
Software Developer
www.adrenaline.com
w  202-628-4438
c  202-486-5436

Adrenaline Group
1445 New York Ave
4th Floor
Washington, DC 20005



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




Re: Last attempt before I heave sun box out of the window!

2001-12-06 Thread Cross Fire Labs B.A. Lambrechts

Well - doesn't matter - set it in the context as an attribute:

trusted=true - and still didn't work.  Know anything about Single Sign-On 
- would that do it?



Beth Anne Lambrechts
Cross Fire Labs, Inc.
e-mail: [EMAIL PROTECTED]
Phone/Fax: 703-724-9210



From: Denis Balazuc [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Last attempt before I heave sun box out of the window!
Date: Thu, 6 Dec 2001 10:44:21 -0500

Have you set the trusted flag to true for your context in server.xml ?
That might do the job...

- Original Message -
From: Cross Fire Labs B.A. Lambrechts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 10:27 AM
Subject: Last attempt before I heave sun box out of the window!


  Ok -
 
  No more apache/tomcat errors - through hokey measures - things seem to 
be
  quiet on that front - got no answers to any of those questions..
 
  I have a JDBCRealm configured into the Context, Host and Engine levels 
in
my
  server.xml
 
  I have the security constraints set and the login authentication set to
  BASIC
 
  I verify all of this with debug set at every level to 99.
 
  Still can't get login dialog box to come up.
 
  WHAT IS GOING ON?
 
 
  Beth Anne Lambrechts
  Cross Fire Labs, Inc.
  e-mail: [EMAIL PROTECTED]
  Phone/Fax: 703-724-9210
 
 
  _
  Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp
 
 
  --
  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]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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




RE: Last attempt before I heave sun box out of the window!

2001-12-06 Thread Jim Urban

I thought about that too, but then I realized that could hurt or even kill a
person.  :)

Jim

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 9:52 AM
To: Tomcat Users List
Subject: AW: Last attempt before I heave sun box out of the window!


Please wait until I'm ready to catch it under your window... :)

 -Ursprüngliche Nachricht-
 Von: Cross Fire Labs B.A. Lambrechts
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 16:28
 An: [EMAIL PROTECTED]
 Betreff: Last attempt before I heave sun box out of the window!


 Ok -

 No more apache/tomcat errors - through hokey measures -
 things seem to be
 quiet on that front - got no answers to any of those questions..

 I have a JDBCRealm configured into the Context, Host and
 Engine levels in my
 server.xml

 I have the security constraints set and the login
 authentication set to
 BASIC

 I verify all of this with debug set at every level to 99.

 Still can't get login dialog box to come up.

 WHAT IS GOING ON?


 Beth Anne Lambrechts
 Cross Fire Labs, Inc.
 e-mail: [EMAIL PROTECTED]
 Phone/Fax: 703-724-9210


 _
 Get your FREE download of MSN Explorer at
 http://explorer.msn.com/intl.asp


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




AW: Last attempt before I heave sun box out of the window!

2001-12-06 Thread Ralph Einfeldt


No risk, no fun 8}

 -Ursprüngliche Nachricht-
 Von: Jim Urban [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 17:01
 An: Tomcat Users List
 Betreff: RE: Last attempt before I heave sun box out of the window!
 
 
 I thought about that too, but then I realized that could hurt 
 or even kill a
 person.  :)
 
 Jim
 
 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 9:52 AM
 To: Tomcat Users List
 Subject: AW: Last attempt before I heave sun box out of the window!
 
 
 Please wait until I'm ready to catch it under your window... :)
 
  -Ursprüngliche Nachricht-
  Von: Cross Fire Labs B.A. Lambrechts
  [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Dezember 2001 16:28
  An: [EMAIL PROTECTED]
  Betreff: Last attempt before I heave sun box out of the window!
 
 
  Ok -
 
  No more apache/tomcat errors - through hokey measures -
  things seem to be
  quiet on that front - got no answers to any of those questions..
 
  I have a JDBCRealm configured into the Context, Host and
  Engine levels in my
  server.xml
 
  I have the security constraints set and the login
  authentication set to
  BASIC
 
  I verify all of this with debug set at every level to 99.
 
  Still can't get login dialog box to come up.
 
  WHAT IS GOING ON?
 
 
  Beth Anne Lambrechts
  Cross Fire Labs, Inc.
  e-mail: [EMAIL PROTECTED]
  Phone/Fax: 703-724-9210
 
 
  _
  Get your FREE download of MSN Explorer at
  http://explorer.msn.com/intl.asp
 
 
  --
  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]




AW: Last attempt before I heave sun box out of the window!

2001-12-06 Thread Ralph Einfeldt

I wouldn't try Single Sign on, just makes the case even more
complicated.

It's purpose is to enable one login for more than one application.

As I'm not using tomcat, it's hard to give hints.

May it would help to forget about SSL for the start.

 -Ursprüngliche Nachricht-
 Von: Cross Fire Labs B.A. Lambrechts
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 17:01
 An: [EMAIL PROTECTED]
 Betreff: Re: Last attempt before I heave sun box out of the window!
 
 
 Well - doesn't matter - set it in the context as an attribute:
 
 trusted=true - and still didn't work.  Know anything about 
 Single Sign-On 
 - would that do it?
 
 
 
 Beth Anne Lambrechts
 Cross Fire Labs, Inc.
 e-mail: [EMAIL PROTECTED]
 Phone/Fax: 703-724-9210
 
 
 
 From: Denis Balazuc [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Last attempt before I heave sun box out of the window!
 Date: Thu, 6 Dec 2001 10:44:21 -0500
 
 Have you set the trusted flag to true for your context 
 in server.xml ?
 That might do the job...
 
 - Original Message -
 From: Cross Fire Labs B.A. Lambrechts [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 06, 2001 10:27 AM
 Subject: Last attempt before I heave sun box out of the window!
 
 
   Ok -
  
   No more apache/tomcat errors - through hokey measures - 
 things seem to 
 be
   quiet on that front - got no answers to any of those questions..
  
   I have a JDBCRealm configured into the Context, Host and 
 Engine levels 
 in
 my
   server.xml
  
   I have the security constraints set and the login 
 authentication set to
   BASIC
  
   I verify all of this with debug set at every level to 99.
  
   Still can't get login dialog box to come up.
  
   WHAT IS GOING ON?
  
  
   Beth Anne Lambrechts
   Cross Fire Labs, Inc.
   e-mail: [EMAIL PROTECTED]
   Phone/Fax: 703-724-9210
  
  
   _
   Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp
  
  
   --
   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]
 
 
 
 _
 Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp
 
 
 --
 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: AW: Last attempt before I heave sun box out of the window!

2001-12-06 Thread Cross Fire Labs B.A. Lambrechts

You will all have to wait a long time to see a flying Sun box as I have just 
figured out that apache wasn't even talking to tomcat - duh!  No wonder my 
JDBCRealm wasn't being recognized!!!

So there will be no squishing of people or Sun's today.I know you all 
are crushed (pun intended!) :)

thanks anyway.

Beth Anne Lambrechts
Cross Fire Labs, Inc.
e-mail: [EMAIL PROTECTED]
Phone/Fax: 703-724-9210



From: Ralph Einfeldt [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: AW: Last attempt before I heave sun box out of the window!
Date: Thu, 6 Dec 2001 17:06:37 +0100

I wouldn't try Single Sign on, just makes the case even more
complicated.

It's purpose is to enable one login for more than one application.

As I'm not using tomcat, it's hard to give hints.

May it would help to forget about SSL for the start.

  -Ursprüngliche Nachricht-
  Von: Cross Fire Labs B.A. Lambrechts
  [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Dezember 2001 17:01
  An: [EMAIL PROTECTED]
  Betreff: Re: Last attempt before I heave sun box out of the window!
 
 
  Well - doesn't matter - set it in the context as an attribute:
 
  trusted=true - and still didn't work.  Know anything about
  Single Sign-On
  - would that do it?
 
 
 
  Beth Anne Lambrechts
  Cross Fire Labs, Inc.
  e-mail: [EMAIL PROTECTED]
  Phone/Fax: 703-724-9210
 
 
 
  From: Denis Balazuc [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: Last attempt before I heave sun box out of the window!
  Date: Thu, 6 Dec 2001 10:44:21 -0500
  
  Have you set the trusted flag to true for your context
  in server.xml ?
  That might do the job...
  
  - Original Message -
  From: Cross Fire Labs B.A. Lambrechts [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, December 06, 2001 10:27 AM
  Subject: Last attempt before I heave sun box out of the window!
  
  
Ok -
   
No more apache/tomcat errors - through hokey measures -
  things seem to
  be
quiet on that front - got no answers to any of those questions..
   
I have a JDBCRealm configured into the Context, Host and
  Engine levels
  in
  my
server.xml
   
I have the security constraints set and the login
  authentication set to
BASIC
   
I verify all of this with debug set at every level to 99.
   
Still can't get login dialog box to come up.
   
WHAT IS GOING ON?
   
   
Beth Anne Lambrechts
Cross Fire Labs, Inc.
e-mail: [EMAIL PROTECTED]
Phone/Fax: 703-724-9210
   
   
_
Get your FREE download of MSN Explorer at
  http://explorer.msn.com/intl.asp
   
   
--
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]
  
 
 
  _
  Get your FREE download of MSN Explorer at
  http://explorer.msn.com/intl.asp
 
 
  --
  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]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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




RE: Last attempt before I heave sun box out of the window!

2001-12-06 Thread Jim Urban

More likely:  No pain, no gain!  :)

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:05 AM
To: Tomcat Users List
Subject: AW: Last attempt before I heave sun box out of the window!



No risk, no fun 8}

 -Ursprüngliche Nachricht-
 Von: Jim Urban [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 17:01
 An: Tomcat Users List
 Betreff: RE: Last attempt before I heave sun box out of the window!


 I thought about that too, but then I realized that could hurt
 or even kill a
 person.  :)

 Jim

 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 9:52 AM
 To: Tomcat Users List
 Subject: AW: Last attempt before I heave sun box out of the window!


 Please wait until I'm ready to catch it under your window... :)

  -Ursprüngliche Nachricht-
  Von: Cross Fire Labs B.A. Lambrechts
  [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Dezember 2001 16:28
  An: [EMAIL PROTECTED]
  Betreff: Last attempt before I heave sun box out of the window!
 
 
  Ok -
 
  No more apache/tomcat errors - through hokey measures -
  things seem to be
  quiet on that front - got no answers to any of those questions..
 
  I have a JDBCRealm configured into the Context, Host and
  Engine levels in my
  server.xml
 
  I have the security constraints set and the login
  authentication set to
  BASIC
 
  I verify all of this with debug set at every level to 99.
 
  Still can't get login dialog box to come up.
 
  WHAT IS GOING ON?
 
 
  Beth Anne Lambrechts
  Cross Fire Labs, Inc.
  e-mail: [EMAIL PROTECTED]
  Phone/Fax: 703-724-9210
 
 
  _
  Get your FREE download of MSN Explorer at
  http://explorer.msn.com/intl.asp
 
 
  --
  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]




IE 6 upgrade and java plug-in causing problems

2001-12-06 Thread Steve Bearss

Hello All,

I recently upgraded to IE 6 and I was prompted to install the latest java plug-in as 
well.  Now my Tomcat is not running.  All my java development is on a separate 
partition, which includes the jdk and tomcat.  I'm not sure what IE did (it is on 
another partition) to this setup and I tried to update my JAVA_HOME variable, still no 
luck.  Is there any way to determine which version of java is currently running (I 
seem to have a few copies now) and where it is located?  After that I should be able 
to re-configure JAVA_HOME and all is good?

Thanks,
s



Configuring virtual host on Tomcat 4.0

2001-12-06 Thread Wayne Hefner

I am attempting to configure Tomcat 4.0 and Apache 1.3 to work with virtual
hosts.  I have been able to get the WARP connector working with the default
apps in tomcat.  However when I configure for a virtual host going to a
different app base it communicates with tomcat and gives me a listing of the
default webapps directory (which on the side does not work from this
connector).  I would appreciate any guidance on setting up virtual hosts in
tomcat 4.0.  I have attached pertinent code snippets from the httpd.conf and
server.xml.

httpd.conf:

VirtualHost 127.0.0.1
ServerAdmin [EMAIL PROTECTED]
DocumentRoot F:/home/wwwroot/mack/htdocs
ServerName mack-weh
ErrorLog logs/mack-weh-error_log
CustomLog logs/mack-weh-access_log common
WebAppConnection mack-conn warp mack-weh:8010
WebAppDeploy / mack-conn /
/VirtualHost

# Add configuration needed to work with Tomcat 4.0

WebAppConnection conn warp whefner:8008
WebAppDeploy examples conn /examples


server.xml:

  !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

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

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared
globally --
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

  !-- Define an Apache-Connector Service for mack-weh --
  Service name=MackConnector

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

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=mack-weh debug=1 appBase=F:/home/wwwroot/mack/htdocs

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=mack-apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared
globally --
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

Any help would be appreciated.

thanks,

wayne


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




Yes or No please! Can timestamps be added to isapi.log???

2001-12-06 Thread Hawkins, Keith (Keith)


Can someone please give a yes or no answer to this: Can timestamps be
added to isapi.log???

Thanks,
Keith






Re: Filter-Tag Problems with TC 4.0.1

2001-12-06 Thread David Smith

You have to follow the exact order as specified in the DTD.  The xml parser 
is picky on this point.  Check the DTD and your web.xml file to make sure 
there aren't any elements before that should be after and so forth.

--David

On Wednesday 05 December 2001 05:53 pm, you wrote:
 Hi everyone,

 when defining filter-tags in my web.xml file I get the following error
 starting tc:

 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.1
 PARSE error at line 9 column -1
 org.xml.sax.SAXParseException: Element web-app does not allow filter
 here.

 Why is that? A view into the dtd revealed that filter is a valid tag
 in web-app. I also looked up the example web.xml that comes with
 tomcat. The first tag after web-app is also filter. This is the
 web.xml I use:



 01:?xml version=1.0 encoding=ISO-8859-1?
 02:
 03:!DOCTYPE web-app
 04:PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 05:http://java.sun.com/dtd/web-app_2_3.dtd;
 06:
 07:web-app
 08:
 09:filter
 10:filter-nameRequestAnalyzer/filter-name
 11:
 12:filter-classcom.featureit.asf.webapp.filter.RequestAnalyzer/filter-cl
ass 13:/filter
 14:
 15:filter-mapping
 16:filter-nameRequestAnalyzer/filter-name
 17:url-pattern/*/url-pattern
 18:/filter-mapping
 19:
 20:servlet
 21:   servlet-namewebapp/servlet-name

 [...]


 Any help would be greatly appreciated. Thanx!

 Bye,
  Levo.










 --
 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: Cannot connect Servlet/JSP running in Tomcat to MySQL Database

2001-12-06 Thread David Smith

Is your Tomcat using the security manager??  That would explain the error 
message.  If so, you'll have to allow access to the datasource in 
catalina.policy.  Otherwise it should work.

--David

On Wednesday 05 December 2001 05:19 pm, you wrote:
 Hi, I am unable to connect a servlet or jsp running in Tomcat to a MySQL
 database.  Here are the particulars:

 Tomcat Version: 4.0.1
 MySQL Version: 3.23.45
 MySQL JDBC Driver Version: mm.mysql-2.0.4-bin.jar
 Linux Version: Red Hat 7.1 running Kernel Version 2.4.2-2smp

 Here is some sample code:
 ***
* ***

 %@ page import=java.sql.* %

 %! Connection c; %

 % try {
   Class.forName(org.gjt.mm.mysql.Driver).newInstance();
 }
 catch (Exception e) {}

 try {
   c =
 DriverManager.getConnection(jdbc:mysql://localhost/PAARsnp?user=rootpassw
o rd=);
 % Could do it! %
 }
 catch (Exception e) {
 %
 Can't do it!BR
 %= e.getMessage() %
 % } %

 ***
* ***


 And the resultant output:


 Can't do it!
 Server configuration denies access to data source

 ***
* ***

 I know for a fact that the connection string is correct.  However, I do not
 know where to go from here.  I also know that I can successfully connect
 to this database from a PHP script, just not from Java code running
 within Tomcat.

 Thanks in advance for any help

 Matt Stine
 Software Engineer
 Hartwell Center for Bioinformatics and Biotechnology
 St. Jude Children's Research Hospital
 332 N. Lauderdale St.
 Memphis, TN 38105-2794
 Phone: 901.495.4602
 Fax: 901.495.2945
 [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]




Can Network problems bring down Tomcat??

2001-12-06 Thread Hawkins, Keith (Keith)


I am trying to determine cause of why a Tomcat process keeps going down
at a particular site.
I notice from some of our application log files that socket errors are
occurring between our client
and server.  I also notice socket errors between the isapi redirector
and tomcat.   

Has anyone heard of network problems causing Tomcat to fall over??

Thanks,
Keith




AW: mod_jserv.so vs mod_webapp.so

2001-12-06 Thread Ralph Einfeldt

mod_jserv is not recommended any longer.

mod_jk is currently the best documented connector for TC 4.0
  http://jakarta.apache.org/~hgomez/ajp13-tc4.0/

mod_webapp is the connector for the future, but misses some 
documentation and as the volume of traffic it caused in this
list indicates, people have more troubles configuring it and 
getting it to run.
  http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml

 -Ursprüngliche Nachricht-
 Von: Chuck Van Buren [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Dezember 2001 16:58
 An: [EMAIL PROTECTED]
 Betreff: mod_jserv.so vs mod_webapp.so
 
 
 I am setting up Tomcat 4.0.1 with Apache 1.3.1 on Linux (RedHat 7.1).
 
 What are the reasons (issues, improvements, etc) for using mod_webapp
 instead of mod_jserv/mod_jk?
 
 What are the major differences in the configuration of Tomcat 
 (and Apache)
 when using mod_webapp instead of mod_jserv?
 
 There's a lot more documentation on mod_jserv and mod_jk than 
 there is on
 mod_webapp.  Please feel free to point me to any 
 documentation that might
 also help answer these questions.
 
 Chuck
 
 
 
 
 Chuck Van Buren
 Software Developer
 www.adrenaline.com
 w  202-628-4438
 c  202-486-5436
 
 Adrenaline Group
 1445 New York Ave
 4th Floor
 Washington, DC 20005
 
 
 
 --
 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: mod_jserv.so vs mod_webapp.so

2001-12-06 Thread Chuck Van Buren

Ralph, Thanks.

I know of one difference between mod_jserv and mod_jk.  Apache can only
communicate with jserv when using mod_jserv but with other servlet engines
when using mod_jk.  Are there any other major differences?

Also, I know nothing about what makes mod_webapp the connector of the
future.  I've seen the documetation on how to use mod_webapp (the URL you
sent) but would like to know more about the what makes that connector
different/better than the others.  Any insights?

Chuck


Chuck Van Buren
Software Developer
www.adrenaline.com
w  202-628-4438
c  202-486-5436

Adrenaline Group
1445 New York Ave
4th Floor
Washington, DC 20005

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 11:49 AM
Subject: AW: mod_jserv.so vs mod_webapp.so


 mod_jserv is not recommended any longer.

 mod_jk is currently the best documented connector for TC 4.0
   http://jakarta.apache.org/~hgomez/ajp13-tc4.0/

 mod_webapp is the connector for the future, but misses some
 documentation and as the volume of traffic it caused in this
 list indicates, people have more troubles configuring it and
 getting it to run.
   http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml

  -Ursprüngliche Nachricht-
  Von: Chuck Van Buren [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Dezember 2001 16:58
  An: [EMAIL PROTECTED]
  Betreff: mod_jserv.so vs mod_webapp.so
 
 
  I am setting up Tomcat 4.0.1 with Apache 1.3.1 on Linux (RedHat 7.1).
 
  What are the reasons (issues, improvements, etc) for using mod_webapp
  instead of mod_jserv/mod_jk?
 
  What are the major differences in the configuration of Tomcat
  (and Apache)
  when using mod_webapp instead of mod_jserv?
 
  There's a lot more documentation on mod_jserv and mod_jk than
  there is on
  mod_webapp.  Please feel free to point me to any
  documentation that might
  also help answer these questions.
 
  Chuck
 
 
 
 
  Chuck Van Buren
  Software Developer
  www.adrenaline.com
  w  202-628-4438
  c  202-486-5436
 
  Adrenaline Group
  1445 New York Ave
  4th Floor
  Washington, DC 20005
 
 
 
  --
  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]




Web.xml not found

2001-12-06 Thread Kevin Ritter

Greetings, 

I am getting this error  ContextConfig[]: Missing application web.xml,
using defaults only ...  Internal Error: File /WEB-INF/web.xml not found.

My WEB-INF directory name is all uppercase spelled actually the way I've
spelled it here. The web.xml file is a well-formed XML file. DO I have to
include the following DOCTYPE declaration or can I remove it:

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

Any help would be appreciated.

Kevin Ritter

-Original Message-
From: Brian Elliott [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 06, 2001 7:17 AM
To: Tomcat Users List
Subject: Re: Can't find web.xml

Yes I did it things working. I think this fix was part of it - web-inf
was not all caps - WEB-INF.

thanks,

brian

Sriram Narayanan wrote:
 
 Hi,
 
 This is a blind shot, but have you checked that the WEB-INF name is in
capital ?
 
 And that the web.xml is a valid one ? TC 4 is stricter with this file.
 
 Sriram
 
 30/11/2001 5:27:01 PM, Brian Elliott [EMAIL PROTECTED] wrote:
 
 Brian Elliott wrote:
 
  I am trying to install Tomcat 4 with a content management system called
  Stellent. Stellent runs Tomcat as a service. But I am getting an error
  when I try to request a JSP page:
 
  Can't find WEB-INF/web.xml
 
 Here is more of the actual error message:
 
 11-29 16:48:52 StandardHost[localhost]: Installing web application at
 context path  from URL
 file:D:\Stellent\tomcat4\webapps\ROOT
 2001-11-29 16:48:52 WebappLoader[]: Deploying class repositories to work
 directory
 D:\Stellent\tomcat4\work\localhost\_
 2001-11-29 16:48:52 StandardManager[]: Seeding random number generator
 class
 java.security.SecureRandom
 2001-11-29 16:48:52 StandardManager[]: Seeding of random number
 generator has been completed
 2001-11-29 16:48:52 ContextConfig[]: Missing application web.xml, using
 defaults only
 2001-11-29 16:48:52 StandardWrapper[:default]: Loading container servlet
 default
 2001-11-29 16:48:52 default: init
 2001-11-29 16:48:52 StandardWrapper[:invoker]: Loading container servlet
 invoker
 2001-11-29 16:48:52 invoker: init
 2001-11-29 16:48:52 StandardWrapper[:jsp]: Using Jasper classloader for
 servlet jsp
 2001-11-29 16:48:52 jsp: init
 2001-11-29 16:48:52 StandardWrapper[:ssi]: Loading container servlet ssi
 2001-11-29 16:48:52 ssi: init
 2001-11-29 16:48:52 Internal Error: File /WEB-INF/web.xml not found
 2001-11-29 16:48:52
 
 
 As for the logger, here is what I try - the catalina log works but the
 JASPER_LOG (which I hope contains the Tomcat CLASSPATH) gives me the
 following error:
 
 server.xml:
 
 !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt
   timestamp=true verbosityLevel = DEBUG/
 
   Logger name=JASPER_LOG verbosityLevel=WARNING
 timestamp=yes/
 
 
 error:
 
 ERROR reading d:\stellent\config\server.xml
 At Line 17 /Server/Service/Engine/Logger/ name=JASPER_LOG
 verbosityLevel=WARNING
  timestamp=yes
 
 java.lang.NullPointerException
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
 org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
 at
 org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
 
 --
 
 Any help on the why of the /WEB-INF/web.xml error or the JASPER_LOG
 error would be appreciated.
 
 Brian
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 _
 
 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]

-- 
Brian Elliott
President  CTO
Unplugged Systems
[EMAIL PROTECTED]
http://www.unpluggedsystems.com
719.339.1204 (cell)
719.487.1437 (office)

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




Setting the alocated memory to Tomcat 4.0.1

2001-12-06 Thread Niclas Rothman

Hi everybody!
I´m using Tomcat 4.0.1 and the version with the Windows NT service. 
Does anybody know where to set the size for the memory to allocate to the
Tomcat (-Xms  -Xmx), can´t find any documentation about this.
Best reqards 

Niclas Rothman

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




Re: Setting the alocated memory to Tomcat 4.0.1

2001-12-06 Thread Bo Xu

- Original Message -
From: Niclas Rothman [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 12:52 PM
Subject: Setting the alocated memory to Tomcat 4.0.1


Hi everybody!
I´m using Tomcat 4.0.1 and the version with the Windows NT service.
Does anybody know where to set the size for the memory to allocate to the
Tomcat (-Xms  -Xmx), can´t find any documentation about this.
Best reqards

Niclas Rothman


I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin,
for example, update the following:
*   _STARTJAVA
*   %_STARTJAVA%
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8
%9 start


and add java -Xmsn/-Xmxn into them.

Bo
Dec.06, 2001




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




RE: Yes or No please! Can timestamps be added to isapi.log???

2001-12-06 Thread Larry Isaacs

Yes if you use the isapi_redirect.dll from Tomcat 3.3.  The
isapi_redirect.dll from Tomcat 3.2.x does not support timestamps.

Cheers,
Larry

 -Original Message-
 From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 11:37 AM
 To: tomcat-user
 Subject: Yes or No please! Can timestamps be added to isapi.log???
 
 
 
 Can someone please give a yes or no answer to this: Can timestamps be
 added to isapi.log???
 
 Thanks,
 Keith
 
 
 
 

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




SV: Setting the alocated memory to Tomcat 4.0.1

2001-12-06 Thread Niclas Rothman

Hi Bo!
Thank´s for your reply, but I seem to have no luck with this. 
Have done a little jsp file that prints out the free memory and total memory
of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply,
I´ve just added -Xms  -Xmx to the end of the line:
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE%
-Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8
%9 start

So the result is:

%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE%
-Dcatalina.home=%CATALINA
  _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9
start -Xms100663296   
-Xmx134217728


What do say is this approach right or wrong?
Best regards Niclas Rothman
-Oprindelig meddelelse-
Fra: Bo Xu [mailto:[EMAIL PROTECTED]]
Sendt: 6. december 2001 19:10
Til: Tomcat Users List
Emne: Re: Setting the alocated memory to Tomcat 4.0.1


- Original Message -
From: Niclas Rothman [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 12:52 PM
Subject: Setting the alocated memory to Tomcat 4.0.1


Hi everybody!
I´m using Tomcat 4.0.1 and the version with the Windows NT service.
Does anybody know where to set the size for the memory to allocate to the
Tomcat (-Xms  -Xmx), can´t find any documentation about this.
Best reqards

Niclas Rothman


I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin,
for example, update the following:
*   _STARTJAVA
*   %_STARTJAVA%
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8
%9 start


and add java -Xmsn/-Xmxn into them.

Bo
Dec.06, 2001




--
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: Yes or No please! Can timestamps be added to isapi.log???

2001-12-06 Thread Hawkins, Keith (Keith)

Larry,

Thanks for the reply.

Are there any dangers in using this .dll with Tomcat 3.2.3?

We are too far along with our system testing to propose an upgrade to
Tomcat 3.3 at this point so I would have to mix and match.

Thanks,
Keith



-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:14 PM
To: 'Tomcat Users List'
Subject: RE: Yes or No please! Can timestamps be added to isapi.log???


Yes if you use the isapi_redirect.dll from Tomcat 3.3.  The
isapi_redirect.dll from Tomcat 3.2.x does not support timestamps.

Cheers,
Larry

 -Original Message-
 From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 11:37 AM
 To: tomcat-user
 Subject: Yes or No please! Can timestamps be added to isapi.log???
 
 
 
 Can someone please give a yes or no answer to this: Can timestamps be
 added to isapi.log???
 
 Thanks,
 Keith
 
 
 
 

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




SQL*Server JDBC Driver

2001-12-06 Thread Timlin, Bob

Hello, I am trying to get the SQL*Server driver to work with Tomcat 4.0.
The driver I am using is Opta2000.jar.  

The message I am getting is Error Loading Driver:
java.lang.ClassNotFoundException: com.inet.tds.TdsDriver 

I believe this is because I am not putting the driver in the right directory
under Tomcat, but cannot figure out where I should put it.  Can somebody
tell me where it belongs?

Thanks in advance.

Bob.


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




Re: SV: Setting the alocated memory to Tomcat 4.0.1

2001-12-06 Thread Ryan Lubke

Hi,

Try:
 set CATALINA_OPTS=-Xms=size -Xmx-size

and then start tomcat.

This should set the desired options.
Note: I haven't tried this on Win32, but works find on *NIX.

-rl

On Thu, 2001-12-06 at 13:27, Niclas Rothman wrote:
 Hi Bo!
 Thank´s for your reply, but I seem to have no luck with this. 
 Have done a little jsp file that prints out the free memory and total memory
 of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply,
 I´ve just added -Xms  -Xmx to the end of the line:
   %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE%
 -Dcatalina.home=%CATALINA
 _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8
 %9 start
 
 So the result is:
 
   %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE%
 -Dcatalina.home=%CATALINA
   _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9
 start -Xms100663296   
   -Xmx134217728
 
 
 What do say is this approach right or wrong?
 Best regards Niclas Rothman
 -Oprindelig meddelelse-
 Fra: Bo Xu [mailto:[EMAIL PROTECTED]]
 Sendt: 6. december 2001 19:10
 Til: Tomcat Users List
 Emne: Re: Setting the alocated memory to Tomcat 4.0.1
 
 
 - Original Message -
 From: Niclas Rothman [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, December 06, 2001 12:52 PM
 Subject: Setting the alocated memory to Tomcat 4.0.1
 
 
 Hi everybody!
 I´m using Tomcat 4.0.1 and the version with the Windows NT service.
 Does anybody know where to set the size for the memory to allocate to the
 Tomcat (-Xms  -Xmx), can´t find any documentation about this.
 Best reqards
 
 Niclas Rothman
 
 
 I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin,
 for example, update the following:
 *   _STARTJAVA
 *   %_STARTJAVA%
 %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA
 _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8
 %9 start
 
 
 and add java -Xmsn/-Xmxn into them.
 
 Bo
 Dec.06, 2001
 
 
 
 
 --
 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: SQL*Server JDBC Driver

2001-12-06 Thread Miao, Franco CAWS:EX

go to MS download SQL JDBC driver, that one is the best for SQL server

put .jar files in \common\lib\

Franco 



-Original Message-
From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: SQL*Server JDBC Driver


Hello, I am trying to get the SQL*Server driver to work with Tomcat 4.0.
The driver I am using is Opta2000.jar.  

The message I am getting is Error Loading Driver:
java.lang.ClassNotFoundException: com.inet.tds.TdsDriver 

I believe this is because I am not putting the driver in the right directory
under Tomcat, but cannot figure out where I should put it.  Can somebody
tell me where it belongs?

Thanks in advance.

Bob.


--
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: images won't load with tomcat4.0.1 and apache 1.3 using WebApp_Mo dule

2001-12-06 Thread Brian Adams

what does your web.xml look like Mark?  do you have filters defined for the
images directory.  I tried what you have listed here and it doesn't work.  I
can't believe it is this hard to get some images viewed in a freaking jsp
page!!
thanks for the input,
Brian
p.s. t4 documentation sucks!
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 4:21 PM
To: Tomcat Users List
Subject: RE: images won't load with tomcat4.0.1 and apache 1.3 using
WebApp_Mo dule


I recently had the same problem.  Thanks to the help of someone else on the
Tomcat mailing list, I resolved it by prepending the context path to the
images in the JSP, eg:

img src='%=request.getContextPath()%/myimages/image.gif'

In my case I have a directory of images as ../webapps/myapp/myimages

Hope this fixes your problem...


At 02:33 PM 12/5/2001 -0600, you wrote:
Typo: should be this : The only way is if I use img=http://.../image.gif; 

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 2:33 PM
To: '[EMAIL PROTECTED]'
Subject: images won't load with tomcat4.0.1 and apache 1.3 using
WebApp_Mo dule


Hi, I walked through a basic setup of apache and tomcat 4.0
now that I have tomcat responding to Apache via warp I can't get any of my
jsp pages to load images
The only way is if I use img=http://.../image.if;
Please tell me a way to do this better than that!
standard httpd.conf with:
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
.
.
.
WebAppConnection conn warp localhost:9009
WebAppDeploy bbb conn /bbb







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




SV: SQL*Server JDBC Driver

2001-12-06 Thread Niclas Rothman

Okey Miao, do you know how I can se if the changes have come through?
Is there a log for these things or do I have to print out the following code
from a jsp page:
out.println(+Runtime.getRuntime().freeMemory()/1000);
out.println(+Runtime.getRuntime().totalMemory()/1000);

Best Regards 
Niclas Rothman

-Oprindelig meddelelse-
Fra: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
Sendt: 6. december 2001 19:44
Til: 'Tomcat Users List'
Emne: RE: SQL*Server JDBC Driver


go to MS download SQL JDBC driver, that one is the best for SQL server

put .jar files in \common\lib\

Franco 



-Original Message-
From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: SQL*Server JDBC Driver


Hello, I am trying to get the SQL*Server driver to work with Tomcat 4.0.
The driver I am using is Opta2000.jar.  

The message I am getting is Error Loading Driver:
java.lang.ClassNotFoundException: com.inet.tds.TdsDriver 

I believe this is because I am not putting the driver in the right directory
under Tomcat, but cannot figure out where I should put it.  Can somebody
tell me where it belongs?

Thanks in advance.

Bob.


--
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: Setting the alocated memory to Tomcat 4.0.1

2001-12-06 Thread Bo Xu

Hi Niclas,


I am not sure because I didn't ever use -Xms/-Xmx to customize catalina.bat,
I guess there are two reasons:

- did you update all _RUNJAVA/_STARTJAVA... start in catalina.bat?
   in the the following(from TC4.0), there are 4
   _RUNJAVA/_STARTJAVA... start.

:doRun
if %2 == -security goto doRunSecure
%_RUNJAVA%
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start
goto cleanup
:doRunSecure
%_RUNJAVA%
%CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B
ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home
=%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8
%9 start
goto cleanup

:doStart
if %2 == -security goto doStartSecure
%_STARTJAVA%
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start
goto cleanup
:doStartSecure
echo Using Security Manager
%_STARTJAVA%
%CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B
ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home
=%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8
%9 start
goto cleanup


- does anybody know  if -Xms/-Xmx will increase allocated memory in every
   JVM/OS combination? or it only work in some of them?  Thanks in advance!

Bo
Dec.06, 2001





- Original Message -
From: Niclas Rothman [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 1:27 PM
Subject: SV: Setting the alocated memory to Tomcat 4.0.1


Hi Bo!
Thank´s for your reply, but I seem to have no luck with this.
Have done a little jsp file that prints out the free memory and total memory
of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply,
I´ve just added -Xms  -Xmx to the end of the line:
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE%
-Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8
%9 start

So the result is:

%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE%
-Dcatalina.home=%CATALINA
  _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9
start -Xms100663296
-Xmx134217728


What do say is this approach right or wrong?
Best regards Niclas Rothman
-Oprindelig meddelelse-
Fra: Bo Xu [mailto:[EMAIL PROTECTED]]
Sendt: 6. december 2001 19:10
Til: Tomcat Users List
Emne: Re: Setting the alocated memory to Tomcat 4.0.1


- Original Message -
From: Niclas Rothman [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 12:52 PM
Subject: Setting the alocated memory to Tomcat 4.0.1


Hi everybody!
I´m using Tomcat 4.0.1 and the version with the Windows NT service.
Does anybody know where to set the size for the memory to allocate to the
Tomcat (-Xms  -Xmx), can´t find any documentation about this.
Best reqards

Niclas Rothman


I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin,
for example, update the following:
*   _STARTJAVA
*   %_STARTJAVA%
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8
%9 start


and add java -Xmsn/-Xmxn into them.

Bo
Dec.06, 2001




--
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: SQL*Server JDBC Driver

2001-12-06 Thread Timlin, Bob

Thankyou, that worked!

 -Original Message-
 From: Miao, Franco CAWS:EX [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 10:44 AM
 To:   'Tomcat Users List'
 Subject:  RE: SQL*Server JDBC Driver
 
 go to MS download SQL JDBC driver, that one is the best for SQL server
 
 put .jar files in \common\lib\
 
 Franco 
 
 
 
 -Original Message-
 From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 10:41 AM
 To: '[EMAIL PROTECTED]'
 Subject: SQL*Server JDBC Driver
 
 
 Hello, I am trying to get the SQL*Server driver to work with Tomcat 4.0.
 The driver I am using is Opta2000.jar.  
 
 The message I am getting is Error Loading Driver:
 java.lang.ClassNotFoundException: com.inet.tds.TdsDriver 
 
 I believe this is because I am not putting the driver in the right
 directory
 under Tomcat, but cannot figure out where I should put it.  Can somebody
 tell me where it belongs?
 
 Thanks in advance.
 
 Bob.
 
 
 --
 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: SQL*Server JDBC Driver

2001-12-06 Thread Miao, Franco CAWS:EX

why u need to do Runtime.getRuntime().freeMemory()/1000)? Pls provide more
detail info.

you may do 

try {
   }

catch {   }

if no exception come up, your code suppose ran. Regarding to freeMomery, JVM
will do it itself, no need to worry too much. Regard to SQL, always put
().close mothed after each SQL statement ran. 


Franco


-Original Message-
From: Niclas Rothman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:38 AM
To: 'Tomcat Users List'
Subject: SV: SQL*Server JDBC Driver


Okey Miao, do you know how I can se if the changes have come through?
Is there a log for these things or do I have to print out the following code
from a jsp page:
out.println(+Runtime.getRuntime().freeMemory()/1000);
out.println(+Runtime.getRuntime().totalMemory()/1000);

Best Regards 
Niclas Rothman

-Oprindelig meddelelse-
Fra: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
Sendt: 6. december 2001 19:44
Til: 'Tomcat Users List'
Emne: RE: SQL*Server JDBC Driver


go to MS download SQL JDBC driver, that one is the best for SQL server

put .jar files in \common\lib\

Franco 



-Original Message-
From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: SQL*Server JDBC Driver


Hello, I am trying to get the SQL*Server driver to work with Tomcat 4.0.
The driver I am using is Opta2000.jar.  

The message I am getting is Error Loading Driver:
java.lang.ClassNotFoundException: com.inet.tds.TdsDriver 

I believe this is because I am not putting the driver in the right directory
under Tomcat, but cannot figure out where I should put it.  Can somebody
tell me where it belongs?

Thanks in advance.

Bob.


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




SV: SQL*Server JDBC Driver

2001-12-06 Thread Niclas Rothman

Miao, excuse me! I came to send a reply to the wrong mail, should have
replied to the post with
subject Setting the alocated memory to Tomcat 4.0.1.
Once again, excuse me

Best regards
Niclas Rothman

-Oprindelig meddelelse-
Fra: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
Sendt: 6. december 2001 19:55
Til: 'Tomcat Users List'
Emne: RE: SQL*Server JDBC Driver


why u need to do Runtime.getRuntime().freeMemory()/1000)? Pls provide more
detail info.

you may do 

try {
   }

catch {   }

if no exception come up, your code suppose ran. Regarding to freeMomery, JVM
will do it itself, no need to worry too much. Regard to SQL, always put
().close mothed after each SQL statement ran. 


Franco


-Original Message-
From: Niclas Rothman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:38 AM
To: 'Tomcat Users List'
Subject: SV: SQL*Server JDBC Driver


Okey Miao, do you know how I can se if the changes have come through?
Is there a log for these things or do I have to print out the following code
from a jsp page:
out.println(+Runtime.getRuntime().freeMemory()/1000);
out.println(+Runtime.getRuntime().totalMemory()/1000);

Best Regards 
Niclas Rothman

-Oprindelig meddelelse-
Fra: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
Sendt: 6. december 2001 19:44
Til: 'Tomcat Users List'
Emne: RE: SQL*Server JDBC Driver


go to MS download SQL JDBC driver, that one is the best for SQL server

put .jar files in \common\lib\

Franco 



-Original Message-
From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: SQL*Server JDBC Driver


Hello, I am trying to get the SQL*Server driver to work with Tomcat 4.0.
The driver I am using is Opta2000.jar.  

The message I am getting is Error Loading Driver:
java.lang.ClassNotFoundException: com.inet.tds.TdsDriver 

I believe this is because I am not putting the driver in the right directory
under Tomcat, but cannot figure out where I should put it.  Can somebody
tell me where it belongs?

Thanks in advance.

Bob.


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




Question re: static/dynamic content, cookies, session tracking

2001-12-06 Thread Kevin McBrearty

I just want to clarify my understanding of something here.

I have a web application which serves both static and dynamic pages, and 
the user can move back and forth between static and dynamic pages. The 
dynamic pages are generated by servlets using Velocity. Session tracking 
is involved, and this works fine when cookies are enabled on the 
browser. The problem is when cookies are disabled and the user moves 
from a dynamic page to a static page and back again.  My understanding 
is that URL rewriting is the responsibility of the application, not the 
web server, so that to maintain session tracking between static and 
dynamic pages when cookies are disabled means that I would have to serve 
all pages, both static and dynamic, from a servlet and use encodeURL to 
properly encode the links to and from the static pages.

Is this correct or am I missing something very fundamental here ?

-- 
Kevin McBrearty
ATG Automation Technologies Group Ltd.



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




Re: Calendar Boject behaves strange

2001-12-06 Thread August Detlefsen

Maybe try something like this: 

while (MyDate.get(Calendar.WEEK_OF_YEAR) = MaxWeek) {

//set to Monday
MyDate.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);

//make DateStringStart

//set to Friday
MyDate.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY);

//make DateStringEnd

//output OPTION tag

//set to next week
MyDate.roll(Calendar.WEEK_OF_YEAR, 1);

}


--- Magnus Jansson [EMAIL PROTECTED] wrote:
 Hi!
 
 When I use the GregorianCalendar and do a roll it doesnt switch
 month.
 
 What I want to do is to have a selectbox and see all weeknumbers in
 selected year and after the weeknumber write the date of monday and
 friday in the week. But with this code below I only get the same
 dates all the time and it is for Januari.
 
 Is this a normal behaviour for the GregorianCalendar object?
 
 %
 int i, ThisWeek = MyDate.get(GregorianCalendar.WEEK_OF_YEAR);
 int MaxWeek = MyDate.getMaximum(GregorianCalendar.WEEK_OF_YEAR);
 int SelectedYear = MyDate.get(GregorianCalendar.YEAR);
 MyDate.set(SelectedYear, 0, 1);
 if (MyDate.get(GregorianCalendar.DAY_OF_WEEK)  2)
 {
 for (i = MyDate.get(GregorianCalendar.DAY_OF_WEEK); i  2; i--)
 {
 MyDate.roll(Calendar.DATE, false);
 } 
 }
 String DateStringStart = ;
 String DateStringEnd = ;
 for (i = 1; i = MaxWeek; i++)
 {
 DateStringStart = MyDate.get(Calendar.YEAR) + - +
 MyDate.get(Calendar.MONTH) + - + MyDate.get(Calendar.DATE);
 while (MyDate.get(Calendar.DAY_OF_WEEK) != 6)
 {
 MyDate.roll(GregorianCalendar.DATE, true);
 };
 DateStringEnd = MyDate.get(Calendar.YEAR) + - +
 MyDate.get(Calendar.MONTH) + - + MyDate.get(Calendar.DATE);
 if (i != ThisWeek)
 out.print(option value=' + i + 'Vecka:  + i +  Datumintervall:
  + DateStringStart +  -  + DateStringEnd + /option);
 else
 out.print(option value=' + i + ' selectedVecka:  + i + 
 Datumintervall:  + DateStringStart +  -  + DateStringEnd +
 /option);
 while (MyDate.get(Calendar.DAY_OF_WEEK) != 2)
 {
 MyDate.roll(Calendar.DATE, true);
 };
 }; 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - - - - - - - - - - 
 Magnus Jansson
 IT-Manager
 Väddö folkhögskola
 760 40 Väddö
 Sweden
 
 Phone: +46 (0) 176-528 00
 Cellular: +46 (0) 70-370 33 16
 Fax: +46 (0) 176-528 28
 http://www.vaddo.fhsk.se (work)
 http://www.jason.pp.se (private)
 ICQ: 52797837
 
 
  --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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




Re: IE 6 upgrade and java plug-in causing problems

2001-12-06 Thread Brett M. Bergquist

From the command line, type java -version.  To find out which java you would run, 
I've included a .bat file for NT that will
tell you.  Have which.bat on your path and type which java.exe.


- Original Message -
From: Steve Bearss [EMAIL PROTECTED]
To: Tomcat [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 11:28 AM
Subject: IE 6 upgrade and java plug-in causing problems


 Hello All,

 I recently upgraded to IE 6 and I was prompted to install the latest java plug-in as 
well.  Now my Tomcat is not running.  All my
java development is on a separate partition, which includes the jdk and tomcat.  I'm 
not sure what IE did (it is on another
partition) to this setup and I tried to update my JAVA_HOME variable, still no luck.  
Is there any way to determine which version of
java is currently running (I seem to have a few copies now) and where it is located?  
After that I should be able to re-configure
JAVA_HOME and all is good?

 Thanks,
 s


attachment: which.bat

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


Load balancing where lbfactors not equal?

2001-12-06 Thread Wilson, Wayne

Hi,

I am using Apache 1.3.22, Tomcat Tomcat-3.2.3 and mod_jk on Windows 2000
Professional.

I have load balancing working fine with mod_jk across 2 instances of Tomcat
except that it seems to ignore the lbfactor I assign to the workers. When
the workers' lbfactors are both set to 1, they spread the load evenly across
both instances of Tomcat. The problem is that if I set one to 1 and the
other to 100 or 1000 ( iwant them to get all the requests), it still seems
to send a disproportionate amount of requests to the Tomcat instance with
the lbfactor of 1.

Here is a snippet from my workers.properties:

worker.list=loadbalancer

worker.localworker.port=8009
worker.localworker.host=localhost
worker.localworker.type=ajp13
worker.localworker.lbfactor=1000

worker.localworker2.port=9009
worker.localworker2.host=localhost
worker.localworker2.type=ajp13
worker.localworker2.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=localworker,localworker2

Is there something I am doing wrong? What I am basically trying to achieve
is to send all my requests to one Tomcat instance and only if it fails send
it to the other. Basically failover rather than load balancing. I have two
Apache servers (which are load balanced through a hardware load balancer)
and each one has a primary Tomcat and a failover Tomcat .

I have even experimented with setting the lbfactor on the failover Tomcat to
0 with no effect.

Has anyone done this before? Is the lbfactor even implemented yet?

Thanks in advance,

Wayne Wilson

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




Re: IE 6 upgrade and java plug-in causing problems (reset without attachement)

2001-12-06 Thread Brett M. Bergquist

From the command line, type java -version.  To find out which java you would run, 
I've included a .bat file for NT that will
tell you.  Have which.bat on your path and type which java.exe.


Here is the batch file inline.  Just cut and paste it and save it to a file called 
which.bat.

-- CUT HERE ---
@echo off
:: Parameter error checking:
if %1== goto Syntax
echo %1 | find /v : | find /v \ | find /v * | find /v ? | find /v , | find 
/v ; | find /v /  | find %1  nul
if errorlevel 1 goto Syntax

:: Actual program is only one line:
for %%a in (.;%pathext%) do for %%b in (%1%%a) do ( echo %%~f$PATH:b | find /i %1 )
goto End

:Syntax
:: Help screen:

echo WHICH, Version 1.20
echo UNIX-like WHICH utility for NT
echo Written by Rob van der Woude
echo.
echo Usage:  WHICH  program_name
echo.
echo You may specify program_name with or without
echo extension, but without a drive or path.
echo Spaces or wildcards aren't allowed either.

:End

-- CUT HERE --

- Original Message -
From: Steve Bearss [EMAIL PROTECTED]
To: Tomcat [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 11:28 AM
Subject: IE 6 upgrade and java plug-in causing problems


 Hello All,

 I recently upgraded to IE 6 and I was prompted to install the latest java plug-in as 
well.  Now my Tomcat is not running.  All my
java development is on a separate partition, which includes the jdk and tomcat.  I'm 
not sure what IE did (it is on another
partition) to this setup and I tried to update my JAVA_HOME variable, still no luck.  
Is there any way to determine which version of
java is currently running (I seem to have a few copies now) and where it is located?  
After that I should be able to re-configure
JAVA_HOME and all is good?

 Thanks,
 s


---
Brett Bergquist
email: [EMAIL PROTECTED]


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




ONE More Time! why does Tomcat 4 work this way

2001-12-06 Thread Brian Adams

I hace Apache with WebApp warping to tomcat
my jsp page has this image:
img border=0 src=/bbb/images/butterfly.jpg
The web-app is named bbb and it has a directory called images.  The jsp page
WILL NOT SHOW THIS IMAGE!!!

If I change it to:
img border=0 src=http://localhost/bbb/images/butterfly.jpg;  It works
fine and fast!

WHAT THE F*(* is up with my config or Tomcat???

my warp definition is:
everything that has a bbb after the url warps to Tomcat
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
WebAppDeploy bbb conn /bbb

Am I missing something in my web.xml that should say how to handle the
images folder?

B




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




RE: ONE More Time! why does Tomcat 4 work this way

2001-12-06 Thread Carsten Lingemann

have you tried the following:

img border=0 src=%= request.getContextPath() %/images/butterfly.jpg

Carsten

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 2:04 PM
To: '[EMAIL PROTECTED]'
Subject: ONE More Time! why does Tomcat 4 work this way


I hace Apache with WebApp warping to tomcat
my jsp page has this image:
img border=0 src=/bbb/images/butterfly.jpg
The web-app is named bbb and it has a directory called images.  The jsp page
WILL NOT SHOW THIS IMAGE!!!

If I change it to:
img border=0 src=http://localhost/bbb/images/butterfly.jpg;  It works
fine and fast!

WHAT THE F*(* is up with my config or Tomcat???

my warp definition is:
everything that has a bbb after the url warps to Tomcat
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
WebAppDeploy bbb conn /bbb

Am I missing something in my web.xml that should say how to handle the
images folder?

B




--
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: ONE More Time! why does Tomcat 4 work this way

2001-12-06 Thread Brian Adams

yes, no worky!!!
:(

-Original Message-
From: Carsten Lingemann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:31 PM
To: 'Tomcat Users List'
Subject: RE: ONE More Time! why does Tomcat 4 work this way


have you tried the following:

img border=0 src=%= request.getContextPath() %/images/butterfly.jpg

Carsten

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 2:04 PM
To: '[EMAIL PROTECTED]'
Subject: ONE More Time! why does Tomcat 4 work this way


I hace Apache with WebApp warping to tomcat
my jsp page has this image:
img border=0 src=/bbb/images/butterfly.jpg
The web-app is named bbb and it has a directory called images.  The jsp page
WILL NOT SHOW THIS IMAGE!!!

If I change it to:
img border=0 src=http://localhost/bbb/images/butterfly.jpg;  It works
fine and fast!

WHAT THE F*(* is up with my config or Tomcat???

my warp definition is:
everything that has a bbb after the url warps to Tomcat
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
WebAppDeploy bbb conn /bbb

Am I missing something in my web.xml that should say how to handle the
images folder?

B




--
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: ONE More Time! why does Tomcat 4 work this way

2001-12-06 Thread Brian Adams

I also noticed that if I put the image in the root of the webapp with the
jsp page it works fine  i.e.
img border=0 src=butterfly.jpg



-Original Message-
From: Carsten Lingemann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:31 PM
To: 'Tomcat Users List'
Subject: RE: ONE More Time! why does Tomcat 4 work this way


have you tried the following:

img border=0 src=%= request.getContextPath() %/images/butterfly.jpg

Carsten

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 2:04 PM
To: '[EMAIL PROTECTED]'
Subject: ONE More Time! why does Tomcat 4 work this way


I hace Apache with WebApp warping to tomcat
my jsp page has this image:
img border=0 src=/bbb/images/butterfly.jpg
The web-app is named bbb and it has a directory called images.  The jsp page
WILL NOT SHOW THIS IMAGE!!!

If I change it to:
img border=0 src=http://localhost/bbb/images/butterfly.jpg;  It works
fine and fast!

WHAT THE F*(* is up with my config or Tomcat???

my warp definition is:
everything that has a bbb after the url warps to Tomcat
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
WebAppDeploy bbb conn /bbb

Am I missing something in my web.xml that should say how to handle the
images folder?

B




--
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: ONE More Time! why does Tomcat 4 work this way

2001-12-06 Thread Brian Adams

there must be some sort of filter tag being enforced by tomcat 4.0 that
make me define the images directory before I just start using it...
any hints?

-Original Message-
From: Carsten Lingemann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:31 PM
To: 'Tomcat Users List'
Subject: RE: ONE More Time! why does Tomcat 4 work this way


have you tried the following:

img border=0 src=%= request.getContextPath() %/images/butterfly.jpg

Carsten

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 2:04 PM
To: '[EMAIL PROTECTED]'
Subject: ONE More Time! why does Tomcat 4 work this way


I hace Apache with WebApp warping to tomcat
my jsp page has this image:
img border=0 src=/bbb/images/butterfly.jpg
The web-app is named bbb and it has a directory called images.  The jsp page
WILL NOT SHOW THIS IMAGE!!!

If I change it to:
img border=0 src=http://localhost/bbb/images/butterfly.jpg;  It works
fine and fast!

WHAT THE F*(* is up with my config or Tomcat???

my warp definition is:
everything that has a bbb after the url warps to Tomcat
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
WebAppDeploy bbb conn /bbb

Am I missing something in my web.xml that should say how to handle the
images folder?

B




--
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: Double check idiom broken - Tomcat uses it ?

2001-12-06 Thread Jeff Kilbride

If you really want the developers to take a look at this, you should
probably post it to the tomcat-dev list. It's iffy whether or not they will
see it here.

Thanks,
--jeff

- Original Message -
From: java programmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 10:44 PM
Subject: Double check idiom broken - Tomcat uses it ?


 Hi all:

 We all know that the lazy-double-check idiom doesn't
 apply to Java because of the Java Memory Model (JMM).

 That is to say, look at code such as:

 Example a)
 // Set by any other thread other than #1
 volatile boolean stop = false;

 // Thread #1 runs this as long as
 // stop is false. Only T1 will call this
 // method, so not synchronized. hence
 // broken due to staleness of 'stop'.
 // synch for _visbility_ ALSO.
 void foo() {
  while (!stop ) {  //... }
 }


 Example b): The lazy double check idiom
 public static Foo haha = null;
 public static getFoo() {
 if (foo == null ) {
   sychronized (Foo.class) {
  if (foo == null )
 foo = new Foo();
   }
 }
 return foo;
 }

 Both examples are *guaranteed* to be incorrect.
 Note, this is the case, *even* though I am using
 'volatile' for the stop variable. For more on the
 JMM, consult Item #48 in Effective Java (Josh Bloch),
 look at Bill Pughs' page at:
 http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
 or check out Doug Lea's stuff.
 Well, here is the thing:

 Quite idly, and randomly, I was looking at:

 org.apache.jasper.servlet.JspServlet

 and I found:

 snip
 outDated = compiler.isOutDated();
if(!jsw.isInstantiated() || outDated ) {
   synchronized(jsw){
 outDated = compiler.compile();
 if(!jsw.isInstantiated() || outDated) {
 if( null ==ctxt.getServletClassName() ) {
 snip

 This is a complex use of double check type
 code and is really hard to analyse because references
 themselves and what they point to can have
 different levels of staleness (according to the JMM).
 So it's a turbo double idiom type usage, possibly
 incorrect.

 I just wanted to bring this to the attention of the
 development team and make sure that *someone* has
 really analysed this according to the JMM. (and
 any other code, similar to this).

 Best regards,

 [EMAIL PROTECTED]




 __
 Do You Yahoo!?
 Send your FREE holiday greetings online!
 http://greetings.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]




SV: Setting the alocated memory to Tomcat 4.0.1

2001-12-06 Thread Niclas Rothman

Okey Bo!
It works now if I startup the Tomcat throug startup.bat but it still doesn´t
work when I try to
start the beast as a NT service. Any further suggestions?

Niclas

-Oprindelig meddelelse-
Fra: Bo Xu [mailto:[EMAIL PROTECTED]]
Sendt: 6. december 2001 19:50
Til: Tomcat Users List
Emne: Re: Setting the alocated memory to Tomcat 4.0.1


Hi Niclas,


I am not sure because I didn't ever use -Xms/-Xmx to customize catalina.bat,
I guess there are two reasons:

- did you update all _RUNJAVA/_STARTJAVA... start in catalina.bat?
   in the the following(from TC4.0), there are 4
   _RUNJAVA/_STARTJAVA... start.

:doRun
if %2 == -security goto doRunSecure
%_RUNJAVA%
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start
goto cleanup
:doRunSecure
%_RUNJAVA%
%CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B
ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home
=%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8
%9 start
goto cleanup

:doStart
if %2 == -security goto doStartSecure
%_STARTJAVA%
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start
goto cleanup
:doStartSecure
echo Using Security Manager
%_STARTJAVA%
%CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B
ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home
=%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8
%9 start
goto cleanup


- does anybody know  if -Xms/-Xmx will increase allocated memory in every
   JVM/OS combination? or it only work in some of them?  Thanks in advance!

Bo
Dec.06, 2001





- Original Message -
From: Niclas Rothman [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 1:27 PM
Subject: SV: Setting the alocated memory to Tomcat 4.0.1


Hi Bo!
Thank´s for your reply, but I seem to have no luck with this.
Have done a little jsp file that prints out the free memory and total memory
of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply,
I´ve just added -Xms  -Xmx to the end of the line:
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE%
-Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8
%9 start

So the result is:

%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE%
-Dcatalina.home=%CATALINA
  _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9
start -Xms100663296
-Xmx134217728


What do say is this approach right or wrong?
Best regards Niclas Rothman
-Oprindelig meddelelse-
Fra: Bo Xu [mailto:[EMAIL PROTECTED]]
Sendt: 6. december 2001 19:10
Til: Tomcat Users List
Emne: Re: Setting the alocated memory to Tomcat 4.0.1


- Original Message -
From: Niclas Rothman [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 12:52 PM
Subject: Setting the alocated memory to Tomcat 4.0.1


Hi everybody!
I´m using Tomcat 4.0.1 and the version with the Windows NT service.
Does anybody know where to set the size for the memory to allocate to the
Tomcat (-Xms  -Xmx), can´t find any documentation about this.
Best reqards

Niclas Rothman


I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin,
for example, update the following:
*   _STARTJAVA
*   %_STARTJAVA%
%CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA
_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8
%9 start


and add java -Xmsn/-Xmxn into them.

Bo
Dec.06, 2001




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




Help on Setting Up Application

2001-12-06 Thread Guddu Kumar

Hi,
I have to setup tomcat for an my application.

Basically i am using MVC2 Design pattern for the
application. That means i have a Controlservlet which
is to be called on every request. 

I have defined the context path in server.xml as
path=/myapp and docbase=webapps/myapp.

I have to put my servlet in certain package structure
like web-inf/classes/1/2/3/4. I am not able to run my
Controlservlet if i put it in package structure. 

My question is I want to access that ControlServlet
which is in that package structure and it should be
called when my url is http://localhost:8080/myapp.
Thanks
Guddu


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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




Re: Double check idiom broken - Tomcat uses it ?

2001-12-06 Thread Bo Xu

I have already forward your 2 emails to TOMCAT-developer, haha :-)

Bo
Dec.06, 2001


- Original Message -
From: Jeff Kilbride [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 2:41 PM
Subject: Re: Double check idiom broken - Tomcat uses it ?


 If you really want the developers to take a look at this, you should
 probably post it to the tomcat-dev list. It's iffy whether or not they
will
 see it here.

 Thanks,
 --jeff

 - Original Message -
 From: java programmer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, December 05, 2001 10:44 PM
 Subject: Double check idiom broken - Tomcat uses it ?


  Hi all:
 
  We all know that the lazy-double-check idiom doesn't
  apply to Java because of the Java Memory Model (JMM).
 
  That is to say, look at code such as:
 
  Example a)
  // Set by any other thread other than #1
  volatile boolean stop = false;
 
  // Thread #1 runs this as long as
  // stop is false. Only T1 will call this
  // method, so not synchronized. hence
  // broken due to staleness of 'stop'.
  // synch for _visbility_ ALSO.
  void foo() {
   while (!stop ) {  //... }
  }
 
 
  Example b): The lazy double check idiom
  public static Foo haha = null;
  public static getFoo() {
  if (foo == null ) {
sychronized (Foo.class) {
   if (foo == null )
  foo = new Foo();
}
  }
  return foo;
  }
 
  Both examples are *guaranteed* to be incorrect.
  Note, this is the case, *even* though I am using
  'volatile' for the stop variable. For more on the
  JMM, consult Item #48 in Effective Java (Josh Bloch),
  look at Bill Pughs' page at:
  http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
  or check out Doug Lea's stuff.
  Well, here is the thing:
 
  Quite idly, and randomly, I was looking at:
 
  org.apache.jasper.servlet.JspServlet
 
  and I found:
 
  snip
  outDated = compiler.isOutDated();
 if(!jsw.isInstantiated() || outDated ) {
synchronized(jsw){
  outDated = compiler.compile();
  if(!jsw.isInstantiated() || outDated) {
  if( null ==ctxt.getServletClassName() ) {
  snip
 
  This is a complex use of double check type
  code and is really hard to analyse because references
  themselves and what they point to can have
  different levels of staleness (according to the JMM).
  So it's a turbo double idiom type usage, possibly
  incorrect.
 
  I just wanted to bring this to the attention of the
  development team and make sure that *someone* has
  really analysed this according to the JMM. (and
  any other code, similar to this).
 
  Best regards,
 
  [EMAIL PROTECTED]
 
 
 
 
  __
  Do You Yahoo!?
  Send your FREE holiday greetings online!
  http://greetings.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: security issue: tomcat on port 80

2001-12-06 Thread Dr. Evil

 How safe is it to have tomcat listening on port 80
 running on a RH6.2, which  is on the internet ?
 Did anybody face any security problems ever ?

From the conventional point of view, having things run on port 80 has
been dangerous because a proc has to have uid 0 to bind to the port.
Apache is regarded as safe because the code drops root ASAP and si
thoroughly tested and audited.  Tomcat is not regarded as safe because
it can't drop uid 0.

However, the reason why uid 0 is so dangerous for Apache is because
it's written in C.  Buffer overlflows are almost inevitable in a
language like C, with its direct memory access and unsafe pointers.
Java bytecode doesn't have any of those problems.  It can't manipulate
memory or pointers ever.  It is much much safer than C will ever be.
So I think running Tomcat on port 80 should be fine.

An even better solution would be to recompile your kernel so that you
don't need uid 0 to bind to port 80.  I still can't figure out why
they have that dumb restriction that you must have uid 0 to bind ports
 1024.  That's just stupid and it causes far more security problems
than it solves today.

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




Re: Authentication problem...redirected to /null

2001-12-06 Thread Jeff Kilbride

You're not supposed to be able to reach the login page, except by accessing
a secure page. The container is then responsible for displaying the login
page and sending the user to the correct secure page, once they have been
authenticated. So, rather than having a link to your login page from your
home page, you should have a link to your main welcome page inside your
secure area. Tomcat will then send the user to the login page automatically,
if they haven't been authenticated.

What version of Tomcat are you using? Unfortunately, in TC 3.2.x (possibly
others, but I'm not sure) the container *redirects* the user to the login
page which makes it possible for the user to then bookmark that page -- thus
defeating the idea that they have to access a secure page first. The only
way I found to get around this was to put my login page in a separate
/login directory and then put an index.jsp file in that directory that
redirects to my secure area. That way, anyone who bookmarked the login page
was handled correctly. I'm not sure if this will work in other versions of
Tomcat, though.

Hope this helps!

--jeff

- Original Message -
From: John Mikhail [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 5:36 PM
Subject: Authentication problem...redirected to /null


 Hello,

 I'm wondering if anyone can help me with an issue I'm having with my web
 app.  I have a web application that uses the JDBCRealm and I've defined
 all the roles and what not.  Here's the scenario...

 If I try to access a secure page, it will take me to the login page.  I
 login with a valid user and then get redirected back to the secure page
 with no problems now that I'm authenticated.  That's not the problem.
 The problem is I can also login from the home page.  If I log in from
 the home page with the same authenticated user, it tomcat is trying to
 redirect me to context/null.  Why is that?  I have a welcome file list
 defined in my web.xml.  If anyone can help, it would be greatly
 appreciated..


 --
 John Mikhail
 Codito, Ergo Sum


 --
 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 on Setting Up Application

2001-12-06 Thread Jim Urban

Sounds like you need to set up servlet mapping in your context web.xml.

Jim

-Original Message-
From: Guddu Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:51 PM
To: [EMAIL PROTECTED]
Subject: Help on Setting Up Application


Hi,
I have to setup tomcat for an my application.

Basically i am using MVC2 Design pattern for the
application. That means i have a Controlservlet which
is to be called on every request. 

I have defined the context path in server.xml as
path=/myapp and docbase=webapps/myapp.

I have to put my servlet in certain package structure
like web-inf/classes/1/2/3/4. I am not able to run my
Controlservlet if i put it in package structure. 

My question is I want to access that ControlServlet
which is in that package structure and it should be
called when my url is http://localhost:8080/myapp.
Thanks
Guddu


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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: tomcat configuration error

2001-12-06 Thread Jeff Kilbride

Hi Larry,

I thought for all 3.2.x versions, you could just replace the old jar files
with the new ones. Is this not true for 3.2.4?

Thanks,
--jeff

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 5:55 AM
Subject: RE: tomcat configuration error


 Note that you say you are configuring Tomcat 3.2.4
 but are setting TOMCAT_HOME to tomcat-3.2.1.

 If you are copying Tomcat 3.2.4 on top of a
 Tomcat 3.2.1 installation, be aware that this is
 an untested form of installation.  I would recommend
 installing Tomcat 3.2.4 in a new directory and
 updating the configuration and web apps to match
 your 3.2.1 installation.

 Normally the Unable to set CLASSPATH dynamically ...
 Setting your CLASSPATH statically message is just
 a warning.  However, in Tomcat 3.2.4 this represents
 an error.

 Tomcat 3.2.4 includes JAXP 1.1 as the XML parser
 (consisting of jaxp.jar and crimson.jar) where
 Tomcat 3.2.3 and earlier included JAXP 1.0.1
 (consisting of jaxp.jar and parser.jar).  Note that
 with 3.2.4, it is crimson.jar that is found in the
 TOMCAT_HOME/lib, not parser.jar.

 There is a bug in the tomcat.bat file where it tries
 to build the CLASSPATH setting staticially, i.e. with
 a bunch of SET commands.  This portion of the batch
 file is only used on Win9x systems when a directory
 in the TOMCAT_HOME path isn't a DOS 8.3 name.  This
 portion of tomcat.bat still specifies parser.jar instead
 of crimson.jar.  Change all parser.jar references to
 crimson.jar in tomcat.bat and you should be okay.

 You could also do what the message says and
 manually set your TOMCAT_HOME using DOS 8.3 names,
 (i.e. SET TOMCAT_HOME=C:\TOMCAT~1 ), or make sure
 all directories in the path to Tomcat are DOS
 8.3 names, (i.e. C:\Jakarta\Tc324 ).  This would
 allow the CLASSPATH to be build automatically
 to include all jars found in TOMCAT_HOME\lib.

 Hope this helps.

 Cheers,
 Larry

  -Original Message-
  From: gaurang khatri [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 06, 2001 1:45 AM
  To: [EMAIL PROTECTED]
  Subject: tomcat configuration error
 
 
  hello all,
 
  I am gaurang. I am new to this group. I am trying to
  configure tomcat 3.2.4. My JAVA_HOME is c:\jdk1.3.1_01
  and TOMCAT_HOME is tomcat-3.2.1. I have set JAVA_HOME
  and TOMCAT_HOME in tomcat.bat. I have also tried
  tomcat~1.4 in TOMCAT_HOME but getting the same result.
  Now when I am trying to run tomcat start or
  startup from the bin directory
  of tomcat, I am getting following error. I dont know
  why I am getting this error.
 
  --
  Unable to set CLASSPATH dynamically.
  Note: To set the CLASSPATH dynamically on Win9x
  systems
only DOS 8.3 names may be used in TOMCAT_HOME!
  Setting your CLASSPATH statically.
 
  Using CLASSPATH:
 
  Starting Tomcat in new window
  --
 
  and the tomcat is not started in new window. I am
  using the japanese version of windows 98. Can anybody
  tell me what is wrong with this. It is very urgent.
  So, please help me.
 
  Thanks to all
  gaurang.
 
 
  __
  __
  For Stock Quotes, Finance News, Insurance, Tax Planners,
  Mutual Funds...
  Visit http://in.finance.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: SQL*Server JDBC Driver

2001-12-06 Thread Greg Trasuk

Your best bet is to put it into your web applications WEB-INF/lib directory.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

 -Original Message-
 From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 1:41 PM
 To: '[EMAIL PROTECTED]'
 Subject: SQL*Server JDBC Driver


 Hello, I am trying to get the SQL*Server driver to work with
 Tomcat 4.0.
 The driver I am using is Opta2000.jar.

 The message I am getting is Error Loading Driver:
 java.lang.ClassNotFoundException: com.inet.tds.TdsDriver

 I believe this is because I am not putting the driver in the
 right directory
 under Tomcat, but cannot figure out where I should put it.
 Can somebody
 tell me where it belongs?

 Thanks in advance.

 Bob.


 --
 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: mod_jserv.so vs mod_webapp.so

2001-12-06 Thread Chuck Van Buren

The email sent in reply by Ralph was not very useful.  (Thanks, Ralph)

Chuck Van Buren
Software Developer
www.adrenaline.com
w  202-628-4438
c  202-486-5436

Adrenaline Group
1445 New York Ave
4th Floor
Washington, DC 20005

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 11:49 AM
Subject: AW: mod_jserv.so vs mod_webapp.so


 mod_jserv is not recommended any longer.

 mod_jk is currently the best documented connector for TC 4.0
   http://jakarta.apache.org/~hgomez/ajp13-tc4.0/

 mod_webapp is the connector for the future, but misses some
 documentation and as the volume of traffic it caused in this
 list indicates, people have more troubles configuring it and
 getting it to run.
   http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml

  -Ursprüngliche Nachricht-
  Von: Chuck Van Buren [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Dezember 2001 16:58
  An: [EMAIL PROTECTED]
  Betreff: mod_jserv.so vs mod_webapp.so
 
 
  I am setting up Tomcat 4.0.1 with Apache 1.3.1 on Linux (RedHat 7.1).
 
  What are the reasons (issues, improvements, etc) for using mod_webapp
  instead of mod_jserv/mod_jk?
 
  What are the major differences in the configuration of Tomcat
  (and Apache)
  when using mod_webapp instead of mod_jserv?
 
  There's a lot more documentation on mod_jserv and mod_jk than
  there is on
  mod_webapp.  Please feel free to point me to any
  documentation that might
  also help answer these questions.
 
  Chuck
 
 
 
 
  Chuck Van Buren
  Software Developer
  www.adrenaline.com
  w  202-628-4438
  c  202-486-5436
 
  Adrenaline Group
  1445 New York Ave
  4th Floor
  Washington, DC 20005
 
 
 
  --
  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]




Tomcat on IPLANET (Unix box)

2001-12-06 Thread Sreenivasan Genipudi

Hi,

  Is it possible to configure Tomcat on Iplanet Server running in Unix. If
so can
some one help me. (by proving links to appropriate resource)

Thanks,
Sreeni.
- Original Message -
From: Greg Trasuk [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 12:16 PM
Subject: RE: SQL*Server JDBC Driver


 Your best bet is to put it into your web applications WEB-INF/lib
directory.

 Greg Trasuk, President
 StratusCom Manufacturing Systems Inc. - We use information technology to
 solve business problems on your plant floor.
 http://stratuscom.ca

  -Original Message-
  From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 06, 2001 1:41 PM
  To: '[EMAIL PROTECTED]'
  Subject: SQL*Server JDBC Driver
 
 
  Hello, I am trying to get the SQL*Server driver to work with
  Tomcat 4.0.
  The driver I am using is Opta2000.jar.
 
  The message I am getting is Error Loading Driver:
  java.lang.ClassNotFoundException: com.inet.tds.TdsDriver
 
  I believe this is because I am not putting the driver in the
  right directory
  under Tomcat, but cannot figure out where I should put it.
  Can somebody
  tell me where it belongs?
 
  Thanks in advance.
 
  Bob.
 
 
  --
  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: security issue: tomcat on port 80

2001-12-06 Thread Jim Urban

I run Tomcat on port 80 on my Win32 servers (NT and 2K).  I have watched the
Windows viruses attack Tomcat with no impact.  The one server running IIS
(required for our time keeping software) got nailed by a virus within a week
of being setup.  That server has since had IIS pointed to a different port
and placed behind the firewall.  I feel much more secure running Tomcat then
IIS on Win32.

Jim

-Original Message-
From: Dr. Evil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:48 PM
To: [EMAIL PROTECTED]
Subject: Re: security issue: tomcat on port 80


 How safe is it to have tomcat listening on port 80
 running on a RH6.2, which  is on the internet ?
 Did anybody face any security problems ever ?

From the conventional point of view, having things run on port 80 has
been dangerous because a proc has to have uid 0 to bind to the port.
Apache is regarded as safe because the code drops root ASAP and si
thoroughly tested and audited.  Tomcat is not regarded as safe because
it can't drop uid 0.

However, the reason why uid 0 is so dangerous for Apache is because
it's written in C.  Buffer overlflows are almost inevitable in a
language like C, with its direct memory access and unsafe pointers.
Java bytecode doesn't have any of those problems.  It can't manipulate
memory or pointers ever.  It is much much safer than C will ever be.
So I think running Tomcat on port 80 should be fine.

An even better solution would be to recompile your kernel so that you
don't need uid 0 to bind to port 80.  I still can't figure out why
they have that dumb restriction that you must have uid 0 to bind ports
 1024.  That's just stupid and it causes far more security problems
than it solves today.

--
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 on IPLANET (Unix box)

2001-12-06 Thread Cross Fire Labs B.A. Lambrechts

Just my $.02 but I started with Iplanet v6.0 and based on the lousy 
documentation and bugginess of the code - gave it up and went with Tomcat 
and Apache

good luck!


Beth Anne Lambrechts
Cross Fire Labs, Inc.
e-mail: [EMAIL PROTECTED]
Phone/Fax: 703-724-9210



From: Sreenivasan Genipudi [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Tomcat on IPLANET (Unix box)
Date: Thu, 6 Dec 2001 12:24:02 -0800

Hi,

   Is it possible to configure Tomcat on Iplanet Server running in Unix. If
so can
some one help me. (by proving links to appropriate resource)

Thanks,
Sreeni.
- Original Message -
From: Greg Trasuk [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 12:16 PM
Subject: RE: SQL*Server JDBC Driver


  Your best bet is to put it into your web applications WEB-INF/lib
directory.
 
  Greg Trasuk, President
  StratusCom Manufacturing Systems Inc. - We use information technology to
  solve business problems on your plant floor.
  http://stratuscom.ca
 
   -Original Message-
   From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, December 06, 2001 1:41 PM
   To: '[EMAIL PROTECTED]'
   Subject: SQL*Server JDBC Driver
  
  
   Hello, I am trying to get the SQL*Server driver to work with
   Tomcat 4.0.
   The driver I am using is Opta2000.jar.
  
   The message I am getting is Error Loading Driver:
   java.lang.ClassNotFoundException: com.inet.tds.TdsDriver
  
   I believe this is because I am not putting the driver in the
   right directory
   under Tomcat, but cannot figure out where I should put it.
   Can somebody
   tell me where it belongs?
  
   Thanks in advance.
  
   Bob.
  
  
   --
   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]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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




Re: ONE More Time! why does Tomcat 4 work this way

2001-12-06 Thread Jeff Kilbride

What about  just /images/butterfly.jpg? This assumes that your webapp is
rooted at /bbb -- so you don't need to use that as part of your path. This
is what I normally use with mod_jk. Don't know if it will work with
mod_webapp, though.

--jeff

- Original Message -
From: Brian Adams [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 11:12 AM
Subject: RE: ONE More Time! why does Tomcat 4 work this way


 there must be some sort of filter tag being enforced by tomcat 4.0 that
 make me define the images directory before I just start using it...
 any hints?

 -Original Message-
 From: Carsten Lingemann [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 1:31 PM
 To: 'Tomcat Users List'
 Subject: RE: ONE More Time! why does Tomcat 4 work this way


 have you tried the following:

 img border=0 src=%= request.getContextPath()
%/images/butterfly.jpg

 Carsten

 -Original Message-
 From: Brian Adams [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 2:04 PM
 To: '[EMAIL PROTECTED]'
 Subject: ONE More Time! why does Tomcat 4 work this way


 I hace Apache with WebApp warping to tomcat
 my jsp page has this image:
 img border=0 src=/bbb/images/butterfly.jpg
 The web-app is named bbb and it has a directory called images.  The jsp
page
 WILL NOT SHOW THIS IMAGE!!!

 If I change it to:
 img border=0 src=http://localhost/bbb/images/butterfly.jpg;  It works
 fine and fast!

 WHAT THE F*(* is up with my config or Tomcat???

 my warp definition is:
 everything that has a bbb after the url warps to Tomcat
 WebAppConnection conn warp localhost:8008
 WebAppDeploy examples conn /examples
 WebAppDeploy bbb conn /bbb

 Am I missing something in my web.xml that should say how to handle the
 images folder?

 B




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




  1   2   >