RE: JK2 URI not correctly mapped for multiple virtual hosts in httpd.conf

2002-10-15 Thread gabriele . garuglieri

Hi Mladen,
it's a pain having to express concepts in a language that is not mine.
Perhaps that's the reason why you don't understand me.
(and i  hope nothing i say can sound offensive to anyone, it's not my
intention. Believe me i'm trying to cooperate, not to put shame on anybody)

Please try to read further than the first line. Tomcat is not supposed to
resolve anything.
There is Apache in front of it that has to perform that task.

The problem is that when configuring jk2 with httpd.conf the way it's shown
in the doc i sent, NOT A SINGLE PACKET IS EVER ROUTED TO THE TOMCAT
INSTANCES THAT ARE MAPPED FIRST IN HTTPD.CONF, ONLY THE LAST ONE RECEIVES
PACKETS.
Pls, do not believe me, try to setup a similar conf and run an ip trace.

I have right now, more or less ten tomcat instances, all of them happily
working with default server.xml and host name=localhost, and different
virtual host names within apache httpd.conf, with mod_jk. The only things i
changed were port numbers.

If what you say is true, then why ivdev01 tomcat instance works?
And why simply exchanging place of the virtual host definitions, within
httpd.conf, ivdev01 STOPS working and iv00 STARTS working?
And why if i map uri's into workers2.properties all the instances works?
And all of this without changing a bit of tomcat server.xml?

Pls, have a look into jkstatus.noworkers2.htm output. When using the order
shown into httpd.conf.noworkers2 file, there is the mapping for
ivdev01/*.jsp
ivdev01/servlet
BUT NO MAPPING FOR
iv00/*.jsp
iv00/servlets
because iv00 virtual host cames FIRST in READ ORDER than ivdev01 host.

If i reverse the order of virtual host definitons, ie ivdev01 FIRST then
iv00, the reverse happens. I will have mapping for
iv00/*.jsp
iv00/servlets
BUT NO MAPPING FOR
ivdev01/*.jsp
ivdev01/servlet
because now ivdev01 host cames FIRST in READ ORDER than iv00 host.

This problem only happens when i try to map the SAME URI PATHS do DIFFERENT
virtual hosts within the SAME httpd.conf.
If i map DIFFERENT URI PATHS to DIFFERENT virtual hosts all works.

Regards,  Gabriele.



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




Re: How can I change default 8080 port to 80

2002-10-15 Thread Satish Kumar

Thanks Kwok,

That worked.  I was wondering why it did not interfere with Apache because
Apache is also listening on port 80?

Thanks again,
Satish
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 14, 2002 11:11 PM
Subject: Re: How can I change default 8080 port to 80


 In the server.xml file, modify the entry

 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/

 Change the attribute port=8080 to port=80.
 Restart tomcat. Should work fine.


 Satish Kumar wrote:

 Greetings,
 
 I have installed Tomcat 4.1.12 and Apache 2.  Tomcat is listening on port
8080 whereas apache is listening on port 80.  What do I need to do so that
tomcat listens to default http port 80?
 
 Thanks,
 Satish (A Beginner)
 
 
 



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



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




AW: Tomcat and PHP-servlet?

2002-10-15 Thread Ralph Einfeldt

If a native library causes a segmentation fault, the 
complete vm will crash.

So with each native library that you are using you introduce
possible stability degrations.

The creation of segmentation faults is not the only
risk. With each library (native or not) you use, you 
increase the risk to crash tomcat. The libraries might 
introduce application level errors that might stop tomcat 
from working, like memory leaks, file handle leaks, 
deadlocks, ...).

If you can live with this risk depends on your requirements.
In the end you always will have to test if your application
is stable enough with this system.

 -Ursprüngliche Nachricht-
 Von: Sven Köhler [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 14. Oktober 2002 17:38
 An: [EMAIL PROTECTED]
 Betreff: Tomcat and PHP-servlet?
 
 
 hi,
 
 in the PHP-docs, a servlet is mentioned, that makes .php 
 pages runnable 
 again (somehow by loading PHP into the JavaVM).
 
 How stable can that be?
 I worry aout the following:
PHP could internally produce a segmentation-fault. Does that also 
 crash the process(thread?) of the JavaVM? If yes, Tomcat would become 
 unstabe.
 
 Is anybody out there, that runs this PHP-servlet ???
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

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




Help needed in writing to a client m/c as .csv file

2002-10-15 Thread Santosh Kulkarni

Hi,
I have this piece of code in my JSP which writes to a
client machine as a .csv file.

response.setContentType(text/x-csv;
charset=ISO-8859-1);
response.setHeader(Content-Disposition, inline;
filename=\ + fn + \);
out.print(Got this written on the client machine.);

The problem I have in this is, it starts writing in
the cvs file from row number 38 onwards and not from
row 1 itself. How do I get it write from row 1 in the
csv file. Any pointers to this are highly appreciated.

Sorry for posting this on tomcat users group as it is
irrelevant in this place.
TIA
~Santosh

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: Should one process continue to grow on Linux???

2002-10-15 Thread JensStutte


For my experience, the Sun jdk 1.3.x on linux tend to grow infinitely with
tomcat. Try out the IBM JDK 1.3.1 or the newest Sun 1.4.1 (for servers i
use the IBM, it's seems more reliable and stable in its memory
consumption).

Regards,

Jens Stutte



   
  
Brandon   
  
CruzTo: Tomcat Users List   
  
bcruz@norvax[EMAIL PROTECTED]  
  
.comcc:   
  
 Subject: Should one process continue to 
grow on 
24/09/2002   Linux???  
  
01.25  
  
Please 
  
respond to 
  
Tomcat Users  
  
List  
  
   
  
   
  




We are running tomcat 3.2.4 connected to Apache on Linux RedHat 7.1.  We
are
using jdk1.3.1_01.  Recently, we have noticed that one process continues to
grow in the memory consumption and cpu usage.  If we do not restart tomcat,
the time this process shows to be running keeps getting bigger.  This is
not
the parent process created on startup, it is one of the child processes.
Is
this normal, or do we need to start checking our code?  Below is a sample
output of the process, showing that is has been running for 27:49 minutes.



root 17825  7.8 15.5 818396 77144 ?  S13:10  27:49
/usr/java/jdk1.3.1_01/bin/i386/native_threads/java -Dtomcat.home=/usr


Brandon


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






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




AW: Help needed in writing to a client m/c as .csv file

2002-10-15 Thread Ralph Einfeldt

Make shure that you don't produce unintended newlines.

Example:

%@ page import=a.b.c.1 %
%@ page import=a.b.c.2 %
%! int oMax = 10;  %
% 
   for (int i=0; i  10; i++) {
%
%= i % 
%
   }
%

This will produce several newlines before your output.
Because every newline in your jsp file that is ouside of 
a jsp tag/scriptlet/expression will be reproduced in the 
output. So you have to write something like this:

%@ page import=a.b.c.1 
%%@ page import=a.b.c.2 
%%! int oMax = 10; 
%% 
   for (int i=0; i  oMax ; i++) {
%%= i %%
   }
%

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Santosh Kulkarni [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 15. Oktober 2002 09:14
 An: [EMAIL PROTECTED]
 Betreff: Help needed in writing to a client m/c as .csv file
 
 response.setContentType(text/x-csv;
 charset=ISO-8859-1);
 response.setHeader(Content-Disposition, inline;
 filename=\ + fn + \);
 out.print(Got this written on the client machine.);
 
 The problem I have in this is, it starts writing in
 the cvs file from row number 38 onwards and not from
 row 1 itself. How do I get it write from row 1 in the
 csv file. Any pointers to this are highly appreciated.
 

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




RE:Help needed in writing to a client m/c as .csv file

2002-10-15 Thread KEVIN.THOMAS.8893930.SWAN

snooker wales best  fuck   off

wales ar best football

On Tue, 15 Oct 2002 00:14:04 -0700 (PDT) Santosh Kulkarni [EMAIL PROTECTED] 
wrote:

---BeginMessage---

Hi,
I have this piece of code in my JSP which writes to a
client machine as a .csv file.

response.setContentType(text/x-csv;
charset=ISO-8859-1);
response.setHeader(Content-Disposition, inline;
filename=\ + fn + \);
out.print(Got this written on the client machine.);

The problem I have in this is, it starts writing in
the cvs file from row number 38 onwards and not from
row 1 itself. How do I get it write from row 1 in the
csv file. Any pointers to this are highly appreciated.

Sorry for posting this on tomcat users group as it is
irrelevant in this place.
TIA
~Santosh

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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


---End Message---

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


RE: JNDI Datasource is *still* null

2002-10-15 Thread James hughes

Made the changes, still no DataSource.

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 19:42
To: Tomcat Users List
Subject: Re: JNDI Datasource is null


Hi,

Do you really need the CharacterSetMappers in your context defination? 
Try using the vanila configuration for testing.

Try moving up the DriverClassName element just about the url.

Raj Saini

James hughes wrote:
 Surely there must be somebody out there who has connection pooling working
 with DBCP and Oracle.
 
 Please! :)
 
 -Original Message-
 From: James hughes [mailto:[EMAIL PROTECTED]]
 Sent: 14 October 2002 14:55
 To: Tomcat Users List
 Subject: RE: JNDI Datasource is null
 
 
 I changed the values, but still the Datasource is null :(
 
 I find it strange that the JNDI name exists with no object - that is, I
dont
 get a NameNotFoundException.
 
 
 -Original Message-
 From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
 Sent: 14 October 2002 14:53
 To: Tomcat Users List
 Subject: Re: JNDI Datasource is null
 
 
 
 2 things are possible culprits
 
 The syntax for JNDI datasources changed slightly after moving from Tyrex
as 
 the default provider to DBCP.  Specifically, user should be 
 username.  The other thing is the Resource scope=Sharable.  That 
 might be right, but I've never used it.  I use Container for that value.
 
 Jake
 
 At 02:07 PM 10/14/2002 +0100, you wrote:
 
Hi there,

I am using Oracle 9i, DBCP and Tomcat 4.1.12.  I am trying to configure a
JNDI datasource that implements connection pooling.  I have been following
the instructions in the JNDI how to, specifically the section for Oracle.

My problem is that the JNDI Datasource is null when I try to get it from
 
 the
 
context.  I cant see any exceptions being thrown anywhere.

Can anyone tell me what I have missed?

My server.xml is as follows (this entry is in the HOST tag, after the
/examples context):

Context className=org.apache.catalina.core.StandardContext
 cachingAllowed=true

 
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 
 cookies=true
 crossContext=true
 debug=5 docBase=TestDB

mapperClass=org.apache.catalina.core.StandardContextMapper
 path=/TestDB privileged=false
 reloadable=true swallowOutput=false
 useNaming=true
 wrapperClass=org.apache.catalina.core.StandardWrapper
  Logger className=org.apache.catalina.logger.FileLogger
  debug=0 directory=logs
  prefix=localhost_DBTest_log.
  suffix=.txt timestamp=true verbosity=1/
  Resource auth=container name=jdbc/myoracle
 
 scope=Shareable
 
type=java.sql.DataSource/
  ResourceParams name=jdbc/myoracle
parameter
  namefactory/name

 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 
/parameter
parameter
  nameurl/name
  valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value
/parameter
parameter
  namepassword/name
  valuetiger/value
/parameter
parameter
  namemaxActive/name
  value20/value
/parameter
parameter
  namemaxWait/name
  value10/value
/parameter
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameuser/name
  valuescott/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
  /ResourceParams
/Context


And web.xml is as follows:

  resource-ref
descriptionOracle Datasource example/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref



I have a class as follows:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest
{
  String foo = Not Connected;
  int bar = -1;

public void init()
{
try
{
Context ctx = new InitialContext();
if(ctx == null )
{
throw new Exception(Boom - No Context);
}

Context envContext  =
(Context)ctx.lookup(java:/comp/env);
DataSource ds =
(DataSource)envContext.lookup(jdbc/myoracle);

if (ds != null)
{
Connection conn = ds.getConnection();

if(conn != null)
{
foo = Got Connection
+conn.toString();
  

nobody processes

2002-10-15 Thread Skorupski Pawe ,(PZUZ)

Hi,

my problem is that when I run Tomcat with some application, then after some
time(using applcations) I get nobody processes which doesn't want to
disappear (even after restarting Tomcat).

I can see them using command top. I can not kill them even with option -9.
They use the major part of memory and processor time.

Please help if you have any idea.

Best wishes

Pawel 




Re: nobody processes

2002-10-15 Thread Nikola Milutinovic

Skorupski Pawe ,(PZUZ) wrote:
 Hi,
 
 my problem is that when I run Tomcat with some application, then after some
 time(using applcations) I get nobody processes which doesn't want to
 disappear (even after restarting Tomcat).
 
 I can see them using command top. I can not kill them even with option -9.
 They use the major part of memory and processor time.

Try to find out who created that process:

ps -A -o pid,ppid,user,command

Nix.



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




WHO knows about it ???

2002-10-15 Thread Jean-Luc BEAUDET

   Hi everybody !

Well i'm actually using Apache 1.3.26 with Tomcat 4.0.2 via the WARP
1.0.2 Final Release for monthes now and all is runnin' good. - i test it
on a prod server -

I saw smth really amazing in the mailing list about mod_j2k and
mod_webapp saying that in the last rel of Tomcat mod_webapp is not to be
considered any more !

Does it makes sens for someone ???

I'd like so much to get more informations about it since i use to work
with mod_webapp for quite a long..

As i'm always interrested in new Releases of Apache/Tomcat i would
appreciate someone to tell the truth about all that stuff.

Best regards.

Jean-Luc BEAUDET - KODAK I.N.R.D -
:O)



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




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




Re: Loading a dll at startup...

2002-10-15 Thread Jhair Tocancipa Triana

Hi,

  Hi, I use Tomcat 4.1.12, JDK 1.3.1, Windows NT4 SP6.  My webapp
  uses a Windows custom dll which is called by a java class
  (native method).  It worked with Tomcat 4.0.5 with modification
  of setclasspath.bat to include this dll in Tomcat's classpath
  and path, however it doesn't work anymore with Tomcat 4.1.12 :
  I have a blank string returned by this call.

You should  check the java.library.path property when  your java class
runs.

Check it with a:

,
| System.out.println( System.getProperty( java.library.path ) );
`

There is where your class looks for the DLL.

Regards,

--
--Jhair


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




Tomcat SSL IBM JSSE

2002-10-15 Thread Panos Skondras

Hi all
I am trying to run tomcat 4.0.4 on aix 4.3.3 on ssl mode
I don't have the ibmjsse files because i can't find them anywhere is
this a problem 
(Anyone one knows where is it ?)

I am using sunn jsse i have put them in java_home/jre/lib/ext dir and
also
point the JSSE_HOME of tomcat to that direction.
I have created the server.keystore and uncomment the SSL connector in
server.xml
poinitng the keystoreFile to server.keystore and keystorePass to the
password i have put in
server.keystore.
While in plain http i don't have a problem in https i get page not
available no errors anywhere
Btw in my pc runs smoothly.
Another thing is that when  i try to access the page with netscape i get
an error saying
Netscape and server can not communicate because they don't have common
encryption algorithms.

Any ideas...



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


Re: JNDI Datasource is *still* null

2002-10-15 Thread Raj Saini

Please post the Context defination part of your server.xml. Can you also 
post the stacktrace?

BTW, do you have the latest oracle driver? Did you rename your 
classes.zip to classes.jar?

Raj
James hughes wrote:
 Made the changes, still no DataSource.
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]]
 Sent: 14 October 2002 19:42
 To: Tomcat Users List
 Subject: Re: JNDI Datasource is null
 
 
 Hi,
 
 Do you really need the CharacterSetMappers in your context defination? 
 Try using the vanila configuration for testing.
 
 Try moving up the DriverClassName element just about the url.
 
 Raj Saini
 
 James hughes wrote:
 
Surely there must be somebody out there who has connection pooling working
with DBCP and Oracle.

Please! :)

-Original Message-
From: James hughes [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 14:55
To: Tomcat Users List
Subject: RE: JNDI Datasource is null


I changed the values, but still the Datasource is null :(

I find it strange that the JNDI name exists with no object - that is, I
 
 dont
 
get a NameNotFoundException.


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 14:53
To: Tomcat Users List
Subject: Re: JNDI Datasource is null



2 things are possible culprits

The syntax for JNDI datasources changed slightly after moving from Tyrex
 
 as 
 
the default provider to DBCP.  Specifically, user should be 
username.  The other thing is the Resource scope=Sharable.  That 
might be right, but I've never used it.  I use Container for that value.

Jake

At 02:07 PM 10/14/2002 +0100, you wrote:


Hi there,

I am using Oracle 9i, DBCP and Tomcat 4.1.12.  I am trying to configure a
JNDI datasource that implements connection pooling.  I have been following
the instructions in the JNDI how to, specifically the section for Oracle.

My problem is that the JNDI Datasource is null when I try to get it from

the


context.  I cant see any exceptions being thrown anywhere.

Can anyone tell me what I have missed?

My server.xml is as follows (this entry is in the HOST tag, after the
/examples context):

   Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true


charsetMapperClass=org.apache.catalina.util.CharsetMapper


cookies=true
crossContext=true
debug=5 docBase=TestDB

mapperClass=org.apache.catalina.core.StandardContextMapper
path=/TestDB privileged=false
reloadable=true swallowOutput=false
useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
 Logger className=org.apache.catalina.logger.FileLogger
 debug=0 directory=logs
 prefix=localhost_DBTest_log.
 suffix=.txt timestamp=true verbosity=1/
 Resource auth=container name=jdbc/myoracle

scope=Shareable


type=java.sql.DataSource/
 ResourceParams name=jdbc/myoracle
   parameter
 namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

   /parameter
   parameter
 nameurl/name
 valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value
   /parameter
   parameter
 namepassword/name
 valuetiger/value
   /parameter
   parameter
 namemaxActive/name
 value20/value
   /parameter
   parameter
 namemaxWait/name
 value10/value
   /parameter
   parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
   /parameter
   parameter
 nameuser/name
 valuescott/value
   /parameter
   parameter
 namemaxIdle/name
 value10/value
   /parameter
 /ResourceParams
   /Context


And web.xml is as follows:

 resource-ref
   descriptionOracle Datasource example/description
   res-ref-namejdbc/myoracle/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref



I have a class as follows:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest
{
 String foo = Not Connected;
 int bar = -1;

   public void init()
   {
   try
   {
   Context ctx = new InitialContext();
   if(ctx == null )
   {
   throw new Exception(Boom - No Context);
   }

   Context envContext  =
(Context)ctx.lookup(java:/comp/env);
   DataSource ds =
(DataSource)envContext.lookup(jdbc/myoracle);

   if (ds != null)
   {
   Connection conn = ds.getConnection();

   if(conn != 

RE: JNDI Datasource is *still* null

2002-10-15 Thread James hughes

Ok, now I feel really silly.

It has been pointed out to me that I have java.sql.DataSource as opposed
to javax.sql.DataSource in my Resource definition in server.xml

It all works now!  Silly mistake, although I wish there had been a stack
trace somewhere to tell me this.

Thanks for your responses.
J

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 15 October 2002 10:23
To: Tomcat Users List
Subject: Re: JNDI Datasource is *still* null


Please post the Context defination part of your server.xml. Can you also 
post the stacktrace?

BTW, do you have the latest oracle driver? Did you rename your 
classes.zip to classes.jar?

Raj
James hughes wrote:
 Made the changes, still no DataSource.
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]]
 Sent: 14 October 2002 19:42
 To: Tomcat Users List
 Subject: Re: JNDI Datasource is null
 
 
 Hi,
 
 Do you really need the CharacterSetMappers in your context defination? 
 Try using the vanila configuration for testing.
 
 Try moving up the DriverClassName element just about the url.
 
 Raj Saini
 
 James hughes wrote:
 
Surely there must be somebody out there who has connection pooling working
with DBCP and Oracle.

Please! :)

-Original Message-
From: James hughes [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 14:55
To: Tomcat Users List
Subject: RE: JNDI Datasource is null


I changed the values, but still the Datasource is null :(

I find it strange that the JNDI name exists with no object - that is, I
 
 dont
 
get a NameNotFoundException.


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 14:53
To: Tomcat Users List
Subject: Re: JNDI Datasource is null



2 things are possible culprits

The syntax for JNDI datasources changed slightly after moving from Tyrex
 
 as 
 
the default provider to DBCP.  Specifically, user should be 
username.  The other thing is the Resource scope=Sharable.  That 
might be right, but I've never used it.  I use Container for that value.

Jake

At 02:07 PM 10/14/2002 +0100, you wrote:


Hi there,

I am using Oracle 9i, DBCP and Tomcat 4.1.12.  I am trying to configure a
JNDI datasource that implements connection pooling.  I have been
following
the instructions in the JNDI how to, specifically the section for Oracle.

My problem is that the JNDI Datasource is null when I try to get it from

the


context.  I cant see any exceptions being thrown anywhere.

Can anyone tell me what I have missed?

My server.xml is as follows (this entry is in the HOST tag, after the
/examples context):

   Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true


charsetMapperClass=org.apache.catalina.util.CharsetMapper


cookies=true
crossContext=true
debug=5 docBase=TestDB

mapperClass=org.apache.catalina.core.StandardContextMapper
path=/TestDB privileged=false
reloadable=true swallowOutput=false
useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
 Logger className=org.apache.catalina.logger.FileLogger
 debug=0 directory=logs
 prefix=localhost_DBTest_log.
 suffix=.txt timestamp=true verbosity=1/
 Resource auth=container name=jdbc/myoracle

scope=Shareable


type=java.sql.DataSource/
 ResourceParams name=jdbc/myoracle
   parameter
 namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

   /parameter
   parameter
 nameurl/name
 valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value
   /parameter
   parameter
 namepassword/name
 valuetiger/value
   /parameter
   parameter
 namemaxActive/name
 value20/value
   /parameter
   parameter
 namemaxWait/name
 value10/value
   /parameter
   parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
   /parameter
   parameter
 nameuser/name
 valuescott/value
   /parameter
   parameter
 namemaxIdle/name
 value10/value
   /parameter
 /ResourceParams
   /Context


And web.xml is as follows:

 resource-ref
   descriptionOracle Datasource example/description
   res-ref-namejdbc/myoracle/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref



I have a class as follows:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest
{
 String foo = Not Connected;
 int bar = -1;

   public void init()
   {
   try
   {
   Context ctx = new InitialContext();
   if(ctx == null 

RE: nobody processes

2002-10-15 Thread Skorupski Pawe ,(PZUZ)

Thanks for advice,

I find out and processes with 'user nobody' are created by process with
command inetd.
I don't know if the processes with command httpd can be started by process
'inetd' if service http doesn't exist in inetd.conf. 

Pawel

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 10:25 AM
To: Tomcat Users List
Subject: Re: nobody processes


Skorupski Pawe ,(PZUZ) wrote:
 Hi,
 
 my problem is that when I run Tomcat with some application, then after
some
 time(using applcations) I get nobody processes which doesn't want to
 disappear (even after restarting Tomcat).
 
 I can see them using command top. I can not kill them even with option -9.
 They use the major part of memory and processor time.

Try to find out who created that process:

ps -A -o pid,ppid,user,command

Nix.



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



What does tomcat with character encoding?

2002-10-15 Thread Ryszard Lach

Hi!

Problem of non-US characters in Tomcat is returning again and again...

My setup is:

1. Tomcat 4.0.5, SUN JDK 1.3.1, JSP page with 
%@ page contentType=text/html;CHARSET=ISO-8859-2 %

2. 
String variable 's' with some LATIN2 characters in JSP code

3. 
out.printlin(s) displays correctly all characters in a browser

4. 
PrintWriter pw = new PrintWriter (new FileWriter (/var/tmp/syf.txt));
pw.println (s);
pw.close ();

writes string 's' to /var/tmp/syf.txt with non-US characters prepended
with an '' character.

All above behaviour does not depend on 'LANG' variable visible by tomcat
(during it's start) and -Djavax.servlet.request.encoding=ISO-8859-2 used
in CATALINA_OPTS (i.e. does not depend whether it is set or not). 

Can anyone explain what is going on?

TIA

Richard.

-- 
First they ignore you. Then they laugh at you. Then they
fight you. Then you win. - Mohandas Gandhi.

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




Static class not working under multiple webapps deployment

2002-10-15 Thread Donie Kelly

Hi
I have written a static class which is populated with data on startup of my
servlets and is suppose to be use in the context of the request. However,
the static class seems to return the same information for all webapps and
holds the configuration of the last servlet run on startup. Here is the
code... As you can see I want to use something that looks like the
System.Properties but System.Properties is gloabal so it's no use to me. I
want to be able to set the webapp name here so it's used during processing
but at the moment it's only returning the last name configured for the last
webapp.

Any ideas why this is happening. What have I done wrong to make this class
appear global?
Thanks
Donie


import org.apache.log4j.Category;
import java.util.Hashtable;
import java.util.Properties;
import java.io.InputStream;

public class vMmsc
{
static Category log = Category.getInstance(vMmsc.class.getName());
public final static String version = $Revision:   1.3  $$Date:   10 Oct
2002 11:57:48  $;
public static String getVersion() { return version; }
private static Properties props=new Properties();

// Defeats instantiation
private vMmsc(){}

public static void load(InputStream is)
{
try
{
props.load(is);   
}
catch(Exception ex)
{
log.error(Problem loading property file:  + ex.getMessage());

}
}

public static void setProperty(String Name, String Value)
{
props.setProperty(Name, Value);
}

public static String getProperty(String Name)
{
String Value = props.getProperty(Name);
if(Value==null || Value.equalsIgnoreCase())
log.debug(The property value  + Name +  is not defined);
return Value;
}

public static String getProperty(String Name, String defaultValue)
{
String Value = props.getProperty(Name);
if(Value==null || Value.equalsIgnoreCase())
{
log.debug(The property value  + Name +  is returning it's
default value);
return defaultValue;
}
return Value;
}

public static Integer getInteger(String Name)
{
String Value = getProperty(Name);
if(Value==null || Value.equalsIgnoreCase())
log.debug(The property value  + Name +  is not defined);

return new Integer(Value);
}

public static Integer getInteger(String Name, int defaultValue)
{
String Value = getProperty(Name);
if(Value==null || Value.equalsIgnoreCase())
{
log.debug(The property value  + Name +  is returning it's
default value);
return new Integer(defaultValue);
}
return new Integer(Value);
}

// Return true if property is enabled/yes/true
public static boolean isEnabled(String Name)
{
String Value = getProperty(Name);

if(Value!=null)
if(Value.equalsIgnoreCase(yes) || 
Value.equalsIgnoreCase(true) || 
Value.equalsIgnoreCase(enabled) ||
Value.equalsIgnoreCase(1))
return true;
return false;
}
}

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




plz help!!! simple test http://localhost:8080 fails why????

2002-10-15 Thread S Alam

I have a JSP program running on tomcat webserver at home. This program works. At home 
the computer accesses the internet via a dialup modem. 

I am trying to run this program at another location. I have taken my hard disk and 
installed the hard disk at the other computer. The other location is networked. It is 
running DHCP IP addressing. When I run the program there it does not work 

Also when I run the tomcat test there i.e

http://localhost:8080

In the status bar I get 
Website found. Waiting for reply ... 
but after few minutes I get the error message below: 
why??? 
Please help 

From home I ran the program as 
http://localhost:8080/myJSPs/jsp/portal-project/preferences.jsp

this works perfectly.

At the other location I am trying the typing the same address in the address bar of 
IE6:

http://localhost:8080/myJSPs/jsp/portal-project/preferences.jsp

But it gives me the message in the status bar:
 
Website found. Waiting for reply ... 
but after few minutes I get the error message below: 



The page cannot be displayed 
The page you are looking for is currently unavailable. The Web site might be 
experiencing technical difficulties, or you may need to adjust your browser settings. 

 

Please try the following: 

Click the Refresh button, or try again later. 

If you typed the page address in the Address bar, make sure that it is spelled 
correctly. 

To check your connection settings, click the Tools menu, and then click Internet 
Options. On the Connections tab, click Settings. The settings should match those 
provided by your local area network (LAN) administrator or Internet service provider 
(ISP). 
If your Network Administrator has enabled it, Microsoft Windows can examine your 
network and automatically discover network connection settings. 
If you would like Windows to try and discover them, 
click Detect Network Settings 
Some sites require 128-bit connection security. Click the Help menu and then click 
About Internet Explorer to determine what strength security you have installed. 
If you are trying to reach a secure site, make sure your Security settings can support 
it. Click the Tools menu, and then click Internet Options. On the Advanced tab, scroll 
to the Security section and check settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0. 
Click the Back button to try another link. 



Cannot find server or DNS Error 
Internet Explorer

Please help why does this happen???




Include directive problem

2002-10-15 Thread Luise Massimo

Hi all,

i have a problem with Tomcat 4.1.12:

I'm using a JSP page that it use an include directive (%@ include 
file=...%) to include another JSP page.
The filename that i have specified is relative to the directory 
containing the first JSP page, but it is a symbolic link (i'm on a linux 
box).
When i access that JSP page, the JSP compiler throw a JasperException 
that say FileNotFound !
Before Tomcat 4.1.12 i was using 4.0.4 and the thing was ok.

What is it wrong on using symlink ?

Anyone can help me ?

Thanks in advance. Max



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




Re: WHO knows about it ???

2002-10-15 Thread Raj Saini

There are many reasons of using mode_jk over warp. I had serious problem 
with the warp when, I used it with Tomcat 4.0.3. One very eratic thing 
was the errors, exception I used to get rendomly.

Two other reasons are fault tolerance and load balancing. This is 
required for providing maximum uptime for the crtical applications. Warp 
does not provide load balancing and fault tolerance.

One more reason is warp is not developed activly any more. You have to 
stick with what you have now.

If you are getting good performace with warp there is no reason to 
switch to jk. You can stick with what you have now unless feel the need.

Raj

Load Balancing
Fault Tolerance

The
Jean-Luc BEAUDET wrote:
   Hi everybody !
 
 Well i'm actually using Apache 1.3.26 with Tomcat 4.0.2 via the WARP
 1.0.2 Final Release for monthes now and all is runnin' good. - i test it
 on a prod server -
 
 I saw smth really amazing in the mailing list about mod_j2k and
 mod_webapp saying that in the last rel of Tomcat mod_webapp is not to be
 considered any more !
 
 Does it makes sens for someone ???
 
 I'd like so much to get more informations about it since i use to work
 with mod_webapp for quite a long..
 
 As i'm always interrested in new Releases of Apache/Tomcat i would
 appreciate someone to tell the truth about all that stuff.
 
 Best regards.
 
 Jean-Luc BEAUDET - KODAK I.N.R.D -
 :O)
 
 
 
 -- 
 To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



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




Re: plz help!!! simple test http://localhost:8080 fails why????

2002-10-15 Thread Raj Saini

How do you start your tomcat on other machine? What is the operating 
system of your meachine? Do you acess your jsp page from the same machine?

it seems your tomcat did not start or died before starting. Check the 
catalina.out log file in the logs directory or your console for the 
errors/exceptions.

Raj




S Alam wrote:
 I have a JSP program running on tomcat webserver at home. This program
 works. At home the computer accesses the internet via a dialup modem. 
 
 I am trying to run this program at another location. I have taken my
 hard disk and installed the hard disk at the other computer. The other
 location is networked. It is running DHCP IP addressing. When I run the
 program there it does not work 
 
 Also when I run the tomcat test there i.e
 
 http://localhost:8080
 
 In the status bar I get 
 Website found. Waiting for reply ... 
 but after few minutes I get the error message below: 
 why??? 
 Please help 
 
From home I ran the program as 
 http://localhost:8080/myJSPs/jsp/portal-project/preferences.jsp
 
 this works perfectly.
 
 At the other location I am trying the typing the same address in the
 address bar of IE6:
 
 http://localhost:8080/myJSPs/jsp/portal-project/preferences.jsp
 
 But it gives me the message in the status bar:
  
 Website found. Waiting for reply ... 
 but after few minutes I get the error message below: 
 
 
 
 The page cannot be displayed 
 The page you are looking for is currently unavailable. The Web site
 might be experiencing technical difficulties, or you may need to adjust
 your browser settings. 
 
 
  
 
 Please try the following: 
 
 Click the Refresh button, or try again later. 
 
 If you typed the page address in the Address bar, make sure that it is
 spelled correctly. 
 
 To check your connection settings, click the Tools menu, and then click
 Internet Options. On the Connections tab, click Settings. The settings
 should match those provided by your local area network (LAN)
 administrator or Internet service provider (ISP). 
 If your Network Administrator has enabled it, Microsoft Windows can
 examine your network and automatically discover network connection
 settings. 
 If you would like Windows to try and discover them, 
 click Detect Network Settings 
 Some sites require 128-bit connection security. Click the Help menu and
 then click About Internet Explorer to determine what strength security
 you have installed. 
 If you are trying to reach a secure site, make sure your Security
 settings can support it. Click the Tools menu, and then click Internet
 Options. On the Advanced tab, scroll to the Security section and check
 settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0. 
 Click the Back button to try another link. 
 
 
 
 Cannot find server or DNS Error 
 Internet Explorer
 
 Please help why does this happen???
 
 



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




Re: nobody processes

2002-10-15 Thread Nikola Milutinovic

Skorupski Pawe ,(PZUZ) wrote:
 Thanks for advice,
 
 I find out and processes with 'user nobody' are created by process with
 command inetd.

Aha, we are getting somewhere.

 I don't know if the processes with command httpd can be started by process
 'inetd' if service http doesn't exist in inetd.conf. 

Usually, this is not the case. I don't think that Apache can even work this way. 
Anyway, big servers, like Sendmail, Apache, Cyrus IMAP (since 2.0) will run as 
standalone daemons, not from InetD.

Take a look at your /etc/inetd.conf and see what servers are run from it as user 
nobody and you'll be one step closer to finding your problem source.

Nix.


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




Re: nobody processes

2002-10-15 Thread Jon Eaves

Hi all,

Look in the apache configuration files (normally /etc/httpd/conf)
at the file httpd.conf

There is a stanza in it: (about line 135)
-
# User/Group: The name (or #number) of the user/group to run httpd as.
#  On SCO (ODT 3) use User nouser and Group nogroup
#  On HPUX you may not be able to use shared memory as nobody, and the
#  suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 6;
#  don't use Group nobody on these systems!

User nobody
Group nobody
-

Mystery solved.

Can we kill this thread now ?  It's not even remotely related to Tomcat.

Cheers,
-- jon

Nikola Milutinovic wrote:
 Skorupski Pawe ,(PZUZ) wrote:
 
 Thanks for advice,

 I find out and processes with 'user nobody' are created by process with
 command inetd.
 
 
 Aha, we are getting somewhere.
 
 I don't know if the processes with command httpd can be started by 
 process
 'inetd' if service http doesn't exist in inetd.conf. 
 
 
 Usually, this is not the case. I don't think that Apache can even work 
 this way. Anyway, big servers, like Sendmail, Apache, Cyrus IMAP 
 (since 2.0) will run as standalone daemons, not from InetD.
 
 Take a look at your /etc/inetd.conf and see what servers are run from it 
 as user nobody and you'll be one step closer to finding your problem 
 source.
 
 Nix.
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

-- 
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


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




RE: nobody processes

2002-10-15 Thread Skorupski Pawe ,(PZUZ)

I saw that only talk and ntalk are started as user nobody.tty, the rest of
services are started as root.
The parent process which started nobody processes are started by user root
from inetd command.
These processes have command httpd - where is the connection ?

Pawel

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 1:08 PM
To: Tomcat Users List
Subject: Re: nobody processes


Skorupski Pawe ,(PZUZ) wrote:
 Thanks for advice,
 
 I find out and processes with 'user nobody' are created by process with
 command inetd.

Aha, we are getting somewhere.

 I don't know if the processes with command httpd can be started by process
 'inetd' if service http doesn't exist in inetd.conf. 

Usually, this is not the case. I don't think that Apache can even work this
way. 
Anyway, big servers, like Sendmail, Apache, Cyrus IMAP (since 2.0) will
run as 
standalone daemons, not from InetD.

Take a look at your /etc/inetd.conf and see what servers are run from it as
user 
nobody and you'll be one step closer to finding your problem source.

Nix.


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



Re: nobody processes

2002-10-15 Thread Nikola Milutinovic

Skorupski Pawe ,(PZUZ) wrote:
 I saw that only talk and ntalk are started as user nobody.tty, the rest of
 services are started as root.

Kill those things. You usually do not need them on a server.

 The parent process which started nobody processes are started by user root
 from inetd command.
 These processes have command httpd - where is the connection ?

You got me lost there.

Nix.


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




Re: Tomcat SSL IBM JSSE

2002-10-15 Thread Panos Skondras

Hi again
I manage to find ibmjsse.jar  (I had to download the wsdk 100MB nice???)
and put it int the java_home/jre/lib/ext directory i also
left there the suns jsse jcert.jar,jnet,jar ,jsse.jar i change the
java.security file and put the provider
snip
security.provider.1=sun.security.provider.Sun
security.provider.2=com.ibm.jsse.JSSEProvider
/snip

i restart Tomcat and i get
!--
initProxy:  java.security.NoSuchAlgorithmException: Class
com.ibm.jsse.SSLContextImpl configured for SSLContext not a SSLContext
java.security.NoSuchAlgorithmException: Class com.ibm.jsse.SSLContextImpl
configured for SSLContext not a SSLContext
at
java.security.NoSuchAlgorithmException.init(NoSuchAlgorithmException.java:47)
at com.sun.net.ssl.SunJSSE_b.a(DashoA6275)
at com.sun.net.ssl.SSLContext.getInstance(DashoA6275)
at
org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSocketFactory.java:398)

at
org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSocketFactory.java:334)

at
org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:287)

at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:948)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)

at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Catalina.start: LifecycleException:  null.open:  java.io.IOException:
java.security.NoSuchAlgorithmException: Class com.ibm.jsse.SSLContextImpl
configured for SSLContext not a SSLContext
LifecycleException:  null.open:  java.io.IOException:
java.security.NoSuchAlgorithmException: Class com.ibm.jsse.SSLContextImpl
configured for SSLContext not a SSLContext
at java.lang.Exception.init(Exception.java:35)
at
org.apache.catalina.LifecycleException.init(LifecycleException.java:126)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)

at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.io.IOException: java.security.NoSuchAlgorithmException: Class
com.ibm.jsse.SSLContextImpl configured for SSLContext not a SSLContext
at java.lang.Exception.init(Exception.java:44)
at java.io.IOException.init(IOException.java:49)
at
org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSocketFactory.java:422)

at
org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSocketFactory.java:334)

at
org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:287)

at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:948)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)

at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

--

When i delete the suns jar i get com.sun.net class not found and other errors
has anyone
tried something like this before..

thx in advance




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


RE: Setting up the usera and password for the administrator in Tomcat 4.1

2002-10-15 Thread Carlos

Hi Christine,
Thank you for your response.  By the way, have you found documentation on
how to use the manager application?  I used to deploy a war file via the
browser by entering the manager commands in the address field but I would
like to do this with the manager app instead.

Regards,

Carlos Oliva

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 4:54 AM
To: [EMAIL PROTECTED]
Subject: RE: Setting up the usera and password for the administrator in
Tomcat 4.1


as far as I know there's no documentation yet, but the procedure is the same
as with the manager-app, except that the necessary role for the admin tool
is admin.

Chris

-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:37 PM
To: Tomcat-User (E-mail)
Subject: Setting up the usera and password for the administrator in
Tomcat 4.1


Where can I find documentation o intructions to set-up the user and password
of the administrator application?  I was able to set-up the manager by
adding the user, password, and role to the user file as the documentation
indicates but I could not find info about setting-up a user as an
administrator.

Carlos Oliva


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



Re: Include directive problem

2002-10-15 Thread Mark Olliver

I had the same problem referencing jar files, from what I can gather,
(no doubt somebody will correct me if I'm wrong) symbolic links are a
security risk.

Mark

On Tue, 2002-10-15 at 11:49, Luise Massimo wrote:
 Hi all,
 
 i have a problem with Tomcat 4.1.12:
 
 I'm using a JSP page that it use an include directive (%@ include 
 file=...%) to include another JSP page.
 The filename that i have specified is relative to the directory 
 containing the first JSP page, but it is a symbolic link (i'm on a linux 
 box).
 When i access that JSP page, the JSP compiler throw a JasperException 
 that say FileNotFound !
 Before Tomcat 4.1.12 i was using 4.0.4 and the thing was ok.
 
 What is it wrong on using symlink ?
 
 Anyone can help me ?
 
 Thanks in advance. Max
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: what does jpp mean in the rpm file names?

2002-10-15 Thread Henri Gomez

It means JPackage Project (www.jpackage.org)

The rpms provided for many jakarta projects,
including ant and tomcat came from this project.

Regards


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




RE: question about tomcat server

2002-10-15 Thread Turner, John


You can't just put servlets into the ROOT directory and expect them to work.
You need entries for them in web.xml.  Check the docs, and check the web.xml
for the examples to see how.

John


 -Original Message-
 From: Henry Mak [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 5:16 PM
 To: [EMAIL PROTECTED]
 Subject: question about tomcat server
 
 
 after i sucessfully install tomcat server. i tried to
 put my own servlets into the WEB-INF/classes under
 root directory. somehow it doesn't work - HTTP Status
 404  error popup. then i try to load the example
 servlets, and all of them have no problem at all.
 
 finally, i put my own servlets into the examples
 directory, and they are working fine. do u know what
 is the problem why it said HTTP Status 404  servlet
 not available when i put them into ROOT directory. i
 tested pure html files are working fine
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: Include directive problem

2002-10-15 Thread Luise Massimo

why do you think symlinks are a security risk ?

Mark Olliver wrote:

I had the same problem referencing jar files, from what I can gather,
(no doubt somebody will correct me if I'm wrong) symbolic links are a
security risk.

Mark

On Tue, 2002-10-15 at 11:49, Luise Massimo wrote:
  

Hi all,

i have a problem with Tomcat 4.1.12:

I'm using a JSP page that it use an include directive (%@ include 
file=...%) to include another JSP page.
The filename that i have specified is relative to the directory 
containing the first JSP page, but it is a symbolic link (i'm on a


linux 
  

box).
When i access that JSP page, the JSP compiler throw a JasperException 
that say FileNotFound !
Before Tomcat 4.1.12 i was using 4.0.4 and the thing was ok.

What is it wrong on using symlink ?

Anyone can help me ?

Thanks in advance. Max



--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]
  

For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  



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

  


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




RE: RE: RE: tomcat 4.1.12 with apache

2002-10-15 Thread Turner, John


As far as I know, JK2 does not use workers.properties file, and does not use
JkWorkersFile.  RTFM! The files needed are:

workers2.properties
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html

jk2.properties
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtc.html

John


 -Original Message-
 From: yoom nguyen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 12:34 AM
 To: Tomcat Users List
 Subject: Re: RE: RE: tomcat 4.1.12 with apache
 
 
 John
 
 I download the mod_jk2.so from your sugguested location.
 After restart apache this is what I get.  
 
 
 [root@dos bin]# ./apachectl start
 Syntax error on line 947 of /etc/httpd/conf/httpd.conf:
 Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a 
 module not included in the server configuration
 

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




RE: How can I change default 8080 port to 80

2002-10-15 Thread Turner, John


Can't do this if Apache is listening on port 80.  You need to stop Apache
(and prevent it from restarting or starting on boot) and THEN do change
server.xml.  Otherwise, you need a connector.

John


 -Original Message-
 From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 2:12 AM
 To: Tomcat Users List
 Subject: Re: How can I change default 8080 port to 80
 
 
 In the server.xml file, modify the entry
 
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
 
 Change the attribute port=8080 to port=80.
 Restart tomcat. Should work fine.
 
 
 Satish Kumar wrote:
 
 Greetings,
 
 I have installed Tomcat 4.1.12 and Apache 2.  Tomcat is 
 listening on port 8080 whereas apache is listening on port 
 80.  What do I need to do so that tomcat listens to default 
 http port 80?
 
 Thanks,
 Satish (A Beginner)
 
   
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: How can I change default 8080 port to 80

2002-10-15 Thread Turner, John


It didn't work.  Only one service can listen on a given port at a given
time.  Apache and Tomcat are two separate services.

If you disagree, I'd love to see your httpd.conf file and your server.xml
file so that I could try them on my own machines to see this behavior for
myself.

John


 -Original Message-
 From: Satish Kumar [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 2:49 AM
 To: Tomcat Users List
 Subject: Re: How can I change default 8080 port to 80
 
 
 Thanks Kwok,
 
 That worked.  I was wondering why it did not interfere with 
 Apache because
 Apache is also listening on port 80?
 
 Thanks again,
 Satish
 - Original Message -
 From: Kwok Peng Tuck [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, October 14, 2002 11:11 PM
 Subject: Re: How can I change default 8080 port to 80
 
 

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




AW: How can I change default 8080 port to 80

2002-10-15 Thread Ralph Einfeldt

You are right if you add 'and a given IP', as you can have
several IP's on one machine.

 -Ursprüngliche Nachricht-
 Von: Turner, John [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 15. Oktober 2002 14:45
 An: 'Tomcat Users List'
 Betreff: RE: How can I change default 8080 port to 80
 
 It didn't work.  Only one service can listen on a given port 
 at a given time.  Apache and Tomcat are two separate services.
 
 If you disagree, I'd love to see your httpd.conf file and 
 your server.xml file so that I could try them on my own 
 machines to see this behavior for myself.
 

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




RE: How can I change default 8080 port to 80

2002-10-15 Thread Turner, John


Right on.

John


 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 8:56 AM
 To: Tomcat Users List
 Subject: AW: How can I change default 8080 port to 80
 
 
 You are right if you add 'and a given IP', as you can have
 several IP's on one machine.
 
  -Ursprüngliche Nachricht-
  Von: Turner, John [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 15. Oktober 2002 14:45
  An: 'Tomcat Users List'
  Betreff: RE: How can I change default 8080 port to 80
  
  It didn't work.  Only one service can listen on a given port 
  at a given time.  Apache and Tomcat are two separate services.
  
  If you disagree, I'd love to see your httpd.conf file and 
  your server.xml file so that I could try them on my own 
  machines to see this behavior for myself.
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: using the -J-mxnumber command line option

2002-10-15 Thread Shapira, Yoav

Hi,
You would put in your $CATALINA_HOME/bin/Catalina.sh as one of your
JAVA_OPTS, e.g.
JAVA_OPTS='-J-mx256'

However, I'm suspicious of this error.  Can you compile the JSP outside
tomcat's runtime, e.g. using JspC?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Bart Vels [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 7:55 AM
To: [EMAIL PROTECTED]
Subject: using the -J-mxnumber command line option


I get the message:

org.apache.jasper.JasperException: Unable to compile class for JSPThe
compiler has run out of memory.  Consider using the -J-mxnumber
command
line option to increase the maximum heap size

Can someone tell me step-by-step how to invoke the above mentioned
command
line option, I'm a beginner!?

regards,
Bart



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



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


RE: Why File.toURI() makes ServletContextListener jump contextDestroyed() directly?

2002-10-15 Thread Shapira, Yoav

Hi,

I found when I use method toURI( ) of class File in
ServletContextListener,
it will jump contextDestroyed( ) directly.
Did I misuse?

Yes.

Exceptions in your contextInitialized() method can result in the
container not initializing your context.  In fact, the desired behavior
IMHO in that case is immediate shutdown, which in turn calls
contextDestroyed().  So I think tomcat's doing well in this case.

public  class  Test  implements  ServletContextListener {
 public Test( ) {
  System.out.println(Constructor);
 }
 public void contextDestroyed(ServletContextEvent sce) {
  System.out.println(Destroy);
 }
 public void contextInitialized(ServletContextEvent sce) {
  System.out.println(Init);

Add this here:

try {
  File myFile = new File(C:\\);
  if(myFile != null) {
URI myUri = myFile.toURI();
if(myUri != null) {
  System.out.println(Test: contextInitialized(sce): myUri =  +
myUri.toString());
}
  }
} catch(Exception e) {
  System.err.println(Test: contextInitialized(sce): exception obtaining
myUri:  + e);
}

  System.out.println(Init  finished);
 }
}


In general, if you're doing a servlet context listener, you either:

1. Handle every exception, or
2. Be prepared to have immediate shutdown if you have an uncaught
exception.

Yoav Shapira
Millennium ChemInformatics


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


Re: Include directive problem

2002-10-15 Thread Mark Olliver

The following quote is taken from

http://httpd.apache.org/docs/urlmapping.html

'There are frequently circumstances where it is necessary to allow web
access to parts of the filesystem that are not strictly underneath the
DocumentRoot. Apache offers several different ways to accomplish this.
On Unix systems, symbolic links can bring other parts of the filesystem
under the DocumentRoot. For security reasons, Apache will follow
symbolic links only if the Options setting for the relevant directory
includes FollowSymLinks or SymLinksIfOwnerMatch.'

I don't think or know if they are a security risk. The above offered a
possible explanation as to why my symbolic link didn't work.

Regards

On Tue, 2002-10-15 at 13:33, Luise Massimo wrote:
 why do you think symlinks are a security risk ?
 
 Mark Olliver wrote:
 
 I had the same problem referencing jar files, from what I can gather,
 (no doubt somebody will correct me if I'm wrong) symbolic links are a
 security risk.
 
 Mark
 
 On Tue, 2002-10-15 at 11:49, Luise Massimo wrote:
   
 
 Hi all,
 
 i have a problem with Tomcat 4.1.12:
 
 I'm using a JSP page that it use an include directive (%@ include 
 file=...%) to include another JSP page.
 The filename that i have specified is relative to the directory 
 containing the first JSP page, but it is a symbolic link (i'm on a
 
 
 linux 
   
 
 box).
 When i access that JSP page, the JSP compiler throw a JasperException 
 that say FileNotFound !
 Before Tomcat 4.1.12 i was using 4.0.4 and the thing was ok.
 
 What is it wrong on using symlink ?
 
 Anyone can help me ?
 
 Thanks in advance. Max
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
   
 
 For additional commands, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
   
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
   
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: Static class not working under multiple webapps deployment

2002-10-15 Thread Cox, Charlie

where is this class located? if it is in /common/classes or shared/classes,
that is the correct result.

you will have to copy the .class file to each webapp under its
WEB-INF/classes to get the result that you desire.

Charlie

 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 6:12 AM
 To: 'Tomcat Users List'
 Subject: Static class not working under multiple webapps deployment
 
 
 Hi
 I have written a static class which is populated with data on 
 startup of my
 servlets and is suppose to be use in the context of the 
 request. However,
 the static class seems to return the same information for all 
 webapps and
 holds the configuration of the last servlet run on startup. 
 Here is the
 code... As you can see I want to use something that looks like the
 System.Properties but System.Properties is gloabal so it's no 
 use to me. I
 want to be able to set the webapp name here so it's used 
 during processing
 but at the moment it's only returning the last name 
 configured for the last
 webapp.
 
 Any ideas why this is happening. What have I done wrong to 
 make this class
 appear global?
 Thanks
 Donie
 
 
 import org.apache.log4j.Category;
 import java.util.Hashtable;
 import java.util.Properties;
 import java.io.InputStream;
 
 public class vMmsc
 {
 static Category log = Category.getInstance(vMmsc.class.getName());
 public final static String version = $Revision:   1.3  
 $$Date:   10 Oct
 2002 11:57:48  $;
 public static String getVersion() { return version; }
 private static Properties props=new Properties();
 
 // Defeats instantiation
 private vMmsc(){}
 
 public static void load(InputStream is)
 {
 try
 {
 props.load(is);   
 }
 catch(Exception ex)
 {
 log.error(Problem loading property file:  + 
 ex.getMessage());
 
 }
 }
 
 public static void setProperty(String Name, String Value)
 {
 props.setProperty(Name, Value);
 }
 
 public static String getProperty(String Name)
 {
 String Value = props.getProperty(Name);
 if(Value==null || Value.equalsIgnoreCase())
 log.debug(The property value  + Name +  is not 
 defined);
 return Value;
 }
 
 public static String getProperty(String Name, String defaultValue)
 {
 String Value = props.getProperty(Name);
 if(Value==null || Value.equalsIgnoreCase())
 {
 log.debug(The property value  + Name +  is 
 returning it's
 default value);
 return defaultValue;
 }
 return Value;
 }
 
 public static Integer getInteger(String Name)
 {
 String Value = getProperty(Name);
 if(Value==null || Value.equalsIgnoreCase())
 log.debug(The property value  + Name +  is not 
 defined);
 
 return new Integer(Value);
 }
 
 public static Integer getInteger(String Name, int defaultValue)
 {
 String Value = getProperty(Name);
 if(Value==null || Value.equalsIgnoreCase())
 {
 log.debug(The property value  + Name +  is 
 returning it's
 default value);
 return new Integer(defaultValue);
 }
 return new Integer(Value);
 }
 
 // Return true if property is enabled/yes/true
 public static boolean isEnabled(String Name)
 {
 String Value = getProperty(Name);
 
 if(Value!=null)
 if(Value.equalsIgnoreCase(yes) || 
 Value.equalsIgnoreCase(true) || 
 Value.equalsIgnoreCase(enabled) ||
 Value.equalsIgnoreCase(1))
 return true;
 return false;
 }
 }
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Static class not working under multiple webapps deployment

2002-10-15 Thread Donie Kelly

That's where it is running (WEB-INF/classes/com/.). The problem might be
that I am running Tomcat under Visual Caf 4.51 expert edition. Without any
changes I run Tomcat from the command line and it works like magic. No
problems.

I wonder how running under Visual Caf can affect the classloader for the
webapp? 

Maybe it's because I have to list the jar's for Tomcat in the Caf classpath
and this somehow screws things up. It won't compile if I don't do this
obviously...
Any ideas on how to get over this are welcome...


On a similar note, I am using log4j for logging and under caf the logging
for each webapp is configured from whichever log4j.xml file I modify last.
Running from the command line allows the setting for each webapp too be
configured seperatly (ie: debug, warn, error levels). Catch 23 here too in
that I must include log4j.jar in the classpath to compile the code.

Any idea how to get around this behaviour?
Donie

Note: I have the following jar's in the Caf classpath

bootstrap.jar
catalina.jar
slflogger.jar
servlets-defaults.jar
xerces.jar
servlets-common.jar
servlets-invoker.jar
servlet.jar
naming-common.jar
naming-resource.jar
log4j.jar





-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: 15 October 2002 14:29
To: 'Tomcat Users List'
Subject: RE: Static class not working under multiple webapps deployment

where is this class located? if it is in /common/classes or shared/classes,
that is the correct result.

you will have to copy the .class file to each webapp under its
WEB-INF/classes to get the result that you desire.

Charlie

 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 6:12 AM
 To: 'Tomcat Users List'
 Subject: Static class not working under multiple webapps deployment


 Hi
 I have written a static class which is populated with data on
 startup of my
 servlets and is suppose to be use in the context of the
 request. However,
 the static class seems to return the same information for all
 webapps and
 holds the configuration of the last servlet run on startup.
 Here is the
 code... As you can see I want to use something that looks like the
 System.Properties but System.Properties is gloabal so it's no
 use to me. I
 want to be able to set the webapp name here so it's used
 during processing
 but at the moment it's only returning the last name
 configured for the last
 webapp.

 Any ideas why this is happening. What have I done wrong to
 make this class
 appear global?
 Thanks
 Donie


 import org.apache.log4j.Category;
 import java.util.Hashtable;
 import java.util.Properties;
 import java.io.InputStream;

 public class vMmsc
 {
 static Category log = Category.getInstance(vMmsc.class.getName());
 public final static String version = $Revision:   1.3 
 $$Date:   10 Oct
 2002 11:57:48  $;
 public static String getVersion() { return version; }
 private static Properties props=new Properties();

 // Defeats instantiation
 private vMmsc(){}

 public static void load(InputStream is)
 {
 try
 {
 props.load(is);  
 }
 catch(Exception ex)
 {
 log.error(Problem loading property file:  +
 ex.getMessage());

 }
 }

 public static void setProperty(String Name, String Value)
 {
 props.setProperty(Name, Value);
 }

 public static String getProperty(String Name)
 {
 String Value = props.getProperty(Name);
 if(Value==null || Value.equalsIgnoreCase())
 log.debug(The property value  + Name +  is not
 defined);
 return Value;
 }

 public static String getProperty(String Name, String defaultValue)
 {
 String Value = props.getProperty(Name);
 if(Value==null || Value.equalsIgnoreCase())
 {
 log.debug(The property value  + Name +  is
 returning it's
 default value);
 return defaultValue;
 }
 return Value;
 }

 public static Integer getInteger(String Name)
 {
 String Value = getProperty(Name);
 if(Value==null || Value.equalsIgnoreCase())
 log.debug(The property value  + Name +  is not
 defined);

 return new Integer(Value);
 }

 public static Integer getInteger(String Name, int defaultValue)
 {
 String Value = getProperty(Name);
 if(Value==null || Value.equalsIgnoreCase())
 {
 log.debug(The property value  + Name +  is
 returning it's
 default value);
 return new Integer(defaultValue);
 }   
 return new Integer(Value);
 }

 // Return true if property is enabled/yes/true
 public static boolean isEnabled(String Name)
 {
 String Value = getProperty(Name);

 if(Value!=null)
 if(Value.equalsIgnoreCase(yes) ||
 Value.equalsIgnoreCase(true) ||
 

OutOfMemory when doing concurrent requests

2002-10-15 Thread Martijn Schoemaker

Hi all,

My name is Martijn Schoemaker and I currently work for a
big company in which we have a combination of apache (1.3.26),
jserv (1.1.2), tomcat (3.2.3) running with an IBM supplied JVM
version 1.3.0-01. Under tomcat are JSP's which via beans make
RMI calls to the backend server running WebSphere 3.5.Every-
thing runs on HP-UX boxes.

Still with me ? ;)

Now we are tied to the crappy IBM JVM otherwise the RMI-IIOP
calls to the WebSphere backend screw-up. And I lately up-
graded to the 1.3 JVM because of the performance increase
it has opposed to the IBM 1.2 JVM we ran earlyer.

Now everything on Tomcat runs fine, except that when one of
our testers starts a testscript which does 5 simultanious
requests the first one receives an OutOfMemory exception
(see attachment below for detailed info).In normal proceedings
I rarely see this happening, but only at that test it always
happens. I'm also pretty baffled by the lack of pointer as
to which resource seems to be depleted, since we all know
that 'OutOfMemory' does not nessecarily means 'Memory' but
can also mean FD's, threads etc.Oh, if the user just retries
everything works ok. Also, all other requests get handled
e-ok. As the load increases, the amount of failures seems
to be stable (only when the users connect for the first
time).

I am really pulling my hair on this one because even if I
start the Tomcat just before the test, it still happens.

The user open file limit is 2048, the per-proces thread limit
is 3000, the -Xmx = 512Mb, the -Xms = 256Mb and the tomcat thread
pool is 200/100/50 (max, max-spare, min-spare). All JSP's are
compiled an ready for immediate use. JVM stats show that there
is 200Mb available when the test starts.

Has anybody got an idea about what this can be ? I personally
think it must be some system limit, I cannot seem to find it
however since they all seem to remain well within boundaries.

I really hope someone has seen this behaviour before, 'cause
I'm getting premature baldness out of this ;)

Cheers,
Martijn Schoemaker


2002-10-15 12:16:35 - Ctx( /pno ): Exception in: R( /pno + /jsp/pgHome.jsp + null) - 
javax.servlet.ServletException:
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Unknown Source)
Root cause:
java.lang.OutOfMemoryError:
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Beans.instantiate(Beans.java:152)
at java.beans.Beans.instantiate(Beans.java:51)
at 
jsp._0002fjsp_0002fpgHome_0002ejsppgHome_jsp_0._jspService(_0002fjsp_0002fpgHome_0002ejsppgHome_jsp_0.java:106)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Unknown Source)



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


Symlink and trouble with include directive

2002-10-15 Thread Luise Massimo

Hi all,

i asked before for help with JSP page that include a symlink file.

examining the source code i noticed in 
org.apache.naming.resources.FileDirContext 2 things regarding symlinks:

1) there is a flag name allowLinkingbut i don't know if it 
settable or not
2) there is a test beetween AbsolutePath and CanonicalPath of the 
included file.it's this test that preclude the use of symlinks in 
the include directive

Can anyone help me understanding this things ?

Thanks

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




RE: Possible bug with isSecure()/getScheme() methods in tomcat 4.1

2002-10-15 Thread Brett Knights

IIRC there is a bug in the coyote connector in TC 4.1.10.

You have to use the org.apache.ajp.tomcat4.Ajp13Connector connector and set
an attribute
tomcatAuthentication=false to achieve the result you desire.

 -Original Message-
 From: George Hart [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 5:11 PM
 To: [EMAIL PROTECTED]
 Subject: Possible bug with isSecure()/getScheme() methods in 
 tomcat 4.1
 
 
 Hi,
 
 I am having some problems with the servlet engine when connected to 
 apache.  When making a https request through the apache 
 webserver  the 
 HttpRequest.isSecure() method is returning false and the 
 HttpRequest.getScheme() method is returning 'http'.  It seems 
 like this 
 information was lost when the connector passed the request to the 
 servlet engine.  I should note that the 
 HttpRequest.getServerPort() does 
 return the correct port.
 
 Having looked through the archived messages it sounds like 
 there was a 
 similar problem when using ajp12.  However, I am fairly 
 certain that I 
 using the ajp13 protocol.
 
 I am able to work around this problem since I can use the 
 getServerPort() method correctly, but I would be interested 
 to know if 
 this is a bug or if I have misconfigured something.
 
 
 Thank you,
 
 George Hart
 [EMAIL PROTECTED]
 
 
 Relevant Info:
 
 Machine: 2.4.9-34 (Redhat 7.2)
 Webserver:  Apache 1.3.26
 Tomcat version: jakarta-tomcat-4.1.10-LE-jdk14
 jvm: j2sdk1.4.0_02
 connector: jk-1.2.0
 
 
 My workers.properties file:
 
 ps=/
 
 # list the workers by name
 
 #worker.list=tomcat1, tomcat2, loadbalancer
 worker.list=tomcat1, loadbalancer
 
 # 
 # First tomcat server
 # 
 worker.tomcat1.port=8009
 worker.tomcat1.host=localhost
 worker.tomcat1.type=ajp13
 
 worker.loadbalancer.type=lb
 #worker.loadbalancer.balanced_workers=tomcat1, tomcat2
 worker.loadbalancer.balanced_workers=tomcat1
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Error with multipartParser

2002-10-15 Thread Sam Seaver

Jon,

Thank you, that solved my problem, I was sure it was a class thing but just 
didn't realise that TomCat would never look at the normal classpath!! So it 
works now :-)

One more thing though, if I don't give the file a filepath, it automatically 
puts it in this one folder where I do not expect it to be, is there a 
default somewhere that I'm missing?

cheers
S


From: jon wingfield [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Error with multipartParser
Date: Fri, 11 Oct 2002 11:11:38 +0100

tomcat doesn't use the classpath. It derives where tools.jar is from the
JAVA_HOME environment variables. Your application classes should be placed
under CATALINE_HOME/webapps/YOUR_WEBAPP_NAME/WEB-INF/classes and your
application jar files (ie cos.jar) under
CATALINE_HOME/webapps/YOUR_WEBAPP_NAME/WEB-INF/lib (where YOUR_WEBAPP_NAME
is sam, i think)

Take a look at this doc
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html

-Original Message-
From: Sam Seaver [mailto:[EMAIL PROTECTED]]
Sent: 10 October 2002 21:32
To: [EMAIL PROTECTED]
Subject: RE: Error with multipartParser


i'm using TomCat 4.1.12, and I still get the same error, whether I use the
extra code or not.  the point is that it works fine if I don't try to
instantiate MultipartParser, and the same happens with MultipartRequest, as
soon as I add the line:

'MultipartWhatever whatever = new multipartWhatever(requirements 
fulfilled)'

then i just get the same error.  my classpath is:

/usr/local/j2sdk1.4.1/lib:/usr/local/j2sdkee1.3.1/lib:/usr/local/jakarta-tom
cat-4.1.12/common/lib/servlet.jar:/usr/local/cos/lib/cos.jar:/usr/local/j2sd
k1.4.1/lib/tools.jar:/home/seaver/web:.

including the cos.jar and the tools.jar, but it just seems to have a 
problem
with cos...anyone?

S


 From: Rajiv Ramanasankaran [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Error with multipartParser
 Date: Thu, 10 Oct 2002 15:19:12 -0500
 
 I forgot to mention that I added this code to your bean :)
 try{
  setOutput(Demo Parser Upload Bean);
  MultipartParser mp = new MultipartParser(req, 10*1024*1024);
  Part part;
  while ((part = mp.readNextPart()) != null) {
  String name = part.getName();
  if (part.isParam()) {
  // it's a parameter part so do nothing
  }
  else if (part.isFile()) {
  // it's a file part
  FilePart filePart = (FilePart) part;
 
  if (getFileName()!= null) {
  // the part actually contained a file
  File filepath=new File(c:/Temp/rajiv.xml);
  long size = filePart.writeTo(filepath);
  setFileName(filePart.getFileName());
  }
  else {
  //file was empty add error code here
  }
  }
  }
  }catch(Exception e){
  e.printStackTrace();
  }
 you have to specify the directory or file to which you want to upload.
 
 -Original Message-
 From: Rajiv Ramanasankaran [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 2:50 PM
 To: Tomcat Users List
 Subject: RE: Error with multipartParser
 
 
 Its is working fine for me!! The file is getting uploaded and I don't get
 an
 error at all..What version of Tomcat are you using??? I am using Tomcat 
3.2
 . There might be an incompatibility problem.
 Rajiv
 
 -Original Message-
 From: Sam Seaver [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 2:11 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Error with multipartParser
 
 
 OK, here's the JSP page I'm using, note it reloads itself once POST is
 pressed, and then activates the bean:
 
 html
 head
 titlefile upload/title
 /head
 body bgcolor=#c8d8f8
 form action=jguru.jsp enctype=multipart/form-data method=post
 center
 table cellpadding=4 cellspacing=2 border=0
 
 th bgcolor=#FF colspan=2
 font size=5User Registration/font
 /th
 
 tr
 td valign=top colspan=2
 bWhich XML file would you like to upload?/b
 br /
 input type=file name=fileName  /
 br/td
 /tr
 
 tr
 td  align=center colspan=2
 input type=submit value=Submit input type=reset  value=Reset
 /td
 /tr
 
 /table
 /center
 /form
 
 %-- Create the bean only when the form is posted --%
 %
 if (request.getMethod().equals(POST)) {
 %
 jsp:useBean id=xmlHandler class=com.jguru.SimpleBean
 jsp:setProperty name=xmlHandler property=fileName /
 /jsp:useBean
 p
 hr
 font color=red
 brbFile to upload:/bbr
 jsp:getProperty name=xmlHandler property=fileName /
 br
 %
 xmlHandler.doPost(request, response);
 %
 br/bBean Output:/bbr/
 jsp:getProperty name=xmlHandler property=output /
 %
 }
 %
 /font
 /body
 /html
 

RE: Static class not working under multiple webapps deployment

2002-10-15 Thread Cox, Charlie

sorry, I am not familiar with Visual Cafe. It must be implementing its own
classloader somehow or making your jars available to the bootstrap.

Charlie 

 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 9:50 AM
 To: 'Tomcat Users List'
 Subject: RE: Static class not working under multiple webapps 
 deployment
 
 
 That's where it is running (WEB-INF/classes/com/.). The 
 problem might be
 that I am running Tomcat under Visual Caf 4.51 expert 
 edition. Without any
 changes I run Tomcat from the command line and it works like magic. No
 problems.
 
 I wonder how running under Visual Caf can affect the 
 classloader for the
 webapp? 
 
 Maybe it's because I have to list the jar's for Tomcat in the 
 Caf classpath
 and this somehow screws things up. It won't compile if I don't do this
 obviously...
 Any ideas on how to get over this are welcome...
 
 
 On a similar note, I am using log4j for logging and under 
 caf the logging
 for each webapp is configured from whichever log4j.xml file I 
 modify last.
 Running from the command line allows the setting for each 
 webapp too be
 configured seperatly (ie: debug, warn, error levels). Catch 
 23 here too in
 that I must include log4j.jar in the classpath to compile the code.
 
 Any idea how to get around this behaviour?
 Donie
 
 Note: I have the following jar's in the Caf classpath
 
 bootstrap.jar
 catalina.jar
 slflogger.jar
 servlets-defaults.jar
 xerces.jar
 servlets-common.jar
 servlets-invoker.jar
 servlet.jar
 naming-common.jar
 naming-resource.jar
 log4j.jar
 
 
 
 
 
 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Sent: 15 October 2002 14:29
 To: 'Tomcat Users List'
 Subject: RE: Static class not working under multiple webapps 
 deployment
 
 where is this class located? if it is in /common/classes or 
 shared/classes,
 that is the correct result.
 
 you will have to copy the .class file to each webapp under its
 WEB-INF/classes to get the result that you desire.
 
 Charlie
 
  -Original Message-
  From: Donie Kelly [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 15, 2002 6:12 AM
  To: 'Tomcat Users List'
  Subject: Static class not working under multiple webapps deployment
 
 
  Hi
  I have written a static class which is populated with data on
  startup of my
  servlets and is suppose to be use in the context of the
  request. However,
  the static class seems to return the same information for all
  webapps and
  holds the configuration of the last servlet run on startup.
  Here is the
  code... As you can see I want to use something that looks like the
  System.Properties but System.Properties is gloabal so it's no
  use to me. I
  want to be able to set the webapp name here so it's used
  during processing
  but at the moment it's only returning the last name
  configured for the last
  webapp.
 
  Any ideas why this is happening. What have I done wrong to
  make this class
  appear global?
  Thanks
  Donie
 
 
  import org.apache.log4j.Category;
  import java.util.Hashtable;
  import java.util.Properties;
  import java.io.InputStream;
 
  public class vMmsc
  {
  static Category log = Category.getInstance(vMmsc.class.getName());
  public final static String version = $Revision:   1.3 
  $$Date:   10 Oct
  2002 11:57:48  $;
  public static String getVersion() { return version; }
  private static Properties props=new Properties();
 
  // Defeats instantiation
  private vMmsc(){}
 
  public static void load(InputStream is)
  {
  try
  {
  props.load(is);  
  }
  catch(Exception ex)
  {
  log.error(Problem loading property file:  +
  ex.getMessage());
 
  }
  }
 
  public static void setProperty(String Name, String Value)
  {
  props.setProperty(Name, Value);
  }
 
  public static String getProperty(String Name)
  {
  String Value = props.getProperty(Name);
  if(Value==null || Value.equalsIgnoreCase())
  log.debug(The property value  + Name +  is not
  defined);
  return Value;
  }
 
  public static String getProperty(String Name, String 
 defaultValue)
  {
  String Value = props.getProperty(Name);
  if(Value==null || Value.equalsIgnoreCase())
  {
  log.debug(The property value  + Name +  is
  returning it's
  default value);
  return defaultValue;
  }
  return Value;
  }
 
  public static Integer getInteger(String Name)
  {
  String Value = getProperty(Name);
  if(Value==null || Value.equalsIgnoreCase())
  log.debug(The property value  + Name +  is not
  defined);
 
  return new Integer(Value);
  }
 
  public static Integer getInteger(String Name, int defaultValue)
  {
  String Value = getProperty(Name);
  

RE: Is Apache Httpd required

2002-10-15 Thread Milt Epstein

On Mon, 14 Oct 2002, sonam singh wrote:

 IF HAVE LOT IMAGE OR STATIC  THEN OBVIOUSLY U HAVE TO
 USE APACHE TO SERVE THE STATIC PAGES OTHERWISE IT OK
 TO USE TOMCAT ALONE. BUT I STRONGLY RECOMMEND  USE
 APACHE WITH TOMCAT FOR BETTER FLEXIBILTY .

 REGARDS
 SONAM SINGH
 [EMAIL PROTECTED]

PLEASE STOP SHOUTING.


 --- Turner, John [EMAIL PROTECTED] wrote:
 
  Tomcat alone is fine.  Use Tomcat + Apache only if
  it suits your purposes.
 
  John
 
   -Original Message-
   From: Narendra [mailto:[EMAIL PROTECTED]]
   Sent: Monday, October 14, 2002 4:03 AM
   To: [EMAIL PROTECTED]
   Subject: Is Apache Httpd required
  
  
   Hello All,
   My Application has only 1 static page and around
  15 images
   and 5 java-script
   files...All the rest are servlets and JSP's...
   Do I need to integrate Apache Http and Tomcat ???
   I feel there is no need..as the static content is
  very less..
   I also feel that if I don't integrate Apache and
  Tomcat, then
   there will be a
   performance boost because there would be
   no IPC ( Interprocess Communication) between
  Apache and Tomcat ...
  
   So what should be done ?...Are there any other
  problems for
   running Tomcat
   without Apache webserver ?
  
   Regards,
   naren
  
   ---
   An embrace should fill the heart as well as the
  arms..
  
  
 
 *
   Disclaimer
  
   This message (including any attachments) contains
   confidential information intended for a specific
   individual and purpose, and is protected by law.
   If you are not the intended recipient, you should
   delete this message and are hereby notified that
   any disclosure, copying, or distribution of this
   message, or the taking of any action based on it,
   is strictly prohibited.
  
  
 
 *
   Visit us at http://www.mahindrabt.com
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com

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


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Tomcat 4.0.5 / IIS 5

2002-10-15 Thread Lior Shliechkorn


I'm trying to set up Tomcat to work with IIS 5 on windows 2000 server.

I got everything working fine locally. I deployed my app and it's working fine on 
localhost:8080. Now I want to be able to see it from the outside and some files that I 
try to view from my domain come up with the actual source code.

I ran with several tutorials that keep saying Hey, you did it...it's was so easy 
wasn't it? and they don't say anything when it all goes wrong. No one goes the extra 
step to help out when these easy instructions do nothing. I'm looking at this for far 
too long now and I'm losing my mind slowly. 

I have IIS running and restarted it with jakarta virtual directory that has a green 
arrow up for the ISAPI redirector. But localhost doesn't find the pages. So I'm not 
sure what could be wrong. I set up the context for the inetpub/wwwroot with the path 
/ instead of the root context.

I'm having a lot of trouble with the workers.properties and uriworkermap.properties 
files. If anyone could help me with that it would be great. 
I also tried to get tomcat to service jsp files and IIS everything else (static HTML 
content), but still nothing.

Thanks in advance,

Lior 



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


IIS 5.0 + Tomcat 4.0.6 integration - getting Unable to read worker_file onstart

2002-10-15 Thread Palamarneri . Krishnan

Hi

I have installed Tomcat 4.0.6 on a Windows 2000 machine running IIS 5.0.  I
followed the documentation to install isapi_redirect.dll for integrating
Tomcat 4.0.6 with IIS.  I have checked and rechecked my registry entries
associated and they are correct. When I restarted IIS after adding the
isapi_redirect.dll,  isapi_redirect.dll is not loading (a red down arrow
next to the isapi_redirect.dll in ISAPI_FILTERS tab in the website
properties) and the iis_redirect.log file shows a message
jk_isapi_plugin.c  [jk_isapi_plugin.c (649)]: Unable to read worker_file E:
\Progs\jakarta-tomcat-4.0.6\conf\workers.properties.   Has anyone run into
this problem and have a solution to fix it.

Thanks in advance.

Palamarneri Krishnan


Email: [EMAIL PROTECTED]






This email message and all attachments transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and
privileged information. Please DO NOT forward this email outside of the recipient's 
Company unless expressly authorized to do so herein.  Any
unauthorized review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email
and destroy all copies of the original message.

Any views expressed in this email message are those of the individual sender except 
where the sender specifically states them to be the views of Indus
 International, Inc.




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




RE: IIS 5.0 + Tomcat 4.0.6 integration - getting Unable to read worker_file on start

2002-10-15 Thread Kolte,Yogesh

Hi
You might want to refere to this article .It worked for me.
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html

Yogesh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 10:31 AM
To: [EMAIL PROTECTED]
Subject: IIS 5.0 + Tomcat 4.0.6 integration - getting Unable to read
worker_file on start 


Hi

I have installed Tomcat 4.0.6 on a Windows 2000 machine running IIS 5.0.  I
followed the documentation to install isapi_redirect.dll for integrating
Tomcat 4.0.6 with IIS.  I have checked and rechecked my registry entries
associated and they are correct. When I restarted IIS after adding the
isapi_redirect.dll,  isapi_redirect.dll is not loading (a red down arrow
next to the isapi_redirect.dll in ISAPI_FILTERS tab in the website
properties) and the iis_redirect.log file shows a message
jk_isapi_plugin.c  [jk_isapi_plugin.c (649)]: Unable to read worker_file E:
\Progs\jakarta-tomcat-4.0.6\conf\workers.properties.   Has anyone run into
this problem and have a solution to fix it.

Thanks in advance.

Palamarneri Krishnan


Email: [EMAIL PROTECTED]






This email message and all attachments transmitted with it are for the sole
use of the intended recipient(s) and may contain confidential and
privileged information. Please DO NOT forward this email outside of the
recipient's Company unless expressly authorized to do so herein.  Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply email
and destroy all copies of the original message.

Any views expressed in this email message are those of the individual sender
except where the sender specifically states them to be the views of Indus
 International, Inc.




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

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




RE: Tomcat 4.0.5 / IIS 5

2002-10-15 Thread Turner, John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 10:48 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.0.5 / IIS 5
 
 

...snip...

 I ran with several tutorials that keep saying Hey, you did 
 it...it's was so easy wasn't it? and they don't say anything 
 when it all goes wrong. No one goes the extra step to help 
 out when these easy instructions do nothing. I'm looking at 
 this for far too long now and I'm losing my mind slowly. 

Rude and arrogant.  Don't expect much help making comments like that...this
list is filled with people who go out of their way to help people having
problems.  I've seen threads where more than one person is leading someone
through a process step-by-step, and have personally experienced the
frustration of trying to help someone step-by-step after they've bleated for
help, only to have them disappear or ignore advice and suggestions.

If there's anyone out there willing to help you, it might help _them_ if you
posted:

1) WHICH easy tutorials you followed...just because they are on the net
doesn't mean they are any good
2) relevant snippets of log files
3) your properties files

Have a great day.  If I used IIS, I might be inclined to help you out, but
then again, I might not.

John


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




Tomcat standAlone with SSL and Client Certificate

2002-10-15 Thread Frédéric LE MAISTRE

When I use Tomcat with SSL and clientAuth = true, Tomcat made an exception
with the following message : handshake alert : no certificate.
But I previously generate a client certificate, and add it to the
server.keystore.
I also added the server certificate to IE certificate.
What's wrong?

Big thanks

Stephanie


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




tomcat 4.1.12 and xml spy

2002-10-15 Thread Drinkwater, GJ (Glen)

Hi
I have been working with tomcat for a couple of years, but on friday i
downloaded xml spy 5 enterprise edition and now my tomcat server will not
work, it just falls over with out writing anything to catalina.out.  All my
older version will not work  and even the one inside netbeans doesnt work.

I have tried downloading it time and again without success.

Has anybody else heard of this or had the same problems

Glen


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




RE: Tomcat 4.0.5 / IIS 5

2002-10-15 Thread Lior Shliechkorn


I do apologize for the way that post was written. It's not easy to convey sincere 
requests for assistance with type. After 4 days of looking at this...I just feel that 
I might be close to solving this problem.
Why would I come on this list to offer rude and arrogant remarks when I try to find 
help from people that I know do not have to help and are offering their expertise and 
time to help others.
Now that we have that out of the way, I hope you see my side of the story a bit more 
clearly.
Thanks.
 Turner, John [EMAIL PROTECTED] wrote:
 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 10:48 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.0.5 / IIS 5
 
 

...snip...

 I ran with several tutorials that keep saying Hey, you did 
 it...it's was so easy wasn't it? and they don't say anything 
 when it all goes wrong. No one goes the extra step to help 
 out when these easy instructions do nothing. I'm looking at 
 this for far too long now and I'm losing my mind slowly. 

Rude and arrogant. Don't expect much help making comments like that...this
list is filled with people who go out of their way to help people having
problems. I've seen threads where more than one person is leading someone
through a process step-by-step, and have personally experienced the
frustration of trying to help someone step-by-step after they've bleated for
help, only to have them disappear or ignore advice and suggestions.

If there's anyone out there willing to help you, it might help _them_ if you
posted:

1) WHICH easy tutorials you followed...just because they are on the net
doesn't mean they are any good
2) relevant snippets of log files
3) your properties files

Have a great day. If I used IIS, I might be inclined to help you out, but
then again, I might not.

John


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


Re: Tomcat 4.0.5 / IIS 5

2002-10-15 Thread Nuno Santos

Lior Shliechkorn wrote:

I have IIS running and restarted it with jakarta virtual directory that has a green 
arrow up for the ISAPI redirector. But localhost doesn't find the pages. So I'm not 
sure what could be wrong. I set up the context for the inetpub/wwwroot with the path 
/ instead of the root context.
  

Did you setup the ajp13 connector in the tomcat server.xml file?

Best regards
Nuno Santos



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




RE: Tomcat 4.0.5 / IIS 5

2002-10-15 Thread Turner, John


Would you like to post:

1) which tutorials you've followed
2) relevant snippets of log files
3) your properties files

That might speed up the process of getting an answer for you.

John

 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 11:02 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.0.5 / IIS 5
 
 
 
 I do apologize for the way that post was written. It's not 
 easy to convey sincere requests for assistance with type. 
 After 4 days of looking at this...I just feel that I might be 
 close to solving this problem.
 Why would I come on this list to offer rude and arrogant 
 remarks when I try to find help from people that I know do 
 not have to help and are offering their expertise and time to 
 help others.
 Now that we have that out of the way, I hope you see my side 
 of the story a bit more clearly.
 Thanks.
  Turner, John [EMAIL PROTECTED] wrote:
  -Original Message-
  From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 15, 2002 10:48 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4.0.5 / IIS 5
  
  
 
 ...snip...
 
  I ran with several tutorials that keep saying Hey, you did 
  it...it's was so easy wasn't it? and they don't say anything 
  when it all goes wrong. No one goes the extra step to help 
  out when these easy instructions do nothing. I'm looking at 
  this for far too long now and I'm losing my mind slowly. 
 
 Rude and arrogant. Don't expect much help making comments 
 like that...this
 list is filled with people who go out of their way to help 
 people having
 problems. I've seen threads where more than one person is 
 leading someone
 through a process step-by-step, and have personally experienced the
 frustration of trying to help someone step-by-step after 
 they've bleated for
 help, only to have them disappear or ignore advice and suggestions.
 
 If there's anyone out there willing to help you, it might 
 help _them_ if you
 posted:
 
 1) WHICH easy tutorials you followed...just because they 
 are on the net
 doesn't mean they are any good
 2) relevant snippets of log files
 3) your properties files
 
 Have a great day. If I used IIS, I might be inclined to help 
 you out, but
 then again, I might not.
 
 John
 
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos,  more
 faith.yahoo.com
 

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




Re: Tomcat 4.0.5 / IIS 5

2002-10-15 Thread Lior Shliechkorn


 Did you setup the ajp13 connector in the tomcat server.xml file?

I uncommented it as I saw in a tutorial in one of the recent posts. I see that I have 
the isapi_redirect log in the tomcat\logs directory but it's empty. What should the 
worker.properties file contain? Maybe I have it wrong. This is what I have:

workers.tomcat_home=c:\tomcat
workers.java_home=c:\jdk1.3.1_04
ps=/
worker.list = worker1
worker.worker1.type = ajp13
worker.worker1.host = localhost
worker.worker1.port = 8009


and the uriworkermap.prop:

/*.jsp=worker1
/examples/*.jsp=worker1
/examples/servlet/*=worker1

But when I go to http://localhost/examples I get that the page cannot be found.

thanks,

Lior





-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


RE: Tomcat 4.0.5 / IIS 5

2002-10-15 Thread Turner, John


The files look pretty good.  Have you added the necessary registry keys?

John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 11:18 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.0.5 / IIS 5
 
 
 
  Did you setup the ajp13 connector in the tomcat server.xml file?
 
 I uncommented it as I saw in a tutorial in one of the recent 
 posts. I see that I have the isapi_redirect log in the 
 tomcat\logs directory but it's empty. What should the 
 worker.properties file contain? Maybe I have it wrong. This 
 is what I have:
 
 workers.tomcat_home=c:\tomcat
 workers.java_home=c:\jdk1.3.1_04
 ps=/
 worker.list = worker1
 worker.worker1.type = ajp13
 worker.worker1.host = localhost
 worker.worker1.port = 8009
 
 
 and the uriworkermap.prop:
 
 /*.jsp=worker1
 /examples/*.jsp=worker1
 /examples/servlet/*=worker1
 
 But when I go to http://localhost/examples I get that the 
 page cannot be found.
 
 thanks,
 
 Lior
 
 

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




Re: CLASSPATH problems on 3.3.1

2002-10-15 Thread Michael Finney

So something like this for the wrapper.jvm.options:

wrapper.jvm.options=-Dorg.apache.tomcat.apps.classpath=C:\SourceW\VSS\src;C:\SourceW\ja\src;C:\SourceW\VSS\lib\xerces.jar;C:\SourceW\lib\xml4j.jar
-Xrs 

right?   Can a person use quotes?

Did you learn about wrapper.jvm.options from the
RELEASE-NOTES-3.3.1.txt and what you could pass in
from the source code or is wrapper.jvm.options
documented in detail somewhere?  google did not reveal
anything more.  (As they say, I appreciate the fish.
However, I want to learn how to fish too.)

Thanks,
Michael

--- Bill Barker [EMAIL PROTECTED] wrote:
 Out of the box, the NT service also ignores your
 CLASSPATH.  You are always
 free to add wrapper.classpath properties to your
 wrapper.properties file
 to include additional locations in your classpath. 
 Depending on your
 application, this may or may not result in
 ClassLoader problems.
 
 The other method (the one I prefer) is to set:

wrapper.jvm.options=-Dorg.apache.tomcat.apps.classpath=your
 classpath
 
 This has the same effect as dumping them in
 $TOMCAT_HOME\lib\apps.
 
 Michael Finney [EMAIL PROTECTED] wrote in
 message

[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I will look.
 
  The NT service form of starting Tomcat does not
 use
  start up scripts.  Right?  I want to make sure I
  understand what we are saying here about the
 scripts.
 
  --- Larry Isaacs [EMAIL PROTECTED] wrote:
   Like Tomcat4, Tomcat 3.3's startup scripts
 ignore
   your CLASSPATH.  Tomcat 3.2.x's use of the
 CLASSPATH
   was one of the top sources of problems.
  
   For important differences upgrading from Tomcat
   3.2.x
   to Tomcat 3.3.x, see:
  
  
 

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/readme
  
   For how to configure classes in Tomcat 3.3.x,
 see:
  
  
 

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_
 classes
  
   HTH,
   Larry
  
-Original Message-
From: Michael Finney
 [mailto:[EMAIL PROTECTED]]
  
Sent: Monday, October 14, 2002 5:19 PM
To: Tomcat Users List
Subject: CLASSPATH problems on 3.3.1
   
   
3.3.1
IIS 5.0 and Tomcat 3.3.1 redirections
Running Jakarta as a Service on Windows 2000.
   
Has anyone else had problems with CLASSPATH
   getting
picked up in 3.3.1?
   
In a previous deployment, a CLASSPATH was set
 to
d:\whatever\classes (ok actually it was not
   classes it
was src, but the .class files are in src)
   
CLASSPATH was also set to specific jars.
   
It seems like in order to get classes and jars
   picked
up, I have had to dump the classes into
 tomcat
home\lib\apps   That seems so wrong.   ;)
   
I am trying to upgrade from 3.2.x to 3.3.1 and
 I
   would
not have expected such a rough CLASSPATH ride.
   
(Yes, I know about tomcat
 home\webapps\theweb
app\WEB-INF\*stuff  I am trying to keep the
   changes
to a minimum for this release.)
   
Thanks.
Michael
   
   
=
Michael Finney
Sun Certified Programmer for the Java 2
 Platform
Sun Certified Developer for the Java 2
 Platform
Sun Certified Web Component Developer for J2EE
   Platform
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP
 Users
   Group
If replying to this email address fails, try
   [EMAIL PROTECTED]
   
   
 __
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos 
 More
http://faith.yahoo.com
   
--
To unsubscribe, e-mail:
mailto:tomcat-user-
   [EMAIL PROTECTED]
For
additional commands,
e-mail:
   mailto:[EMAIL PROTECTED]
   
   
  
   --
   To unsubscribe, e-mail:
  
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
 
  =
  Michael Finney
  Sun Certified Programmer for the Java 2 Platform
  Sun Certified Developer for the Java 2 Platform
  Sun Certified Web Component Developer for J2EE
 Platform
  Cofounder of PPJDG
  Cofounder of cosAgile - Colorado Springs XP Users
 Group
  If replying to this email address fails, try
 [EMAIL PROTECTED]
 
  __
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos  More
  http://faith.yahoo.com
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




RE: Tomcat 4.0.5 / IIS 5

2002-10-15 Thread Lior Shliechkorn


Yes, I went to regedit and checked. It was all there.
Ok, there's something I see now. The log file for isapi_redirect.log has this in there 
now:
[Tue Oct 15 11:26:10 2002]  [jk_uri_worker_map.c (416)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 - *.jsp
[Tue Oct 15 11:26:10 2002]  [jk_isapi_plugin.c (617)]: HttpFilterProc 
[/examples/jsp/num/numguess.jsp] is a servlet url - should redirect to worker1
[Tue Oct 15 11:26:10 2002]  [jk_isapi_plugin.c (639)]: HttpFilterProc check if 
[/examples/jsp/num/numguess.jsp] is points to the web-inf directory
[Tue Oct 15 11:26:10 2002]  [jk_isapi_plugin.c (679)]: HttpExtensionProc started
[Tue Oct 15 11:26:10 2002]  [jk_worker.c (123)]: Into wc_get_worker_for_name worker1
[Tue Oct 15 11:26:10 2002]  [jk_worker.c (127)]: wc_get_worker_for_name, done did not 
found a worker
[Tue Oct 15 11:26:10 2002]  [jk_isapi_plugin.c (701)]: HttpExtensionProc could not get 
a worker for name worker1
[Tue Oct 15 11:26:10 2002]  [jk_isapi_plugin.c (722)]: HttpExtensionProc error, could 
not get a worker for name worker1
Why could it not get the worker1? This is very exciting.
Thanks.
 Turner, John [EMAIL PROTECTED] wrote:
The files look pretty good. Have you added the necessary registry keys?

John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 11:18 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.0.5 / IIS 5
 
 
 
  Did you setup the ajp13 connector in the tomcat server.xml file?
 
 I uncommented it as I saw in a tutorial in one of the recent 
 posts. I see that I have the isapi_redirect log in the 
 tomcat\logs directory but it's empty. What should the 
 worker.properties file contain? Maybe I have it wrong. This 
 is what I have:
 
 workers.tomcat_home=c:\tomcat
 workers.java_home=c:\jdk1.3.1_04
 ps=/
 worker.list = worker1
 worker.worker1.type = ajp13
 worker.worker1.host = localhost
 worker.worker1.port = 8009
 
 
 and the uriworkermap.prop:
 
 /*.jsp=worker1
 /examples/*.jsp=worker1
 /examples/servlet/*=worker1
 
 But when I go to http://localhost/examples I get that the 
 page cannot be found.
 
 thanks,
 
 Lior
 
 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


servlet mapping help

2002-10-15 Thread Aryeh Katz

I'm trying to integrate mod_jk and tomcat.
My httpd.conf file has the following mapping

JkMount /examples/servlets/* worker1

and I see the following in my jk log file (at debug)

[Tue Oct 15 11:52:17 2002]  [jk_uri_worker_map.c (321)]: Into  
jk_uri_worker_map_t::uri_worker_map_open, match rule
/examples/servlets/=worker1 was added [Tue Oct 15 11:52:17 2002] 
[jk_uri_worker_map.c (408)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct
15 11:52:17 2002]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 15 11:52:20
2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker [Tue Oct 15 11:52:20 2002] 
[jk_uri_worker_map.c (477)]: Attempting to map URI
'/examples/servlets/HelloWorldExample' [Tue Oct 15 11:52:20 2002] 
[jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a context match worker1 - /examples/servlets/ [Tue Oct 15
11:52:20 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
worker1 [Tue Oct 15 11:52:20 2002]  [jk_worker.c (136)]:
wc_get_worker_for_name, done did not found a worker

Why is my worker getting lost? Do I have some kind of 
misconfiguration?

---
Aryeh Katz
VASCO   
www.vasco.com

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




Re: Symlink and trouble with include directive

2002-10-15 Thread Graham King

  Luise,

  I have the same problem. In Tomcat versions 4.1.* applications are not allowed to 
follow symlinks 
that take them out of their webapp directory. The 'allowLinking' is meant to override 
this but is 
apparently buggy (it definately didn't work for me). See here:

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg68686.html

  I gather this will be fixed in 4.1.13. If you really need to symlink stick with the 
4.0 branch for 
now.

  Does anyone know for sure if this is planned for a fix in 4.1.13 ?

  Graham.

Luise Massimo wrote:
 Hi all,
 
 i asked before for help with JSP page that include a symlink file.
 
 examining the source code i noticed in 
 org.apache.naming.resources.FileDirContext 2 things regarding symlinks:
 
 1) there is a flag name allowLinkingbut i don't know if it 
 settable or not
 2) there is a test beetween AbsolutePath and CanonicalPath of the 
 included file.it's this test that preclude the use of symlinks in 
 the include directive
 
 Can anyone help me understanding this things ?
 
 Thanks
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


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




Upgrading from 3.2.1 to 4.0.6

2002-10-15 Thread Kristján Rúnarsson

First off Hello everybody!

I have been given the task of migrating from Tomcat 3.2.1 to 4.0.6. After 
a lot of cussing I finally noticed that reference to port 8008 at the very 
end of the server.xml and changed it to an unused port which means that I 
have finally managed to get both the 3.2.1 and 4.0.6 servers working in 
paralell so that I can Scr*w around with the webapp on the new server and 
leave the old one chucking along presenting the webapp for my online 
admirers. 
NOW! Having reached this monumental milestone in my career as a Tomcat 
Admin I figured copying the conf files (except for sever.xml of course) as 
well as the entire webapps directory over to the 4.0.6 servers home 
directory and backing up the origs would be enough. Simplistic I know! The 
problem is I get a:

Apache Tomcat/4.0.6 - HTTP status 404 - /foo/bar.jsp

Could some body comment on what might be wrong? Or better yet share from 
the fountains of His/Her wisdom what one has to do to migrate from Tomcat 
3.2.x to 4.0.x? Is it possible to port an app that ran on a Tomcat 3.2.1 
to a Tomcat 4.0.6 with relatively little trouble or will I have to rewrite 
a whole bunch of config files or worse still the webapp?

Kind Regards
KR

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




Environment variables in server.xml

2002-10-15 Thread Rodrigo Ruiz

Does Tomcat 4 still support environment variables into its server.xml file?

We would like our tomcat instances to automatically choose their HTTP port
from an environment variable.
It worked in Tomcat 3.3, doing something like:

TOMCAT_OPTS=-Dhttp.port=$HTTP_PORT

and using ${http.port} in our shared server.xml file.

Is it still possible to do this?

Thanks in advance

--
GRIDSYSTEMSRodrigo Ruiz Aguayo
Parc Bit - Son EspanyolAnalista Programador
07120 Palma de Mallorca[EMAIL PROTECTED]
Baleares - España  Tel:+34-971435085
www.gridsystems.comFax:+34-971435082


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




TomCat ver 4.0.1, W2K and IIS5

2002-10-15 Thread David Cochrane

Whoever can assist.

What I need is solid information on the following -

I'm installing MeetingMaker ver 7.2.1 and according to the documents Tomcat
ver. 4.0.1 is required in order to run the Intellisync software. Vers. 4.02 
and ver 4.0.3 don't work (don't want to go there)

The MMServer is up and running on a W2K Server
The MMJava enabled web calendar server is up and running - on a W2K IIS5 Server

Now (in order to use intellisync) I need to install Tomcat ver 4.0.1 - 
I'm guessing the install should be
based on the how to the In-process servlet configuration.
What files do I need, where are they and is there install docs for this 
type of install (tomcat ver4.0.1 and IIS5)?
The installation is for one server - not multiple
I've got information on what MM needs regarding editing files etc.


David P. CochraneContact Information
Network Coordinator 814-865-0474 - Phone
Penn State University   www.psu.edu
College of Education www.ed.psu.edu
Education Technology Center814-865-0471 - Phone
ETC Web Site  www.ed.psu.edu/etc
Network Web Sitewww.ed.psu.edu/etc/network
   814-865-1955 - Fax

Quote: The best things in life are not things they are people!


Re: servlet mapping help

2002-10-15 Thread Jacob Kjome

Hello Aryeh,

The proper syntax is:

JkMount /examples/servlets/* ajp13

You define the protocol, not a worker after the mount pattern.

Jake

Tuesday, October 15, 2002, 11:03:01 AM, you wrote:

AK I'm trying to integrate mod_jk and tomcat.
AK My httpd.conf file has the following mapping

AK JkMount /examples/servlets/* worker1

AK and I see the following in my jk log file (at debug)

AK [Tue Oct 15 11:52:17 2002]  [jk_uri_worker_map.c (321)]: Into  
AK jk_uri_worker_map_t::uri_worker_map_open, match rule
AK /examples/servlets/=worker1 was added [Tue Oct 15 11:52:17 2002] 
AK [jk_uri_worker_map.c (408)]: Into
AK jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct
AK 15 11:52:17 2002]  [jk_uri_worker_map.c (422)]:
AK jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 15 11:52:20
AK 2002]  [jk_uri_worker_map.c (460)]: Into
AK jk_uri_worker_map_t::map_uri_to_worker [Tue Oct 15 11:52:20 2002] 
AK [jk_uri_worker_map.c (477)]: Attempting to map URI
AK '/examples/servlets/HelloWorldExample' [Tue Oct 15 11:52:20 2002] 
AK [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker,
AK Found a context match worker1 - /examples/servlets/ [Tue Oct 15
AK 11:52:20 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
AK worker1 [Tue Oct 15 11:52:20 2002]  [jk_worker.c (136)]:
AK wc_get_worker_for_name, done did not found a worker

AK Why is my worker getting lost? Do I have some kind of 
AK misconfiguration?

AK ---
AK Aryeh Katz
AK VASCO   
AK www.vasco.com

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: TomCat ver 4.0.1, W2K and IIS5

2002-10-15 Thread Turner, John


http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/v4.0.1/bin/

http://www.vacodi.com/howto/tomcat/iisnt/index.html

John


 -Original Message-
 From: David Cochrane [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 12:40 PM
 To: [EMAIL PROTECTED]
 Subject: TomCat ver 4.0.1, W2K and IIS5
 
 
 Whoever can assist.
 
 What I need is solid information on the following -
 
 I'm installing MeetingMaker ver 7.2.1 and according to the 
 documents Tomcat
 ver. 4.0.1 is required in order to run the Intellisync 
 software. Vers. 4.02 
 and ver 4.0.3 don't work (don't want to go there)
 
 The MMServer is up and running on a W2K Server
 The MMJava enabled web calendar server is up and running - on 
 a W2K IIS5 Server
 
 Now (in order to use intellisync) I need to install Tomcat 
 ver 4.0.1 - 
 I'm guessing the install should be
 based on the how to the In-process servlet configuration.
 What files do I need, where are they and is there install 
 docs for this 
 type of install (tomcat ver4.0.1 and IIS5)?
 The installation is for one server - not multiple
 I've got information on what MM needs regarding editing files etc.
 
 
 David P. CochraneContact Information
 Network Coordinator 814-865-0474 - Phone
 Penn State University   www.psu.edu
 College of Education www.ed.psu.edu
 Education Technology Center814-865-0471 - Phone
 ETC Web Site  www.ed.psu.edu/etc
 Network Web Site
 www.ed.psu.edu/etc/network

 814-865-1955 - Fax
 
 Quote: The best things in life are not things they are people!
 

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




Startup error

2002-10-15 Thread Mihai Gheorghiu

TC4.0.2 jdk1.4.1 RH7.1
Everything went fine until this morning, when TC stopped loading my
application when started.
Catalina.out shows:

ERROR reading java.io.FileInputStream@88e2dd
At Line 2340 /web-app/servlet-mapping

It seems to come from web.xml, because if I add a blank line, the error line
changes.
But I cannot figure out why: line 2340 is
/servlet-mapping
and closes a well-formatted servlet-mapping declaration.
Please help.
Thank you all.


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




RE: Upgrading from 3.2.1 to 4.0.6

2002-10-15 Thread Cox, Charlie

did you create a 'foo' context in server.xml?

you do not want to overwrite /conf/web.xml. you can copy the web.xml from
your webapps along with all your code and it should work since it's
backwards compatible.

are there any errors in the logs?

Charlie

 -Original Message-
 From: Kristjan Rznarsson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 12:25 PM
 To: Tomcat Users List
 Subject: Upgrading from 3.2.1 to 4.0.6
 
 
 First off Hello everybody!
 
 I have been given the task of migrating from Tomcat 3.2.1 to 
 4.0.6. After 
 a lot of cussing I finally noticed that reference to port 
 8008 at the very 
 end of the server.xml and changed it to an unused port which 
 means that I 
 have finally managed to get both the 3.2.1 and 4.0.6 servers 
 working in 
 paralell so that I can Scr*w around with the webapp on the 
 new server and 
 leave the old one chucking along presenting the webapp for my online 
 admirers. 
 NOW! Having reached this monumental milestone in my career as 
 a Tomcat 
 Admin I figured copying the conf files (except for sever.xml 
 of course) as 
 well as the entire webapps directory over to the 4.0.6 servers home 
 directory and backing up the origs would be enough. 
 Simplistic I know! The 
 problem is I get a:
 
 Apache Tomcat/4.0.6 - HTTP status 404 - /foo/bar.jsp
 
 Could some body comment on what might be wrong? Or better yet 
 share from 
 the fountains of His/Her wisdom what one has to do to migrate 
 from Tomcat 
 3.2.x to 4.0.x? Is it possible to port an app that ran on a 
 Tomcat 3.2.1 
 to a Tomcat 4.0.6 with relatively little trouble or will I 
 have to rewrite 
 a whole bunch of config files or worse still the webapp?
 
 Kind Regards
 KR
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Tomcat IIS Worker problem

2002-10-15 Thread Lior Shliechkorn


I'm getting the following error in the isapi_redirect.log file:

[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (655)]: Detected IIS = 5.0
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (696)]: HttpFilterProc started
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host 
redirection of /localhost/examples/jsp/num/numguess.jsp
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (477)]: Attempting to map URI 
'/localhost/examples/jsp/num/numguess.jsp'
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (558)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (775)]: HttpFilterProc 
[/examples/jsp/num/numguess.jsp] is a servlet url - should redirect to ajp13
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (838)]: HttpFilterProc check if 
[/examples/jsp/num/numguess.jsp] is points to the web-inf directory
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (806)]: Using registry.
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (808)]: Using log file 
C:\tomcat\logs\iis_redirect.log.
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (809)]: Using log level 0.
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (810)]: Using extension uri 
/jakarta/isapi_redirect.dll.
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (811)]: Using worker file 
C:\tomcat\conf\workers.properties.
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (812)]: Using worker mount file 
C:\tomcat\conf\uriworkermap.properties.
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (159)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (199)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (217)]: 
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 5
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (262)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=ajp13 was added
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (262)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /refcoapp/.jsp=ajp13 was added
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (262)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp13 was added
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (273)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=ajp13 was added
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (302)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 4 rules
[Tue Oct 15 12:34:16 2002]  [jk_uri_worker_map.c (324)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (82)]: Into wc_open
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (207)]: Into build_worker_map, creating 1 
workers
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (213)]: build_worker_map, creating worker 
ajp12
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (152)]: wc_create_worker, about to create 
instance ajp12 of ajp12
[Tue Oct 15 12:34:16 2002]  [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (161)]: wc_create_worker, about to validate 
and init ajp12
[Tue Oct 15 12:34:16 2002]  [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
[Tue Oct 15 12:34:16 2002]  [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for 
worker ajp12 contact is localhost:8007
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (223)]: build_worker_map, removing old ajp12 
worker 
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (235)]: build_worker_map, done
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (102)]: wc_open, done
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (679)]: HttpExtensionProc started
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
[Tue Oct 15 12:34:16 2002]  [jk_worker.c (127)]: wc_get_worker_for_name, done did not 
found a worker
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (701)]: HttpExtensionProc could not get 
a worker for name ajp13
[Tue Oct 15 12:34:16 2002]  [jk_isapi_plugin.c (722)]: HttpExtensionProc error, could 
not get a worker for name ajp13


I'm not sure why it cannot get a worker. Any ideas about what could be wrong. I used 
this link to try to get some help: 
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html and I didn't 
notice much difference in what I did and what they had. I restarted both Tomcat and 
IIS and I have nothing.

Thanks,

Lior Shliechkorn

PS - and thanks to those who helped me get this far.

 



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


Custom Tag / JavaBean question

2002-10-15 Thread Cindy Ballreich


I have a custom tag that takes a collection as one of it's parameters. I'd like to be 
able to give the name of an attribute (a String) as the value and have the tag find 
the attribute from the pageContext. This doesn't seem like it should be too difficult. 
I have setters that look like this in my tag...

  protected Collection accessList;

  public void setAccessList(String accessList) {
Object o = pageContext.findAttribute(accessList);
if (o instanceof Collection) {
  this.accessList = (Collection)o;
}
  }

  public void setAccessList(Collection accessList) {
this.accessList = accessList;
  }

...and the tag looks like this on the jsp page...

  jsp:useBean id=accessList scope=request class=java.util.Vector /
  mpi:accessList id=access accessList=accessList ... 
 ...
  /mpi:accessList

... but I keep getting errors like this...

org.apache.jasper.JasperException: Unable to convert string 'accessList' to class 
java.util.Collection for attribute accessList: java.lang.IllegalArgumentException: 
Property Editor not registered with the PropertyEditorManager
at 
org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:749)

If I use a run time value in the tag I don't get the error...

  jsp:useBean id=accessList scope=request class=java.util.Vector /
  mpi:accessList id=access accessList='%= accessList % ... 
 ...
  /mpi:accessList

So I have a workaround for the problem, but I'd still like to understand why the first 
example doesn't work when everything I've read says that it should.

I'm using Tomcat 4.1.12 on NT 4.0 (development server) with j2sdk1.4.0_01.

Thanks

Cindy



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




Re: servlet mapping help

2002-10-15 Thread Aryeh Katz

 Hello Aryeh,
 
 The proper syntax is:
 
 JkMount /examples/servlets/* ajp13
 
 You define the protocol, not a worker after the mount pattern.
This did not help matters. Even after changing httpd.conf and 
workers.properties, I get the same behavior.
Just one question. Can you point me to documentation that says it's
the protocol, not the worker? The web page
http://jakarta.apache.org/tomcat/tomcat-4.1-
doc/jk2/jk/aphowto.html#mod_jk%20Directives seems to imply it's the
worker, along with the mod_jk comments (lines 660 and 1412 in v 
4.0.6), that state it's a worker. Thanks for your help. 
Aryeh 
  Jake
 Tuesday, October 15, 2002, 11:03:01 AM, you wrote:   AK I'm trying
to integrate mod_jk and tomcat.  AK My httpd.conf file has the
following mapping   AK JkMount /examples/servlets/* worker1   
AK
and I see the following in my jk log file (at debug)   AK [Tue Oct
15 11:52:17 2002]  [jk_uri_worker_map.c (321)]: Into   

 AK jk_uri_worker_map_t::uri_worker_map_open, match rule AK
 /examples/servlets/=worker1 was added [Tue Oct 15 11:52:17 2002] 
AK
 [jk_uri_worker_map.c (408)]: Into AK
 jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue 
Oct
 AK 15 11:52:17 2002]  [jk_uri_worker_map.c (422)]: AK
 jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 15 11:52:20
 AK 2002]  [jk_uri_worker_map.c (460)]: Into AK
 jk_uri_worker_map_t::map_uri_to_worker [Tue Oct 15 11:52:20 2002] 
AK
 [jk_uri_worker_map.c (477)]: Attempting to map URI AK
 '/examples/servlets/HelloWorldExample' [Tue Oct 15 11:52:20 2002] 
AK
 [jk_uri_worker_map.c (502)]: 
jk_uri_worker_map_t::map_uri_to_worker,
 AK Found a context match worker1 - /examples/servlets/ [Tue Oct 
15
 AK 11:52:20 2002]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name
 AK worker1 [Tue Oct 15 11:52:20 2002]  [jk_worker.c (136)]: AK
 wc_get_worker_for_name, done did not found a worker
 
 AK Why is my worker getting lost? Do I have some kind of 
 AK misconfiguration?

---
Aryeh Katz
VASCO   
www.vasco.com   

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




Tomcat Server Web Stats Programs??

2002-10-15 Thread Matt Fury

Does anyone have any suggestions for Web Stats
programs running wth Tomcat? Does anyone know or has
setup Tomcat with something like AWStats? 

I am using Tomcat as a Standalone to serve HTML and
JSP so I need a stats package for everything.

Thanks!

-Matt

=

int myName() {
  cout  -Matt Fury \n;
  return 0;
}


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




RE: servlet mapping help

2002-10-15 Thread Turner, John


You didn't have to change workers.properties at all.

It works like this:

1. map request URI, if it fits a JkMount statement, check protocol
2. if protocol = ajp13 then JK (eg. ajp12 = JServ)
3. if JK look for workers.properties file
4. if found, use connection information to make connection

So, you should have a line like this in httpd.conf:

JkMount /examples/servlets/* ajp13

And a few lines like this in workers.properties:

worker.list=some-name
worker.some-name.port=8009
worker.some-name.host=your.host.com
worker.some-name.type=ajp13

Believe me, it works as Jake posted...many, many people have working
configurations just like that.

John

 -Original Message-
 From: Aryeh Katz [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 1:17 PM
 To: [EMAIL PROTECTED]
 Subject: Re: servlet mapping help
 
 
  Hello Aryeh,
  
  The proper syntax is:
  
  JkMount /examples/servlets/* ajp13
  
  You define the protocol, not a worker after the mount pattern.
 This did not help matters. Even after changing httpd.conf and 
 workers.properties, I get the same behavior.
 Just one question. Can you point me to documentation that says it's
 the protocol, not the worker? The web page
 http://jakarta.apache.org/tomcat/tomcat-4.1-
 doc/jk2/jk/aphowto.html#mod_jk%20Directives seems to imply it's the
 worker, along with the mod_jk comments (lines 660 and 1412 in v 
 4.0.6), that state it's a worker. Thanks for your help. 
 Aryeh 
   Jake
  Tuesday, October 15, 2002, 11:03:01 AM, you wrote:   AK 
 I'm trying
 to integrate mod_jk and tomcat.  AK My httpd.conf file has the
 following mapping   AK JkMount /examples/servlets/* worker1   
 AK
 and I see the following in my jk log file (at debug)   AK [Tue Oct
 15 11:52:17 2002]  [jk_uri_worker_map.c (321)]: Into   

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




RE: Upgrading from 3.2.1 to 4.0.6

2002-10-15 Thread Kristján Rúnarsson

First off thanx for the reply!

did you create a 'foo' context in server.xml?

No I just changed the ports in the example file that came with Tomcat 
4.0.6 because the diff  between it and the on for the 3.2.1 server seemd 
too great. I suspect I am getting the server.xml configuration wrong. 

You mention  below that the web.xml file is backwards compatable does that 
hold for the Server.xml file as well? in other words, Can I port the 
Server.xml file from the 3.2.1 server to the 4.0.6 server and only change 
the ports and minor other setting to get the old webapps working on the 
new server? All I really want is to get the webapps from the old server 
running on the new one with minimal changes to the configruation.

you do not want to overwrite /conf/web.xml. you can copy the web.xml from
your webapps along with all your code and it should work since it's
backwards compatible.

So if I copy the webapp and the web.xml file from the 3.2.1 server to the 
new 4.0.6 server they are fully backwards compatable?!? Nice!

are there any errors in the logs?

I tailed the ones in CATALINA_HOME/logs but saw nothing unusual.

Mvh
Kristjan Runarsson

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




RE: CLASSPATH problems on 3.3.1

2002-10-15 Thread Larry Isaacs



 -Original Message-
 From: Michael Finney [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, October 15, 2002 11:25 AM
 To: Tomcat Users List
 Subject: Re: CLASSPATH problems on 3.3.1
 
 
 So something like this for the wrapper.jvm.options:
 
 wrapper.jvm.options=-Dorg.apache.tomcat.apps.classpath=C:\Sour
 ceW\VSS\src;C:\SourceW\ja\src;C:\SourceW\VSS\lib\xerces.jar;C:
 \SourceW\lib\xml4j.jar
 -Xrs 
 
 right?

The above should work.

   Can a person use quotes?

As long as they are valid in the resulting Java command. 

 
 Did you learn about wrapper.jvm.options from the
 RELEASE-NOTES-3.3.1.txt and what you could pass in
 from the source code or is wrapper.jvm.options
 documented in detail somewhere?  google did not reveal
 anything more.  (As they say, I appreciate the fish.
 However, I want to learn how to fish too.)

The main purpose of wrapper.properties is to tell jk_nt_service
how to construct the Java command to execute to start tomcat.
This command supports the same capabilities as starting
Tomcat from the batch scripts.  The batch scripts just
build the command through different means.  Any option
that works for the batch scripts can be incorporated into
wrapper.properties in some fashion.  For example, starting
the Tomcat service with a security manager is possible, but
not specifially addressed in the default wrapper.properties

Cheers,
Larry

 
 Thanks,
 Michael
 
 --- Bill Barker [EMAIL PROTECTED] wrote:
  Out of the box, the NT service also ignores your
  CLASSPATH.  You are always
  free to add wrapper.classpath properties to your
  wrapper.properties file
  to include additional locations in your classpath. 
  Depending on your
  application, this may or may not result in
  ClassLoader problems.
  
  The other method (the one I prefer) is to set:
 
 wrapper.jvm.options=-Dorg.apache.tomcat.apps.classpath=your
  classpath
  
  This has the same effect as dumping them in
  $TOMCAT_HOME\lib\apps.
  
  Michael Finney [EMAIL PROTECTED] wrote in
  message
 
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   I will look.
  
   The NT service form of starting Tomcat does not
  use
   start up scripts.  Right?  I want to make sure I
   understand what we are saying here about the
  scripts.
  
   --- Larry Isaacs [EMAIL PROTECTED] wrote:
Like Tomcat4, Tomcat 3.3's startup scripts
  ignore
your CLASSPATH.  Tomcat 3.2.x's use of the
  CLASSPATH
was one of the top sources of problems.
   
For important differences upgrading from Tomcat
3.2.x
to Tomcat 3.3.x, see:
   
   
  
 
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/readme
   
For how to configure classes in Tomcat 3.3.x,
  see:
   
   
  
 
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.htm
 l#configuring_
  classes
   
HTH,
Larry
   
 -Original Message-
 From: Michael Finney
  [mailto:[EMAIL PROTECTED]]
   
 Sent: Monday, October 14, 2002 5:19 PM
 To: Tomcat Users List
 Subject: CLASSPATH problems on 3.3.1


 3.3.1
 IIS 5.0 and Tomcat 3.3.1 redirections
 Running Jakarta as a Service on Windows 2000.

 Has anyone else had problems with CLASSPATH
getting
 picked up in 3.3.1?

 In a previous deployment, a CLASSPATH was set
  to
 d:\whatever\classes (ok actually it was not
classes it
 was src, but the .class files are in src)

 CLASSPATH was also set to specific jars.

 It seems like in order to get classes and jars
picked
 up, I have had to dump the classes into
  tomcat
 home\lib\apps   That seems so wrong.   ;)

 I am trying to upgrade from 3.2.x to 3.3.1 and
  I
would
 not have expected such a rough CLASSPATH ride.

 (Yes, I know about tomcat
  home\webapps\theweb
 app\WEB-INF\*stuff  I am trying to keep the
changes
 to a minimum for this release.)

 Thanks.
 Michael


 =
 Michael Finney
 Sun Certified Programmer for the Java 2
  Platform
 Sun Certified Developer for the Java 2
  Platform
 Sun Certified Web Component Developer for J2EE
Platform
 Cofounder of PPJDG
 Cofounder of cosAgile - Colorado Springs XP
  Users
Group
 If replying to this email address fails, try
[EMAIL PROTECTED]


  __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos 
  More
 http://faith.yahoo.com

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


   
--
To unsubscribe, e-mail:
   
  mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
  
  
   =
   Michael Finney
   Sun Certified Programmer for the Java 2 Platform
   Sun Certified Developer for the Java 2 Platform
   Sun Certified Web Component Developer for J2EE
  Platform
   Cofounder of PPJDG
   

jsp compil

2002-10-15 Thread Maxime Colas des Francs

after installing my webapp in $CATALINA_HOME/webapps,

how can i pre-compile  compile all my jsp in one shot ?

thxs




RE: Tomcat IIS Worker problem

2002-10-15 Thread Ignacio J. Ortega

 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 7:09 PM

 [Tue Oct 15 12:34:16 2002]  [jk_worker.c (82)]: Into wc_open
 [Tue Oct 15 12:34:16 2002]  [jk_worker.c (207)]: Into 
 build_worker_map, creating 1 workers
 [Tue Oct 15 12:34:16 2002]  [jk_worker.c (213)]: 
 build_worker_map, creating worker ajp12
 [Tue Oct 15 12:34:16 2002]  [jk_worker.c (138)]: Into wc_create_worker
 [Tue Oct 15 12:34:16 2002]  [jk_worker.c (152)]: 
 wc_create_worker, about to create instance ajp12 of ajp12
 [Tue Oct 15 12:34:16 2002]  [jk_ajp12_worker.c (264)]: Into 
 ajp12_worker_factory
 [Tue Oct 15 12:34:16 2002]  [jk_worker.c (161)]: 
 wc_create_worker, about to validate and init ajp12
 [Tue Oct 15 12:34:16 2002]  [jk_ajp12_worker.c (182)]: Into 
 jk_worker_t::validate
 [Tue Oct 15 12:34:16 2002]  [jk_ajp12_worker.c (194)]: In 
 jk_worker_t::validate for worker ajp12 contact is localhost:8007
 [Tue Oct 15 12:34:16 2002]  [jk_worker.c (177)]: 
 wc_create_worker, done
 [Tue Oct 15 12:34:16 2002]  [jk_worker.c (223)]: 
 build_worker_map, removing old ajp12 worker 
 [Tue Oct 15 12:34:16 2002]  [jk_worker.c (235)]: 
 build_worker_map, done


This log excerpt seems to say that your workers.properties files doenst
define a ajp13 worker, and you are assinging the uri to this
nonexistent worker.. 

1) To see it working use ajp12 instead of ajp13 in your uw.p file
2) post your w.p file to help you use the better ajp13 protocol instead
of ajp12

HTH

Saludos, 
Ignacio J. Ortega 

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




Re: Custom Tag / JavaBean question

2002-10-15 Thread Padhu Vinirs


Looks like you defined a type as java.util.Vector ( wtih rtexprvalue 
set to true ) in your tld for the accessList attribute ?

-- padhu


Cindy Ballreich wrote:

I have a custom tag that takes a collection as one of it's parameters. I'd like to be 
able to give the name of an attribute (a String) as the value and have the tag find 
the attribute from the pageContext. This doesn't seem like it should be too 
difficult. I have setters that look like this in my tag...

  protected Collection accessList;

  public void setAccessList(String accessList) {
Object o = pageContext.findAttribute(accessList);
if (o instanceof Collection) {
  this.accessList = (Collection)o;
}
  }

  public void setAccessList(Collection accessList) {
this.accessList = accessList;
  }

...and the tag looks like this on the jsp page...

  jsp:useBean id=accessList scope=request class=java.util.Vector /
  mpi:accessList id=access accessList=accessList ... 
 ...
  /mpi:accessList

... but I keep getting errors like this...

org.apache.jasper.JasperException: Unable to convert string 'accessList' to class 
java.util.Collection for attribute accessList: java.lang.IllegalArgumentException: 
Property Editor not registered with the PropertyEditorManager
   at 
org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:749)

If I use a run time value in the tag I don't get the error...

  jsp:useBean id=accessList scope=request class=java.util.Vector /
  mpi:accessList id=access accessList='%= accessList % ... 
 ...
  /mpi:accessList

So I have a workaround for the problem, but I'd still like to understand why the 
first example doesn't work when everything I've read says that it should.

I'm using Tomcat 4.1.12 on NT 4.0 (development server) with j2sdk1.4.0_01.

Thanks

Cindy



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


  




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




RE: Tomcat IIS Worker problem

2002-10-15 Thread Lior Shliechkorn


Ok, so now that I changed the service to ajp12 I get the following in the log file:
[Tue Oct 15 13:48:24 2002]  [jk_isapi_plugin.c (679)]: HttpExtensionProc started
[Tue Oct 15 13:48:24 2002]  [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[Tue Oct 15 13:48:24 2002]  [jk_worker.c (127)]: wc_get_worker_for_name, done  found a 
worker
[Tue Oct 15 13:48:24 2002]  [jk_isapi_plugin.c (701)]: HttpExtensionProc got a worker 
for name ajp12
[Tue Oct 15 13:48:24 2002]  [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[Tue Oct 15 13:48:24 2002]  [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[Tue Oct 15 13:48:24 2002]  [jk_connect.c (108)]: Into jk_open_socket
[Tue Oct 15 13:48:24 2002]  [jk_connect.c (115)]: jk_open_socket, try to connect 
socket = 632
[Tue Oct 15 13:48:25 2002]  [jk_connect.c (124)]: jk_open_socket, after connect ret = 
-1
[Tue Oct 15 13:48:25 2002]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Tue Oct 15 13:48:25 2002]  [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 
-1
[Tue Oct 15 13:48:25 2002]  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, 
Error sd = -1
[Tue Oct 15 13:48:25 2002]  [jk_isapi_plugin.c (716)]: HttpExtensionProc error, 
service() failed
[Tue Oct 15 13:48:25 2002]  [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done

Not sure what these errors mean...never did this before.
Thanks.
 Ignacio J. Ortega [EMAIL PROTECTED] wrote: From: Lior Shliechkorn 
[mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 7:09 PM

 [Tue Oct 15 12:34:16 2002] [jk_worker.c (82)]: Into wc_open
 [Tue Oct 15 12:34:16 2002] [jk_worker.c (207)]: Into 
 build_worker_map, creating 1 workers
 [Tue Oct 15 12:34:16 2002] [jk_worker.c (213)]: 
 build_worker_map, creating worker ajp12
 [Tue Oct 15 12:34:16 2002] [jk_worker.c (138)]: Into wc_create_worker
 [Tue Oct 15 12:34:16 2002] [jk_worker.c (152)]: 
 wc_create_worker, about to create instance ajp12 of ajp12
 [Tue Oct 15 12:34:16 2002] [jk_ajp12_worker.c (264)]: Into 
 ajp12_worker_factory
 [Tue Oct 15 12:34:16 2002] [jk_worker.c (161)]: 
 wc_create_worker, about to validate and init ajp12
 [Tue Oct 15 12:34:16 2002] [jk_ajp12_worker.c (182)]: Into 
 jk_worker_t::validate
 [Tue Oct 15 12:34:16 2002] [jk_ajp12_worker.c (194)]: In 
 jk_worker_t::validate for worker ajp12 contact is localhost:8007
 [Tue Oct 15 12:34:16 2002] [jk_worker.c (177)]: 
 wc_create_worker, done
 [Tue Oct 15 12:34:16 2002] [jk_worker.c (223)]: 
 build_worker_map, removing old ajp12 worker 
 [Tue Oct 15 12:34:16 2002] [jk_worker.c (235)]: 
 build_worker_map, done


This log excerpt seems to say that your workers.properties files doenst
define a ajp13 worker, and you are assinging the uri to this
nonexistent worker.. 

1) To see it working use ajp12 instead of ajp13 in your uw.p file
2) post your w.p file to help you use the better ajp13 protocol instead
of ajp12

HTH

Saludos, 
Ignacio J. Ortega 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


RE: Tomcat IIS Worker problem

2002-10-15 Thread Turner, John


Looks to me like your Tomcat is either not running, or listening on a
different port:

[Tue Oct 15 13:48:24 2002]  [jk_connect.c (115)]: jk_open_socket, try to
connect socket = 632
[Tue Oct 15 13:48:25 2002]  [jk_connect.c (124)]: jk_open_socket, after
connect ret = -1
[Tue Oct 15 13:48:25 2002]  [jk_connect.c (143)]: jk_open_socket, connect()
failed errno = 61

FYI -

It would be A LOT easier for people to help you if you would post some
config files (as I've already suggested twice...maybe 3 times is the charm).
Probably could have saved the last 2 or 3 iterations of OK, I tried X and
got Y, now what?.  But hey, if you want to draw this out, that's cool.

John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 1:53 PM
 To: Tomcat Users List
 Subject: RE: Tomcat IIS Worker problem
 
 
 
 Ok, so now that I changed the service to ajp12 I get the 
 following in the log file:
 [Tue Oct 15 13:48:24 2002]  [jk_isapi_plugin.c (679)]: 
 HttpExtensionProc started
 [Tue Oct 15 13:48:24 2002]  [jk_worker.c (123)]: Into 
 wc_get_worker_for_name ajp12
 [Tue Oct 15 13:48:24 2002]  [jk_worker.c (127)]: 
 wc_get_worker_for_name, done  found a worker
 [Tue Oct 15 13:48:24 2002]  [jk_isapi_plugin.c (701)]: 
 HttpExtensionProc got a worker for name ajp12
 [Tue Oct 15 13:48:24 2002]  [jk_ajp12_worker.c (223)]: Into 
 jk_worker_t::get_endpoint
 [Tue Oct 15 13:48:24 2002]  [jk_ajp12_worker.c (121)]: Into 
 jk_endpoint_t::service
 [Tue Oct 15 13:48:24 2002]  [jk_connect.c (108)]: Into jk_open_socket
 [Tue Oct 15 13:48:24 2002]  [jk_connect.c (115)]: 
 jk_open_socket, try to connect socket = 632
 [Tue Oct 15 13:48:25 2002]  [jk_connect.c (124)]: 
 jk_open_socket, after connect ret = -1
 [Tue Oct 15 13:48:25 2002]  [jk_connect.c (143)]: 
 jk_open_socket, connect() failed errno = 61
 [Tue Oct 15 13:48:25 2002]  [jk_ajp12_worker.c (134)]: In 
 jk_endpoint_t::service, sd = -1
 [Tue Oct 15 13:48:25 2002]  [jk_ajp12_worker.c (152)]: In 
 jk_endpoint_t::service, Error sd = -1
 [Tue Oct 15 13:48:25 2002]  [jk_isapi_plugin.c (716)]: 
 HttpExtensionProc error, service() failed
 [Tue Oct 15 13:48:25 2002]  [jk_ajp12_worker.c (163)]: Into 
 jk_endpoint_t::done
 

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




RE: Custom Tag / JavaBean question

2002-10-15 Thread Tim Moore

The problem lies in the fact that you've overloaded the setter method
for accessList.  According to the JavaBeans spec, you can't do that;
only one setter per property name is supported.  So, first of all,
you'll need to give the attributes two different names and make them
both optional.

For example:

public void setAccessList(Collection accessList) {
  this.accessList = accessList;
}

public void setAccessListName(String accessListName) {...}

But what's more, because of the way tag pooling works, you probably
don't want to resolve the name in the setter method as you do below (see
http://jakarta.apache.org/taglibs/guidelines.html) so you should have an
accessListName field too, and write setAccessListName just like:

public void setAccessListName(String accessListName) {
  this.accessListName = accessListName;
}

then, in doStartTag:

Collection accessList = this.accessList;
if (accessList == null) {
  accessList = (Collection) pageContext.findAttribute(accessListName);
}

Kind of a pain, but that's the only way to be fully compliant with the
spec.
-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Cindy Ballreich [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, October 15, 2002 1:13 PM
 To: [EMAIL PROTECTED]
 Subject: Custom Tag / JavaBean question
 
 
 
 I have a custom tag that takes a collection as one of it's 
 parameters. I'd like to be able to give the name of an 
 attribute (a String) as the value and have the tag find the 
 attribute from the pageContext. This doesn't seem like it 
 should be too difficult. I have setters that look like this 
 in my tag...
 
   protected Collection accessList;
 
   public void setAccessList(String accessList) {
 Object o = pageContext.findAttribute(accessList);
 if (o instanceof Collection) {
   this.accessList = (Collection)o;
 }
   }
 
   public void setAccessList(Collection accessList) {
 this.accessList = accessList;
   }
 
 ...and the tag looks like this on the jsp page...
 
   jsp:useBean id=accessList scope=request 
 class=java.util.Vector /
   mpi:accessList id=access accessList=accessList ... 
  ...
   /mpi:accessList
 
 ... but I keep getting errors like this...
 
 org.apache.jasper.JasperException: Unable to convert string 
 'accessList' to class java.util.Collection for attribute 
 accessList: java.lang.IllegalArgumentException: Property 
 Editor not registered with the PropertyEditorManager
   at 
 org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromProper
 tyEditorManager(JspRuntimeLibrary.java:749)
 
 If I use a run time value in the tag I don't get the error...
 
   jsp:useBean id=accessList scope=request 
 class=java.util.Vector /
   mpi:accessList id=access accessList='%= accessList % ... 
  ...
   /mpi:accessList
 
 So I have a workaround for the problem, but I'd still like to 
 understand why the first example doesn't work when everything 
 I've read says that it should.
 
 I'm using Tomcat 4.1.12 on NT 4.0 (development server) with 
 j2sdk1.4.0_01.
 
 Thanks
 
 Cindy
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




RE: Upgrading from 3.2.1 to 4.0.6

2002-10-15 Thread Cox, Charlie



 -Original Message-
 From: Kristjan Rznarsson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 1:33 PM
 To: Tomcat Users List
 Subject: RE: Upgrading from 3.2.1 to 4.0.6
 
 
 First off thanx for the reply!
 
 did you create a 'foo' context in server.xml?
 
 No I just changed the ports in the example file that came with Tomcat 
 4.0.6 because the diff  between it and the on for the 3.2.1 
 server seemd 
 too great. I suspect I am getting the server.xml configuration wrong. 

define your host name(host name=myhost ...). then define your context
'foo'. You will have to check the docs for the new syntax for host and
context, but they are somewhat similar IIRC.

 
 You mention  below that the web.xml file is backwards 
 compatable does that 
 hold for the Server.xml file as well? in other words, Can I port the 
 Server.xml file from the 3.2.1 server to the 4.0.6 server and 
 only change 
 the ports and minor other setting to get the old webapps 
 working on the 
 new server? All I really want is to get the webapps from the 
 old server 
 running on the new one with minimal changes to the configruation.

no, the server.xml is changed. you need to define your hosts/contexts in the
new format. 

 
 you do not want to overwrite /conf/web.xml. you can copy the 
 web.xml from
 your webapps along with all your code and it should work since it's
 backwards compatible.
 
 So if I copy the webapp and the web.xml file from the 3.2.1 
 server to the 
 new 4.0.6 server they are fully backwards compatable?!? Nice!
 
handy indeed. But only copy the WEB-INF/web.xml in your webapp. You do not
want to overwrite the new conf/web.xml. 

Charlie

 are there any errors in the logs?
 
 I tailed the ones in CATALINA_HOME/logs but saw nothing unusual.
 
 Mvh
 Kristjan Runarsson
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Tomcat IIS Worker problem

2002-10-15 Thread Lior Shliechkorn


Here we go. The files' contents are below.
workers.p :
workers.tomcat_home=c:\tomcat
workers.java_home=c:\jdk1.3.1_04
ps=\
worker.list = ajp12
worker.ajp12.type = ajp12
worker.ajp12.host = localhost
worker.ajp12.port = 8009
worker.ajp12.lbfactor=1

uriworkermap.p:
default.worker=ajp12
/*.jsp=$(default.worker)
/refcoapp/*.jsp=$(default.worker)
/examples/*.jsp=$(default.worker)
/examples/servlet/*=$(default.worker)
I'm not certain what other files would be necessary since I've only touched these in 
the whole process. I changed all ajp13 to 12s and got the error that you saw. Where 
would I change the listening port for tomcat...I didn't change any of the server.xml 
properties.
Thanks,
Lior
 Turner, John [EMAIL PROTECTED] wrote:
Looks to me like your Tomcat is either not running, or listening on a
different port:

[Tue Oct 15 13:48:24 2002] [jk_connect.c (115)]: jk_open_socket, try to
connect socket = 632
[Tue Oct 15 13:48:25 2002] [jk_connect.c (124)]: jk_open_socket, after
connect ret = -1
[Tue Oct 15 13:48:25 2002] [jk_connect.c (143)]: jk_open_socket, connect()
failed errno = 61

FYI -

It would be A LOT easier for people to help you if you would post some
config files (as I've already suggested twice...maybe 3 times is the charm).
Probably could have saved the last 2 or 3 iterations of OK, I tried X and
got Y, now what?. But hey, if you want to draw this out, that's cool.

John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 1:53 PM
 To: Tomcat Users List
 Subject: RE: Tomcat IIS Worker problem
 
 
 
 Ok, so now that I changed the service to ajp12 I get the 
 following in the log file:
 [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (679)]: 
 HttpExtensionProc started
 [Tue Oct 15 13:48:24 2002] [jk_worker.c (123)]: Into 
 wc_get_worker_for_name ajp12
 [Tue Oct 15 13:48:24 2002] [jk_worker.c (127)]: 
 wc_get_worker_for_name, done found a worker
 [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (701)]: 
 HttpExtensionProc got a worker for name ajp12
 [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (223)]: Into 
 jk_worker_t::get_endpoint
 [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (121)]: Into 
 jk_endpoint_t::service
 [Tue Oct 15 13:48:24 2002] [jk_connect.c (108)]: Into jk_open_socket
 [Tue Oct 15 13:48:24 2002] [jk_connect.c (115)]: 
 jk_open_socket, try to connect socket = 632
 [Tue Oct 15 13:48:25 2002] [jk_connect.c (124)]: 
 jk_open_socket, after connect ret = -1
 [Tue Oct 15 13:48:25 2002] [jk_connect.c (143)]: 
 jk_open_socket, connect() failed errno = 61
 [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (134)]: In 
 jk_endpoint_t::service, sd = -1
 [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (152)]: In 
 jk_endpoint_t::service, Error sd = -1
 [Tue Oct 15 13:48:25 2002] [jk_isapi_plugin.c (716)]: 
 HttpExtensionProc error, service() failed
 [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (163)]: Into 
 jk_endpoint_t::done
 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


RE: Tomcat IIS Worker problem

2002-10-15 Thread Turner, John


I would change ajp12 to ajp13, especially in .type.  JK = ajp13.  Like
this:

worker.list = one
worker.one.type = ajp13
worker.one.host = localhost
worker.one.port = 8009

Take out the load balance line (lbfactor)...with only one Tomcat there is no
need for any load-balancing configuration.

Change default.worker in the URI properties file to match whatever
worker.list is in your workers.properties file.

In server.xml, make sure that the element with a class of Ajp13Connector
is enabled (remove the comment tags) and is set to run on port 8009, the
same port listed in your workers.properties file.

Think of JK as a chain.  All you have to do is make sure each link in the
chain matches the next one.  I think someone else suggested changing things
to ajp12, I'm not sure why, but if I were you I would avoid anything but
ajp13 and use my own names for things like worker.list, etc.  AJP12,
AJP13, and AJP14 designate a particular protocol.  

John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 2:04 PM
 To: Tomcat Users List
 Subject: RE: Tomcat IIS Worker problem
 
 
 
 Here we go. The files' contents are below.
 workers.p :
 workers.tomcat_home=c:\tomcat
 workers.java_home=c:\jdk1.3.1_04
 ps=\
 worker.list = ajp12
 worker.ajp12.type = ajp12
 worker.ajp12.host = localhost
 worker.ajp12.port = 8009
 worker.ajp12.lbfactor=1
 
 uriworkermap.p:
 default.worker=ajp12
 /*.jsp=$(default.worker)
 /refcoapp/*.jsp=$(default.worker)
 /examples/*.jsp=$(default.worker)
 /examples/servlet/*=$(default.worker)
 I'm not certain what other files would be necessary since 
 I've only touched these in the whole process. I changed all 
 ajp13 to 12s and got the error that you saw. Where would I 
 change the listening port for tomcat...I didn't change any of 
 the server.xml properties.
 Thanks,
 Lior
  Turner, John [EMAIL PROTECTED] wrote:
 Looks to me like your Tomcat is either not running, or listening on a
 different port:
 
 [Tue Oct 15 13:48:24 2002] [jk_connect.c (115)]: 
 jk_open_socket, try to
 connect socket = 632
 [Tue Oct 15 13:48:25 2002] [jk_connect.c (124)]: jk_open_socket, after
 connect ret = -1
 [Tue Oct 15 13:48:25 2002] [jk_connect.c (143)]: 
 jk_open_socket, connect()
 failed errno = 61
 
 FYI -
 
 It would be A LOT easier for people to help you if you would post some
 config files (as I've already suggested twice...maybe 3 times 
 is the charm).
 Probably could have saved the last 2 or 3 iterations of OK, 
 I tried X and
 got Y, now what?. But hey, if you want to draw this out, that's cool.
 
 John
 
 
  -Original Message-
  From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 15, 2002 1:53 PM
  To: Tomcat Users List
  Subject: RE: Tomcat IIS Worker problem
  
  
  
  Ok, so now that I changed the service to ajp12 I get the 
  following in the log file:
  [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (679)]: 
  HttpExtensionProc started
  [Tue Oct 15 13:48:24 2002] [jk_worker.c (123)]: Into 
  wc_get_worker_for_name ajp12
  [Tue Oct 15 13:48:24 2002] [jk_worker.c (127)]: 
  wc_get_worker_for_name, done found a worker
  [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (701)]: 
  HttpExtensionProc got a worker for name ajp12
  [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (223)]: Into 
  jk_worker_t::get_endpoint
  [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (121)]: Into 
  jk_endpoint_t::service
  [Tue Oct 15 13:48:24 2002] [jk_connect.c (108)]: Into jk_open_socket
  [Tue Oct 15 13:48:24 2002] [jk_connect.c (115)]: 
  jk_open_socket, try to connect socket = 632
  [Tue Oct 15 13:48:25 2002] [jk_connect.c (124)]: 
  jk_open_socket, after connect ret = -1
  [Tue Oct 15 13:48:25 2002] [jk_connect.c (143)]: 
  jk_open_socket, connect() failed errno = 61
  [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (134)]: In 
  jk_endpoint_t::service, sd = -1
  [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (152)]: In 
  jk_endpoint_t::service, Error sd = -1
  [Tue Oct 15 13:48:25 2002] [jk_isapi_plugin.c (716)]: 
  HttpExtensionProc error, service() failed
  [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (163)]: Into 
  jk_endpoint_t::done
  
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos,  more
 faith.yahoo.com
 

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




Re: Tomcat and Webalizer

2002-10-15 Thread Rick Fincher

A JSP file isn't enough.  You need a web app.  That requires a WEB-INF
folder with a web.xml file.

You can run your JSP create the folder WEB-INF (case is important) in your
begjsp-ch01 folder.  In WEB-INF put a minimal web.xml file containing
something like the example below.

Now access your JSP by using your URL in the browser.  You can even drop the
index.jsp from the URL with the web.xml listed below because it defines
index.jsp as a welcome file.  That saves your users some typing and hides
some of the implementation details from them.  The description is optional
but a good idea.

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app

PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN

http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

descriptionMy Chapter 01 Application/description

welcome-file-list

welcome-file

index.jsp

/welcome-file

/welcome-file-list

/web-app



- Original Message -
From: rdevine [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, October 14, 2002 9:00 PM
Subject: RE: Tomcat and Webalizer


 Dave,
 I'm having trouble getting Tomcat to work for me.  The demos
 work fine.

 I am running winXP - Home.  jdk1.3.1_02
 Installed tomcat4.0.6 without any problems.  Changed config as follows :
 JAVA_HOME = c:\jdk1.3.1_02
 CATALINA_HOME = c:\jakarta-tomcat-4.0.6
 CLASSPATH = c:\jakarta-tomcat-4.0.6\common\lib\servlet.jar;.
 PATH = added to existing path c:jdk1.3.1_20


 http://localhost:8080/index.html gives me the Tomcat page.  I am able to
 execute the JSP examples without problem.

 When I create my own .jsp file (simple one) in
 c:\jakarta-tomcat-4.0.6\webapps\begjsp-ch01\index.jsp, set the address
 to http://localhost:8080/begjsp-ch01/index.jsp  I receive the error
 message : 404 - /webapps/index.jsp

 type Status report

 message /webapps/indx.jsp

 description The requested resource
 (/webapps/indx.jsp) is not available.

 JSP/HTML code -

 html

 head

 titleMy First JSP/title

 /head

 body

 Hello World!br

 the current date and time is %= new java.util.Date() %

 /body

 /html

  Rick

 I have checked and double, triple checked all spellings, syntax in the
 .jsp file and cannot find anything different from what is in the text I
 am using (on my own, Beginning JSP Web Development - WROX.

 Any suggestions will be GREATLY appreciated as I am at a standstill.
 Also, how do I get a question sent to a group like you did?

 Bob Devine

 -Original Message-
 From: Dave Patton [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 6:51 PM
 To: Tomcat Users List
 Subject: Tomcat and Webalizer


 After a bit of hacking I was able to get Webalizer working correctly
 with Tomcat 4.1.12 on a Linux server; and even use Tomcat to show the
 results.  If anyone else has also done this I would be interested in
 comparing notes on what you did.  I am not sure if anyone else is
 interested in doing this but if you are please let me know and I will
 gladly share.


 Cheers
 Dave Patton


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



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




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




Re: plz help!!! simple test http://localhost:8080 fails why????

2002-10-15 Thread Rick Fincher

You also need to check to see if localhost is resolvable on your machine.
If you ping localhost you should get a response from 127.0.0.1.

Rick

- Original Message -
From: Raj Saini [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 15, 2002 6:57 AM
Subject: Re: plz help!!! simple test http://localhost:8080 fails why


 How do you start your tomcat on other machine? What is the operating
 system of your meachine? Do you acess your jsp page from the same machine?

 it seems your tomcat did not start or died before starting. Check the
 catalina.out log file in the logs directory or your console for the
 errors/exceptions.

 Raj




 S Alam wrote:
  I have a JSP program running on tomcat webserver at home. This program
  works. At home the computer accesses the internet via a dialup modem.
 
  I am trying to run this program at another location. I have taken my
  hard disk and installed the hard disk at the other computer. The other
  location is networked. It is running DHCP IP addressing. When I run the
  program there it does not work
 
  Also when I run the tomcat test there i.e
 
  http://localhost:8080
 
  In the status bar I get
  Website found. Waiting for reply ...
  but after few minutes I get the error message below:
  why???
  Please help
 
 From home I ran the program as
  http://localhost:8080/myJSPs/jsp/portal-project/preferences.jsp
 
  this works perfectly.
 
  At the other location I am trying the typing the same address in the
  address bar of IE6:
 
  http://localhost:8080/myJSPs/jsp/portal-project/preferences.jsp
 
  But it gives me the message in the status bar:
 
  Website found. Waiting for reply ... 
  but after few minutes I get the error message below:
 
 
 
  The page cannot be displayed
  The page you are looking for is currently unavailable. The Web site
  might be experiencing technical difficulties, or you may need to adjust
  your browser settings.
 
  
  
 
  Please try the following:
 
  Click the Refresh button, or try again later.
 
  If you typed the page address in the Address bar, make sure that it is
  spelled correctly.
 
  To check your connection settings, click the Tools menu, and then click
  Internet Options. On the Connections tab, click Settings. The settings
  should match those provided by your local area network (LAN)
  administrator or Internet service provider (ISP).
  If your Network Administrator has enabled it, Microsoft Windows can
  examine your network and automatically discover network connection
  settings.
  If you would like Windows to try and discover them,
  click Detect Network Settings
  Some sites require 128-bit connection security. Click the Help menu and
  then click About Internet Explorer to determine what strength security
  you have installed.
  If you are trying to reach a secure site, make sure your Security
  settings can support it. Click the Tools menu, and then click Internet
  Options. On the Advanced tab, scroll to the Security section and check
  settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0.
  Click the Back button to try another link.
 
 
 
  Cannot find server or DNS Error
  Internet Explorer
 
  Please help why does this happen???
 
 



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




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




RE: Tomcat IIS Worker problem

2002-10-15 Thread Lior Shliechkorn


Unfortunately,

I'm still getting the original error:

[Tue Oct 15 14:15:49 2002]  [jk_isapi_plugin.c (679)]: HttpExtensionProc started
[Tue Oct 15 14:15:49 2002]  [jk_worker.c (123)]: Into wc_get_worker_for_name rsworker
[Tue Oct 15 14:15:49 2002]  [jk_worker.c (127)]: wc_get_worker_for_name, done did not 
found a worker
[Tue Oct 15 14:15:49 2002]  [jk_isapi_plugin.c (701)]: HttpExtensionProc could not get 
a worker for name rsworker
[Tue Oct 15 14:15:49 2002]  [jk_isapi_plugin.c (722)]: HttpExtensionProc error, could 
not get a worker for name rsworker


Why did it not find the worker here, but the Ajp12 worked (as far as finding a worker)?



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


RE: servlet mapping help

2002-10-15 Thread Aryeh Katz

 
 You didn't have to change workers.properties at all.
 
snip
 So, you should have a line like this in httpd.conf:
 
 JkMount /examples/servlets/* ajp13
 
 And a few lines like this in workers.properties:
 
 worker.list=some-name
 worker.some-name.port=8009
 worker.some-name.host=your.host.com
 worker.some-name.type=ajp13
 
I believe, I just don't see :-).
Netstat shows a listener on 8009.
Connecting to same url port 8080 behaves just fine.
Only when I do a regular http request do I see problems (http error code 500, 
with the did not find a worker message in my jk log file).

Here is my ajp13 snippet from server.xml

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

---
Aryeh Katz
VASCO   
www.vasco.com   


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




RE: Building mod_jk.so for Linux

2002-10-15 Thread Brett Knights

Actually it turned out not to be the build!

if I edit httpd.conf thus:
...
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule perl_module modules/mod_perl.so
LoadModule jk_module modules/mod_jk.so
...

I then mod_jk is not recognized and the errors below are returned when
apache is started

if I change httpd.conf to the following:
...
LoadModule jk_module modules/mod_jk.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule perl_module modules/mod_perl.so
...

Apache starts properly and mod_jk works.
Can anyone tell me where this is documented?

HTH

 -Original Message-
 From: Brett Knights [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, October 12, 2002 9:53 AM
 To: 'Tomcat Users List'
 Subject: Building mod_jk.so for Linux
 
 
 Hi,
 I have a RH Linux 7.2 system with Apache 2.0.42 installed.
 
 I am trying to compile mod_jk.so for this system.
 
 I have the jakarta-tomcat-connectors-4.0.6-src files and run 
 the following
 to make the .so
 
 from jk/native
 ./configure --with-apxs=/usr/local/apache2/bin/apxs
 make
 
 this process runs without errors but when I copy the mod_jk.so from
 jk/native/apache-2.0 and try to configure and run apache I get:
 
 Syntax error on line 1025 of /usr/local/apache2/conf/httpd.conf:
 Invalid command 'JkWorkersFile', perhaps mis-spelled or 
 defined by a module
 not included in the server configuration
 
 I did include the line:
 LoadModule jk_module modules/mod_jk.so
 
 Any help on this would be much appreciated.
 
 FWIW I can't run the ant script that is supposed to build the native
 components.
 It fails with the following:
 BUILD FAILED
 file:/usr/local/src/jakarta-tomcat-connectors-4.0.6-src/jk/nat
ive2/build.xml
:341: Link failed libjkjni

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

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




RE: Tomcat IIS Worker problem

2002-10-15 Thread Turner, John


At this point I can only surmise that it has something to do with IIS and
the isapi_redirect thingie.  Since I don't run IIS, I can't help with those
things.

Your workers.properties file and uri.properties file look fine to me.
Perhaps someone out there with a working IIS configuration can offer more.

John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 2:21 PM
 To: Tomcat Users List
 Subject: RE: Tomcat IIS Worker problem
 
 
 
 Unfortunately,
 
 I'm still getting the original error:
 
 [Tue Oct 15 14:15:49 2002]  [jk_isapi_plugin.c (679)]: 
 HttpExtensionProc started
 [Tue Oct 15 14:15:49 2002]  [jk_worker.c (123)]: Into 
 wc_get_worker_for_name rsworker
 [Tue Oct 15 14:15:49 2002]  [jk_worker.c (127)]: 
 wc_get_worker_for_name, done did not found a worker
 [Tue Oct 15 14:15:49 2002]  [jk_isapi_plugin.c (701)]: 
 HttpExtensionProc could not get a worker for name rsworker
 [Tue Oct 15 14:15:49 2002]  [jk_isapi_plugin.c (722)]: 
 HttpExtensionProc error, could not get a worker for name rsworker
 
 
 Why did it not find the worker here, but the Ajp12 worked (as 
 far as finding a worker)?
 
 
 
 -
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos,  more
 faith.yahoo.com
 

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




RE: Tomcat IIS Worker problem

2002-10-15 Thread Lior Shliechkorn


Thanks for the help John. Hopefully I'll get this resolved.
 Turner, John [EMAIL PROTECTED] wrote:
At this point I can only surmise that it has something to do with IIS and
the isapi_redirect thingie. Since I don't run IIS, I can't help with those
things.

Your workers.properties file and uri.properties file look fine to me.
Perhaps someone out there with a working IIS configuration can offer more.

John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 2:21 PM
 To: Tomcat Users List
 Subject: RE: Tomcat IIS Worker problem
 
 
 
 Unfortunately,
 
 I'm still getting the original error:
 
 [Tue Oct 15 14:15:49 2002] [jk_isapi_plugin.c (679)]: 
 HttpExtensionProc started
 [Tue Oct 15 14:15:49 2002] [jk_worker.c (123)]: Into 
 wc_get_worker_for_name rsworker
 [Tue Oct 15 14:15:49 2002] [jk_worker.c (127)]: 
 wc_get_worker_for_name, done did not found a worker
 [Tue Oct 15 14:15:49 2002] [jk_isapi_plugin.c (701)]: 
 HttpExtensionProc could not get a worker for name rsworker
 [Tue Oct 15 14:15:49 2002] [jk_isapi_plugin.c (722)]: 
 HttpExtensionProc error, could not get a worker for name rsworker
 
 
 Why did it not find the worker here, but the Ajp12 worked (as 
 far as finding a worker)?
 
 
 
 -
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos,  more
 faith.yahoo.com
 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


binding on socket

2002-10-15 Thread David Loy

Is it possible to have tomcat 1.4 bind on a socket different from the host 
IP (similar to Apache listen)
Thanks
David




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: Building mod_jk.so for Linux

2002-10-15 Thread Turner, John


That's pretty strange.  Mod_jk is the last module loaded for me, at the very
end of httpd.conf, and it works perfectly.

John


 -Original Message-
 From: Brett Knights [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 2:22 PM
 To: 'Tomcat Users List'
 Subject: RE: Building mod_jk.so for Linux
 
 
 Actually it turned out not to be the build!
 
 if I edit httpd.conf thus:
 ...
 LoadModule alias_module modules/mod_alias.so
 LoadModule rewrite_module modules/mod_rewrite.so
 LoadModule perl_module modules/mod_perl.so
 LoadModule jk_module modules/mod_jk.so
 ...
 
 I then mod_jk is not recognized and the errors below are returned when
 apache is started
 
 if I change httpd.conf to the following:
 ...
 LoadModule jk_module modules/mod_jk.so
 LoadModule alias_module modules/mod_alias.so
 LoadModule rewrite_module modules/mod_rewrite.so
 LoadModule perl_module modules/mod_perl.so
 ...
 
 Apache starts properly and mod_jk works.
 Can anyone tell me where this is documented?
 
 HTH
 

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




Re: How can I change default 8080 port to 80

2002-10-15 Thread Dave Patton

They should not both be listening on port 80.  If you really need them
both, the best bet is to have Apache on port 80 and have it forward
requests to Tomcat through the Warp connector.  I am very surprised that
you got them both to listen simultaneously on port 80.

Dave Patton 

On Mon, 2002-10-14 at 23:49, Satish Kumar wrote:
 Thanks Kwok,
 
 That worked.  I was wondering why it did not interfere with Apache because
 Apache is also listening on port 80?
 
 Thanks again,
 Satish
 - Original Message -
 From: Kwok Peng Tuck [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, October 14, 2002 11:11 PM
 Subject: Re: How can I change default 8080 port to 80
 
 
  In the server.xml file, modify the entry
 
  Connector className=org.apache.catalina.connector.http.HttpConnector
 port=8080 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=6/
 
  Change the attribute port=8080 to port=80.
  Restart tomcat. Should work fine.
 
 
  Satish Kumar wrote:
 
  Greetings,
  
  I have installed Tomcat 4.1.12 and Apache 2.  Tomcat is listening on port
 8080 whereas apache is listening on port 80.  What do I need to do so that
 tomcat listens to default http port 80?
  
  Thanks,
  Satish (A Beginner)
  
  
  
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




RE: servlet mapping help

2002-10-15 Thread Milt Epstein

On Tue, 15 Oct 2002, Aryeh Katz wrote:

  You didn't have to change workers.properties at all.
 
 snip
  So, you should have a line like this in httpd.conf:
 
  JkMount /examples/servlets/* ajp13
 
  And a few lines like this in workers.properties:
 
  worker.list=some-name
  worker.some-name.port=8009
  worker.some-name.host=your.host.com
  worker.some-name.type=ajp13
 
 I believe, I just don't see :-).

What do you have where ajp13 is, and where some-name is?  Because
they need to match.  Because the second argument to JkMount is a
worker, the worker that should handle requests that match the URL
pattern given (in the first argument).  And the
worker.some-name settings define worker some-name.

 Netstat shows a listener on 8009.
 Connecting to same url port 8080 behaves just fine.
 Only when I do a regular http request do I see problems (http error code 500,
 with the did not find a worker message in my jk log file).

 Here is my ajp13 snippet from server.xml

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/

This looks OK -- the main thing is that it's enabled
(i.e. uncommented), and the port matches the port in the
workers.properties file -- the problem probably lies above.
Especially with that did not find a worker error message.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: binding on socket

2002-10-15 Thread David Loy

Sorry make that tomcat 4.0


From: David Loy [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: binding on socket
Date: Tue, 15 Oct 2002 11:27:38 -0700

Is it possible to have tomcat 1.4 bind on a socket different from the host 
IP (similar to Apache listen)
Thanks
David




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




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


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




RE: binding on socket

2002-10-15 Thread Turner, John


Not sure what you mean.  Tomcat can listen on whatever socket you want.
Just configure the appropriate connector element in server.xml with the
desired port number.

I'm not sure how Tomcat handles multiple IP addresses, nor am I sure if
there is a listen on all IP addresses parameter in Tomcat.  I typically
set mine up using the fully-qualified domain name that will be used in the
URL, not with IP addresses.

John

 -Original Message-
 From: David Loy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 2:28 PM
 To: [EMAIL PROTECTED]
 Subject: binding on socket
 
 
 Is it possible to have tomcat 1.4 bind on a socket different 
 from the host 
 IP (similar to Apache listen)
 Thanks
 David
 
 
 
 
 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Building mod_jk.so for Linux

2002-10-15 Thread Brett Knights



This is with TC 4.0.6, TC Connectors 4.0.6, Apache 2.0.42 and Linux Red Hat
7.2
What versions are you using?

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 11:28 AM
 To: 'Tomcat Users List'
 Subject: RE: Building mod_jk.so for Linux
 
 
 
 That's pretty strange.  Mod_jk is the last module loaded for 
 me, at the very
 end of httpd.conf, and it works perfectly.
 
 John
 
 
  -Original Message-
  From: Brett Knights [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 15, 2002 2:22 PM
  To: 'Tomcat Users List'
  Subject: RE: Building mod_jk.so for Linux
  
  
  Actually it turned out not to be the build!
  
  if I edit httpd.conf thus:
  ...
  LoadModule alias_module modules/mod_alias.so
  LoadModule rewrite_module modules/mod_rewrite.so
  LoadModule perl_module modules/mod_perl.so
  LoadModule jk_module modules/mod_jk.so
  ...
  
  I then mod_jk is not recognized and the errors below are 
 returned when
  apache is started
  
  if I change httpd.conf to the following:
  ...
  LoadModule jk_module modules/mod_jk.so
  LoadModule alias_module modules/mod_alias.so
  LoadModule rewrite_module modules/mod_rewrite.so
  LoadModule perl_module modules/mod_perl.so
  ...
  
  Apache starts properly and mod_jk works.
  Can anyone tell me where this is documented?
  
  HTH
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




  1   2   >