tomcat on Netware

2001-05-30 Thread Mark Currie



Can someone please provide the URL where the Netware version of Tomcat can 
be downloaded fromit is not in the downloads area.

Thanks,


Regards,

Mark Currie (CNE)Senior Consulting EngineerNetwork Integration and 
Design

Austnet Support Group Pty Ltd88 St Kilda RoadSt Kilda. Vic. 3182. 
Australia.

Phone: +61 3 9525-5755 
Fax: +61 3 
9525-5979Mobile: +61 
438-883-771eMail: [EMAIL PROTECTED]web: 
http://www.austnet.com.au


Who Can Provide Me org.hsql.jdbcDriver ?Thanks!

2001-05-30 Thread Rock Luiss



Who Can Provide Me org.hsql.jdbcDriver ?Thanks In 
Advance.


Re: Problems with ResultSet

2001-05-30 Thread Guido Medina

That's what I'm saying with the snip example...

Guido.

Java Leader/Network Specialist, CTO, WHS International

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001 2:19 AM
Subject: AW: Problems with ResultSet



 It can happen with any driver.

 That's what JDBC API doc tells:

 For maximum portability, result set columns within each row
  should be read in left-to-right order, and each column should
  be read only once.

  -Ursprüngliche Nachricht-
  Von: Guido Medina [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 30. Mai 2001 07:38
  An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Betreff: Re: Problems with ResultSet
 snip/
  It means that you cannot do the follow with MS Access:
 
  Statement st = con.createStatement();
  ResultSet rs = st.executeQuery(..);
  while (rs.next()) {
 out.println(String a = rs.getString(1));
 ...
 ...
 ...
 out.println(String a = rs.getString(1));
  }
 snip/





Re: Who Can Provide Me org.hsql.jdbcDriver ?Thanks!

2001-05-30 Thread Guido Medina



Go to http://java.sun.com and search in 
JDBC...

Guido

  - Original Message - 
  From: 
  Rock 
  Luiss 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, May 30, 2001 2:28 
  AM
  Subject: Who Can Provide Me 
  org.hsql.jdbcDriver ?Thanks!
  
  Who Can Provide Me org.hsql.jdbcDriver ?Thanks In 
  Advance.


RE: newbie problem: javax.servlet.ServletException at org.apache. jasp er.runtime.PageContextImpl.handlePageException

2001-05-30 Thread Terje Kristensen

Thanks, that did it :-)

Terje K.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: 29. mai 2001 13:16
To: '[EMAIL PROTECTED]'
Subject: AW: newbie problem: javax.servlet.ServletException at
org.apache. jasp er.runtime.PageContextImpl.handlePageException 


As I understand the spec, this is not valid:

jsp:forward page=some.jsp?arg1=value1 /

(See 2.13.5 and 2.5.2)

Instead you can use:

jsp:forward page=some.jsp
 jsp:param name=arg1 value=value1 /
/jsp:forward

This notation is a bit 'noisy' but it should work.

 -Ursprüngliche Nachricht-
 Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 29. Mai 2001 12:29
 An: '[EMAIL PROTECTED]'
 Betreff: RE: newbie problem: javax.servlet.ServletException at
snip/ 



Dynamically reloading a web.xml

2001-05-30 Thread Jeff Trent

If I have webapp named a  b, is it possible to:

(1) dynamically add c without restarting the tomcat service thereby
affecting a  b?

(2) redeploy a without restarting the tomcat service?

Thanks.





Tomcat hanging

2001-05-30 Thread Heijns, P.J.B.

Hi,

I have some problems with tomcat. Sometimes when I am using tomcat, and a
some other users, tomcat hangs. Very strange. Some jsp pages are oke after
the crash, but some not, I don't know when en why it crashes. But when it
crashes, it are always the same pages that are oke and not oke. When I want
to request a page (bad page) after the crash, it is searching for the page,
but he doesn't let see the page to me. When I reboot tomcat, everythins is
oke. The time between rebooting and crashing is different, sometimes after 1
hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as a
upload servlet, big search results pages. I am using tomcat 3.2.1, interbase
6.0, interclient 2.0, windows2000.
It seems that it is a internal tomcat error, does anybody know what's the
problem and how I can solve it?

Grtz Pieter



Re: newbie problem: javax.servlet.ServletException at org.apache. jasp er.runtime.PageContextImpl.handlePageException

2001-05-30 Thread Guido Medina

Another way to do it is saving the complete URI+parameters in a String
variable and put it as a tag: @jsp:forward page=%=url_plus_paramters%

parameters=?+parameters... to get http://yourdomain.com/some.jsp?...

Guido.

P.D: I already tested but I don't remember if is @jsp:forward or
jsp:forward ... I guess that for that is the first...

- Original Message -
From: Terje Kristensen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001 2:53 AM
Subject: RE: newbie problem: javax.servlet.ServletException at org.apache.
jasp er.runtime.PageContextImpl.handlePageException


 Thanks, that did it :-)

 Terje K.

 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: 29. mai 2001 13:16
 To: '[EMAIL PROTECTED]'
 Subject: AW: newbie problem: javax.servlet.ServletException at
 org.apache. jasp er.runtime.PageContextImpl.handlePageException


 As I understand the spec, this is not valid:

 jsp:forward page=some.jsp?arg1=value1 /

 (See 2.13.5 and 2.5.2)

 Instead you can use:

 jsp:forward page=some.jsp
  jsp:param name=arg1 value=value1 /
 /jsp:forward

 This notation is a bit 'noisy' but it should work.

  -Ursprüngliche Nachricht-
  Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 29. Mai 2001 12:29
  An: '[EMAIL PROTECTED]'
  Betreff: RE: newbie problem: javax.servlet.ServletException at
 snip/





Re: Tomcat hanging

2001-05-30 Thread Guido Medina

Are you using mod_jk with tomcat 3.2.1 ?, it is a bug...it is fixed in
3.2.2...

Guido.

- Original Message -
From: Heijns, P.J.B. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001 2:58 AM
Subject: Tomcat hanging


 Hi,

 I have some problems with tomcat. Sometimes when I am using tomcat, and a
 some other users, tomcat hangs. Very strange. Some jsp pages are oke after
 the crash, but some not, I don't know when en why it crashes. But when it
 crashes, it are always the same pages that are oke and not oke. When I
want
 to request a page (bad page) after the crash, it is searching for the
page,
 but he doesn't let see the page to me. When I reboot tomcat, everythins is
 oke. The time between rebooting and crashing is different, sometimes after
1
 hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as
a
 upload servlet, big search results pages. I am using tomcat 3.2.1,
interbase
 6.0, interclient 2.0, windows2000.
 It seems that it is a internal tomcat error, does anybody know what's the
 problem and how I can solve it?

 Grtz Pieter





Tomcat-4.0-Apache-WARP/Tomcat-4.0-Apache-AJP13

2001-05-30 Thread SongDongsheng




Hi,

Who Can Provide Me server.xml  httpd.conf examples with 
Tomcat-4.0-Apache-WARP/Tomcat-4.0-Apache-AJP13connectors?

Thanks In Advance.


RE: Tomcat hanging

2001-05-30 Thread Heijns, P.J.B.

I think that I am not using mod_jk, I have never installed it. I only use
tomcat as a standalone webserver. Do you know if my problem is solved in
tomcat 3.2.2.?

Thanks Pieter

-Original Message-
From: Guido Medina [mailto:[EMAIL PROTECTED]]
Sent: woensdag 30 mei 2001 9:01
To: [EMAIL PROTECTED]
Subject: Re: Tomcat hanging


Are you using mod_jk with tomcat 3.2.1 ?, it is a bug...it is fixed in
3.2.2...

Guido.

- Original Message -
From: Heijns, P.J.B. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001 2:58 AM
Subject: Tomcat hanging


 Hi,

 I have some problems with tomcat. Sometimes when I am using tomcat, and a
 some other users, tomcat hangs. Very strange. Some jsp pages are oke after
 the crash, but some not, I don't know when en why it crashes. But when it
 crashes, it are always the same pages that are oke and not oke. When I
want
 to request a page (bad page) after the crash, it is searching for the
page,
 but he doesn't let see the page to me. When I reboot tomcat, everythins is
 oke. The time between rebooting and crashing is different, sometimes after
1
 hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as
a
 upload servlet, big search results pages. I am using tomcat 3.2.1,
interbase
 6.0, interclient 2.0, windows2000.
 It seems that it is a internal tomcat error, does anybody know what's the
 problem and how I can solve it?

 Grtz Pieter




Re: Tomcat hanging

2001-05-30 Thread Guido Medina

  A lot of bugs are solved in 3.2.2 and the migration is very easy, of
course, don't overwrite the files without read a litle bit but you almost
can may do it...

  You can also put running apache web server in windows, is ten times faster
than IIS and is very fast for static page, use the bridge mod_jk to
comunicate one with other...try it, you will like it, I did on a Windows 98
machine for my Freelance jobs...

Guido.

- Original Message -
From: Heijns, P.J.B. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001 3:09 AM
Subject: RE: Tomcat hanging


 I think that I am not using mod_jk, I have never installed it. I only use
 tomcat as a standalone webserver. Do you know if my problem is solved in
 tomcat 3.2.2.?

 Thanks Pieter

 -Original Message-
 From: Guido Medina [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 30 mei 2001 9:01
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat hanging


 Are you using mod_jk with tomcat 3.2.1 ?, it is a bug...it is fixed in
 3.2.2...

 Guido.

 - Original Message -
 From: Heijns, P.J.B. [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, May 30, 2001 2:58 AM
 Subject: Tomcat hanging


  Hi,
 
  I have some problems with tomcat. Sometimes when I am using tomcat, and
a
  some other users, tomcat hangs. Very strange. Some jsp pages are oke
after
  the crash, but some not, I don't know when en why it crashes. But when
it
  crashes, it are always the same pages that are oke and not oke. When I
 want
  to request a page (bad page) after the crash, it is searching for the
 page,
  but he doesn't let see the page to me. When I reboot tomcat, everythins
is
  oke. The time between rebooting and crashing is different, sometimes
after
 1
  hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such
as
 a
  upload servlet, big search results pages. I am using tomcat 3.2.1,
 interbase
  6.0, interclient 2.0, windows2000.
  It seems that it is a internal tomcat error, does anybody know what's
the
  problem and how I can solve it?
 
  Grtz Pieter
 





Re: Signed certificate and tomcat

2001-05-30 Thread François Andromaque

You can go to
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html

- Original Message -
From: Bo Xu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 29, 2001 7:12 PM
Subject: Re: Signed certificate and tomcat


 François Andromaque wrote:

  I'm using tomcat on stand-alone (without apache), i want to configure
  tomcat to work with SSL by self signing my server certificate. The
  documentation TOMCAT and SSL (SSL direct) suggest  to import a cert
  with openssl :[...]



 Hi :-)  could anybody tell me where I can find the documentation about
 how to config the
 following in TOMCAT:
 - https
 - SSL

 Thanks in advance!


 Bo
 May.29, 2001






RE: FATAL: java.netBindException: Address in use: JVM_Bind

2001-05-30 Thread Terje Kristensen

I got the same error when I had Oracle running its own http-server (apache)
as a service. Check if you got any http services running, stop them, make
them manual, then try again

Hope it will help...

Terje K.

-Original Message-
From: Jack Li [mailto:[EMAIL PROTECTED]]
Sent: 29. mai 2001 22:01
To: '[EMAIL PROTECTED]'
Subject: FATAL: java.netBindException: Address in use: JVM_Bind


Hello,

I have a problem to setup Tomcat on Windows 2000 server. When I run
startup.bat, I got the error:

FATAL: java.netBindException: Address in use: JVM_Bind.

Any idea to solve this problem? 

Thanks,
Jack Li



Re:Problems with ResultSet

2001-05-30 Thread Twylite

Hi,

Statement s=cn.createStatement
(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
   if (!rs.isFirst()) rs.previous(); 
  %tr 
  td%=rs.getString(1)%/td%
   }

   [Microsoft][ODBC Driver Manager] Invalid cursor state

You never close your result set.  If you try executing this more than on the same 
connection, it will fail.  For 
some drivers (specifically NOT ODBC) you can use any number of new ResultSet objects 
over the same 
connection, but not reuse any one unless you close the result set.

MSAccess in particular, only supports one cursor per connection, and JDBC ResultSets 
attempt 
(unsuccessfully) to share that cursor.  Hence the Invalid cursor state.

Also be careful with the cursor position (as reflected in the ResultSet): the initial 
position is before the first row, 
and the final position (if iterating forwards) will be after the last row.  Use 
rs.first() to move to the beginning of the 
ResultSet instead of iterating to get there.

Correct JDBC logic:

Class.forName(DRIVER_CLASS);
Connection con = DriverManager.getConnection(JDBC_URL, USERNAME, PASSWORD);
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, 
ResultSet.CONCUR_READ_ONLY);
{ // This can be done in a loop
ResultSet r = stmt.executeQuery(SELECT * FROM MYTABLE);
if (r != null) {
while (r.next()) {
// Do something with r.getString(1)
}
r.close();
}
}
stmt.close();
con.close();

Alternative for inner loop:
ResultSet r = stmt.executeQuery(SELECT * FROM MYTABLE);
if (r != null  r.last()) {
while (r.previous()) {
// Do something with r.getString(1)
}
r.close();
}




Re:Who Can Provide Me org.hsql.jdbcDriver ?Thanks!

2001-05-30 Thread Twylite

Hi,

Who Can Provide Me org.hsql.jdbcDriver ?Thanks In Advance.

http://hsqldb.sourceforge.net

Twylite




Why doesn't this work:

2001-05-30 Thread Terje Kristensen

Could anyone tell my why the jsp:include doesn't work? I'm getting an 500
error. 

% 
String opn  = request.getParameter(opn);
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
String paramName = (String)paramNames.nextElement();
String[] paramValues = request.getParameterValues(paramName);
if (paramValues.length == 1) {
String paramValue = paramValues[0];
if (paramValue.length() == 0) { 
%error% 
}
} else { 
for(int i=0; iparamValues.length; i++) { 
int length  = paramValues[i].length();
String fil = advanced_result_ + paramName +
.jsp;
 %
jsp:include page=%= fil % flush=true
jsp:param name=opn value=%= opn
%/
jsp:param name=%= paramName %
value=%= paramValues[i].substring(1,length) %/
jsp:param name=%= paramName %R
value=%= paramValues[i].substring(0,1) %/
/jsp:include
%
}
}
} %


If I remove the  in jsp:include, the text comes out all perfect: 

jsp:include page=advanced_result_PCS.jsp flush=true
jsp:param name=opn value=3/
jsp:param name=PCS value=AC10A/
jsp:param name=PCSR value=A/
/jsp:include

jsp:include page=advanced_result_PCS.jsp flush=true
jsp:param name=opn value=3/
jsp:param name=PCS value=AC20A/
jsp:param name=PCSR value=A/
/jsp:include

Thanks, 

Terje K.



tomcat and security manager

2001-05-30 Thread niraj



i have an application in servlet and 
jsp
in directory format 
in /myapp

i have put the /myapp in 
c:\sites\myapp

i have created a host int server.xml file 
like

Host name="10.0.0.1" 
 Context 
path="" 
docBase="c:\sites\myapp" //Host
now i start the tomcat in secure mode by giving 

command 

startup.bat -security

now i request in browser 
like 
http://10.0.0.0/servlet/MyServlet

it gives error like 
java.security.AccessControlException: access denied (java.io.FilePermission 
C:\sites\myapp\web-inf\classes read)

i add lines in tomcat.policy

grant codeBase "file:C:\sites\myapp\-" { 
permission java.io.FilePermission "*", "read";};

still geting same error 

any idea

please help me

thanks in advance




Context

2001-05-30 Thread Heijns, P.J.B.

Hi,

Does anybody know how I can map a page? I want that my
www.test.com/test/login.jsp page immediately shows when I look at
www.test.com/test. How does the context look? 

Thanks Pieter



Where's a servlet log?

2001-05-30 Thread Davanzo Luca

Hi,
When from a servlet i use the metthod HttpServlet.log(String, Exception) it
apparentrly works but I cant' find the log file, neither in TOMCAT_HOME/log
NOR ANYWHERE ELSE..
Where is it? or has the log method an empty implementation or what?
Using tomcat 3.2 on winnt
Thanks

-
dott. Luca Davanzo
Insiel S.p.A. - Direzione Tecnica
Via G. Pieri, 2 - 33100 Udine
Italy
tel. +39-0432-551971
*   e-mail: [EMAIL PROTECTED]
-




R: Context

2001-05-30 Thread Davanzo Luca

Hi,
You have to addthe welcome-file-list tag to your web.xml file
Look at the welcome-file-list configuration directive in conf/web.tdt, it is
well explained there

 -Messaggio originale-
 Da: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]]
 Inviato: mercoledì 30 maggio 2001 10.05
 A: '[EMAIL PROTECTED]'
 Oggetto: Context
 
 
 Hi,
 
 Does anybody know how I can map a page? I want that my
 www.test.com/test/login.jsp page immediately shows when I look at
 www.test.com/test. How does the context look? 
 
 Thanks Pieter
 



Segmentation faults when invoking test servlets

2001-05-30 Thread Simon Ransome

Hi,

Apols if this has already been answered: I've found a few references to it
in the existing FAQ, but nowehere where it appears to have been answered.

I've just installed Tomcat, which runs via Apache 1.3.12. Everything appears
to be running fine, until I try to run one of the test jps apps in
/usr/local/tomcat-3.2.2/webapps/admin/contextAdmin/ (via the Apache alias
http://localhost/admin). Apache is obviously trying to pass the request onto
Tomcat, but all I get in the error_log is:

[Tue May 29 17:56:00 2001] [notice] Apache-AdvancedExtranetServer/1.3.12
(Linux-Mandrake/30mdk) PHP/3.0.16 mod_perl/1.22 tomcat/1.0 configured --
resuming normal operations
[Tue May 29 17:56:00 2001] [info] Server built: Oct  1 2000 12:06:39
[Tue May 29 17:56:15 2001] [notice] child pid 13761 exit signal Segmentation
fault (11)
[Tue May 29 17:58:18 2001] [notice] child pid 13764 exit signal Segmentation
fault (11)

The seg faults corresponds exactly to requests for jsp objects.

Debug level has been set to DEBUG everywhere I can think of to set it, but
there is no additional information in any of the Tomcat logs:

[root@meatball logs]# tail tomcat.log
2001-05-29 05:59:54 - ContextManager: Adding context Ctx( /examples )
2001-05-29 05:59:54 - ContextManager: Adding context Ctx( /admin )
2001-05-29 05:59:54 - ContextManager: Adding context Ctx(  )
2001-05-29 05:59:54 - ContextManager: Adding context Ctx( /test )
2001-05-29 05:59:55 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-05-29 05:59:55 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007

[root@meatball logs]# tail servlet.log
2001-05-29 05:59:55 - path=/examples :jsp: init
2001-05-29 05:59:55 - path=/admin :jsp: init
2001-05-29 05:59:55 - path= :jsp: init
2001-05-29 05:59:55 - path=/test :jsp: init

Any ideas?

Thanks,
Simon

--
Simon Ransome, Webmaster.
3G LAB, Cambridgeshire, UK.
http://www.3glab.com/
Tel: +44 (0) 1223 598486
==





tomcat+apache

2001-05-30 Thread unplug

Hi all,

  Just install tomcat3.2.2 and mod_jk.so.  However, when I restart 
tomcat and then apache, I found the following message in mod_jk.log

[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter
[jk_uri_worker_map.c (185)]: In
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters

  What do they mean??  How do I configure to remove the message??

Rgds,
unplug



RE: tomcat+apache

2001-05-30 Thread David DELGRANCHE

You just have to start apache before starting Tomcat!

David.

-Message d'origine-
De: unplug [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 30 mai 2001 10:35
A:  tomcat-user
Objet:  tomcat+apache

Hi all,

  Just install tomcat3.2.2 and mod_jk.so.  However, when I restart 
tomcat and then apache, I found the following message in mod_jk.log

[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter
[jk_uri_worker_map.c (185)]: In
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters

  What do they mean??  How do I configure to remove the message??

Rgds,
unplug




green and native threads

2001-05-30 Thread Matt Dilley



Hi

I have been searching for a long time for a green 
threads version of java, and so far have only found one for v1.2.2 - from the 
java.sun site.
Does anyone know of a green-threads installation 
for java v1.3.x?

Thanks


Re: Where's a servlet log?

2001-05-30 Thread Egidijus Drobavicius

It is $TOMCAT_HOME/logs/servlet.log. You can set this to any file by
modifying server.xml. This file is self explanatory
Note, that log file is started from scratch each time you restart the server
so you must take care of old log your self (i did this by modifying
tomcat.sh script.

Regards,
Egidijus

 Hi,
 When from a servlet i use the metthod HttpServlet.log(String, Exception)
it
 apparentrly works but I cant' find the log file, neither in
TOMCAT_HOME/log
 NOR ANYWHERE ELSE..
 Where is it? or has the log method an empty implementation or what?
 Using tomcat 3.2 on winnt
 Thanks

 -
 dott. Luca Davanzo
 Insiel S.p.A. - Direzione Tecnica
 Via G. Pieri, 2 - 33100 Udine
 Italy
 tel. +39-0432-551971
 * e-mail: [EMAIL PROTECTED]
 -






Re: tomcat+apache

2001-05-30 Thread Egidijus Drobavicius

WRONG
If you include generated configuration in apache conf, starting apache
before tomcat means that you dont use or you use outdated config of tomcat.
Therefore you always have to start tomcat first and apache second.
Regards,
Egidijus

- Original Message -
From: David DELGRANCHE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001 11:37 AM
Subject: RE: tomcat+apache


 You just have to start apache before starting Tomcat!

 David.

 -Message d'origine-
 De: unplug [SMTP:[EMAIL PROTECTED]]
 Date: mercredi 30 mai 2001 10:35
 A: tomcat-user
 Objet: tomcat+apache

 Hi all,

   Just install tomcat3.2.2 and mod_jk.so.  However, when I restart
 tomcat and then apache, I found the following message in mod_jk.log

 [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
 NULL parameter
 [jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free, NULL parameters

   What do they mean??  How do I configure to remove the message??

 Rgds,
 unplug






Re: tomcat+apache

2001-05-30 Thread unplug

Thanks.
But I have read that it is better to start tomcat before apache as the 
mod_jk.conf-auto will be generated for apache.  Am I right??  So which 
one should be started first??

Rgds,
unplug

David DELGRANCHE wrote:
 
 You just have to start apache before starting Tomcat!
 
 David.
 
 -Message d'origine-
 De: unplug [SMTP:[EMAIL PROTECTED]]
 Date:   mercredi 30 mai 2001 10:35
 A:  tomcat-user
 Objet:  tomcat+apache
 
 Hi all,
 
   Just install tomcat3.2.2 and mod_jk.so.  However, when I restart
 tomcat and then apache, I found the following message in mod_jk.log
 
 [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
 NULL parameter
 [jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
 
   What do they mean??  How do I configure to remove the message??
 
 Rgds,
 unplug



how to automaticaly redirect to SSL?

2001-05-30 Thread Pernica, Jan

Hi

I would like to automaticaly redirect client to use HTTPS if it is required.
In the version 4.0
there is attribute redirectPort. How can I set up this feature in the
version 3.2.2?

Thank you

Jan



__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






Re: tomcat+apache

2001-05-30 Thread unplug

That's what I have read before.
So return to my question.  What is the meaning of the messages below??

  [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
  NULL parameter
  [jk_uri_worker_map.c (185)]: In
  jk_uri_worker_map_t::uri_worker_map_free, NULL parameters

How can I configure to remove them??

Rgds,
unplug

Egidijus Drobavicius wrote:
 
 WRONG
 If you include generated configuration in apache conf, starting apache
 before tomcat means that you dont use or you use outdated config of tomcat.
 Therefore you always have to start tomcat first and apache second.
 Regards,
 Egidijus
 
 - Original Message -
 From: David DELGRANCHE [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, May 30, 2001 11:37 AM
 Subject: RE: tomcat+apache
 
  You just have to start apache before starting Tomcat!
 
  David.
 
  -Message d'origine-
  De: unplug [SMTP:[EMAIL PROTECTED]]
  Date: mercredi 30 mai 2001 10:35
  A: tomcat-user
  Objet: tomcat+apache
 
  Hi all,
 
Just install tomcat3.2.2 and mod_jk.so.  However, when I restart
  tomcat and then apache, I found the following message in mod_jk.log
 
  [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
  NULL parameter
  [jk_uri_worker_map.c (185)]: In
  jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
 
What do they mean??  How do I configure to remove the message??
 
  Rgds,
  unplug
 
 



RE: how to automaticaly redirect to SSL?

2001-05-30 Thread Rams

Jan,
Anyway, ur tomcat server is ssl enabled.
once u enable server for ssl, there u specify the ssl-port and all.
Depending on some criteria, u'll be redirecting to ssl using https.
so use some condition for https and change the url accordingly..
To comm. thru' https, u have to enable the ssl part in server.xml.
so check some condition and turn to https.

Rams

-Original Message-
From: Pernica, Jan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 2:34 PM
To: Tomcat-User (E-mail)
Subject: how to automaticaly redirect to SSL?


Hi

I would like to automaticaly redirect client to use HTTPS if it is required.
In the version 4.0
there is attribute redirectPort. How can I set up this feature in the
version 3.2.2?

Thank you

Jan



__
Tato komunikace je urcena vyhradne pro adresata a je duverna.
This communication is intended solely for the addressee and is confidential.





Re: tomcat+apache

2001-05-30 Thread Parag S

tomcat has to be started before apache

David DELGRANCHE wrote:

 You just have to start apache before starting Tomcat!

 David.

 -Message d'origine-
 De: unplug [SMTP:[EMAIL PROTECTED]]
 Date:   mercredi 30 mai 2001 10:35
 A:  tomcat-user
 Objet:  tomcat+apache

 Hi all,

   Just install tomcat3.2.2 and mod_jk.so.  However, when I restart
 tomcat and then apache, I found the following message in mod_jk.log

 [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
 NULL parameter
 [jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free, NULL parameters

   What do they mean??  How do I configure to remove the message??

 Rgds,
 unplug

--
John Doe
[EMAIL PROTECTED]





REPOST Please help! Virtual hosts on Tomcat4-3b

2001-05-30 Thread hische





Hi,

I'm trying to run two virtual hosts on Tomcat4-3b on RH Linux 7.0. I try to give
each host a default Context (ie a Context for path=) but I keep getting the
error message:

StandardContext[]: Error initializing naming context for context

in the logs and

HTTP Status 503 - This application is not currently available

in the browser.

If I comment out one of the hosts the other works fine. I have tried to strip
server.xml down to a bare minimum, but  without any success. It seems paths in
separate virtual hosts can conflict...

Any ideas??

Regards,

Wilko Hische

=== server.xml ===
Server port=8005 shutdown=SHUTDOWN debug=0

  Service name=Tomcat-Standalone
    Connector className=org.apache.catalina.connector.http.HttpConnector
               port=80 minProcessors=5 maxProcessors=75
               acceptCount=10 debug=0 connectionTimeout=6/

    Engine name=Standalone defaultHost=localhost debug=0
      Logger className=org.apache.catalina.logger.FileLogger
              prefix=catalina_log. suffix=.txt
              timestamp=true/
      Realm className=org.apache.catalina.realm.MemoryRealm /

      Host name=localhost debug=0 appBase=test
        Context path= docBase=examples debug=0
                 reloadable=true
          Logger className=org.apache.catalina.logger.FileLogger
                     prefix=localhost_examples_log. suffix=.txt
                  timestamp=true/
        /Context
      /Host

      Host name=host2 debug=0 appBase=test2
        Context path= docBase=examples debug=0
                 reloadable=true
          Logger className=org.apache.catalina.logger.FileLogger
                     prefix=localhost_examples_log. suffix=.txt
                  timestamp=true/
        /Context
      /Host

    /Engine
  /Service


/Server
===









simple Query

2001-05-30 Thread Parag S

I am using Apache 1.3.14 with Tomcat 3.2.2b on Solaris 2.6 and 2.7.
I start tomcat and then I start apache.
When I start apache it is throwing the following error -

httpd:Could not determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName.

apachectl starts well, all servlets/jsps are working fine but what can
be the reason for that message?




RE: how to automaticaly redirect to SSL?

2001-05-30 Thread Pernica, Jan

Thank you for your prompt reply.

I have set up you have described. But redirection did not work.
I found that I have to set up redirection port in the context manager:
ContextManager debug=0 workDir=work showDebugInfo=true
securePort=8443

in the server.xml

because by default it is -1 so that tomcat tells the client it requires SSL
communication.]
After setting this attribute redirection works fine.

Regards

Jan

On Wednesday, May 30, 2001 11:22 AM, Rams [SMTP:[EMAIL PROTECTED]] wrote:
 Jan,
   Anyway, ur tomcat server is ssl enabled.
 once u enable server for ssl, there u specify the ssl-port and all.
   Depending on some criteria, u'll be redirecting to ssl using https.
 so use some condition for https and change the url accordingly..
   To comm. thru' https, u have to enable the ssl part in server.xml.
 so check some condition and turn to https.
 
 Rams
 
 -Original Message-
 From: Pernica, Jan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 2:34 PM
 To: Tomcat-User (E-mail)
 Subject: how to automaticaly redirect to SSL?
 
 
 Hi
 
 I would like to automaticaly redirect client to use HTTPS if it is
required.
 In the version 4.0
 there is attribute redirectPort. How can I set up this feature in the
 version 3.2.2?
 
 Thank you
 
 Jan
 
 
 
 __
 Tato komunikace je urcena vyhradne pro adresata a je duverna.
 This communication is intended solely for the addressee and is
confidential.
 


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






Tomcat hanging

2001-05-30 Thread Heijns, P.J.B.

Hi,

I have some problems with tomcat. Sometimes when I am using tomcat, and a
some other users, tomcat hangs. Very strange. Some jsp pages are oke after
the crash, but some not, I don't know when en why it crashes. But when it
crashes, it are always the same pages that are oke and not oke. When I want
to request a page (bad page) after the crash, it is searching for the page,
but he doesn't let see the page to me (the browser says website found
waiting for reply). When I reboot tomcat, everythins is
oke. The time between rebooting and crashing is different, sometimes after 1
hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as a
upload servlet, big search results pages. I am using tomcat 3.2.2, interbase
6.0, interclient 2.0, windows2000.
It seems that it is a internal tomcat error, does anybody know what's the
problem and how I can solve it?

Grtz Pieter



AW: Why doesn't this work:

2001-05-30 Thread Ralph Einfeldt

Are there no log messages from tomcat ?

How do you know that the jsp:include ../ is not working?
It might be working and the error is in the included page.

To verify that, you could strip down the included page
to something like:
%
  log(this.getClass().getName() + : I'm included);
%
and see if this message makes it to the log.

Another thing you can check is, if there is a generated
java file and it's compiled version for your included jsp.

 -Ursprüngliche Nachricht-
 Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 30. Mai 2001 09:30
 An: '[EMAIL PROTECTED]'
 Betreff: Why doesn't this work:
 Could anyone tell my why the jsp:include doesn't work? I'm 
 getting an 500 error. 
snip/



RE: simple Query

2001-05-30 Thread Bhat, Mahesh

In the Apache http.conf add/change entry for ServerName 

something like this
ServerName a054848.abbey

Add what ever name you want if you are on intranet - like www.tomcat.com
then  you can access your server/servlets using http://www.tomcat.com/snoop

regards
mahesh

-Original Message-
From: Parag S [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 10:42 AM
To: [EMAIL PROTECTED]
Subject: simple Query


I am using Apache 1.3.14 with Tomcat 3.2.2b on Solaris 2.6 and 2.7.
I start tomcat and then I start apache.
When I start apache it is throwing the following error -

httpd:Could not determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName.

apachectl starts well, all servlets/jsps are working fine but what can
be the reason for that message?


Important:

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.
The Abbey National Group does not accept liability for any such changes. If you wish 
to confirm the origin or content of this communication, please contact the sender 
using an alternative means of communication.

This communication does not create or modify any contract.

If you are not the intended recipient of this communication you should destroy it 
without copying, disclosing or otherwise using its contents. Please notify the sender 
immediately of the error.

The Abbey National Group comprises Abbey National plc and its subsidiary group of 
companies.

Abbey National plc. Registered Office: Abbey House, Baker Street, London, NW1 6XL. 
Reg. No. 2294747.
Registered in England.



Re: xalan ApplyXSL sample servlet fails

2001-05-30 Thread Stan Devitt

The ApplyXSLT example also works under tomcat 3.2.2,  the crucial
thing being to include xalan.jar and xerces.jar in the CLASSPATH
(and to exclude jaxp.jar and parser.jar.)

Notes:   

1.  relative paths for dtd's etc. are relative to the webapps directory
rather than the servlet context  (both 3.2.1 and 3.2.2).  

2.  With debug=true,  3.2.2 replaces special chars by entities 
( e.g.,  by %lt;) in error data sent by ApplyXSLT to the browser, 
whereas 3.2.1 left the html tags alone and displayed the 
errors properly.

3.  I am using  jdk1.3.1, xerces 1.2.3, and xalan 2.0.0 on Windows 2000.

Stan.

- Original Message - 
From: niv maman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 29, 2001 5:23 PM
Subject: Re: xalan ApplyXSL sample servlet fails


 hi .
 did u check it with the new release of tomcat 3.2.2?





BASE64Decoder not found in JSP - why?

2001-05-30 Thread S . Schörner-Richter



Hello,

I have to use the BASE64Decoder class which is 
available in sun.misc.* (import) because I am using Tomcat 3.2.2 and want to 
decode username and password from HTTP-Header. When writing a simple application 
the BASE64Decoder (like in BASE64Decoder decoder = new BASE64Decoder()) is found 
by the compiler as the package is bundled with the JSP 1.2. But when writing a 
JSP scriplet doing the same and using the same JSP (JAVA_HOME is set) Tomcat 
gives me an internal server error claiming the BASE64DECode can not be found. 
Why? Can anyone help?

Regards 
 Thomas


A little help, please

2001-05-30 Thread James Philip Dossey



I am trying to install the tomcat server software 
on my computer and I am having a little trouble. My operating system is 
Windows 2000 pro. I have modified the wrapper.properties file to point to 
my jdk1.3.0_02 file and my jakarta-tomcat-3.2.1 file. I have also 
downloaded the NT patch jk_nt_service.exe and have installed this service. 
Somehow, I still can't get tomcat to recognize my Java_Home that I specified in 
the wrapper.properties file.

I have followed the tomcat installation 
instructions, but I think I have reached the end of the road. A little 
help would be greatly appreciated.

Thanks, Jim Dossey
[EMAIL PROTECTED]



Asking tomcat Whats the current Config

2001-05-30 Thread Andy C

This is probably simple, something I've missed in the documents.
I want to ask a running tomcat what it's configuration is ?  I.E
I'd like to access a webpage such as 

http://myhost.com:8080/Config.html

and get a response that shows which AJP is loaded etc

Any ideas ?

Ta
Andy C





Security Questions

2001-05-30 Thread Gerry Duhig



Hi!

I have Tomcat setup, actually running with JBoss, 
and I am looking at security.

I can setup an application with a login-conf in 
web.xml, but I cannot see who or what handles that. Is it Tomcat directly, or 
some loaded subsystem?

In detail: In my server.xml file I have 
thefollowing:

  
RequestInterceptorclassName="org.apache.tomcat.request.AccessInterceptor" 
debug="0" /

What is this actually saying or doing?

I also have:

 !-- 
Check permissions using the simple xml file. You can 
 
plug more advanced authentication 
modules. 
-- RequestInterceptor 
 
className="org.apache.tomcat.request.SimpleRealm" 
 debug="0" 
/
Same question! What's it for, what's it do? I don't 
seem to have a simple xml file, should I?

Gerry



Roll or cycle Logs

2001-05-30 Thread Jim Willeke

Is there a way to roll or cycle the tomcat log files?

As tomcat appears to lock the file, the logs are not viewable until you 
shut down.
Or am I missing something?
-jim




reloadable = true, ok...but...

2001-05-30 Thread jsoriano

(i'm talking about re-deploying a WAR file without
stopping Tomcat)

how does this option affect to tomcat's  efficiency?

...because i supose this option force Tomcat to check 
often its 'webapp' directory in order to look for new
files.

Regards:
__
Jaume Soriano Sivera [EMAIL PROTECTED]
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__



RE: Tomcat Image Errors

2001-05-30 Thread Randy Layman


This message means that Tomcat wasn't able to find the file.  It
would appear that you are expecting the /images/qc.bmp file to be in the
root webapp.  Check that its there and check your configuration that the
root webapp is where you expect it to be (look in server.xml file and look
for webapp named ROOT)

Randy

-Original Message-
From: Mike Alba [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 1:04 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Image Errors


Hi,
 
  I am currently getting this type of error from Tomcat
when I try to display an image in my app:
 
2001-05-29 09:19:22 - Ctx( ): 404 R( + /images/qc.bmp + null) null
Anyone have any ideas?
Thanks so much in advance for your help!!
Mike
 



RE: Internal Server Error

2001-05-30 Thread Randy Layman


Your problem is that you didn't import the class.  When Tomcat
generates the classes, it puts them into packages according to your
directory structure.  All classes therefore have a package and any classes
that are not in a package are not accessible unless each is explicitly
imported.  You need to add something like:
%@ page import=Login,TimeSpent %
to your JSP.

Incidentally, it appears that you are trying to do some
authentication.  You might looking into the SimpleRealm and JDBCRealm
classes of Tomcat, which are extensible for your own purposes.

Randy


 -Original Message-
 From: Nidhish Abraham [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 2:16 AM
 To: [EMAIL PROTECTED]
 Subject: Internal Server Error 
 
 
 Sir ,
 
  I'm working on a JSP project , i'm facing the following problem
 
  I was able to access all the jsp's ,jpegs, htm,html's etc
 
  There was an Internal Servlet Error: when i try to access session
 variable(from the next pages) after creating the session variable 
 in the home page.
 
 whenever  i try to access the other pages the following error 
 is reported 
 
 (HERE: Login and TimeSpent are session variables , which are created 
  in the home page )
 
 
 But these class files are created in the work directory automatically 
 created by TomCat server.
 
  
 
 ==
 =
 Error: 500
 
 Location: /web/VC/vc2.jsp
 
 Internal Servlet Error:
 
 org.apache.jasper.JasperException: Unable to compile class 
 for JSPerror: File
 C:\jakarta-tomcat\work\localhost_8080%2Fweb\VC\Login.class 
 does not contain
 type VC.Login as expected, but type Login. Please remove the 
 file, or make
 sure it appears in the correct subdirectory of the class path.
 C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_0
 0032_0002ejspvc2_jsp_0.java:67:
 Class VC.Login not found.
 Login lo=(Login)session.getValue(login);
 ^
 C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_0
 0032_0002ejspvc2_jsp_0.java:67:
 Class VC.Login not found.
 Login lo=(Login)session.getValue(login);
   ^
 error: File 
 C:\jakarta-tomcat\work\localhost_8080%2Fweb\VC\TimeSpent.class
 does not contain type VC.TimeSpent as expected, but type 
 TimeSpent. Please
 remove the file, or make sure it appears in the correct 
 subdirectory of the
 class path.
 C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_0
 0032_0002ejspvc2_jsp_0.java:90:
 Class VC.TimeSpent not found.
 TimeSpent 
 ts=(TimeSpent)session.getValue(time);
 ^
 C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_0
 0032_0002ejspvc2_jsp_0.java:90:
 Class VC.TimeSpent not found.
 TimeSpent 
 ts=(TimeSpent)session.getValue(time);
   ^
 Note:
 C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_0
 0032_0002ejspvc2_jsp_0.java
 uses or overrides a deprecated API.  Recompile with -deprecation for
 details.
 6 errors, 1 warning
 
 at 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
 at 
 org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
 at
 org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfN
 ecessary(JspServlet.java:149)
 at
 org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
 (JspServlet.java:161)
 at
 org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
 .java:261)
 at 
 org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
 pper.java:503)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at
 org.apache.tomcat.service.http.HttpConnectionHandler.processCo
 nnection(HttpConnectionHandler.java:160)
 at
 org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
 point.java:338)
 at java.lang.Thread.run(Unknown Source)
 
 
 
 
 Get free email and a permanent address at 
 http://www.netaddress.com/?N=1
 



Re: Connector

2001-05-30 Thread Andrea Mari

Thanks to all!





change default servlet

2001-05-30 Thread Asa Bar-David

Hi,

How can I change the default /servlet/ uri when I am posting to servlets ?




Re: AW: Why doesn't this work:

2001-05-30 Thread Terje Kristensen

I did what you asked me, and the files did get included, but it doesn't tell me much. 
To try an clear what I am trying to do:

I want this url:
http://localhost:8080/xsql/tek/advanced_section_result.jsp?opn=1PCS=0AC10APCS=AAC10A

To do this:
(info 1)
jsp:include page=advanced_result_PCS.xsql flush=true
jsp:param name=opn value=1/
jsp:param name=PCS value=AC10A/
jsp:param name=PCSR value=0/
/jsp:include

jsp:include page=advanced_result_PCS.xsql flush=true
jsp:param name=opn value=1/
jsp:param name=PCS value=AC10A/
jsp:param name=PCSR value=A/
/jsp:include

By doing so:
(info 2)
%@ page import=java.util.* %
% 
String opn  = request.getParameter(opn);
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
String paramName = (String)paramNames.nextElement();
String[] paramValues = request.getParameterValues(paramName);
if (paramValues.length == 1) {
String paramValue = paramValues[0];
if (paramValue.length() == 0) { 
%error% 
}
} else { 
for(int i=0; iparamValues.length; i++) { 
int length  = paramValues[i].length();
String fil = advanced_result_ + paramName + .xsql;
 %
jsp:include page=%= fil % flush=true
jsp:param name=opn value=%= opn %/
jsp:param name=%= paramName % value=%= 
paramValues[i].substring(1,length) %/
jsp:param name=%= paramName %R value=%= 
paramValues[i].substring(0,1) %/
/jsp:include
%
}
}
} %


This gets me an error. If i type in info 1 it works perfectly, but when i try to do 
info 2 gives me an error.

What to do?

Terje 
snip
-- Original Message --
From: Ralph Einfeldt [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Wed, 30 May 2001 10:31:00 +0200

Are there no log messages from tomcat ?

How do you know that the jsp:include ../ is not working?
It might be working and the error is in the included page.

To verify that, you could strip down the included page
to something like:
%
  log(this.getClass().getName() + : I'm included);
%
/snip



RE: change default servlet

2001-05-30 Thread Randy Layman


Either create a mapping in the web.xml file (using servlet and
servlet-mapping tags, or edit the server.xml file and change the
ServletInvoker's prefix.  The first is definitely the preferred method since
its supported by the JSP Spec and doesn't affect any other servlets.  The
second is less flexible.

Randy

 -Original Message-
 From: Asa Bar-David [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 5:43 PM
 To: [EMAIL PROTECTED]
 Subject: change default servlet
 
 
 Hi,
 
 How can I change the default /servlet/ uri when I am 
 posting to servlets ?
 



RE: format of uriworkermap.properties file?

2001-05-30 Thread Ignacio J. Ortega

AFAIK, you need to declare a foo context too.. because if you does not
have a foo context the redirection should work but Tomcat does not
find /foo/b.xml at all..

Its only a weird tought, Donald.


Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Donald Ball [mailto:[EMAIL PROTECTED]]
 Enviado el: miércoles 30 de mayo de 2001 7:08
 Para: [EMAIL PROTECTED]
 Asunto: format of uriworkermap.properties file?
 
 
 heya. i've got iis and tomcat-3.2.1 talking to each other, hurrah! now
 what i'd like to do is have iis pass all requests for a uri 
 with a given
 extension, say .xml, on to tomcat, but i can't tell how to 
 write that in
 uriworkermap.properties. my first guess would be:
 
 /*.xml=ajp12
 
 but it doesn't seem to be work everywhere. /foo.xml is passed 
 through to
 tomcat but /foo/bar.xml is not. is this the expected 
 behavior? what should
 i put in my uriworkermap.properties file instead? is the 
 format of that
 file actually documented anywhere? the tomcat+iis instruction 
 page, while
 very helpful in getting things working, isn't terribly good as a
 reference.
 
 - donald
 
 



problem running tomcat in secure mode

2001-05-30 Thread niraj




i have an application in servlet and 
jsp
in directory format 
in /myapp

i have put the /myapp in 
c:\sites\myapp

i have created a host int server.xml file 
like

Host name="10.0.0.1" 
 Context 
path="" 
docBase="c:\sites\myapp" //Host
now i start the tomcat in secure mode by giving 

command 

startup.bat -security

now i request in browser 
like 
http://10.0.0.0/servlet/MyServlet

it gives error like 
java.security.AccessControlException: access denied (java.io.FilePermission 
C:\sites\myapp\web-inf\classes read)

i add lines in tomcat.policy

grant codeBase "file:C:\sites\myapp\-" { 
permission java.io.FilePermission "*", "read";};

still geting same error 

any idea

please help me

thanks in advance




RE: change default servlet

2001-05-30 Thread Asa Bar-David

Thanks for the reply,

when deploying a WAR file I always need to add the WAR file name before the
/servlet/
for example: if the WAR file name is Tash.war when posting to a servlet I
need to write /Tash/servlet/servletName.
On the IDE I'm using (Forte for java)the default servlet uri is /servlet/
with no need to add the lib name Tash before it.
so anything I do on the IDE will not work on tomcat because it's looking for
the Tash before the /servlet/.

what can I do to easily deploy war file from the IDE to
tomcat with out the need to add the WAR file name before the /servlet/



-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 4:21 AM
To: [EMAIL PROTECTED]
Subject: RE: change default servlet



Either create a mapping in the web.xml file (using servlet and
servlet-mapping tags, or edit the server.xml file and change the
ServletInvoker's prefix.  The first is definitely the preferred method since
its supported by the JSP Spec and doesn't affect any other servlets.  The
second is less flexible.

Randy

 -Original Message-
 From: Asa Bar-David [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 5:43 PM
 To: [EMAIL PROTECTED]
 Subject: change default servlet


 Hi,

 How can I change the default /servlet/ uri when I am
 posting to servlets ?





Can You Dynamically Reloading web.xml?

2001-05-30 Thread Jeff Trent

If I have webapp named a  b, is it possible to:

(1) dynamically add c without restarting the tomcat service thereby
affecting a  b?

(2) redeploy a without restarting the tomcat service?

Thanks.







RE: change default servlet

2001-05-30 Thread Michael Wentzel

 when deploying a WAR file I always need to add the WAR file 
 name before the
 /servlet/
 for example: if the WAR file name is Tash.war when posting to 
 a servlet I
 need to write /Tash/servlet/servletName.
 On the IDE I'm using (Forte for java)the default servlet uri 
 is /servlet/
 with no need to add the lib name Tash before it.
 so anything I do on the IDE will not work on tomcat because 
 it's looking for
 the Tash before the /servlet/.
 
 what can I do to easily deploy war file from the IDE to
 tomcat with out the need to add the WAR file name before the /servlet/

You could always try an ant script.  If you write it well you would only
have to have a single
one for all of your webapps.  I'm not well versed in ant so I'll leave it to
you or someone else
to follow up on this one.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: Can You Dynamically Reloading web.xml?

2001-05-30 Thread Michael Wentzel

 If I have webapp named a  b, is it possible to:
 
 (1) dynamically add c without restarting the tomcat service thereby
 affecting a  b?

Someone correct me if I'm worng here but I believe the answer is yes, but
you would have to reference it in relation to the root webapp.  In other
words, server.xml will not get reloaded so you can't add a new context.

 (2) redeploy a without restarting the tomcat service?

check out the reloadable flag in server.xml.  Once again, though, c could
not be made reloadable for the same reason as (1).

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: Servlets and relative paths

2001-05-30 Thread Ronald G. Louzon

I found this in the archives (http://marc.theaimsgroup.com ).  You might
search them for more info if this doesn't work.  If you put the file in your
servlet's classpath, this code, which in this case is accessing a properties
file, should allow you to access the file. 

-

InputStream is = this.getClass().getResourceAsStream(myapp.properties); 
Properties p = new Properties(); 
try 
{ 
   p.load(is); 
} 
catch ( java.io.IOException e ) 
{ 
// Can't load props file 

-Original Message-
From: Chris McNeilly [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 11:32 AM
To: [EMAIL PROTECTED]
Subject: Servlets and relative paths


I've got a servlet and am trying to open files.  The problem is that its
defaulting to the tomcat/bin directory whenever I attempt to refer to
them.  How can I change this?  Hardcoding the path isn't such a good
idea as my dev environment is different from production.  These are xml
and xsl files and they are located on the webroot.

Thanks,

Chris



RE: tomcat on Netware

2001-05-30 Thread Marc Saegesser

The NetWare binaries are there now.  I can't build the binaries for every
platform, so other volunteers build them and send them to me to be posted.
Binaries for additional platforms will appears over the next few days.


-Original Message-
From: Mark Currie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 1:24 AM
To: 
Subject: tomcat on Netware


Can someone please provide the URL where the Netware version of Tomcat can
be downloaded fromit is not in the downloads area.

Thanks,


Regards,

Mark Currie (CNE)
Senior Consulting Engineer
Network Integration and Design

Austnet Support Group Pty Ltd
88 St Kilda Road
St Kilda. Vic. 3182. Australia.

Phone:   +61 3 9525-5755
Fax:+61 3 9525-5979
Mobile:   +61 438-883-771
eMail: [EMAIL PROTECTED]
web:   http://www.austnet.com.au




AW: AW: Why doesn't this work:

2001-05-30 Thread Ralph Einfeldt

Sorry, but I'm not shure that I understand right.

To verify that I unstood well so far:
- Your code sniplet (info 2) is from the source 
  advanced_section_result.jsp
- info 1 is the desired effect of the for loop
  in advanced_section_result.jsp
- If you directly use the sniplet info 1 instead of the 
  loop everything works
- If you remove the  inside the include, the code
  that is generated looks like info 1 without 

BTW:

int length = a.length(); 
a.substring(1,length);

is equivalent with

a.substring(1);

 -Ursprüngliche Nachricht-
 Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 30. Mai 2001 14:25
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: Why doesn't this work:
 
 
 I did what you asked me, and the files did get included, but 
 it doesn't tell me much. To try an clear what I am trying to do:
 
 I want this url:
 http://localhost:8080/xsql/tek/advanced_section_result.jsp?opn
 =1PCS=0AC10APCS=AAC10A
 
 To do this:
 (info 1)
 jsp:include page=advanced_result_PCS.xsql flush=true
   jsp:param name=opn value=1/
   jsp:param name=PCS value=AC10A/
   jsp:param name=PCSR value=0/
 /jsp:include
 
 jsp:include page=advanced_result_PCS.xsql flush=true
   jsp:param name=opn value=1/
   jsp:param name=PCS value=AC10A/
   jsp:param name=PCSR value=A/
 /jsp:include
   
 By doing so:
 (info 2)
 %@ page import=java.util.* %
 % 
 String opn= request.getParameter(opn);
 Enumeration paramNames = request.getParameterNames();
 while(paramNames.hasMoreElements()) {
   String paramName = (String)paramNames.nextElement();
   String[] paramValues = request.getParameterValues(paramName);
 if (paramValues.length == 1) {
   String paramValue = paramValues[0];
   if (paramValue.length() == 0) { 
   %error% 
   }
   } else { 
   for(int i=0; iparamValues.length; i++) { 
   int length  = paramValues[i].length();
   String fil = advanced_result_ + 
 paramName + .xsql;
%
   jsp:include page=%= fil % 
 flush=true
   jsp:param name=opn 
 value=%= opn %/
   jsp:param name=%= 
 paramName % value=%= paramValues[i].substring(1,length) %/
   jsp:param name=%= 
 paramName %R value=%= paramValues[i].substring(0,1) %/
   /jsp:include
 %
   }
   }
 } %
 
 
 This gets me an error. If i type in info 1 it works 
 perfectly, but when i try to do info 2 gives me an error.
 
 What to do?
 
 Terje 



Re: servlet start-up

2001-05-30 Thread Brian Elliott

Silvestre Turija Jr. wrote:
 
 sorry for the intrusion, I am having the same problem
 Internal Servlet Error kindly inform me I you got a
 fixed on this bug.

Based on another unrelated discussion on this list, I tried starting
tomcat (embedded in jboss) first and then apache - and it fixed my
problem (code 500 Internal Server Errors when requesting a serlvet right
after startup). I have just tried it once so far but it would be
interesting to see if this fixes the problem for other people as well.

Brian
-- 
+---+--+
| Brian Elliott | Unplugged Systems / ESWC.com /   |
| President  CTO   |   ES Innovation Labs |
| [EMAIL PROTECTED] | MLS Unplugged  Wireless Systems |
|   | http://www.unpluggedsystems.com  |
+---+--+



Re: Tomcat hanging

2001-05-30 Thread Chris Janicki

Are you using Java 1.3?  If so, downgrade to the last 1.2.2.5 (or the 
latest 1.2).  Java 1.3 has some very serious, and unfortunately very 
intermittent thread problems.  

Chris

 Original Message 

On 5/30/01, 6:12:27 AM, Heijns, P.J.B. [EMAIL PROTECTED] wrote 
regarding Tomcat hanging:


 Hi,

 I have some problems with tomcat. Sometimes when I am using tomcat, and a
 some other users, tomcat hangs. Very strange. Some jsp pages are oke 
after
 the crash, but some not, I don't know when en why it crashes. But when it
 crashes, it are always the same pages that are oke and not oke. When I 
want
 to request a page (bad page) after the crash, it is searching for the 
page,
 but he doesn't let see the page to me (the browser says website found
 waiting for reply). When I reboot tomcat, everythins is
 oke. The time between rebooting and crashing is different, sometimes 
after 1
 hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as 
a
 upload servlet, big search results pages. I am using tomcat 3.2.2, 
interbase
 6.0, interclient 2.0, windows2000.
 It seems that it is a internal tomcat error, does anybody know what's the
 problem and how I can solve it?

 Grtz Pieter



RE: Tomcat hanging

2001-05-30 Thread Michael Weissenbacher

i've started using java 1.3.1 a week ago and all thread releated problems
known fron 1.3.0 seem to have disappeared

michael
-Original Message-
From: Chris Janicki [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 3:39 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Tomcat hanging


Are you using Java 1.3?  If so, downgrade to the last 1.2.2.5 (or the 
latest 1.2).  Java 1.3 has some very serious, and unfortunately very 
intermittent thread problems.  

Chris




Re: servlet start-up

2001-05-30 Thread Tom . Hunter

Brian,

 Yesterday, I got an answer from Marty Hall (author of Core Servlets 
JSPs ):

 Go to this URL and you'll get help:

  www.archive.coreservlets.com/Using-Tomcat.html


  Good Luck!





Tom Hunter
I/S Managed Health Care
x6201


   
 
Brian Elliott  
 
belliott@unpluggedsyTo: [EMAIL PROTECTED] 
 
stems.com   cc: tomcat 
[EMAIL PROTECTED]
 Subject: Re: servlet start-up 
 
05/29/2001 01:02 PM
 
Please respond to  
 
tomcat-user
 
   
 
   
 




Rui,

I am having the same problem with tomcat for my servlets as you
described in your posting where you get an Internal Server Error when
first requesting a servlet. Did you ever get the problem fixed?

I am under some intense time pressures and would GREATLY appreciate any
help.

Thanks,

Brian
--
+---+--+
| Brian Elliott | Unplugged Systems / ESWC.com /   |
| President  CTO   |   ES Innovation Labs |
| [EMAIL PROTECTED] | MLS Unplugged  Wireless Systems |
|   | http://www.unpluggedsystems.com  |
+---+--+






RE: Re: Servlets and relative paths

2001-05-30 Thread Chris McNeilly

Thanks Bo.  This is certainly a step in the right direction.

I can now include the xml file and xsl file using relative paths.  My
only problem now is that there are xsl includes inside the xsl files and
they are still being loaded incorrectly (using the tomcat/bin directory
as root, not the servlet context).  Any ideas?

Thanks,

Chris

 Chris McNeilly wrote:

   I've got a servlet and am trying to open files.  The
 problem is that its
   defaulting to the tomcat/bin directory whenever I attempt
 to refer to
   them.  How can I change this?  Hardcoding the path isn't
 such a good
   idea as my dev environment is different from production.
 These are xml
   and xsl files and they are located on the webroot.
  
   Thanks,
  
   Chris

 Hi :-)  from several emails in Servlet-List and this List:

 * InputStream is = this.getServletContext().

 getResourceAsStream(/WEB-INF/testApp.properties);

 now testApp.properties is in myapp/WEB-INF/


 *
 - InputStream is =
 this.getClass().getResourceAsStream(testApp.properties);
 - InputStream is = Thread.currentThread().getContextClassLoader().
  getResourceAsStream(myservlet.conf);

now, (normally),  myservlet.conf/testApp.properties is in
 myapp/WEB-INF/classes


 Bo
 May.29, 2001









RE: Security Questions

2001-05-30 Thread William Kaufman




  
RequestInterceptorclassName="org.apache.tomcat.request.AccessInterceptor" 
debug="0" /

From 
that class' javadoc:

* Access control - find 
if a request matches any web-resource-collection* and set the 
"required" attributes.** The spec requires additive 
checking ( i.e. there is no "best match"* defined, but "all 
requests that contain a request path that mathces the* URL 
pattern in the resource collection are subject to the constraing" 
).** In "integrated" mode this interceptor will be 
no-op, we'll use the* web server ( assuming we can map the 
security to web-server equivalent* concepts - I think we can do 
that, but need to experiment with that)
 RequestInterceptor 
 
className="org.apache.tomcat.request.SimpleRealm" 
 debug="0" 
/

From 
that class' javadoc:

* Memory based realm - will authenticate and check the 
permissions* for a request using a simple, in-memory list of 
users.* This is for "demo" purpose only, to allow auth in 
standalone tomcat* for developers.** 
There are no restrictions or rules on how to authenticate - you 
have* full control over the process.

 I 
don't seem to have a simple xml file, should I?

You 
do: it's named $TOMCAT_HOME/conf/tomcat-users.xml 
.
 
-- Bill K.

  -Original Message-From: Gerry Duhig 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 30, 2001 
  4:00 AMTo: [EMAIL PROTECTED]Subject: 
  Security Questions
  Hi!
  
  I have Tomcat setup, actually running with JBoss, 
  and I am looking at security.
  
  I can setup an application with a login-conf in 
  web.xml, but I cannot see who or what handles that. Is it Tomcat directly, or 
  some loaded subsystem?
  
  In detail: In my server.xml file I have 
  thefollowing:
  

  RequestInterceptorclassName="org.apache.tomcat.request.AccessInterceptor" 
  debug="0" /
  
  What is this actually saying or 
  doing?
  
  I also have:
  
   
  !-- Check permissions using the simple xml file. You can 
   
  plug more advanced authentication 
  modules. 
  -- RequestInterceptor 
   
  className="org.apache.tomcat.request.SimpleRealm" 
   
  debug="0" /
  Same question! What's it for, what's it do? I 
  don't seem to have a simple xml file, should I?
  
  Gerry
  


Re: tomcat+apache

2001-05-30 Thread Milt Epstein

On Wed, 30 May 2001, unplug wrote:

 Thanks.
 But I have read that it is better to start tomcat before apache as the
 mod_jk.conf-auto will be generated for apache.  Am I right??  So which
 one should be started first??

I always start tomcat before apache, I seem to recall reading that was
the preferred/necessary way to do it.

On the other hand, I don't use the auto-generated conf file -- and
probably you shouldn't either.  That's because likely it won't be 100%
complete and correct.  General advice is to copy that file, modify it
as needed, and use that modified conf file.

So it's not because of that conf file that you should start tomcat
first.


 David DELGRANCHE wrote:
 
  You just have to start apache before starting Tomcat!
 
  David.
 
  -Message d'origine-
  De: unplug [SMTP:[EMAIL PROTECTED]]
  Date:   mercredi 30 mai 2001 10:35
  A:  tomcat-user
  Objet:  tomcat+apache
 
  Hi all,
 
Just install tomcat3.2.2 and mod_jk.so.  However, when I restart
  tomcat and then apache, I found the following message in mod_jk.log
 
  [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
  NULL parameter
  [jk_uri_worker_map.c (185)]: In
  jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
 
What do they mean??  How do I configure to remove the message??
 
  Rgds,
  unplug


Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




RE: green and native threads

2001-05-30 Thread Jeff Crawford

Matt,
 
We've looked into this and discovered that Sun is phasing out green
threads and replacing it with Hot Threads in 1.3.  
 

-Original Message-
From: Matt Dilley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 2:45 AM
To: [EMAIL PROTECTED]
Subject: green and native threads


Hi
 
I have been searching for a long time for a green threads version of
java, and so far have only found one for v1.2.2 - from the java.sun
site.
Does anyone know of a green-threads installation for java v1.3.x?
 
Thanks




Re: servlet start-up

2001-05-30 Thread Milt Epstein

On Wed, 30 May 2001, Brian Elliott wrote:

 Silvestre Turija Jr. wrote:
 
  sorry for the intrusion, I am having the same problem
  Internal Servlet Error kindly inform me I you got a
  fixed on this bug.

 Based on another unrelated discussion on this list, I tried starting
 tomcat (embedded in jboss) first and then apache - and it fixed my
 problem (code 500 Internal Server Errors when requesting a serlvet right
 after startup). I have just tried it once so far but it would be
 interesting to see if this fixes the problem for other people as well.

I don't have any particular suggestions for this problem, but I just
want to point out that Internal Server Error is a very general
error, indicating that there is some problem with some component of
the server, and it could be one of a hundred or more things wrong.  So
specifying just that info and asking what's wrong is off-base.  You're
going to need to dig deeper and get some specifics about the problem,
and give some details about the configuration (because it is often due
to something related to the configuration).  There is typically no
magic bullet that will fix things when you have an Internal Server
Error.  Looking at the relevant log files for more detailed error
messages is a good start.

BTW, similar is true for some other errors, like OutOfMemoryError.  In
that case, something simple like upping the initial/max heap size may
take care of the problem.  On the other hand, it could very well be
that the code is buggy and/or has a memory leak-type problem that is
causing the memory usage to continue to grow.  Resolving those errors
may also take some further investigation.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




RE: green and native threads

2001-05-30 Thread Jeff Crawford

Sorry, I hit the send button too soon, = : p  
 
Here's a link.  And I meant ...replacing it with... HotSpot and Native
Threads.
 
http://www.sun.com/software/solaris/java/wp-java/4.html;$sessionid$ZTC4I
PIAABZPNAMTA1LU45Q#java
http://www.sun.com/software/solaris/java/wp-java/4.html;$sessionid$ZTC4
IPIAABZPNAMTA1LU45Q#java  threads
 
Jeff
Jeff Crawford 
Configuration Manager 
V-SPAN 
Virtual Connectivity...Anyplace @ Anytime 
4001 Discovery Drive, Suite 270 
Boulder, CO  80303 
Direct: 303 544 7547 
Main:   303 415 3550 
Fax:303 448-7803 
(Formerly Peer Digital) 
www.vspan.com | www.peerdigital.com 

-Original Message-
From: Jeff Crawford 
Sent: Wednesday, May 30, 2001 8:11 AM
To: '[EMAIL PROTECTED]'
Subject: RE: green and native threads


Matt,
 
We've looked into this and discovered that Sun is phasing out green
threads and replacing it with Hot Threads in 1.3.  
 

-Original Message-
From: Matt Dilley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 2:45 AM
To: [EMAIL PROTECTED]
Subject: green and native threads


Hi
 
I have been searching for a long time for a green threads version of
java, and so far have only found one for v1.2.2 - from the java.sun
site.
Does anyone know of a green-threads installation for java v1.3.x?
 
Thanks




How to change the Tomcat web-root

2001-05-30 Thread Frank Niedermann

Hi,

I've just installed Tomcat on my Debian-Server with apt-get install
tomcat. The tomcat-files are now located in /usr/share/tomcat, but
my Apache-WebRoot is in /home/httpd and I want tomcat also there.

How can I change the WebRoot-Directory for Tomcat? I think it's
the webapps directory in /tomcat but I'm not sure how to change
this to /home/tomcat/webapps

Thanks for help!

Frank

-- 
 -
---  F  B  N  -
 [EMAIL PROTECTED] -   Frank B. Niedermann
 [EMAIL PROTECTED]http://fbn.dyndns.org
Life's to short for Reboots - Linux
-



How to set not directy broswing allow

2001-05-30 Thread Jerry Villamizar

Hi.

I would like to know how to set tomcat to do not allow the directory
broswing

Thanks in Advance
Jerry
- Original Message -
From: Frank Niedermann [EMAIL PROTECTED]
To: tomcat-user Mailing List [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001 10:27 AM
Subject: How to change the Tomcat web-root


 Hi,

 I've just installed Tomcat on my Debian-Server with apt-get install
 tomcat. The tomcat-files are now located in /usr/share/tomcat, but
 my Apache-WebRoot is in /home/httpd and I want tomcat also there.

 How can I change the WebRoot-Directory for Tomcat? I think it's
 the webapps directory in /tomcat but I'm not sure how to change
 this to /home/tomcat/webapps

 Thanks for help!

 Frank

 --
  -
 ---  F  B  N  -
  [EMAIL PROTECTED] -   Frank B. Niedermann
  [EMAIL PROTECTED]http://fbn.dyndns.org
 Life's to short for Reboots - Linux
 -





Re: Servlets and relative paths

2001-05-30 Thread Bo Xu

Chris McNeilly wrote:

 Thanks Bo.  This is certainly a step in the right direction.

 I can now include the xml file and xsl file using relative paths.  My
 only problem now is that there are xsl includes inside the xsl files and
 they are still being loaded incorrectly (using the tomcat/bin directory
 as root, not the servlet context).  Any ideas?

 Thanks,

 Chris

  Chris McNeilly wrote:
 
I've got a servlet and am trying to open files.  The
  problem is that its
defaulting to the tomcat/bin directory whenever I attempt
  to refer to
them.  How can I change this?  Hardcoding the path isn't
  such a good
idea as my dev environment is different from production.
  These are xml
and xsl files and they are located on the webroot.
   
Thanks,
   
Chris
 
  Hi :-)  from several emails in Servlet-List and this List:
 
  * InputStream is = this.getServletContext().
 
  getResourceAsStream(/WEB-INF/testApp.properties);
 
  now testApp.properties is in myapp/WEB-INF/
 
 
  *
  - InputStream is =
  this.getClass().getResourceAsStream(testApp.properties);
  - InputStream is = Thread.currentThread().getContextClassLoader().
   getResourceAsStream(myservlet.conf);
 
 now, (normally),  myservlet.conf/testApp.properties is in
  myapp/WEB-INF/classes
 
 
  Bo
  May.29, 2001
 
 [...]

Hello Chris :-)  I am not sure, do you want to  read a file in
TOMCAT_HOME/bin?
is the following possible?

- put MyUtil.class in TOMCAT_HOME/bin
- include TOMCAT_HOME/bin/MyUtil.class into CLASSPATH
- put testApp.properties into TOMCAT_HOME/bin
- in MyServlet, write the following code:
  ...
  MyUtil myobject=new MyUtil();
  InputStream is =
  myobject.getClass().getResourceAsStream(testApp.properties);
  ...

I don't test it,  if it is not right, please correct it, thanks! :-)


Bo
May.30, 2001






Tomcat/IIS Installation Problem

2001-05-30 Thread ernest . a . dicicco



Gentlemen:

I have installed a copy of Tomcat 3.2.1 onto an IIS system.  I can process the
/examples/jsp/index.html example fine.  I am trying to make two custom
applications work in this same environment with no success.

I have created two new directories under Tomcat/webapps  when I start up
Tomcat, the servlet log file indicates that it sees these new application
directories:

 2001-05-25 03:05:25 - path=/examples :jsp: init
 2001-05-25 03:05:26 - path=/admin :jsp: init
 2001-05-25 03:05:26 - path=/MachineHealthROI :jsp: init
 2001-05-25 03:05:27 - path=/PMQualityROI :jsp: init
 2001-05-25 03:05:27 - path= :jsp: init
 2001-05-25 03:05:28 - path=/test :jsp: init

If I specify a request to an application as follows:

 http://localhost/PMQualityROI/index.jsp or http://localhost/PMQualityROI, I
 get a 404 file not found error.

If I create a virtual directory within IIS for an application, When I access the
 application as follows:

 http://localhost/MachineHealth/ROI/index.jsp or
http://localhostMachineHealthROI, I get a 403 no authorization error.

Could you posibly supply and additional information, which might help me out of
my quandry?


Thank-you for any help you can give me.

Ernie DiCicco





setAttribute behaviour when passing null as attribute

2001-05-30 Thread Thomas Krebs

Hope, this wasn't discussed already (I browsed through the list but didn't
find it), if it was I apologize.

What is the expected result of calling setAttribute on an instance of
ServletRequest, if the attribute to be passed is null (i.e.
request.setAttribute(someName, null))?
I would expect that for the given name null is stored which would ensure
that a getAttribute call afterwards would return null as well.
However, the Tomcat implementation will leave the value unchanged:

--- code snippet from RequestImpl ---
Class org.apache.tomcat.core.RequestImpl.java line 614

public void setAttribute(String name, Object value) {
 if(name!=null  value!=null)
 attributes.put(name, value);
}

--- end code snippet

Since other servlet container behave differently at least JRun does, namely
 setting it to null, I wonder whether this is a bug in Tomcat?
I would argue that the expected behaviour is that getAttribute(name)
returns null, if  a value for name was never set. In all other cases,
it should return exactly the value set with the last setAttribute call.

Any opinions on that?

best regards,
thomas





Problem sun.misc solved - but why is authorization=null???? Please help (urgent!)

2001-05-30 Thread me

Hello,

I solved the problem with sun.misc (was an error in directive). But now I
had a strange error. When performing form login via JDBC  and trying to
read out AUTHORIZATION Header the string is NULL. Why? Does form login not
write Authorization in HTTP Header?
I do the following:
%
String aut = request.getHeader(Authorization);
BASE64Decoder decoder = new BASE64Decoder();
if (aut == null) {
  out.println(NOTHING INSIDE);
} else {
  String userInfo = aut.substring(6).trim();
}
%
Can anyone help please??

Thomas





RE: Tomcat/IIS Installation Problem

2001-05-30 Thread Randy Layman


Your quandary is a mis-configuration.  Remove the virtual
directories from IIS, add the appropriate entries to
uriworkermap.properties, and then restart the IIS process (using the
Services Control Panel, or perform a machine restart, not the stop/start
buttons in IIS Admin)

Randy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 10:52 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat/IIS Installation Problem
 
 
 
 
 Gentlemen:
 
 I have installed a copy of Tomcat 3.2.1 onto an IIS system.  
 I can process the
 /examples/jsp/index.html example fine.  I am trying to make 
 two custom
 applications work in this same environment with no success.
 
 I have created two new directories under Tomcat/webapps  
 when I start up
 Tomcat, the servlet log file indicates that it sees these new 
 application
 directories:
 
  2001-05-25 03:05:25 - path=/examples :jsp: init
  2001-05-25 03:05:26 - path=/admin :jsp: init
  2001-05-25 03:05:26 - path=/MachineHealthROI :jsp: init
  2001-05-25 03:05:27 - path=/PMQualityROI :jsp: init
  2001-05-25 03:05:27 - path= :jsp: init
  2001-05-25 03:05:28 - path=/test :jsp: init
 
 If I specify a request to an application as follows:
 
  http://localhost/PMQualityROI/index.jsp or 
 http://localhost/PMQualityROI, I
  get a 404 file not found error.
 
 If I create a virtual directory within IIS for an 
 application, When I access the
  application as follows:
 
  http://localhost/MachineHealth/ROI/index.jsp or
 http://localhostMachineHealthROI, I get a 403 no 
 authorization error.
 
 Could you posibly supply and additional information, which 
 might help me out of
 my quandry?
 
 
 Thank-you for any help you can give me.
 
 Ernie DiCicco
 
 



RE: Problem sun.misc solved - but why is authorization=null???? Please help (urgent!)

2001-05-30 Thread Pernica, Jan

I have tried it and it works fine. But the page you are requesting must be
under security-constraint

Regards

Jan

On Wednesday, May 30, 2001 4:50 PM, [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
wrote:
 Hello,
 
 I solved the problem with sun.misc (was an error in directive). But now I
 had a strange error. When performing form login via JDBC  and trying to
 read out AUTHORIZATION Header the string is NULL. Why? Does form login not
 write Authorization in HTTP Header?
 I do the following:
 %
 String aut = request.getHeader(Authorization);
 BASE64Decoder decoder = new BASE64Decoder();
 if (aut == null) {
   out.println(NOTHING INSIDE);
 } else {
   String userInfo = aut.substring(6).trim();
 }
 %
 Can anyone help please??
 
 Thomas
 


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






RE: tomcat process dies out...

2001-05-30 Thread Wouter Boers

Maybe it's because you don't start it with nohup. It's common in unix to
kill all process that are initiated the parent if the parent (your shell)
ceases to exist (you are logging out).

See 'man nohup'

Wouter

-Original Message-
From: Krishna Kishore Thotakura [mailto:[EMAIL PROTECTED]]
Sent: 28 May 2001 17:02
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: tomcat process dies out...


Hi,
 thanks for your quick response.

 But my server is a unix box running Red Hat 6.2.


Pernica, Jan wrote:

 this is a known bug of JDK 1.3 on NT

 On Monday, May 28, 2001 4:52 PM, Krishna Kishore Thotakura
 [SMTP:[EMAIL PROTECTED]] wrote:
  hello,
   I am trying to setup multiple JVMs using mod_jk. the JVM running at
port
 8080
  is okay. I'm having problem with the JVM running at port 8090. whenever,
i
 log
  out of my server machine(the machine where i am starting my apache and
 tomcat),
  the tomcat process stops listening to the port 8090. Actually, the
 Tomcat(java)
  threads are getting killed when i log out.
 
   Please let me know where i am going wrong?  i am starting tomcat1
  as ./startup.sh -f server_1.xml
 
  thanks,
  kishore.

 __
 Tato komunikace je urcena vyhradne pro adresata a je duverna.
 This communication is intended solely for the addressee and is
confidential.

--
Krishna Kishore Thotakura.
Work 256 961 7818
Home 256 837 9927




Ajp12 vs Ajp13

2001-05-30 Thread Andy C

I'm confused.
When editing the server.xml file to use Ajp13 support
should I delete the AJP12 support or leave it in?

Is there a way to find out which Ajp is running on my server?

I.E should my server.xml be:

   Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler
   value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/
Parameter name=port value=8007/
  Parameter
 name=max_threads
 value=200/
  Parameter
 name=max_spare_threads
 value=20/
  Parameter
 name=min_spare_threads
 value=20 /
/Connector
  !-- Apache AJP13 support.--
  Connector className=org.apache.tomcat.service.PoolTcpConnector
   Parameter name=handler
value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
   Parameter name=port value=8009/
 Parameter
 name=max_threads
 value=200/
 Parameter
 name=max_spare_threads
 value=20/
 Parameter
 name=min_spare_threads
 value=20 /
  /Connector


Ta
Andy C





Re: green and native threads

2001-05-30 Thread Tim O'Neil

At 09:44 AM 5/30/2001 +0100, you wrote:
Hi

I have been searching for a long time for a green threads version of java, 
and so far have only found one for v1.2.2 - from the java.sun site.
Does anyone know of a green-threads installation for java v1.3.x?


You want green threads? Isn't that what you get
if the platform you're running your jvm on doesn't
support posix threads natively? And you don't really
want gt. That library is going to be slower and missing
some of the functionality of a native thread lib.





authorization=null?? I use JDBC Realm?

2001-05-30 Thread me

Hi Jan,

does it really work?? I am using Apache 1.3, Tomcat 3.2.2, Win NT 4.0 SP6,
JDBC Realm, the page is under security-constraint in a frame (the first
subpage) and request.getRemoteUser() and request.getAuthType() are working,
giving me FORM and USER. But request.getHeader always returns null. I am
speechless ...

Any further suggestions, please?

Thanks
Thomas




Re: Ajp12 vs Ajp13

2001-05-30 Thread Tim O'Neil

At 04:37 PM 5/30/2001 +0100, you wrote:
I'm confused.
When editing the server.xml file to use Ajp13 support
should I delete the AJP12 support or leave it in?


You have to leave ajp12 in because tomcat uses it in its
wind down procedure, at least in 3.x versions. You can
run everything else on 13 though. I do.





Starting tomcat from a Java Class

2001-05-30 Thread Joseph Variamparambil

hello,
how do i make an instance of the tomcat server and run its ?start?
method? Is it possible to do something like this...(just an example...i
don't know the real class and method names!):

class TestTomcat{
void StartTomcat(){
Tomcat server=new Tomcat(8080);
server.start();
}
}

Thanks for any help.
-Joseph.



Session in Tomcat

2001-05-30 Thread Pablo Trujillo

Hello friends,
I need information about how Tomcat assign the numbers of ID for each
session.
I also need to know where is  the Cookie JSessionID stored.
I wait you can help me and  thank you
Pablo




Apache - Tomcat Examples not working

2001-05-30 Thread pjcrump

I'm running Tomcat 3.2.1  Apache on Linux and I'm having a problem w/ the examples.
They work if I use http://localhost:8080/examples/servlet/HelloWorldExample
however if I use http://localhost/examples/servlet/HelloWorldExample
I get a 404 (the same w/ the sample JSP pages as well).

Since I am attempting to have Apache serve Static content and Tomcat serve JSP's I 
have already installed mod_jk and am using the stock mod_jk.conf-auto include in my 
httpd.conf file..

Is there something I'm missing?

Thanks in advance.
-Phillip



RE: Session in Tomcat

2001-05-30 Thread Randy Layman


About the session numbers:  it uses SecureRandom to generate the
numbers.  More information can be found in Tomcat's source code for
org.apache.tomcat.session.StandardManager, the method getNewSession seems to
be particularly relevant.

About storage of JSessionID: the clients software is free to store
it wherever it wants.  Most web browsers persist this to the disk as soon as
they receive the cookie, but some delay and only persist when they want to.

Randy

 -Original Message-
 From: Pablo Trujillo [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 12:08 PM
 To: [EMAIL PROTECTED]
 Subject: Session in Tomcat
 
 
 Hello friends,
 I need information about how Tomcat assign the numbers of ID for each
 session.
 I also need to know where is  the Cookie JSessionID stored.
 I wait you can help me and  thank you
 Pablo
 



Tomcat

2001-05-30 Thread Carlos Gallardo C.



Hi !!


I have a problem with Tomcat / IIS 4.0
The arrow in filters ISAPI IIS console is down and have red 
color.
What could do I?
Iam not understand.


Check the jakarta filter you added and make sure its status shows a green 
upward-pointing arrow. If not, check the following: 

  Check the worker_file setting for typos, name and data. 
  Check the worker_mount_file setting typos, name and data. 

Thanks you

Saludos CordialesCarlos Gallardo C.EFT Banca 
S.A.[EMAIL PROTECTED]Fono 
Trabajo :6731392 - 6731393 - Anexo 42Santiago de 
Chile


Re: setAttribute behaviour when passing null as attribute

2001-05-30 Thread anil

I do not think this is posiible.  Session attributes are stored in a hashtable.
You cannot save null value to hashtable.

If you try session.setAttribute(myValue,null);
you will get null pointer exception with error 500.

I might have missed some thing, but take a look at  package
org.apache.tomcat.session.

anil

Thomas Krebs wrote:

 Hope, this wasn't discussed already (I browsed through the list but didn't
 find it), if it was I apologize.

 What is the expected result of calling setAttribute on an instance of
 ServletRequest, if the attribute to be passed is null (i.e.
 request.setAttribute(someName, null))?
 I would expect that for the given name null is stored which would ensure
 that a getAttribute call afterwards would return null as well.
 However, the Tomcat implementation will leave the value unchanged:

 --- code snippet from RequestImpl ---
 Class org.apache.tomcat.core.RequestImpl.java line 614

 public void setAttribute(String name, Object value) {
  if(name!=null  value!=null)
  attributes.put(name, value);
 }

 --- end code snippet

 Since other servlet container behave differently at least JRun does, namely
  setting it to null, I wonder whether this is a bug in Tomcat?
 I would argue that the expected behaviour is that getAttribute(name)
 returns null, if  a value for name was never set. In all other cases,
 it should return exactly the value set with the last setAttribute call.

 Any opinions on that?

 best regards,
 thomas




Re:Problem sun.misc solved - but why is authorization=null???? Please help (urgent!)

2001-05-30 Thread Twylite

Hi

I solved the problem with sun.misc (was an error in directive). But now I
had a strange error. When performing form login via JDBC  and trying to
read out AUTHORIZATION Header the string is NULL. Why? Does form login not
write Authorization in HTTP Header?

Form-based logon uses a POST method to communicate logon information, not the 
Authorization header.  That 
header is only used if you are using Basic logon.  Things will remain that way until 
browsers and servers define 
other methods of logon.

Twylite




Tomcat in a Hosted Environment

2001-05-30 Thread Jeff Trent



I am in the process of making a proposal to my web 
hosting service to include Tomcat (basically so I can use Struts). They 
are an NT shop but are ammenable to suggestions. Here are basically the 
requirements:

The directory structure of accounts look something 
like this:
 \home
  
\user-1
  
 \domain-1
  
 \domain-2
  
 ...
  
 \domain-x
  
\user-2
  
 \domain-1
  
 \domain-2
  
...
  
\user-n

(1) I would like to see the service allow me to 
deploy a webapp WAR file to my user account under one of my 
domains.

(2) Once I deploy, I'd like to have the changes 
immediately take affect on my site without affecting other user 
accounts.

(3) My context and class path should only pertain 
to me.

I believe accomplishing (1)  (3) are 
trivial. However, I have limited ideas on how (2) can be 
accomplished. The only solution I can think of is writing some simple 
scripts that performs JNI or JMQ (or some other messaging scheme) that talks to 
an administrative unit that does the work of starting/stopping my instance of 
tomcat. Any thoughts on this?

Also, I'd to keep the system as autonomous as 
possible so that as new user accounts and user account domains come into the 
picture, no other configuration files need updating. 

So tell me, is this all a pipe dream or do people 
think this can be accomplished?





RE: Tomcat

2001-05-30 Thread Randy Layman


First, I would suggest that you only use plain text email when
responding to the list - many people here don't have HTML enabled mail
readers and you don't want to limit the audience of your question.

Second, check all of the registry settings that you made.  If you
are getting the red arrow down there are two reasons:
1.  You made a mistake in the registry.  It doesn't matter what you
think you did, you made a mistake in the registry (probably 99% of the red
arrows are from this)
2.  The dll file is corrupt.  Try downloading the isapi_redirect.zip
file instead of the isapi_redirect.dll file (available in the same directory
as the other) directly and expanding the .zip.

If this doesn't help you, check #1 again.

Randy

-Original Message-
From: Carlos Gallardo C. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 12:03 PM
To: [EMAIL PROTECTED]
Subject: Tomcat


Hi !!
 

I have a problem with Tomcat / IIS 4.0
The arrow in filters ISAPI IIS console is down and have red color.
What could do I?

I am not understand.
 
 
Check the jakarta filter you added and make sure its status shows a green
upward-pointing arrow. If not, check the following: 
Check the worker_file setting for typos, name and data. 
Check the worker_mount_file setting typos, name and data. 
Thanks you
 
Saludos Cordiales
Carlos Gallardo C.
EFT Banca S.A.
[EMAIL PROTECTED]
Fono Trabajo :6731392 - 6731393 - Anexo 42
Santiago de Chile



Re: Apache - Tomcat Examples not working

2001-05-30 Thread steve gold

Phillip,

Tomcat uses port 8080 as a default; 8080 is not,
however the default http port.
So http://localhost/examples/servlet/HelloWorldExample
is actually equivalent to 
http://localhost:8000/examples/servlet/HelloWorldExample
(8000 is the default port for http used by most
browsers).  Tomcat's listening on 8080, so it doesn't
respond.

you need to edit the server.xml file to change the
port number that Tomcat listens on.  See the faq at 
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/12/topic_id/42/question_id/389
for details on how to do it.

--steve


--- [EMAIL PROTECTED] wrote:
 I'm running Tomcat 3.2.1  Apache on Linux and I'm
 having a problem w/ the examples.
 They work if I use

http://localhost:8080/examples/servlet/HelloWorldExample
 however if I use
 http://localhost/examples/servlet/HelloWorldExample
 I get a 404 (the same w/ the sample JSP pages as
 well).
 
 Since I am attempting to have Apache serve Static
 content and Tomcat serve JSP's I have already
 installed mod_jk and am using the stock
 mod_jk.conf-auto include in my httpd.conf file..
 
 Is there something I'm missing?
 
 Thanks in advance.
 -Phillip



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



Session In TOmcat

2001-05-30 Thread Pablo Trujillo

Hello friends,
I need information about how Tomcat assign the numbers of ID for each
session.
I also need to know where is  the Cookie JSessionID stored.
I wait you can help me and  thank you
Pablo
P.D.:This is the second time that I send the message, but I don't receive
it. Excuse me for the nuisances




Not found request(404) /jakarta/isapi_redirect.dll

2001-05-30 Thread paulanastas

This whole thing was working on Friday.  When I rebooted the system on Tuesday I got 
the
Not Found (404) Original request /jakarta/isapi_redirect.dll
Not found request /jakarta/isapi_redirect.dll

It works in standalone mode and I rechecked the various settings numerous times.

Any other ideas?

Thanks in advance

__
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/



Re: Starting tomcat from a Java Class

2001-05-30 Thread Chris Janicki

This works for me:

String[] args = { -start };
org.apache.tomcat.startup.Tomcat.main(args);



 Original Message 

On 5/30/01, 11:57:59 AM, Joseph Variamparambil 
[EMAIL PROTECTED] wrote regarding Starting tomcat 
from a Java Class:


 hello,
 how do i make an instance of the tomcat server and run its ?start?
 method? Is it possible to do something like this...(just an example...i
 don't know the real class and method names!):

 class TestTomcat{
   void StartTomcat(){
   Tomcat server=new Tomcat(8080);
   server.start();
   }
 }

 Thanks for any help.
 -Joseph.



RE: format of uriworkermap.properties file?

2001-05-30 Thread Donald Ball

On Wed, 30 May 2001, Ignacio J. Ortega wrote:

 AFAIK, you need to declare a foo context too.. because if you does not
 have a foo context the redirection should work but Tomcat does not
 find /foo/b.xml at all..

actually, the only context that tomcat is serving is the ROOT context. my
.xml files live all over the web tree.

- donald




RE: server.xml DTD

2001-05-30 Thread WEST, Peter

server.xml does not use a DTD on Tomcat 3.2.1 
I would guess that you could use web.dtd or make a few slight changes to a
copy of it, since
server.xml is just a superset of web.xml info.

Pete

-Original Message-
From: Paulo J S Pereira [mailto:[EMAIL PROTECTED]]
Sent: 29 May 2001 15:41
To: [EMAIL PROTECTED]
Subject: server.xml DTD


Hi;

I am looking for the server.xml DTD ... (if one exists) ... can anyone help?

TIA!

Paulo J S Pereira, Java/Web Developer
Sentricity Inc.,
A Division of Sentex Communications Corp.,
240-E Holiday Inn Dr., Cambridge, Ontario
N3C3X4 Canada
1-519-651-3400 x208



___
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema. 
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema UK
Helpdesk by telephone on +44 (0) 121 627 5600.
___



What is the value of auto-assigning beans?

2001-05-30 Thread greyson . smith

This question may be asked out of ignorance, but it seems to me that using
the tag:

jsp:useBean id=MyBean scope=session class=Test.MyBean /
jsp:setProperty name=MyBean property=* /

to assign values from form fields to the bean is of limited use.

Let's assume that there are 2 text fields, A and B on Jsp1.jsp, with B
being required.  I have some code that checks to make sure B is populated,
if it's not, the browser returns to Jsp1.jsp.

The problem I run into is that I can populate A with a value, submit the
form, get returned to Jsp1.jsp, delete A and populate B, submit the form,
and continue.  I how have values for both A and B, even though A was blank.

I suspect that I'm not the first person to ask this question, is there an
obvious solution that I missed, if not, what do other people do to get
around this problem; do all of the assignements by hand?

Thanks.


--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.





RE: JSP and Tomcat containers

2001-05-30 Thread WEST, Peter

1. dunno
2. dunno
but remember that JSPs are compiled into servlets and cached so they all end
up as servlets eventually.
 
3. yes change conf/server.xml
There are 3 ports listed. One is for tomcat receiving HTTP requests, one is
for HTTPS requests (SSL) and one is for communicating with a web server like
apache and for shutdown/startup of tomcat. Pick what ports you want.
4. Try http://java.sun.com/products/servlet/2.2/javadoc/index.html
http://java.sun.com/products/servlet/2.2/javadoc/index.html  it has
HttpJspPage, couldnt see base.
5. dunno, I use servlets that put beans in session and JSPs read from them
but I dont need request params in JSPs

-Original Message-
From: Martin Kock [mailto:[EMAIL PROTECTED]]
Sent: 29 May 2001 16:00
To: [EMAIL PROTECTED]
Subject: JSP and Tomcat containers




Hi!
 
I'm doing an assignment on Java Server Pages, and I have a couple of
questions about the Tomcat webserver:
 
1. Which container (engine) will be running with Tomcat? The JSP container,
the servlet container, or both?
2. I'm only using JSP-documents, but does the JSP container handle the same
stuff that the servlet container handled before 'the era' of JSP?
3. Tomcat listens on port 8080 - can I get it to listen on port 80, and how?
4. Where can I get the API documentation for class HttpJspBase? I've
searched Suns homepage with no luck.
5. How do I (in my JSP page) read data sent with HTTP POST? I can't use
request.getParameter(java.lang.String);
 
Thanks in advance,
Martin Kock
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



___
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema. 
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema UK
Helpdesk by telephone on +44 (0) 121 627 5600.
___



  1   2   >