Re: weired chunked encoding (how to disable properly)

2004-01-16 Thread Antonio Fiol Bonnn
Hi,

I suggest you some careful reading of RFC2616, because I am not sure of 
what is the right answer here.

My interpretation, but again I am not sure, is:

WA is saying: Hi! I speak HTTP/1.0, could you please send me that 
resource?
TC is saying: Nice to meet you! I can *even* speak HTTP/1.1, and here 
is what you requested -(and in the way you requested it, which is 
HTTP/1.0)-.

Read the compatibility section of RFC2616. I think you may find the 
answer there.

Antonio Fiol

Lukas sterreicher wrote:

Hi.

This is strange, then:

Winamp requests in HTTP 1.0 but Tomcat (now installed 5.0.16) respons in 
HTTP 1.1 and has no content length AND no chunked encoding.

See the HTTP headers by yourself:

GET 
/yarf/n_The_MUCK.mp3;jsessionid=D4E5F5AFA47090670FBEF73FCF2AAF86?trackid=1file.mp3 
HTTP/1.0..Host: yarf.sytes.net..User-Agent: WinampMPEG/5.0..Accept: */*..Icy-
MetaData:1..Connection: close
HTTP/1.1 200 OK..Content-Location: In_The_MUCK_28k.mp3..Content-Type: audio/x-mpeg..Date: Wed, 14 Jan 2004 13:15:12 GMT..Server: Apache-Coyote/1.1..Connection: close

How can that be? This goes against the standards as you mentioned (although it does what I want and works).

Additionally, when requesting in http 1.1 (which Winamp does when requesting ogg), I get this:

GET /yarf/In_The_MUCK.ogg;jsessionid=D4E5F5AFA47090670FBEF73FCF2AAF86?trackid=1file.ogg HTTP/1.1..Host:yarf.sytes.net..User-Agent:Winamp..Accept:*/*

HTTP/1.1 200 OK..Content-Location: In_The_MUCK_isdn.ogg..Content-Type: 
application/ogg..Transfer-Encoding: chunked..Date: Wed, 14 Jan 2004 13:17:22 
GMT..Server: Apache-
Coyote/1.1400..
Notice the 400 at the end which tells that a 400 byte chunk follows.
For some odd reason it sometimes sends in 400 byte chunks, but sometimes in 2000 byte 
chunks.
Winamp at least recognizes the stream as audio and jerkily plays with 2000 chunks but 
does nothing with 400 byte chunks.
I added a parameter restrictedUserAgents=Winamp to the connector (also tried 
Winamp.*) but
no change in server behaviour. What am I doing wrong?
How to respond in HTTP 1.0 without chunked encoding (and ofcourse no content length)
in the second case?
Thanx in Advance,
Lukas sterreicher


Am 13.01.2004 21:13:51, schrieb Antonio Fiol Bonnn [EMAIL PROTECTED]:

 

My questions:
- how to disable chunked encoding even when there is no content length?
- why does tomcat not use chunked encoding when sending mp3 files (and no content 
length is set)
and why does'nt it for ogg?
 

See RFC 2616. Using either the Content-Length header OR chunked encoding 
is a MUST in HTTP 1.1.

Something different is using HTTP 1.0.

The only (HTTP) ways of sending an unknown length file are:
a) Using HTTP 1.0, and closing the connection at the end (but the client 
cannot know for sure that the file end has arrived, and I am not even 
sure it is standards compliant).
b) Using HTTP 1.1, and using chunked encoding.

Yours,

Antonio Fiol

   





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




smime.p7s
Description: S/MIME Cryptographic Signature


A bit OT: Problems running JBoss on 1.3.0 JDK

2004-01-16 Thread Nikola Milutinovic
Hi all.

I know this Tomcat ML, but some messages that cropped up during last day, gave me hope 
you guys could give me the right direction. Besides, some of you are on JBoss team 
(Remy)...

JBoss 3.2.3
Java SDK 1.3.0-1 Compaq
Tru64 UNIX 4.0D
DEC AlphaStation 200 128 MB RAM

When I try to run JBoss, it fails with:

12:06:49,683 DEBUG [MainDeployer] Watching new file: 
file:/usr/users/root/work/jboss/jboss-3.2.3/server/tomcat5/conf/jboss-service.xml 
12:06:49,714 ERROR [MainDeployer] Could not initialise deloyment: 
file:/usr/users/root/work/jboss/jboss-3.2.3/server/tomcat5/conf/jboss-service.xml 
java.lang.AbstractMethodError: org/jboss/deployment/SubDeployerSupport.accepts
at org.jboss.deployment.MainDeployer.findDeployer(MainDeployer.java, Compiled Code)
...

When I zip the whole JBoss and carry it over to my PC, Window NT, JDK 1.4.0 it works 
like a charm.

I suspect there is some package missing. Right now, I cannot see JAAS, which bugged 
one poster here. Is there anything else you could think of?

Thank you for your time. I apologize again for OT posting, but JBoss forum ain't the 
quickest. And just for the record, it will be very difficult, if not impossible, for 
me to change JDK version on Tru64 UNIX, since it too must be upgraded and we are way 
behind schedule on upgrades (not my fault, I would gladly hang those responsible).

Nix.

Re: Cannot start Tomcat 5.0.16.

2004-01-16 Thread Nikola Milutinovic
George Leeman Jr wrote:


Today I downloaded and installed Tomcat 5.0.16.  I get the sequence shown
below.  How do I fix this problem?
Thanks, George Leeman
c:\e\Tomcat5.0.16\jakarta-tomcat-5.0.16\bincatalina run

Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   C:\e\j2se1.3.0
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError:
javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader;
Could be that you're using 1.3.x JDK, which doesn't come with XML APIs. Get a 
hold of Xerces and install it. http://wml.apache.org/

Nix.

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


RE: Cannot start Tomcat 5.0.16.

2004-01-16 Thread Ralph Einfeldt
Sounds more like the class is there, but in an outdated version.

 -Original Message-
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 8:28 AM
 To: Tomcat Users List
 Subject: Re: Cannot start Tomcat 5.0.16.
 
 
  java.lang.reflect.InvocationTargetException: 
 java.lang.NoSuchMethodError:
  javax.xml.parsers.SAXParser: method 
 getXMLReader()Lorg/xml/sax/XMLReader;
 
 Could be that you're using 1.3.x JDK, which doesn't come with 
 XML APIs. Get a hold of Xerces and install it. http://wml.apache.org/
 

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



Re: jk2

2004-01-16 Thread Nikola Milutinovic
Nick wrote:

I noticed this as well and wrote an email about it, no response though.

On Thu, 2004-01-15 at 20:18, Brennon Obst wrote:

Just noticed this morning that when I activated the apache--tomcat
connection it took over ALL of the virtual hosts and was routing them
through Tomcat. ARGH!

Know anything about Apache 2 and JK2 connectors?
How did you configure JK2? Most notably, what's in your workers2.properties file?

Nix.

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


Re: Cannot start Tomcat 5.0.16.

2004-01-16 Thread Nikola Milutinovic
Ralph Einfeldt wrote:

Sounds more like the class is there, but in an outdated version.
Grab the latest at http://xml.apache.org/ and place it under 
${JAVA_HOME}/jre/lib/ext/

Nix.

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


Re: how to REDIRECT after HTTPS connection failure ?

2004-01-16 Thread Alain Baucant
Thanks for the answer.

Bill Barker wrote:

Alain Baucant [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,

my goal:
to use httpS with CLIENT and server authentication to connect to tomcat
and
be able to REDIRECT users who can't identify themselves (can't establish
the https connection) with their certificate.
If, for any reason (for example: no client certificate) the ssl
connection can't be established, how can I redirect the user to another
page.


You can't really do this without hacking the Tomcat code.  I've been meaning
to add a clientAuth=want option to the Connector, but haven't gotten
around to it yet.

I already tried, without succes under httpS, the error-page...
declaration in the web.xml
The problem seems to be: tomcat doesn't see any error (nothing in the
server log file showing the user attempted to connect). And the server
doesn't reply to the browser.
On a https connection failure : is there any exception tomcat could
catch ? Or any other way to redirect the user ?
Thanks for your help,
Alain Baucant.




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



--
*-
*  Alain Baucant  -  [EMAIL PROTECTED]
*-
*  Aubay Luxembourg  (OFFIS / Aubay-SI)
*
*  Phone: +352 29 92 50 (40)
*  Fax: +352 29 92 51
*  Mobile: +352 021 35 12 81
*
*  51, place de Strasbourg
*  L-2561 LUXEMBOURG
*
*  http://www.aubay.lu
*-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Cannot create JDBC driver of class

2004-01-16 Thread Dibakar Ray
Cannot create JDBC driver of class
'' for connect URL 'null'.

It seems it is a very very common problem. But what ever mention as
solutions at the mailing archives have not solved the problem for me.

What i did was just followed the instruction given at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
 I am using MySql db.
Thanks
Dibakar Ray



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



getRuntime().exec(...) root command problem

2004-01-16 Thread Philippe Valle


I want do do ipconfig on linux with exec java command.
When i do 'ls'  for exemple is ok , but for root command like 'ifconfig' 
i have nothing .

my code :
   ...
   cmd=ls -l\n;
   try
   {
 Process p=Runtime.getRuntime().exec(/bin/sh);
 OutputStream in=p.getOutputStream();
 in.write(cmd.getBytes());
 in.flush();
 InputStream out=new BufferedInputStream(p.getInputStream());
 byte[] b=new byte[1024];
 intn=out.read(b);
 for(i=0;in;i++) System.out.print((char)b[i]);
   }
   catch(Exception ex) {
   }
   .


I want just get MAC ADDRESS of my network device , there is another way 
to do that ?

Thanks.



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


RE: getRuntime().exec(...) root command problem

2004-01-16 Thread Ralph Einfeldt
It's not clear to me if you get an error or if you just get 
no result. So I can give just general hints:

- Use the complete path to ifconfig
  It should cause an exeption if you omit the pat and the 
  command is not found.

- The user that runs tomcat must have the right to call ifconfig
  It should cause an exeption if he hasn't.

- You have to read in loop:

InputStream out=new BufferedInputStream(p.getInputStream());
String mLine;
while ((mLine = out.readLine()) != null) {
...
}

- You have to wait until the command is ready after the read.

p.waitFor();


 -Original Message-
 From: Philippe Valle [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 10:01 AM
 To: Tomcat Users List
 Subject: getRuntime().exec(...) root command problem
 

 but for root command like 'ifconfig' i have nothing 

 try
 {
   Process p=Runtime.getRuntime().exec(/bin/sh);
   OutputStream in=p.getOutputStream();
   in.write(cmd.getBytes());
   in.flush();
   InputStream out=new BufferedInputStream(p.getInputStream());
   byte[] b=new byte[1024];
   intn=out.read(b);
   for(i=0;in;i++) System.out.print((char)b[i]);
 
 }
 catch(Exception ex) {
 }

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



RE: getRuntime().exec(...) root command problem

2004-01-16 Thread Ralph Einfeldt

Sorry little typo:

pat should be path

 -Original Message-
 From: Ralph Einfeldt 
 Sent: Friday, January 16, 2004 10:25 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: getRuntime().exec(...) root command problem
 
   It should cause an exeption if you omit the pat and the 
   command is not found.
 

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



RE: getRuntime().exec(...) root command problem

2004-01-16 Thread Sanjeev Kumar
Try 
cmd=/sbin/ifconfig \n;

-Original Message-
From: Philippe Valle [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 2:31 PM
To: Tomcat Users List
Subject: getRuntime().exec(...) root command problem



I want do do ipconfig on linux with exec java command.
When i do 'ls'  for exemple is ok , but for root command like 'ifconfig'

i have nothing .

my code :
...
cmd=ls -l\n;
try
{
  Process p=Runtime.getRuntime().exec(/bin/sh);
  OutputStream in=p.getOutputStream();
  in.write(cmd.getBytes());
  in.flush();
  InputStream out=new BufferedInputStream(p.getInputStream());
  byte[] b=new byte[1024];
  intn=out.read(b);
  for(i=0;in;i++) System.out.print((char)b[i]);

}
catch(Exception ex) {
}
.



I want just get MAC ADDRESS of my network device , there is another way 
to do that ?


Thanks.



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


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



admin webapp doesn't work under 4.1.29

2004-01-16 Thread Matthias Maier
Hi!

I'm using tomcat 4.1.29 under solaris. I figured out,
how to get the manager webapp to work but I'm unable
to find out, why the admin webapp ist't working
correctly. I can login to the webapp, but when I click
on one of the buttons, it always says servlet  action
is currently unavailable(505). Is there a problem
with this in general in 4.1.29 or is it just me, who
can't find out. 
I'm having different directories for catalina_home and
catalina_base, so I'think it's probably a path
problem, but I'm not sure. It would be really nice, if
you could help me out

Thanks Matt

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Manager Apps and virtual hosts (TC 4.1.29)

2004-01-16 Thread Francois JEANMOUGIN
Hi all,

In http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

It is written :

If you have Tomcat configured to support multiple virtual hosts (websites) you would 
need to configure a Manager for each.

Bu I would NOT! :). All the applications (and so the websites) of a specific tomcat 
instance is related to a specific developer team. I NEED a manager that can manage all 
the applications of a tomcat instance, whatever the vhost it is running on. 

How can I do that ?

Thanks for your help,

François.


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



caching nightmare

2004-01-16 Thread Adam Hardy
Maybe I'm just an idiot, but I'm having a nightmare with the caching in 
my webapp. I asked a colleague to look at it and he's baffled too.

It's probably something to do with the resource bundles. I had 
everything in an English and also a German .properties file, for testing 
purposes, but then decided to ditch the German version until it's 
completely finished.

Even though I deleted the German .properties file, shutdown tomcat, 
deleted the whole webapp and redeployed and deleted the cache in 
$CATALINA_HOME/work/ , the German strings are still being cached 
somewhere.

I have run a grep on the German string to find it in any file in the 
whole of the tomcat install directory, but haven't found it.

In the HTTP headers, I have set pragma=no-cache, cache-control=no-cache 
 expires=Thu, 01 Jan 1970 00:00:00 GMT

I have cleared the cache from my browser and done refreshes a thousand 
times. Could it be cached anywhere else on my machine between tomcat and 
the browser?

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Resource Request Denied with Tomcat

2004-01-16 Thread aalimonti
Hello,

I'm pretty sure this is a known issue, even though I didn't find much
about it;
I'm trying jaas with JBoss-Jetty version 3.2.2 and everything going
well, when i found a method on Jetty ( isUserInRole ) come back always
false. So i decided to download tha last version of JBoss with Tomcat,
but when i start the same ear, everytime i sent a request it returned :
HTTP Status 403 - Access to the requested resource has been denied

What i'm mistaking ?

Thank's for all

Andrea Alimonti
-






---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




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


RE: caching nightmare

2004-01-16 Thread Ralph Einfeldt
Yes, in a proxy. Caching proxies are use by some 
internet providers and they are often used inside 
corporate networks.

If we want to be shure that an url is not cached,
we not only set the response headers, but also 
append a unique id to the url that changes with 
every request. (As parameter)

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 11:04 AM
 To: Tomcat Users List
 Subject: caching nightmare
 
 
 times. Could it be cached anywhere else on my machine between 
 tomcat and the browser?
 

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



RE: dramatic performance differences on development machines

2004-01-16 Thread Johan Coens
Hello all,

I tried:

- isolating code in a java class and running it on both machines, about same
performance
- running tomcat 4.1.29, bit faster but still ~15 sec.
- changing network connection to full duplex, 2*faster but stil ~6 sec
(should be  1 sec). indicates network traffic could be a bottleneck
- running websphere, performance ~600 ms.
- changing java version 1.3.06 to 1.4.1, no reasonable effects
- eliminating all services, no effect

The tested machines:
(the machine which performance is fast, a dev. client) P4 2.4Gh, 512MB
memory, 60Gb harddisk
(the machine which performance is slow, the server) P4 2.4Gh, 1Gb memory,
10Gb harddisk
(the machine which performance is slow, a dev. client) P4 1.8Gh, 512MB
memory, 40Gb harddisk

I see tomcat running high on processor performance, peeks in processor
performance are the same as peeks in the network traffic. But, when running
everything on one box, it is also slow (so network should not be an issue).

Also, the developer on the fast machine noticed that when getting code from
CVS from other developers, his system slowed down signifficant too, but I
have no clue what too look for with this indication.

I hoped to hear a some kind of, hey look into this or look into that, did
you look here, but unfortunattaly there's not. It is also a complex problem
with many factors that could be the cause (network?, language settings os?,
system settings?, file system?, foreign processes which interfere?, ...).

If anyone has got a clue i would be glad too here, meanwhile i'll go look
furher looking for a solution / cause.

Cheers,
Johan


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 20:14
To: Tomcat Users List
Subject: Re: dramatic performance differences on development machines


 Unfortunattaly no option, we are bound to a specific java version and
tomcat
 version to gain support from the supplier...

Then could you just *try* a different version?

If it works, then YELL at your supplier - they would deserve it, sticking to
a buggy version. For that matter, sticking to just one version. Note that
4.1.24 is a RI for Sun's J2EE paltform and so is 5.0.16

Nix.


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




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



Re: caching nightmare

2004-01-16 Thread Adam Hardy
Yes, tried that random querystring on the url, but no joy.

When I switch the language from German back to en_us, I see what I want 
to see. But switching German on again in the browser redisplays this 
ghost resource bundle!

Does that mean it can't be the browser?

And I'm pretty sure I don't have a proxy, unless there's some extremely 
well hidden linux proxy on my localhost! But it also couldn't be the 
proxy, since this is just the locale changing, not the URL.

On 01/16/2004 11:18 AM Ralph Einfeldt wrote:
Yes, in a proxy. Caching proxies are use by some 
internet providers and they are often used inside 
corporate networks.

If we want to be shure that an url is not cached,
we not only set the response headers, but also 
append a unique id to the url that changes with 
every request. (As parameter)


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:04 AM
To: Tomcat Users List
Subject: caching nightmare
times. Could it be cached anywhere else on my machine between 
tomcat and the browser?



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



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


UnknownHostException calling ant install from sample webapp

2004-01-16 Thread Arann . Villing
The install task in the sample build.xml of the
Application Developer Guide raises a 
java.net.UnknownHostException. 

By changing war attribute to localWar in the deploy 
task in build.xml, as follows,  then everything seems 
to work. 

deploy url=${manager.url}
username=${manager.username}
password=${manager.password}
path=${app.path}
localWar=file://${build.home} /

I should probably say this was running on Windows
XP, using Tomcat 5.0.16, Ant 1.4.1 and J2SE 1.4.2_03 
just in case that matters to anyone :)

Regards,
A


This is a confidential communication and is intended only for the addressee
indicated in the message (or duly authorised to be responsible for the
delivery of the message to such person). You are specifically prohibited
from copying this message or delivering the same, or any part thereof, to
any other person, whomsoever or howsoever, unless you receive written
authorisation from us to do. If you are anyone other than the intended
addressee, or person duly authorised and responsible for the delivery of
this message to the intended addressee, you should destroy this message and notify us 
immediately. Please note that we accept no responsibility
whatsoever in the event that this message or any other email message or any part 
thereof becomes known or is communicated to anyone other than the intended recipient 
or other person authorised in writing by us to receive
it, howsoever arising and disclaim all liability for any losses or damage
which may be sustained by any person as a result thereof.

Irish Life Assurance plc (trading as Irish Life) is regulated by the Irish Financial 
Services Regulatory Authority.


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



JK2 ISAPI between IIS and Tomcat 5 has file upload bug?

2004-01-16 Thread Allistair Crossley
Hi Guys,

I am using Commons File Uploader to post a file to my Struts app running on TC 5.

If I post a file upload to Tomcat directly, e.g http://server:8080/upload.do it works 
fine

If I post a file through our IIS - JK2 - Tomcat method, e.g http://server/upload.do 
it fails with a Stream terminated unexpectedly.

The code below is what I am doing - this is not at fault .. it seems to be going 
through IIS that is killing my upload..

if (FileUpload.isMultipartContent(request)) {
  DiskFileUpload upload = new DiskFileUpload();

  List items = null;
  try {
logger.info(parsing multipart form request);
items = upload.parseRequest(request);
  } catch (FileUploadException fuE) {
logger.error(fuE.getMessage());
break DO_CHECKIN;
}


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: dramatic performance differences on development machines

2004-01-16 Thread Nikola Milutinovic
Johan Coens wrote:

Hello all,

I tried:

- isolating code in a java class and running it on both machines, about same
performance
So, the machine itself is OK.

- running tomcat 4.1.29, bit faster but still ~15 sec.
- changing network connection to full duplex, 2*faster but stil ~6 sec
(should be  1 sec). indicates network traffic could be a bottleneck
Indeed. Try sniffing the traffic, see what actually goes in and out of the box 
during one request.

- running websphere, performance ~600 ms.
Reasonable, I guess.

I see tomcat running high on processor performance, peeks in processor
performance are the same as peeks in the network traffic. But, when running
everything on one box, it is also slow (so network should not be an issue).
Network IS the problem, since changing to full duplex doubled the performance. 
It is not your request (HTTP request is very small). Nor is it server's response 
(I mean, it is a HTML page, it is not *that* big). I bet there is some other 
network traffic, that gets triggered as a side effect of a request. Like DNS 
query (reverse lookup) or some such thing.

Also, the developer on the fast machine noticed that when getting code from
CVS from other developers, his system slowed down signifficant too, but I
have no clue what too look for with this indication.
Sniff the traffic, find out what is actually going on. Leave guessing and 
crystall balls for later. You've tried the obvious and less obvious stuff. Time 
to dig in. You could also employ heavy artilery, some Java Profiler, and run 
Tomcat under (or with) it.

Nix.

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


RE: dramatic performance differences on development machines

2004-01-16 Thread Donie Kelly
Hi Johan

It's very suspicious that websphere runs so fast and tomcat doesn't. I think
there still might be a network issue.

Can you modify your server.xml as follows changing the enableLookups=false
instead of enableLookups=true

Connector  port=80 minProcessors=5 maxProcessors=75
   enableLookups=true .
  ..
/Connector

Maybe the reverse lookup is failing?

Just a guess...
Donie
-Original Message-
From: Johan Coens [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 10:57
To: Tomcat Users List
Subject: RE: dramatic performance differences on development machines

Hello all,

I tried:

- isolating code in a java class and running it on both machines, about same
performance
- running tomcat 4.1.29, bit faster but still ~15 sec.
- changing network connection to full duplex, 2*faster but stil ~6 sec
(should be  1 sec). indicates network traffic could be a bottleneck
- running websphere, performance ~600 ms.
- changing java version 1.3.06 to 1.4.1, no reasonable effects
- eliminating all services, no effect

The tested machines:
(the machine which performance is fast, a dev. client) P4 2.4Gh, 512MB
memory, 60Gb harddisk
(the machine which performance is slow, the server) P4 2.4Gh, 1Gb memory,
10Gb harddisk
(the machine which performance is slow, a dev. client) P4 1.8Gh, 512MB
memory, 40Gb harddisk

I see tomcat running high on processor performance, peeks in processor
performance are the same as peeks in the network traffic. But, when running
everything on one box, it is also slow (so network should not be an issue).

Also, the developer on the fast machine noticed that when getting code from
CVS from other developers, his system slowed down signifficant too, but I
have no clue what too look for with this indication.

I hoped to hear a some kind of, hey look into this or look into that, did
you look here, but unfortunattaly there's not. It is also a complex problem
with many factors that could be the cause (network?, language settings os?,
system settings?, file system?, foreign processes which interfere?, ...).

If anyone has got a clue i would be glad too here, meanwhile i'll go look
furher looking for a solution / cause.

Cheers,
Johan


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 20:14
To: Tomcat Users List
Subject: Re: dramatic performance differences on development machines


 Unfortunattaly no option, we are bound to a specific java version and
tomcat
 version to gain support from the supplier...

Then could you just *try* a different version?

If it works, then YELL at your supplier - they would deserve it, sticking to
a buggy version. For that matter, sticking to just one version. Note that
4.1.24 is a RI for Sun's J2EE paltform and so is 5.0.16

Nix.


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




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

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



RE: dramatic performance differences on development machines

2004-01-16 Thread jerome moliere
 Hi Johan

 It's very suspicious that websphere runs so fast and tomcat doesn't. I
 think
 there still might be a network issue.

 Can you modify your server.xml as follows changing the
 enableLookups=false
 instead of enableLookups=true

 Connector  port=80 minProcessors=5 maxProcessors=75
enableLookups=true .
   ..
 /Connector

 Maybe the reverse lookup is failing?

totally agree with that :)
the enableLookup is one parameter that should be chnaged to a default
value to false in the server.xml!!!
All my customers are using default config file  I change this parameter
in every config (no meaning for a production server to have such data)
I guess that incoming requests could be traced in a very efficient way by
any router or firewall (hardware or software as with a small linux box )


Jerome

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



Adding a directory in a webapp to the webapps classpath

2004-01-16 Thread Ryan Lissack
Hi,

Is there a way to include a directory of a webapp, other than
WEB-INF/classes, on the web apps classpath?

For example, I want to include [webapp]/somedir on the classpath for the web
app, while still including [webapp]/WEB-INF/classes.

I can just modify our build scripts to copy things from [webapp]/somedir to
[webapp]/WEB-INF/classes but would prefer to have [webapp]/somedir on the
cp.

Regards
Ryan.

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



Re: Unable to start web application

2004-01-16 Thread Ralf Schneider
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Donnerstag, 15. Januar 2004 15:21 schrieb Shapira, Yoav:
 Are there any other errors in the log?  Does your webapp rely on

No.

 ServletContext#getRealPath somewhere in its initialization?  Are you

Yes. Is that a problem? But the webapps path on the server is the same as on
my local machine. So, that should not matter.

 sure the WAR file is of the proper structure (do a jar tvf myApp.war to
 verify)?

Yes, it seems to be OK. When I copy the WAR file (demo_02.war) into the
webapps directory on my local machine and the call the URL
http://localhost:8080/demo_02 it works fine.

When I do the same on the server (without Tomcat's manager application) I get
the error messages posted in my first mail.

Any ideas?

Ralf.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAB9eI7YyyfykA0YkRAsY6AKCEAP5LVCGn1JZfC5B40IMU0nSbvQCdFs/3
f5JIIzP8BOxINE0C6UJ4AuY=
=B5OA
-END PGP SIGNATURE-


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



AW: virtual hosting and tomcat wt Apache 2 and JK2

2004-01-16 Thread Frankl Martina
Maybe your jk2 version still has this bug:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18472

hth
Martina


 -Ursprüngliche Nachricht-
 Von: Brennon Obst [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 16. Januar 2004 05:43
 An: 'Tomcat Users List'
 Betreff: virtual hosting and tomcat wt Apache 2 and JK2 
 
 
  
 Dear usergroup, 
 
 When I activated the following in my Apache 2 config within 
 the VirtualHost
 block for x.xxx.net: Location /
 
 JkUriSet worker ajp13:localhost:8009
 
 /Location
 
 ALL of my virtual hosts stopped working and started 
 complaining of not being
 able to find /index.jsp
 
 It is like the Location / wasn't confined to the 
 VirtualHost but rather
 became a server wide configuration.
 
 When I activated the apache--tomcat connection it took over 
 ALL of the
 virtual hosts and was routing them through Tomcat, does 
 anyone know how to
 stop that?
  
 Is it my Apache 2 and JK2 connectors, where do I turn now?
 Thank you in advance,
 
 Brennon Obst 
 
 
 Java Security Programmer
 iEnergy Main Branch 
 39 Melbourne St. / Brisbane 
 p. (617) 3846- 
 [EMAIL PROTECTED] 
 
  
 

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



ISAPI redirector use with IIS5

2004-01-16 Thread Simon . Temple




The following does NOT generate an error when posting to Apache

POST http://host:80/OTR/AS2/oq-2/or-MDN_HTTP/phdr/nowait HTTP/1.0

However, it generates an error when posting to IIS 5

HTTP/1.1 405 Method not allowed

If I change the URL I do NOT get the error:

POST /OTR/AS2/oq-2/or-MDN_HTTP/phdr/nowait HTTP/1.0

i.e.  Ripping the http://host:80; off the URL solves the problem.

Can someone explain why?


Tomcat Version: 4.1.24

I posted this before to microsoft.public.inetserver.iis

The only response I got from a Microsoft person was:

Ah, you're talking about an ISAPI Filter and ISAPI Extension (in the form
of
Tocmat) that is mutating the URL internally.  So, I will not be able to
exactly explain why you get 405 in your situation.  Tomcat will be mutating
the URL internally, and I do not know what URL it is using -- next to
telling you that a POST to a default document, even if considered dynamic,
will result in a 405 and is probably at the bottom of your question

TIA



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



RE: ISAPI redirector use with IIS5

2004-01-16 Thread Allistair Crossley
Mine is slightly different because

http://server:8080/upload.do is the tomcat port and works
http://server/upload.do goes to IIS first and does not. 

What you posted says that his IIS work if he uses

http://upload.do

Which seems odd to me as you need the host on there. 

I guess I will have to post to the :8080 version of the URL for this action and then 
redirect back to the non-:8080 URL after.

Do the JK2 boys not fix this stuff?

Allistair Crossley
__ 

Intranet Senior Developer
New Media Group, QAS Ltd
Telephone: 020 7819 5343
__


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 12:27
To: [EMAIL PROTECTED]
Subject: ISAPI redirector use with IIS5






The following does NOT generate an error when posting to Apache

POST http://host:80/OTR/AS2/oq-2/or-MDN_HTTP/phdr/nowait HTTP/1.0

However, it generates an error when posting to IIS 5

HTTP/1.1 405 Method not allowed

If I change the URL I do NOT get the error:

POST /OTR/AS2/oq-2/or-MDN_HTTP/phdr/nowait HTTP/1.0

i.e.  Ripping the http://host:80; off the URL solves the problem.

Can someone explain why?


Tomcat Version: 4.1.24

I posted this before to microsoft.public.inetserver.iis

The only response I got from a Microsoft person was:

Ah, you're talking about an ISAPI Filter and ISAPI Extension (in the form
of
Tocmat) that is mutating the URL internally.  So, I will not be able to
exactly explain why you get 405 in your situation.  Tomcat will be mutating
the URL internally, and I do not know what URL it is using -- next to
telling you that a POST to a default document, even if considered dynamic,
will result in a 405 and is probably at the bottom of your question

TIA



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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



TOMCAT authentication

2004-01-16 Thread postmaster
Hello 

I'm pretty sure this is a known issue, even though I didn't find much about 
it; I'm having a problem with authenticating users in TomCat. I have an IIS 
server to server static content and Tomcat to serve dynamic content, if 
users knows URL that goes directly to Tomcat then Tomcat wont even ask for 
use to enter his/her username and password while if user goes through first 
page of IIS (where it redirects to tomcat) IIS askes user for his/her 
username and password. 

How do I enable authentication at Tomcat so that even if users knows direct 
URL it would still ask him/her for his/her username and password? 

Thank you in advance 

h t t p : / / a l e x u s . o r g /

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


Realm SQL 2000 developer edition

2004-01-16 Thread Søren Blidorf
Does anybody know of any difference between SQL 2000 standard and
Developer edition?

I am having problems with my realm:

Context path=/um docBase=c:/projects/MY_PROJECT debug=0
reloadable=true
Realm name=UMRealm className=org.apache.catalina.realm.JDBCRealm
debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver
connectionURL=jdbc:microsoft:sqlserver://MY_PC_NAME;DatabaseName=nolas;
ProgramName=MYREALM;SelectMethod=cursor connectionName=MYUSER
connectionPassword=MYPASS userTable=users userNameCol=username
userCredCol=password userRoleTable=user_roles roleNameCol=rolename
/
/Context

I have connection to the database and I get an error if I type in wrong
user/pass. But when signing in I does not seem to be logged on.

Every thing works on win2000 and sql 2000 server standard.


Please help.

Soren


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



RE: Need an Idea - appending #tag after someurl.jsp ?

2004-01-16 Thread Hume, John - NA US HQ Delray
Is the servlet doing a RequestDispatcher.forward or HTTP redirecting?  It
seems a response.sendRedirect (HTTP redirect) would work, assuming your JSP
doesn't need the data from the form POST request.  If it DOES need to share
the request with the servlet, then I believe the HTML form action will have
to include the #tag.  

The other way to go would be JavaScript in the JSP that looks at a request
parameter or something else in the URI, which doesn't strike me as pretty,
but others may like.  Note that JavaScript won't see request parameters that
you add in a RequestDispatcher.forward, so here again the form (if it's a
GET) or form action (if it's a POST) would have to include something for the
JS to see.  

-john.


-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 5:45 PM
To: Tomcat Users List
Subject: Need an Idea - appending #tag after someurl.jsp ?


hi,

I have a page called First.jsp. I have a a name='tag' on it. When i 
submit a form to a servlet, the servlet needs to forward me to 
First.jsp#tag. Problem is i get the following message when i try to do 
this:

type: Status report
message: /First.jsp#tag
description: The requested resource (/First.jsp#tag) is not available.

if it were: First.html#tag it would have worked, but for a jsp .. Any 
Ideas to get the same effect?


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

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



installing tomcat

2004-01-16 Thread Priti Sawant
Hello
I followed the following steps to install tomcat on my machine.
1) http://jakarta.apache.org/site/binindex.cgi
2) click on 

Tomcat 5.0.16 KEYS 
   5.0.16 zip PGP MD5 (I clicked on 5.0.16) and after completion unzipped the files

3) the following folders are now installed under jakart-tomcat-5.0.16 folder

bin, common, conf, logs, server, webapps, work ; files are license, RUNNIN.txt, 
RELEASE.NOTES

i do not see the lib folder in which the servlet.jar exists. Infact none of the 
above folder has the .jar. Theres all servlet-default.jar under server-lib 
--folder.

Please let me know What step did i miss. I need to include import javax.servlet.* 
into my file. but with no lib folder it gives me an error

Thanking you

 


Sincerely, 
Priti Sawant 
(206) 852-0149 

www.geocities.com/sawantpriti
 


 It is possible to fail in many ways...while to succeed is possible only in one way. 
- Aristotle 




-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes

Exception with compression over SSL with Safari

2004-01-16 Thread Mark Woon
Hi all,

I'm getting a ClassCastException whenever I connect with Safari over SSL 
and compression turned on:

08:45:00,643 ERROR Http11Processor:846 - Error finishing response
java.lang.ClassCastException
   at 
org.apache.coyote.http11.filters.GzipOutputFilter.end(GzipOutputFilter.java:165)
   at 
org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:439)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:842)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:6
96)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
   at java.lang.Thread.run(Thread.java:534)
java.lang.ClassCastException
   at 
org.apache.coyote.http11.filters.GzipOutputFilter.end(GzipOutputFilter.java:165)
   at 
org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:439)
   at 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:944)
   at org.apache.coyote.Response.action(Response.java:226)
   at org.apache.coyote.Response.finish(Response.java:348)
   at 
org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:328)
   at 
org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse.java:497)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:213)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:6
96)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
   at java.lang.Thread.run(Thread.java:534)

Any ideas what's going on?

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


move server.xml context resource to web.xml

2004-01-16 Thread Hayati Hussin
Hi, does anyone know how to move the server.xml context resource to the
web.xml?  I need to know the procedures asap.  Thanks.



running a servlet .class file

2004-01-16 Thread Allan Bruce
Hi there,

My friend has sent me a servlet to run on my server, it is in the form of 2
*.class files.  I have installed tomcat (succesfully I think) and I now want
to run my friends servlet.  Can somebody give me a brief description of how
to do this?

Many Thanks
Allan



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



Re: virtual hosting and tomcat wt Apache 2 and JK2

2004-01-16 Thread Timothy Stone
Brennon Obst wrote:

 
Dear usergroup, 

...

When I activated the apache--tomcat connection it took over ALL of the
virtual hosts and was routing them through Tomcat, does anyone know how to
stop that?
 
Is it my Apache 2 and JK2 connectors, where do I turn now?
Thank you in advance,
I saw this link outside the thread. Posted by Frankl Martina.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18472

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


Re: admin webapp doesn't work under 4.1.29

2004-01-16 Thread Michael Duffy

I'd give a look to the logs.  If your situation is
like mine, there'll be a good hint in there.

I had exactly that problem with Tomcat 4.1.24.  The
MBean server would always throw an exception,
resulting in an admin app that would behave as you
describe.

The problem?  I had some outdated MBean JARs in my
JAVA_HOME/jre/lib/ext directory that I'd forgotten
about.  They were interfering with the more up-to-date
JARs that were installed with Tomcat.  The class
loader would find them first and cause the problem.

When I removed those JARs, everything worked fine.

Now I never put anything in that directory other than
language extensions (e.g., packages that start with
javax).

See if that does anything for you. - MOD


--- Matthias Maier [EMAIL PROTECTED] wrote:
 Hi!
 
 I'm using tomcat 4.1.29 under solaris. I figured
 out,
 how to get the manager webapp to work but I'm unable
 to find out, why the admin webapp ist't working
 correctly. I can login to the webapp, but when I
 click
 on one of the buttons, it always says servlet 
 action
 is currently unavailable(505). Is there a problem
 with this in general in 4.1.29 or is it just me, who
 can't find out. 
 I'm having different directories for catalina_home
 and
 catalina_base, so I'think it's probably a path
 problem, but I'm not sure. It would be really nice,
 if
 you could help me out
 
 Thanks Matt
 
 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus
 Sweepstakes
 http://hotjobs.sweepstakes.yahoo.com/signingbonus
 

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


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



RE: getRuntime().exec(...) root command problem

2004-01-16 Thread Michael Duffy

No one should use java.lang.Runtime.exec without
reading this:

http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

MOD


--- Sanjeev Kumar [EMAIL PROTECTED] wrote:
 Try 
 cmd=/sbin/ifconfig \n;
 
 -Original Message-
 From: Philippe Valle [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 16, 2004 2:31 PM
 To: Tomcat Users List
 Subject: getRuntime().exec(...) root command problem
 
 
 
 I want do do ipconfig on linux with exec java
 command.
 When i do 'ls'  for exemple is ok , but for root
 command like 'ifconfig'
 
 i have nothing .
 
 my code :
 ...
 cmd=ls -l\n;
 try
 {
   Process
 p=Runtime.getRuntime().exec(/bin/sh);
   OutputStream in=p.getOutputStream();
   in.write(cmd.getBytes());
   in.flush();
   InputStream out=new
 BufferedInputStream(p.getInputStream());
   byte[] b=new byte[1024];
   intn=out.read(b);
   for(i=0;in;i++) System.out.print((char)b[i]);
 
 }
 catch(Exception ex) {
 }
 .
 
 
 
 I want just get MAC ADDRESS of my network device ,
 there is another way 
 to do that ?
 
 
 Thanks.
 
 
 

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

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


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Update Tomcat

2004-01-16 Thread Ralf Schneider
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

is it possible to update a Tomcat bundled with JWSDP 1.3? And if yes, how can 
this be done? Is there any documenation about this?

Ralf.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAB+Dl7YyyfykA0YkRAgFNAKCHLNw9TZevp/zA+L42KXgu0tesvgCePi50
Plb2qicuHQvHvaAEwrt62ZI=
=+4N+
-END PGP SIGNATURE-


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



Can't sart Tomcat 5.0.16 on apache 2.0.48 with j2sdk1.4.1_06

2004-01-16 Thread Phillip Moringer
Hi 

I am new in using tomcat 
The following thing is happening to me.
I have installed Tomecat one my apache serve which is running also php
as a module.
On start up I get following error in the error log of apache

[Fri Jan 16 12:44:03 2004] [notice] Parent: Created child process 2024
[Fri Jan 16 12:44:04 2004] [notice] Child 2024: Child process is running
[Fri Jan 16 12:44:04 2004] [notice] jk2_init() Found child 2024 in
scoreboard slot 0
[Fri Jan 16 12:44:04 2004] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2re1.4.1_06\bin\client\jvm.dll
[Fri Jan 16 12:44:04 2004] [notice] vm.open2() done
[Fri Jan 16 12:44:04 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter 
[Fri Jan 16 12:44:04 2004] [error] Can't find class
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Fri Jan 16 12:44:05 2004] [notice] vm.detach() ok
[Fri Jan 16 12:44:05 2004] [error] workerEnv.initWorkers() init failed
for worker.jni:onStartup
[Fri Jan 16 12:44:05 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter 
[Fri Jan 16 12:44:05 2004] [error] Can't find class
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Fri Jan 16 12:44:05 2004] [notice] vm.detach() ok
[Fri Jan 16 12:44:05 2004] [error] workerEnv.initWorkers() init failed
for worker.jni:onShutdown
[Fri Jan 16 12:44:05 2004] [notice] workerEnv.init() ok C:/Program
Files/Apache Group/Apache2/conf/workers2.properties
[Fri Jan 16 12:44:05 2004] [error] mod_jk child init 1 0
[Fri Jan 16 12:44:05 2004] [notice] Child 2024: Acquired the start
mutex.
[Fri Jan 16 12:44:05 2004] [notice] Child 2024: Starting 250 worker
threads. 

What could I have done wrong ???

The workers2.properties and jk2.properties are dois one the
howtoinstaltomcat4onapache ... 


Thanks in advance for any replay


Phillip   



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



RE: Adding a directory in a webapp to the webapps classpath

2004-01-16 Thread Shapira, Yoav

Howdy,
Only with a custom Loader.  (See the Loader configuration reference).

You probably don't want to do this: the servlet container's classloader
scheme is complicated enough as is.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:02 AM
To: '[EMAIL PROTECTED]'
Subject: Adding a directory in a webapp to the webapps classpath

Hi,

Is there a way to include a directory of a webapp, other than
WEB-INF/classes, on the web apps classpath?

For example, I want to include [webapp]/somedir on the classpath for
the
web
app, while still including [webapp]/WEB-INF/classes.

I can just modify our build scripts to copy things from
[webapp]/somedir to
[webapp]/WEB-INF/classes but would prefer to have [webapp]/somedir on
the
cp.

Regards
Ryan.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: move server.xml context resource to web.xml

2004-01-16 Thread Shapira, Yoav

Howdy,
You can't: web.xml and server.xml are entirely different beasts, the
first being specified in the servlet specification and the second being
tomcat-specific.  You can tie environment entries/resource references,
but not definitions, between them.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Hayati Hussin [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 2:32 AM
To: [EMAIL PROTECTED]
Subject: move server.xml context resource to web.xml

Hi, does anyone know how to move the server.xml context resource to the
web.xml?  I need to know the procedures asap.  Thanks.




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: pass session from one app to another app

2004-01-16 Thread Shapira, Yoav

Howdy,
See SingleSignOn Valve in tomcat documentation.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chiming Huang [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 5:53 PM
To: Tomcat User
Subject: pass session from one app to another app

Hi,

We have several web applications all running under one Tomcat 4.1.24.
Users need to logon each application to use each individual software.
Is
there a way to logon once and user can access to other allowed
applications?

Thanks,
Chiming


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: running a servlet .class file

2004-01-16 Thread Shapira, Yoav

Howdy,
Drop the class files under the appropriate directory of the examples'
webapp's WEB-INF/classes directory, create a servlet and servlet-mapping
for your friend's servlet in examples' web.xml, and browse to
http://yourhost:8080/examples/yourservletmapping.


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:40 AM
To: [EMAIL PROTECTED]
Subject: running a servlet .class file

Hi there,

My friend has sent me a servlet to run on my server, it is in the form
of 2
*.class files.  I have installed tomcat (succesfully I think) and I now
want
to run my friends servlet.  Can somebody give me a brief description of
how
to do this?

Many Thanks
Allan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to start web application

2004-01-16 Thread Shapira, Yoav

Howdy,

 ServletContext#getRealPath somewhere in its initialization?  Are you

Yes. Is that a problem? But the webapps path on the server is the same
as
on
my local machine. So, that should not matter.

Make sure the permissions are the same, including file creation.  Or
alternatively, and better, use ServletContext#getResource rather than
getRealPath.  I don't remember your original error messages but this
might have to do with the problem.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Update Tomcat

2004-01-16 Thread Shapira, Yoav

Howdy,

is it possible to update a Tomcat bundled with JWSDP 1.3? And if yes,
how
can
this be done? Is there any documenation about this?

Most users download tomcat directly from apache.org.  I would imagine
you can just install a tomcat version you download into some directory
under the JWSDP distribution.  Make sure to move, not remove, your
current tomcat directory so that you don't lose any JWSDP configuration
files.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: isapi_redirector2.dll fails - red arrow

2004-01-16 Thread KKolle

Thanks Frank!
Also, I tried http://www.shiftomat.com/opensource, and it worked great. Thanks
Daniel!
Now, I just need to make my existing site (in IIS) route JSP calls to Tomcat,
instead of from the localhost. I'll work on that.



   
 
  Frank Febbraro 
 
  [EMAIL PROTECTED]To:   Tomcat Users List [EMAIL 
PROTECTED]  
  thlink.net   cc:
 
Subject:  Re: isapi_redirector2.dll 
fails - red arrow   
  01/15/2004 02:55 
 
  PM   
 
  Please respond to
 
  Tomcat Users
 
  List
 
   
 
   
 




I looks as if you are following the instructions for the JK1.x connector and
not the JK 2.0.2 instructions.

The best step-by-step I found was here and it worked like a charm.

http://nagoya.apache.org/wiki/apachewiki.cgi?WinJK2IIs

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 1:46 PM
Subject: Re: isapi_redirector2.dll fails - red arrow



 I couldn't find the isapi_redirector.dll, just the isapi_redirector2.dll.

 Registry:
 extension_uri =  /tomcat/isapi_redirector2.dll
 worker_file  = D:\Program Files\Tomcat 4.1\conf\workers.properties
 worker_mount_file  = D:\Program Files\Tomcat
4.1\conf\uriworkermap.properties
 log_file  = D:\Program Files\Tomcat 4.1\logs\jk_iis.log
 log_level  = debug

 Maybe I'll try your setup program if I can't get this to work.
 Thanks




   Daniel Schmitt
   [EMAIL PROTECTED]To:   Tomcat Users List
[EMAIL PROTECTED]
   e   cc:
Subject:  Re:
isapi_redirector2.dll fails - red arrow
   01/15/2004 12:38
   PM
   Please respond to
   Tomcat Users
   List






 [EMAIL PROTECTED] wrote:

  I followed http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html for
  instructions.
 They are out of date - jk1.2 Connector

 are you pointing to isapi_redirector2.dll not isapi_redirector.dll?
 could you post your reg entrys here?


 You can also try our jk2.02 installer at:
 http://www.shiftomat.com/opensource
 but you have to undo your manual install first to get it working


 hope this helps

 --
 Daniel Schmitt
 http://www.shiftomat.de


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







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





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







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



Re: running a servlet .class file

2004-01-16 Thread Allan Bruce
I still cant get it working, but neither is the example servlets, here is
what I am trying
http://kes/examples/WinGalagaHST?Op=GetHTML

my directory structure is as follows
/usr/local/sites/tomcat/tomcat/
-webapps/
--examples/
---web.xml
---WEB-INF/
classes/
-WinGalagaHST.class
-EDSServlet.class


Here are exerpts from my config files:

--commonhttpd.conf

IfDefine HAVE_JK2
LoadModule jk2_module /usr/lib/apache2/mod_jk2.so
/IfDefine





--server.xml (in conf/)
!-- Alternate Example-less Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Uncomment this entry to enable JMX MBeans support --
!--
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 port=-1 login=admin password=admin/
--


  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to
the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port
8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second
Connector
 entry.  SSL support requires the following steps (see the SSL
Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
(Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
(Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are
disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
--

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

!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8081 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 connectionTimeout=6
   proxyPort=80/

--
!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 --
!--
Connector
className=org.apache.catalina.connector.http10.HttpConnector
   port=8082 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0/
--
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector

RE: dramatic performance differences on development machines

2004-01-16 Thread Peter Lin
 
Hi johan,
 
 
ok, I think I'm getting a clearer picture, but as you said, it is a complex problem. 
just to summarize and make sure I understand what is happening.
 
1. the pure java code runs the same on all systems, which indicates the java code by 
itself is unlikely the cause
 
2. there's some weird CPU usage behavior under load
 
3. websphere runs the same on all three systems?
 
4. chaining JDK/VM didn't affect performance
 
 
From the additional details you've provided, my feeling is you can rule out the 
following:
 
1. the bug is the result of java code + tomcat. the reason I feel it's not likely is 
because the same code behaves different on the P4 2.8 vs. P4 1.8.  If it was the 
result of the java code interacting with tomcat, both systems should be affected. I 
wouldn't rule it out completely, but it's very unlikely.
 
2. network IO is unlikely the true cause. this is based on the assumption your 
application doesn't try to manipulate the outputstream beyond simply printing to it. 
on the otherhand, if your app does funky things with the outputstream, like custom 
encoding, custom compression, buffering and so on, that could very well cause the 
performance problem. Let me give you an example. about 1.5 yr back I was working on a 
webapp which had custom error pages. If an error occurred due to bad request params or 
external queries failed, it would redirect to a custom error page which was 
dynamically created. we extended the access log to record the page processing time and 
gzip compression. The end result was in some cases if external queries failed, it 
caused our code to go into a loop for a few minutes. I'm really anal about running 
performance benchmarks often, so I caught it early. the solution I ended up 
implementing was to allow requests to redirect to the custom error page once. The 
behavior
 before was due to the fact the custom error page encountered an error and was 
redirecting to itself recursively. my fix was to set an attribute, so that it only 
redirects to the error page once.
 
3. JDK is unlikely a cause for the obvious reasons, but it could be if you're using 
XML. I'll qualify this statement a bit. XML consumes copious amounts of memory and 
slower machines with smaller L1/L2 cache have a harder time. Since one of the two 
2.4ghz machines was slow, it's unlikely the VM, unless the server is on a different 
OS. JDK1.4 is generally faster with memory intensive apps.
 
Now for potential causes.  High CPU usage is your smoking gun here. Typically, the CPU 
usage due to tomcat should be less than 10-15% unless you're serious stressing it. I'm 
guessing you're only sending one request at a time. Reasons why Tomcat might have high 
CPU usage.
 
1. if your servlet/jsp creates a separate thread to do some process
2. the application uses an app wide component, like a caching mechanism
3. queries to the database are not properly closed and remain open for some weird 
reason.
4. your app gets data from some external source using your own driver. I did this once 
in the past. I was using a multi-threaded driver we wrote in house to get XML data. 
The connections were pooled and wasn't killed immediately. I discovered it during an 
integration stress test and noticed the response times started to grow and the thread 
count started to increase.
 
As usual, if you provide more details about the funcationality, it is easier to 
diagnose the problem. if it is important, you may want to get permission from your 
superiors to post more details, otherwise you're on your own.  With the information 
you've provided so far, people can only guess and some of the suggestions will be 
totally wrong. Heck my suggestions could be totally off. good luck with debugging.
 
peter lin
 
 


Johan Coens [EMAIL PROTECTED] wrote:
Hello all,

I tried:

- isolating code in a java class and running it on both machines, about same
performance
- running tomcat 4.1.29, bit faster but still ~15 sec.
- changing network connection to full duplex, 2*faster but stil ~6 sec
(should be  1 sec). indicates network traffic could be a bottleneck
- running websphere, performance ~600 ms.
- changing java version 1.3.06 to 1.4.1, no reasonable effects
- eliminating all services, no effect

The tested machines:
(the machine which performance is fast, a dev. client) P4 2.4Gh, 512MB
memory, 60Gb harddisk
(the machine which performance is slow, the server) P4 2.4Gh, 1Gb memory,
10Gb harddisk
(the machine which performance is slow, a dev. client) P4 1.8Gh, 512MB
memory, 40Gb harddisk

I see tomcat running high on processor performance, peeks in processor
performance are the same as peeks in the network traffic. But, when running
everything on one box, it is also slow (so network should not be an issue).

Also, the developer on the fast machine noticed that when getting code from
CVS from other developers, his system slowed down signifficant too, but I
have no clue what too look for with this indication.

I hoped to hear a 

RE: running a servlet .class file

2004-01-16 Thread Shapira, Yoav

Howdy,

I still cant get it working, but neither is the example servlets, here
is

Hold on.  Before you go further, make sure your tomcat installation is
working, i.e. the examples and docs at least.  Take Apache and the
connectors out of the equation, just run tomcat standalone.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Redirection of JSP to iPlanet Web Server

2004-01-16 Thread Anantharam S
Hi,

I have been trying for a while now to configure iPlanet web server (6.x) to send 
servlet and JSP requests to Tomcat (4.1.x) using the Tomcat redirector plugin. 

Asper the documentation of APACHE ( 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/neshowto.html ) a dll file ( 
nsapi_redirect.dll ) is required to configure the redirection of the jsp's from the 
iplanet web server to TOMCAT, but I am unable to find out the location of this dll 
file in the connectors binaries :( 

I would be grateful if anyone could guide me on the process of redirecting the jsp 
requests from TOMCAT to the iPlanet web server

Thanks in advance;
Ananth



Re: running a servlet .class file

2004-01-16 Thread Allan Bruce
actually, my web.xml file may be cack, this is it in its entirety:


web-app
servlet
servlet-name
WinGalagaHST
/servlet-name
servlet-class
WinGalagaHST
/servlet-class
/servlet
/web-app




- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 16, 2004 1:32 PM
Subject: RE: running a servlet .class file



 Howdy,
 Drop the class files under the appropriate directory of the examples'
 webapp's WEB-INF/classes directory, create a servlet and servlet-mapping
 for your friend's servlet in examples' web.xml, and browse to
 http://yourhost:8080/examples/yourservletmapping.


 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Allan Bruce [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 7:40 AM
 To: [EMAIL PROTECTED]
 Subject: running a servlet .class file
 
 Hi there,
 
 My friend has sent me a servlet to run on my server, it is in the form
 of 2
 *.class files.  I have installed tomcat (succesfully I think) and I now
 want
 to run my friends servlet.  Can somebody give me a brief description of
 how
 to do this?
 
 Many Thanks
 Allan
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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



RE: running a servlet .class file

2004-01-16 Thread Shapira, Yoav

Howdy,
actually, my web.xml file may be cack, this is it in its entirety:


web-app
servlet
servlet-name
WinGalagaHST
/servlet-name
servlet-class
WinGalagaHST
/servlet-class
/servlet
/web-app

You also need a servlet mapping, e.g.
servlet-mapping
  servlet-nameWinGalagaHST/servlet-name
  url-pattern/WinGalaga/url-pattern
/servlet-mapping

Then going to /WinGalaga under your webapp will access the servlet.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java.net.SocketException: Connection reset

2004-01-16 Thread Salvador Santander Gutierrez
Hello, list. I've installed Tomcat 4.1.24 and MySQL 4.0.16 and tomcat and a
aplication that access to the data base with a heavy load. crash sometimes
per day and I've seen the next error in the tomcat log:

2004-01-13 08:13:48 StandardHost[localhost]: MAPPING configuration error for
request URI /opencms/export/eintranet/index.html

2004-01-13 08:20:16 StandardHost[localhost]: MAPPING configuration error for
request URI /opencms/export/eintranet/index.html

StandardWrapperValve[default]: Servlet.service() for servlet default threw
exception

java.net.SocketException: Connection reset.

2004-01-13 08:13:48 StandardHost[localhost]: MAPPING configuration error for
request URI /opencms/export/eintranet/index.html

2004-01-13 08:20:16 StandardHost[localhost]: MAPPING configuration error for
request URI /opencms/export/eintranet/index.html



Any idea how to solve this or What could be the cause of this problem?

Thanks.






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



Re: running a servlet .class file

2004-01-16 Thread Allan Bruce
I stopped apache and tomcat then started tomcat only.  My catalina.out
reads:

StandardEngine[null]: setJvmRoute=tc1
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24-LE-jdk14
16-Jan-2004 14:09:11 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
16-Jan-2004 14:09:11 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=9/606
config=/usr/local/sites/tomcat/tomcat/conf/jk2.properties
Starting service Tomcat-Apache
Apache Tomcat/4.1.24-LE-jdk14

is this correct?

Thanks
Allan


- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 16, 2004 2:01 PM
Subject: RE: running a servlet .class file



 Howdy,

 I still cant get it working, but neither is the example servlets, here
 is

 Hold on.  Before you go further, make sure your tomcat installation is
 working, i.e. the examples and docs at least.  Take Apache and the
 connectors out of the equation, just run tomcat standalone.

 Yoav Shapira





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



Tomcat 4 IIS5 - HTTPExtensionProc not getting the filter's added headers

2004-01-16 Thread Jeff Trout
[Note: this is little lengthy and detailed]

I'm trying to get Tomcat 4.1.27 (Older, I know but I don't think thats
the issue as hitting Tomcat direct is fine), IIS5 and the connector
working. (The problem occurs on both jk1 and jk2).  I have two machines
currently: Machine A is running 2k sp2, the other is running 2k sp4. 
The sp4 box is what we will run on in production.

Tomcat amp; IIS work like a champ on Machine A.  

They do not work on machine B.  I turned on verbose logging in 
isapi_redirect.dll to see what was going on.  
I'd see the filter execute, detect that the URI was for a servlet and 
try to pass the request down to the actual proxy part of the module.  
HTTPExtensionProc would start up and would fail to get a name for a 
worker.  I found that odd.  So I pulled up the source (for jk2) and saw 
that the filter adds some HTTP headers to the request that 
HTTPExtensionProc would use to make life better.  The only way I could 
see for it to not get the name was if the header was missing.

I decided to verify my theory, so on machine A I whipped up a little asp
that dumps all the server variables (Request.ServerVariables) to see
if this is true.  Sure enough when I requested a servlet URL the filter
decided it was in fact a servlet url and passed the request to my asp.
I saw the following headers added: HTTP_TOMCATURI, HTTP_TOMCATQUERY, and
 HTTP_TOMCATWORKER.  So I bought the asp over to machine B and tried the
same thing and lo and behold - there were no Tomcat variables. 

I've been googling for quite a while and haven't found any reason why 
they wouldn't be set.  We're not running URLScan or any other software
that should be changing the headers.  The only other ISAPI modules
loaded are sspifilt (ssl), compression and md5filt - all standard ones. 
The IIS configurations are the same as far as I know, I'm not sure about
all the arcane things that may be floating in the metabase.  The big
difference here is that one machine runs SP2(which works) and the other
runs SP4. 

Here's some exciting log output (isapi_redirect.dll log, level=debug):

Machine A [Successful request][jk1]

[Fri Jan 16 00:35:37 2004]  [jk_isapi_plugin.c (655)]: Detected IIS =
5.0
00:35:37 2004]  [jk_isapi_plugin.c (765)]: In HttpFilterProc test
Default redirection of /NASApp/bon/pub/servlet/BAServConfig[Fri Jan 16
00:35:37 2004]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Fri Jan 16 00:35:37 2004] [jk_uri_worker_map.c (477)]: Attempting to
map URI'/NASApp/bon/pub/servlet/BAServConfig'
[Fri Jan 16 00:35:37 2004] [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -
/NASApp/bon/pub/
[Fri Jan 16 00:35:37 2004]  [jk_isapi_plugin.c (775)]:
HttpFilterProc[/NASApp/bon/pub/servlet/BAServConfig] is a servlet url -
should redirect to ajp13
[Fri Jan 16 00:35:37 2004]  [jk_isapi_plugin.c (838)]: HttpFilterProc
check if [/NASApp/bon/pub/servlet/BAServConfig] is points to the web-inf
directory[Fri Jan 16 00:35:37 2004] [jk_isapi_plugin.c(878)]:
HttpExtensionProc started
[Fri Jan 16 00:35:37 2004] [jk_worker.c (132)]:
Into wc_get_worker_for_name ajp13
[Fri Jan 16 00:35:37 2004] [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker[Fri Jan 16 00:35:37 2004]  [jk_isapi_plugin.c
(913)]: HttpExtensionProc got a worker for name ajp13

We see things are fine and dandy

Here's the same request, but to Machine B. [jk1]

[Fri Jan 16 08:16:22 2004]  [jk_isapi_plugin.c (655)]: Detected IIS =
5.0
[Fri Jan 16 08:16:22 2004]  [jk_isapi_plugin.c (696)]:
HttpFilterProc started
[Fri Jan 16 08:16:22 2004]  [jk_isapi_plugin.c (765)]: In HttpFilterProc
test Default redirection of/NASApp/bon/pub/servlet/BAServConfig
[Fri Jan 16 08:16:22 2004] [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Fri Jan 16 08:16:22 2004] [jk_uri_worker_map.c (477)]: Attempting to
map URI'/NASApp/bon/pub/servlet/BAServConfig'
[Fri Jan 16 08:16:22 2004] [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -
/NASApp/bon/pub/
[Fri Jan 16 08:16:22 2004]  [jk_isapi_plugin.c (775)]: HttpFilterProc
[/NASApp/bon/pub/servlet/BAServConfig] is a servlet url - should
redirect to ajp13
[Fri Jan 16 08:16:22 2004]  [jk_isapi_plugin.c (838)]:
HttpFilterProc check if [/NASApp/bon/pub/servlet/BAServConfig] is points
to the web-inf directory
[Fri Jan 16 08:16:22 2004]  [jk_isapi_plugin.c (696)]: HttpFilterProc
started
[Fri Jan 16 08:16:22 2004] [jk_isapi_plugin.c (759)]: In
HttpFilterProc Virtual Host redirection
of/bosimmux1.bos.lycos.com/jakarta/isapi_redirect.dll
[Fri Jan 16 08:16:22 2004]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Fri Jan 16 08:16:22 2004] [jk_uri_worker_map.c (477)]: Attempting to
map URI'/bosimmux1.bos.lycos.com/jakarta/isapi_redirect.dll
[Fri Jan 16 08:16:22 2004]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Fri Jan 16 08:16:22 2004]  

Tomcat and webapplication-specific java.library.path

2004-01-16 Thread Erik Winlöf

I have a problem with Tomcat and the java-library.path. 
(My problem isn't Oracle-specific but it is when I use Oracle that problem 
appears since Oracle uses the java.library.path)

What I have managed to do:
Oracle JDBC with works fine if I:
 - put ojdbc14.jar in ${CATALINA_HOME}/common/lib
 - set ORACLE_HOME to the correct directory
 - set LD_LIBRARY_PATH (java.library.path) to include the directory with 
   the needed .so-file

However this is not exactly what I wan't to do. Instead of setting the 
variables in the shell I want to set them from a Java-class when it is 
invoked by Tomcat.

So I set ORACLE_HOME to the same directory as above and include the directory 
with the .so-file in the LD_LIBRARY_PATH by doing this:

System.out.println(JLP  = + System.getProperty(java.library.path);
System.out.println(OH   = + System.getProperty(ORACLE_HOME);

System.setProperty(ORACLE_HOME, dbHomePath);
String jlp = java.lang.System.getProperty(java.library.path);
System.setProperty(java.library.path, dbLibraryPath + : + jlp);

System.out.println(JLP2 = + System.getProperty(java.library.path);
System.out.println(OH2  = + System.getProperty(ORACLE_HOME);

String dsJNDIName = java:/comp/env/jdbc/orgdbDataSource;
Context ctx = new InitialContext();
ds = (DataSource) ctx.lookup(dsJNDIName);

When I print these variables they look exactly as I want them to look, 
just like they did when everything worked (the top of the mail 
What I have managed to do). They look like this:

JLP  =null
OH   =/appl/oracle/product/9.2.0/

JLP2 
=/opt/sun-jdk-1.4.2/jre/lib/i386/client:/opt/sun-jdk-1.4.2/jre/lib/i386:/opt/sun-jdk-1.4.2/jre/../lib/i386:/appl/mqm/java/lib/:/opt/mqm/java/lib
OH2  
=/appl/oracle/product/9.2.0/lib/:/opt/sun-jdk-1.4.2/jre/lib/i386/client:/opt/sun-jdk-1.4.2/jre/lib/i386:/opt/sun-jdk-1.4.2/jre/../lib/i386:/appl/mqm/java/lib/:/opt/mqm/java/lib

(Notice the change with /opt/sun-jdk-1.4.2/jre/lib/i386/client in the 
start of the path)

My thinking is this (based on what I have read about the ClassLoader):
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html

Since the ojdbc14.jar is placed in /common/lib, the jar doesn't 
include my webapplication-spcific java.library.path since it is supposed 
to be shared by all webapplications. However, if this is the case, it is 
kind of strange since it is my webapplication that uses and loads ojdbc14 
and NOT ojdbc14 that uses my webapplication. Therefore I think that ojdbc14 should 
use my java.library.path.

This is the error I get by the way:

java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
java.lang.Runtime.loadLibrary0(Runtime.java:788)
java.lang.System.loadLibrary(System.java:834)
oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
oracle.jdbc.driver.OracleConnection.(OracleConnection.java:346) 
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)  

org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:82)
   

org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:300)


org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:838)
 

org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:821) 
 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
gu.orgdb.orgobj.Database.getConnection(Database.java:148)
gu.orgdb.orgobj.UserSession.getConnection(UserSession.java:245)
gu.orgdb.orgobj.Database.loadOrgUnitsByType(Database.java:2243) 
gu.orgdb.orgobj.OrgObjectManager.viewOrgUnitsByType(OrgObjectManager.java:218)
gu.orgdb.orgobj.OrgUnit.getUniversity(OrgUnit.java:264)
gu.orgdb.util.ImportOrganization.doImport(ImportOrganization.java:46)
gu.orgdb.web.OrgDBServlet.init(OrgDBServlet.java:72)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
java.lang.Thread.run(Thread.java:534)

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



out of memory problem. Help!

2004-01-16 Thread Christophe Andreoli


Hello !

I have a Struts/jsp Application

Ich get an out of memory problem:javax.servlet.ServletException: Servlet
execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.OutOfMemoryError


It happens When the corresponding request returns more than 2-3
rows from the database, not every time

but surely if more request run parallely


From the 2-3 rows I am making  the same number of the following
objects from this class
class{
public  int humanId=-1;
public String humanDescription=;
public String   swissProtId=;
public String swissProtName=;
public String function=;
public String subcellularLocation =;
public String alternativeProtein =;
public String  pathway =;
public double mitoProt =-1;
public int mitoLocal=-1;
private double  accuracy;
public String swissProtLink=;
private int hasEncephalHomolog=-1;
private int hasRickettsiaHomolog=-1;
private int hasYeastMitoHomolog=-1;
private int hasParalogMito=-1;
private int heartProteome=-1;
private int psort=-1;
private String mesClone=;
private String mesUnigene=;
private int holgerCandidate=-1;
private int predotar=-1;
private String omim=;
private String subLocWiemann=;


}


Can you help me ?



   Thank you!


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

Re: out of memory problem. Help!

2004-01-16 Thread Tim Funk
- Get more memory
- allocate more memory to the JVM 
(http://jakarta.apache.org/tomcat/faq/memory.html#adjust)
- Don't place 20,000 ros of data in memory
- Limit the size of your query

-Tim

Christophe Andreoli wrote:

Hello !

I have a Struts/jsp Application

Ich get an out of memory problem:javax.servlet.ServletException: Servlet
execution threw an exception
at 


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


RE: out of memory problem. Help!

2004-01-16 Thread Shapira, Yoav

Howdy,

root cause

java.lang.OutOfMemoryError


It happens When the corresponding request returns more than 2-3
rows from the database, not every time

Perhaps you should allocate your JVM more memory, by using the Java -Xmx
parameter.  Alternatively, consider a system design that retrieves a
smaller, fixed number of rows instead of 2-3 and lets the user
scroll, say 100 rows at a time.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: running a servlet .class file

2004-01-16 Thread Allan Bruce
How do I test the examples if tomcat is running on its own?

I tried 
http://kes:8009/examples/

but it doesnt work

Thanks
Allan


- Original Message - 
From: Allan Bruce [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 16, 2004 2:17 PM
Subject: Re: running a servlet .class file


 I stopped apache and tomcat then started tomcat only.  My catalina.out
 reads:
 
 StandardEngine[null]: setJvmRoute=tc1
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.24-LE-jdk14
 16-Jan-2004 14:09:11 org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 16-Jan-2004 14:09:11 org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=9/606
 config=/usr/local/sites/tomcat/tomcat/conf/jk2.properties
 Starting service Tomcat-Apache
 Apache Tomcat/4.1.24-LE-jdk14
 
 is this correct?
 
 Thanks
 Allan
 
 
 - Original Message - 
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 2:01 PM
 Subject: RE: running a servlet .class file
 
 
 
  Howdy,
 
  I still cant get it working, but neither is the example servlets, here
  is
 
  Hold on.  Before you go further, make sure your tomcat installation is
  working, i.e. the examples and docs at least.  Take Apache and the
  connectors out of the equation, just run tomcat standalone.
 
  Yoav Shapira
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: running a servlet .class file

2004-01-16 Thread Shapira, Yoav

Howdy,

How do I test the examples if tomcat is running on its own?

I tried
http://kes:8009/examples/

You connect to the HTTP connector, not the Apache connector.  The
default port is 8080.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Virtual Host newbie question ?

2004-01-16 Thread Chakravarthy, Sundar
I have setup apache/tomcat/ with Vhost and everything works great!

 

However, I am not able to use the IP alone with the server name to
access the system i.e.

 

http://server_name http://server_name/  works but not

 

http://IP http://ip/ 

 

Why?

 

Thanks



Re: running a servlet .class file

2004-01-16 Thread Allan Bruce
Ok, thanks - I dont think my tomcat can be running correctly then because
when I try
http://kes:8080
or http://kes:8080/examples/
I get nothing.


- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 16, 2004 3:32 PM
Subject: RE: running a servlet .class file



 Howdy,

 How do I test the examples if tomcat is running on its own?
 
 I tried
 http://kes:8009/examples/

 You connect to the HTTP connector, not the Apache connector.  The
 default port is 8080.

 Yoav Shapira



 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: out of memory problem. Help!

2004-01-16 Thread Christophe Andreoli
Shapira, Yoav wrote:
 
 Howdy,
 
 root cause
 
 java.lang.OutOfMemoryError
 
 
 It happens When the corresponding request returns more than 2-3
 rows from the database, not every time


 
 Perhaps you should allocate your JVM more memory, by using the Java -Xmx
 parameter. 

I did it and I gave 512 Mb.

It works better but why are the 2000 objects are not garbaged after each
request ?








 Alternatively, consider a system design that retrieves a
 smaller, fixed number of rows instead of 2-3 and lets the user
 scroll, say 100 rows at a time.
 
 Yoav Shapira

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

Re: running a servlet .class file

2004-01-16 Thread Allan Bruce
How stupid am I! I forgot, I block almost all ports to my server, once I
released 8080, I have some success.

When I now navigate to http://kes:8080/examples/ I get a page where I can
click on several links of examples.  Going to the servlets, then trying to
run any and I get a 404.

Any suggetsions as to what is wrong?

Many Thanks
Allan


- Original Message - 
From: Allan Bruce [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 16, 2004 3:41 PM
Subject: Re: running a servlet .class file


 Ok, thanks - I dont think my tomcat can be running correctly then because
 when I try
 http://kes:8080
 or http://kes:8080/examples/
 I get nothing.


 - Original Message - 
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 3:32 PM
 Subject: RE: running a servlet .class file


 
  Howdy,
 
  How do I test the examples if tomcat is running on its own?
  
  I tried
  http://kes:8009/examples/
 
  You connect to the HTTP connector, not the Apache connector.  The
  default port is 8080.
 
  Yoav Shapira
 
 
 
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




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



Re: Tomcat Tuning Memory leak

2004-01-16 Thread David Strupl
Hi (yes that's me again),

I have more details for those that would be willing to help. I have 
started to use IBM's JDK that has the nice memory dump feature set up so 
that whenever OutOfMemory occurs the heap is dumped. So my heap is here
http://hry.atlas.cz/zaloha/heapdump.20040114.160700.8886.txt.gz
Probably no need to download the 12MB - I have tried to process it and 
interesting result is this:

I have used the k function of HeapRoots205 (here is its description):
This executes by first running 'p 0x1234'. This leaves every object 
reachable by 0x1234 owned by it. Then any objects which are owned by 
0x1234 but reachable from outside of this set are removed. This leaves 
0x1234 owning exactly those objects which are only reachable thru' it.

on following object:

 k 0x10102818

Calculating keep-alive size of 0x10102818 
'org/apache/coyote/RequestGroupInfo' ...

Requesting 17 mb of heapspace to process heapdump ...

done.
Finding pure Roots
.. done.
DFS from 0x10102818
.  done.
Total reach (inclusive) 1,245,481 objects. Total-size is 299,128,896.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat replication Unable to receive message through TCP channel

2004-01-16 Thread jean-philippe . belanger
Just installed the tomcat 5.0.16 with cvs for clustering on my 2nd 
server cluster.
The first one is running pretty well without any bug whatsoever. But 
that new cluster seams to have some problem with the replication with 
it`s going a specific way.

From web1 to web2 it works fine. but if I hit the web2 and it need to 
replicate to web1 it gives this error.

Geeh? invalidated?

Unable to receive message through TCP channel
java.lang.IllegalStateException: getAttributeNames: Session already 
invalidated
   at 
org.apache.catalina.session.StandardSession.getAttributeNames(StandardSession.java:1005)
   at 
org.apache.catalina.cluster.session.ReplicatedSession.toString(ReplicatedSession.java:295)
   at java.lang.String.valueOf(String.java:2173)
   at java.lang.StringBuffer.append(StringBuffer.java:369)
   at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageReceived(SimpleTcpReplicationManager.java:610)
   at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageDataReceived(SimpleTcpReplicationManager.java:642)
   at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleTcpCluster.java:716)
   at 
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:117)
   at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:175)
   at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:113)
16-Jan-2004 10:49:04 AM 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager log

Jean-Philippe Bélanger
CGI
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Memory Issues

2004-01-16 Thread Christian Witucki
Help - Is anyone running this type of environment:  We have two Microsoft Content 
Manager Servers, one eDirectory server, one active directory server, and running 
Novell's eXTend director with IIS and Tomcat.  Is there anyone that has something 
similiar that is having memory problems and knows how to correct them??

Christian Witucki
Network Analyst
375 Essjay Road
Williamsville, NY 14221
716-631-3001 x3812

CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may contain confidential 
information which is privileged and protected from disclosure by Federal and State 
confidentiality laws, rules or regulations.  This e-mail and attachments, if any, are 
intended for the designated addressee only .  If you are not the designated addressee, 
you are hereby notified that any disclosure, copying, or distribution of this e-mail 
and its attachments, if any, may be unlawful and may subject you to legal 
consequences.  If you have received this e-mail and attachments in error, please 
contact Independent Health immediately at (716) 631-3001 and delete the e-mail and its 
attachments from your computer.  Thank you for your attention.


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



Re: Tomcat Tuning Memory leak

2004-01-16 Thread David Strupl
My previous post should be longer ... here is the rest:

DFS from pure Roots
...done.
DFS from objects unreached from Roots
...done.
Found 1,051,382 objects which are reachable from elsewhere.
These will be taken from 0x10102818 and then owned by other objects ...
DFS from 0x10102818
.  done.
Keep-alive size (inclusive) is 194,099 objects. Total-size is 154,016,544.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: out of memory problem. Help!

2004-01-16 Thread Shapira, Yoav

Howdy,

It works better but why are the 2000 objects are not garbaged after
each
request ?

There's only one reason objects aren't garbage-collected in java: other
objects are keeping references to them.  You can inspect or profile your
code to see what keeps references to what.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Tuning Memory leak

2004-01-16 Thread David Strupl
Still I don't see the whole thing - and trying to send the rest here:

If I interpret it correctly the instance of 
org/apache/coyote/RequestGroupInfo
holds 150 MB of heap memory. Also if I understand it correctly from here
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/
someone just recently tried to do something with it.

Am I totally paranoic when I suspect that the memory leak is in tomcat?

Thanks for any hints (as usually) and best regards,

David



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


Re: Virtual Host newbie question ?

2004-01-16 Thread Howard Watson
What is the vailue of UseCanonicalName in your apache conf?

 [EMAIL PROTECTED] 01/16/04 08:36AM 
I have setup apache/tomcat/ with Vhost and everything works great!

 

However, I am not able to use the IP alone with the server name to
access the system i.e.

 

http://server_name http://server_name/  works but not

 

http://IP http://ip/ 

 

Why?

 

Thanks



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



RE: Tomcat Tuning Memory leak

2004-01-16 Thread Shapira, Yoav

Howdy,

If I interpret it correctly the instance of
org/apache/coyote/RequestGroupInfo
holds 150 MB of heap memory. Also if I understand it correctly from
here
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-
connectors/coyote/src/java/org/apache/coyote/
someone just recently tried to do something with it.

Am I totally paranoic when I suspect that the memory leak is in tomcat?

You're not paranoid.  There's a memory leak related to the
RequestGroup/RequestGroupInfo connector code.  It's been discussed
during the past week on the dev mailing list, and addressed within the
past couple of days.  You can try the tomcat 5.0.18 build which has the
fix.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Tuning Memory leak

2004-01-16 Thread David Strupl
Shapira, Yoav wrote:
You're not paranoid.  There's a memory leak related to the
RequestGroup/RequestGroupInfo connector code.  It's been discussed
during the past week on the dev mailing list, and addressed within the
past couple of days.  You can try the tomcat 5.0.18 build which has the
fix.
Yoav Shapira
Thanks for the pointer. Although they talk only about 5.0.x I thing that 
the problem is present even in 4.1.29 - it might make sense to only 
downgrade to 4.1.27 because the classes in question were not there ...
I will first try to set minProcessors==maxProcessors and see whether it 
helps even in 4.1.29. If it won't help I will think about moving to some 
other revision.

Thanks again and best regards,

David



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


SEVERE: in startup of TC 5.0.16

2004-01-16 Thread Hollerman Geralyn M
I am receiving a SEVERE: error in my startup of Tomcat 5.0.16; also, in 
my catalina_log I get the message: StandardContext[/balancer]Exception 
starting filter BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
	at 
org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:107)
[...]
None of this seems to effect the startup or running of TC 5.0.16 or any 
of my webapps that I can see, but I'd like to know if this indicates 
there's something wrong that I need to look into. I'm testing Tomcat 
5.0.16 using JDK 1.4.2_b28 on a Solaris 8 system.

Here is a snippet of my catalina.out:
---
Jan 15, 2004 2:30:14 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Jan 15, 2004 2:30:14 PM org.apache.catalina.core.StandardHostDeployer 
install
INFO: Installing web application at context path /jsp-examples from URL 
file:/home/gmh2441/uPortal/jakarta-tomcat-5.0.16/webapps/jsp-examples
Jan 15, 2004 2:30:19 PM org.apache.catalina.core.StandardHostDeployer 
install
INFO: Installing web application at context path /tomcat-docs from URL 
file:/home/gmh2441/uPortal/jakarta-tomcat-5.0.16/webapps/tomcat-docs
Jan 15, 2004 2:30:21 PM org.apache.catalina.core.StandardHostDeployer 
install
INFO: Installing web application at context path /servlets-examples from 
URL 
file:/home/gmh2441/uPortal/jakarta-tomcat-5.0.16/webapps/servlets-examples
Jan 15, 2004 2:30:25 PM org.apache.catalina.core.StandardHostDeployer 
install
INFO: Installing web application at context path /balancer from URL 
file:/home/gmh2441/uPortal/jakarta-tomcat-5.0.16/webapps/balancer
Jan 15, 2004 2:30:27 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jan 15, 2004 2:30:27 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Jan 15, 2004 2:30:29 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Jan 15, 2004 2:30:32 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8443
Jan 15, 2004 2:30:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 41919 ms
---

My apps startup just fine, and there aren't any errors related to this 
in  their logs. In looking thru the archives, I saw mention of this 
being related to commons-digester.jar, but nothing about what to do to 
fix this problem. Any suggestions?

Thanks!
--
Lynn Hollerman.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: SEVERE: in startup of TC 5.0.16

2004-01-16 Thread Shapira, Yoav

Howdy,

I am receiving a SEVERE: error in my startup of Tomcat 5.0.16; also, in
my catalina_log I get the message: StandardContext[/balancer]Exception
starting filter BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
   at
org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:
107)
[...]
None of this seems to effect the startup or running of TC 5.0.16 or any
of my webapps that I can see, but I'd like to know if this indicates
there's something wrong that I need to look into. I'm testing Tomcat
5.0.16 using JDK 1.4.2_b28 on a Solaris 8 system.

The balancer webapp requires digester and works fine out of the box.  If
you move or change the version of digester that's included with tomcat,
you might get this error.  Fixes include:
- If you don't need balancer, remove it.
- Make sure you have the right digester version so that this error
doesn't come up.
- Ignore this error as it doesn't affect the rest of your webapps.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OFF-TOPIC] ObjectOutputStream keeping handles

2004-01-16 Thread Shapira, Yoav

Howdy,
Has anyone bumped into an issue where java.io.ObjectOutputStream keep
references to serialized objects until the stream is closed, thereby
preventing the objects from being garbage-collected?  I know I can get
around this by closing and reopening the stream after every write, but
that seems to be a high-overhead approach.  Any other ideas?
writeUnshared() perhaps?

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



setContentType() vs. meta http-equiv='Content-Type' ...

2004-01-16 Thread Merrill Cornish
Does Tomcat see any difference in a servlet that calls setContentType() before 
generating a page for output versus not calling setContentType() but including an HTML 
meta http-equiv='Content-Type' ... tag in the generated page?

Merrill

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



Tomcat working with jsp but not servlets

2004-01-16 Thread Allan Bruce
I have got Tomcat running so that it is serving pages.  The example jsp
pages work fine, but the servlets dont.  When clicking on the servlets, I
get a list, and the sources.  The sources can be viewed, the link is
http://kes:8080/examples/servlets/*.html but the execute links dont work,
they are http://kes:8080/examples/servlet/*

I think I may have a small config problem, my tomcat serves externally to
http://allanmb DOT redirectme DOT. net

Can somebody suggets what might be wrong?

Many Thanks
Allan


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



RE: setContentType() vs. meta http-equiv='Content-Type' ...

2004-01-16 Thread Shapira, Yoav

Howdy,

Does Tomcat see any difference in a servlet that calls setContentType()
before generating a page for output versus not calling setContentType()
but
including an HTML meta http-equiv='Content-Type' ... tag in the
generated
page?

You might want to define Does Tomcat see any difference more
precisely.  The servlet API does make a difference, as setContentType
(or setCharacterEncoding, or setLocale) must be called on a request
before calling getWriter().  Otherwise you get an exception.  So yeah,
there's a difference.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Urgent-Java webservers on iSeries and other platforms

2004-01-16 Thread Peter Stokes
Hi,

I'm on a site where a third party application has been put on WebSphere 4.0.5 on an iSeries 820/V5R2. We have had horrendous performance / stability problems even with 10 users and even IBM cannot seem to help.

Production is currently sitting pretty on a rushed install of SuSE 9 on a Dell desktop with 1gig RAM and Tomcat.

What I am after is opinions / a comparason someone has done (weblink?) / docco about Java webservers performance looking at iSeries, Intel, Sparcs etc. They are into the iSeries/WebSphere 4.0.5 mindset, but no one can answer why this was the recommended setup and they seem to be fixed on this route, but no-one can make it work!

There is nothing else on WebSphere other than this app, so if I can get some info, I then actually have some stats / papers to help recommendations, if IBM cannot fix this in the next couple of days (they've had level 1 guys on it for 6 weeks).

Anything would be a great help.

Pete.



***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


RE: Virtual Host newbie question ?

2004-01-16 Thread Chakravarthy, Sundar
Hi,

It is set to Off. 
Should it be On?

-Original Message-
From: Howard Watson [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 11:12 AM
To: [EMAIL PROTECTED]
Subject: Re: Virtual Host newbie question ?

What is the vailue of UseCanonicalName in your apache conf?

 [EMAIL PROTECTED] 01/16/04 08:36AM 
I have setup apache/tomcat/ with Vhost and everything works great!

 

However, I am not able to use the IP alone with the server name to
access the system i.e.

 

http://server_name http://server_name/  works but not

 

http://IP http://ip/ 

 

Why?

 

Thanks



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


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



Apache2 with JK2 with Tomcat5 multiple sendings from Apache to Tomcat5

2004-01-16 Thread Oscar Serrano
Hi:
I've installed withou problems an Apache talking to a Tomcat via the jk2 
connector.
Everything seems to work fine but sometimes I click on a link and I get no 
response. Then I take a look at the logs and I see a very strange thing.
Apache is sending the request to Tomcat many times. Here is the log of 
mod_jk.log:

First you can see what is a normal connection:

[Fri Jan 16 17:14:00 2004]  [jk_uri_worker_map.c (486)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Fri Jan 16 17:14:00 2004]  [jk_uri_worker_map.c (500)]: Attempting to map 
URI '/jsp-examples/jsp2/simpletag/book.jsp'
[Fri Jan 16 17:14:00 2004]  [jk_uri_worker_map.c (524)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker_principal
[Fri Jan 16 17:14:00 2004]  [mod_jk.c (1717)]: Into handler r-proxyreq=0 
r-handler=jakarta-servlet r-notes=135484688 worker=worker_pr
[Fri Jan 16 17:14:00 2004]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name worker_principal
[Fri Jan 16 17:14:00 2004]  [jk_worker.c (136)]: wc_get_worker_for_name, 
done  found a worker
[Fri Jan 16 17:14:00 2004]  [mod_jk.c (505)]: agsp=80 agsn=10.0.0.102 
hostn=10.0.0.102 shostn=www.androlinux.com cbsport=80 sport=80
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (1686)]: Into 
jk_worker_t::get_endpoint
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (1319)]: Into 
jk_endpoint_t::service
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (295)]: Into 
ajp_marshal_into_msgb
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (463)]: ajp_marshal_into_msgb 
- Done
[Fri Jan 16 17:14:00 2004]  [jk_connect.c (188)]: Into jk_open_socket
[Fri Jan 16 17:14:00 2004]  [jk_connect.c (195)]: jk_open_socket, try to 
connect socket = 10
[Fri Jan 16 17:14:00 2004]  [jk_connect.c (204)]: jk_open_socket, after 
connect ret = 0
[Fri Jan 16 17:14:00 2004]  [jk_connect.c (213)]: jk_open_socket, set 
TCP_NODELAY to on
[Fri Jan 16 17:14:00 2004]  [jk_connect.c (230)]: jk_open_socket, return, 
sd = 10
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (738)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 10
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (774)]: sending to ajp13 #474
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (1064)]: ajp_send_request 2: 
request body to send 0 - request body to resend 0
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (885)]: received from ajp13 #60
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (515)]: 
ajp_unmarshal_response: status = 200
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (521)]: 
ajp_unmarshal_response: Number of headers is = 2
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (575)]: 
ajp_unmarshal_response: Header[0] [Content-Type] = [text/html]
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (575)]: 
ajp_unmarshal_response: Header[1] [Content-Length] = [896]
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (885)]: received from ajp13 #900
[Fri Jan 16 17:14:00 2004]  [mod_jk.c (406)]: writing 896 (896) out of 896
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (885)]: received from ajp13 #2
[Fri Jan 16 17:14:00 2004]  [jk_ajp_common.c (1661)]: Into 
jk_endpoint_t::done, recycling connection

And this is a failed request:

[Fri Jan 16 17:14:07 2004]  [jk_uri_worker_map.c (486)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Fri Jan 16 17:14:07 2004]  [jk_uri_worker_map.c (500)]: Attempting to map 
URI '/jsp-examples/jsp2/simpletag/book.jsp'
[Fri Jan 16 17:14:07 2004]  [jk_uri_worker_map.c (524)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker_principal
[Fri Jan 16 17:14:07 2004]  [mod_jk.c (1717)]: Into handler r-proxyreq=0 
r-handler=jakarta-servlet r-notes=135484688 worker=worker_pr
[Fri Jan 16 17:14:07 2004]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name worker_principal
[Fri Jan 16 17:14:07 2004]  [jk_worker.c (136)]: wc_get_worker_for_name, 
done  found a worker
[Fri Jan 16 17:14:07 2004]  [mod_jk.c (505)]: agsp=80 agsn=10.0.0.102 
hostn=10.0.0.102 shostn=www.androlinux.com cbsport=80 sport=80
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (1686)]: Into 
jk_worker_t::get_endpoint
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (1730)]: In 
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 7 seconds
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (1319)]: Into 
jk_endpoint_t::service
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (295)]: Into 
ajp_marshal_into_msgb
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (463)]: ajp_marshal_into_msgb 
- Done
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (774)]: sending to ajp13 #313
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (774)]: sending to ajp13 #313
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (774)]: sending to ajp13 #313
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (774)]: sending to ajp13 #313
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (774)]: sending to ajp13 #313
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (774)]: sending to ajp13 #313
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (774)]: sending to ajp13 #313
[Fri Jan 16 17:14:07 2004]  [jk_ajp_common.c (774)]: sending 

RE: NoClassDefFoundError: Digester

2004-01-16 Thread Bruno.Melloni
This could be a bug on the latest distribution of Tomcat 5.0.16 for Solaris.  I just 
did a standard install from scratch, modified the Connector ports to new numbers (to 
avoid conflicts with previous install), renamed localhost to the real machine name in 
Engine defaultHost and in Host, and nothing else.  I had the same problem.

WORKAROUND:  Copy commons-digester.jar and commons-beanutil.jar from server/lib to 
common/lib.  This worked for me.

Bruno 


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



RE: NoClassDefFoundError: Digester

2004-01-16 Thread Shapira, Yoav

Howdy,

This could be a bug on the latest distribution of Tomcat 5.0.16 for
Solaris.  I just did a standard install from scratch, modified the
Connector ports to new numbers (to avoid conflicts with previous
install),
renamed localhost to the real machine name in Engine defaultHost and
in
Host, and nothing else.  I had the same problem.

I can't reproduce that.  I installed tomcat 5.0.16 on solaris just fine
a few minutes ago.  The balancer app is privileged so it can see
server/lib.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat replication Unable to receive message through TCP channel

2004-01-16 Thread Filip Hanik
yikes :)
I fixed this one two days ago, download 5.0.18 and let me know if the
problem persists.

Filip

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:50 AM
Subject: Tomcat replication Unable to receive message through TCP channel


 Just installed the tomcat 5.0.16 with cvs for clustering on my 2nd
 server cluster.
 The first one is running pretty well without any bug whatsoever. But
 that new cluster seams to have some problem with the replication with
 it`s going a specific way.

  From web1 to web2 it works fine. but if I hit the web2 and it need to
 replicate to web1 it gives this error.

 Geeh? invalidated?

 Unable to receive message through TCP channel
 java.lang.IllegalStateException: getAttributeNames: Session already
 invalidated
 at

org.apache.catalina.session.StandardSession.getAttributeNames(StandardSessio
n.java:1005)
 at

org.apache.catalina.cluster.session.ReplicatedSession.toString(ReplicatedSes
sion.java:295)
 at java.lang.String.valueOf(String.java:2173)
 at java.lang.StringBuffer.append(StringBuffer.java:369)
 at

org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageRecei
ved(SimpleTcpReplicationManager.java:610)
 at

org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageDataR
eceived(SimpleTcpReplicationManager.java:642)
 at

org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:716)
 at
 org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:117)
 at

org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplica
tionThread.java:175)
 at

org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThrea
d.java:113)
 16-Jan-2004 10:49:04 AM
 org.apache.catalina.cluster.session.SimpleTcpReplicationManager log


 Jean-Philippe Bélanger
 CGI


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


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



Redirection of JSP's to iPlanet Web Server

2004-01-16 Thread Anantharam S
Hi,

I have been trying for a while now to configure iPlanet web server (6.x) to send 
servlet and JSP requests to Tomcat (4.1.x) using the Tomcat redirector plugin. 

Asper the documentation of APACHE ( 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/neshowto.html ) a dll file ( 
nsapi_redirect.dll ) is required to configure the redirection of the jsp's from the 
iplanet web server to TOMCAT, but I am unable to find out the location of this dll 
file in the connectors binaries :( 

I would be grateful if anyone could guide me on the process of redirecting the jsp 
requests from TOMCAT to the iPlanet web server

Thanks in advance;
Ananth



home page error from other computers

2004-01-16 Thread joelslater


Hello, my name is Joel Slater and i just installed Tomcat5 because i need it for a 
college project. I read all the configurations tutorial everything is alright i guess 
and the server it is just working Locally, other users cannot view the website from 
other computer connected to the internet. How can i solve this problem?

 Thank you in advance for your future help Have agreat day.

   
Joel Slater
--

Faites un voeu et puis Voila ! www.voila.fr 



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



Re: Tomcat working with jsp but not servlets

2004-01-16 Thread Phillip Calçado

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

-- 
Phillip Calçado
Analista de Sistemas
[EMAIL PROTECTED]
www.jroller.com/page/pcalcado
_
E4W Internet Solutions
Rua Uruguaiana, 94 - 13° andar,
 Centro | Rio de Janeiro | RJ
CEP 20050-091 | Tel. +55 21 3852-3997
::www.e4w.com.br ::


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



Do resource links not work with UserTransaction (TC 5.0.16)?

2004-01-16 Thread Robert Krüger
Hi,

either I fail to understand the general concept or there is something 
strange with resource links in TC 5.0.16.

Everything works as documented with ResourceLink entries with 
DataSources and other global resources I configured. However, when I try 
configuring a Resource of type javax.transaction.UserTransaction I have 
to configure it for each context/webapp because when I configure it as a 
global resource and just put a resource link in the context, the lookup 
in the web application fails.

Example1 (simplified): does not work, lookup fails 
(javax.naming.NamingException: Cannot create resource instance)

Server
  GlobalNamingResources
Resource name=UserTransaction auth=Container 
type=javax.transaction.UserTransaction/
ResourceParams name=UserTransaction
  parameter
namefactory/name
valuecom.signal7.tyrex.UserTransactionFactory/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service
Engine
  Host
Context
  ResourceLink name=UserTransaction global=UserTransaction 
type=javax.transaction.UserTransaction/
/Context
  /Host
/Engine
  /Service

/Server

Example2 (simplified): works

Server
  GlobalNamingResources
  /GlobalNamingResources
  Service
Engine
  Host
Context
  Resource name=UserTransaction auth=Container 
type=javax.transaction.UserTransaction/
  ResourceParams name=UserTransaction
parameter
  namefactory/name
  valuecom.signal7.tyrex.UserTransactionFactory/value
/parameter
  /ResourceParams
/Context
  /Host
/Engine
  /Service

/Server

It looks as if UserTransaction is treated in a special way. Is that 
intentional and obvious and I'm just missing it? BTW, I tried this with 
the JOTM JTA implementation and it behaved exactly the same way.

Thanks in advance,

Robert

--

Robert Krüger
Signal7 GmbH
Brüder Knauss Str. 79
64285 Darmstadt
Germany
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: home page error from other computers

2004-01-16 Thread Shapira, Yoav

Howdy,
Is your tomcat server running on a static IP address host?  Does the
host have a name (and nameserver) registered globally?  Does the Host in
server.xml match the hostname for your server?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: joelslater [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:21 AM
To: [EMAIL PROTECTED]
Subject: home page error from other computers



Hello, my name is Joel Slater and i just installed Tomcat5 because i
need
it for a college project. I read all the configurations tutorial
everything
is alright i guess and the server it is just working Locally, other
users
cannot view the website from other computer connected to the internet.
How
can i solve this problem?

 Thank you in advance for your future help Have agreat day.


Joel Slater
--

Faites un voeu et puis Voila ! www.voila.fr



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Virtual Host newbie question ?

2004-01-16 Thread Howard Watson
Off should be correct. I believe that On can cause the issue you are trying to resolve.

Is ServerName server name ? server name as you listed below
Is Listen serverIPaddr ? ip you are trying to hit

I don't know that it matters, but on mine I set

ServerName DNSname:80
Listen ipAddr:80

to be explicit.

You might want to throw this around on the httpd user list?
Howard

 [EMAIL PROTECTED] 01/16/04 10:17AM 
Hi,

It is set to Off. 
Should it be On?

-Original Message-
From: Howard Watson [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 11:12 AM
To: [EMAIL PROTECTED] 
Subject: Re: Virtual Host newbie question ?

What is the vailue of UseCanonicalName in your apache conf?

 [EMAIL PROTECTED] 01/16/04 08:36AM 
I have setup apache/tomcat/ with Vhost and everything works great!

 

However, I am not able to use the IP alone with the server name to
access the system i.e.

 

http://server_name http://server_name/  works but not

 

http://IP http://ip/ 

 

Why?

 

Thanks



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


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



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



proper way to access local dir?

2004-01-16 Thread Daniel

Hi,

I'm trying to access a file respository (for read and write of files)
from my servlet.  I was wondering what's the best way to do this in a
container/platform-independent manner?

Is it possible without putting an init param in the web.xml that
specifies my repository's directory or hard coding it into my servlet?

I noticed the servlet 2.3 api has ServletContext.getResource(path) but
it doesn't return a path to a local file directory that I'm interested
in. :(

Regards,
Daniel

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



Re: proper way to access local dir?

2004-01-16 Thread Tim Funk
If you don't care about where the files are written to, you can use 
javax.servlet.context.tempdir. See the spec SRV.3.7.1 Temporary Working 
Directories for details.

If you need a permanent local directory, I prefer to use a JNDI string lookup 
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html) 
to the name of the directory. This way I don't need to change my web.xml on 
my development box vs qna vs production.



-Tim

Daniel wrote:

Hi,

I'm trying to access a file respository (for read and write of files)
from my servlet.  I was wondering what's the best way to do this in a
container/platform-independent manner?
Is it possible without putting an init param in the web.xml that
specifies my repository's directory or hard coding it into my servlet?
I noticed the servlet 2.3 api has ServletContext.getResource(path) but
it doesn't return a path to a local file directory that I'm interested
in. :(


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


RE: proper way to access local dir?

2004-01-16 Thread Shapira, Yoav

Howdy,
The only place the servlet specification allows you to write (and
obviously read) is the directory specified as the servlet context
attribute named javax.servlet.context.tempdir.

The JDK also has java.io.tmpdir which you may or may not be able to use.

Other than that, if you need to write to an arbitrary directory in a
spec-compliant way you need to specify the full path to the directory as
a context or init parameter, and you need to have the application
deployer create/modify that directory as necessary.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 1:30 PM
To: Tomcat Users List
Subject: proper way to access local dir?


Hi,

I'm trying to access a file respository (for read and write of files)
from my servlet.  I was wondering what's the best way to do this in a
container/platform-independent manner?

Is it possible without putting an init param in the web.xml that
specifies my repository's directory or hard coding it into my servlet?

I noticed the servlet 2.3 api has ServletContext.getResource(path) but
it doesn't return a path to a local file directory that I'm interested
in. :(

Regards,
Daniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_webapp keeps resetting

2004-01-16 Thread Greg Diffor
Hi,

 

I have been using Tomcat 4.1.18 with Apache 1.3 connected with mod_webapp
(Warp) for almost a year now.  It has been working flawlessly.

 

As of this week, I see sporadic occurrences where Warp seems to be
reconnecting.  

 

When this occurs, every request (servlet or jsp) sent to the server causes
Warp to reconnect.  The original GET/POST request seems to then be dropped.

 

Has anyone seen anything like this?

 

Here is a snippet from my Apache error_log file.

 

[Thu Jan 15 11:23:52 2004] 27402 (pr_info.c:72) INFO provider started

[Thu Jan 15 11:23:52 2004] 27402 (pr_warp.c:73) Opening connection conn

[Thu Jan 15 11:23:52 2004] 27402 (pr_warp.c:75) Connection conn opened

[Thu Jan 15 11:23:52 2004] 27402 (pr_warp_network.c:97) WARP  TYP=01
LEN=8

[Thu Jan 15 11:23:52 2004] 27402 (pr_warp_config.c:97) Connection conn
checked WARP/0.10 (SERVER ID=-483664238)

[Thu Jan 15 11:23:52 2004] 27402 (pr_warp_config.c:134) Deploying church
via conn in http://66.223.48.253:80:80/church/;

[Thu Jan 15 11:23:52 2004] 27402 (pr_warp_network.c:132) WARP  TYP= 5
LEN=38

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=06
LEN=53

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:132) WARP  TYP= 7
LEN=4

[Thu Jan 15 11:23:52 2004] 27402 (pr_warp_network.c:97) WARP  TYP=06
LEN=53

[Thu Jan 15 11:23:52 2004] 27402 (pr_warp_network.c:132) WARP  TYP= 7
LEN=4

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=31

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/ShowCommentsPage

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=18

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/survey/DoDemogs

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=26

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/ShowSPIndex

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=23

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/PwdError

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=27

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/ShowFavIndex

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=19

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/admin/CreateUser

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=26

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/PwdChngInit

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=19

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/survey/ShowIntro

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=25

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/ShowIdList

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=22

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/admin/ShowTableInfo

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=08
LEN=3

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:200) Allow URL mapping
/

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=23

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/DistView

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=15

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/onion/Wizard

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=16

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/ShowTestIndex

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=29

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/DoRegistration

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=21

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/MyInfo

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=22

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/PwdChng

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=16

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/admin/spAdmin

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=20

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/admin/BuildSurvey

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=18

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/survey/ThankYou

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_network.c:97) WARP  TYP=09
LEN=30

[Thu Jan 15 11:23:52 2004] 27401 (pr_warp_config.c:204) Deny URL mapping
/surveyAdmin/ShowResultsPage


Re: Tomcat replication Unable to receive message through TCP channel

2004-01-16 Thread jean-philippe . belanger
Ok I really have no idea why this ain't working.
Same clustering version on both cluster. The first one works A1.. the 
second invalidates all my sessions

Only difference between the two clusters are that the 2nd one is a 
multi-ip server (3 adresses on the same eth). But the hostname is 
pointing to the main eth0 address.

any idea?

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

yikes :)
I fixed this one two days ago, download 5.0.18 and let me know if the
problem persists.
Filip

 

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


Re: Tomcat replication Unable to receive message through TCP channel

2004-01-16 Thread Apu Shah

check the dates on both machines. i think (filip please clarify if i'm
wrong) if one machine is out of sync with the other by an interval equal
or greater than the session timeout, the sessions will expire on the
receiving end.



 Ok I really have no idea why this ain't working.
 Same clustering version on both cluster. The first one works A1.. the
 second invalidates all my sessions

 Only difference between the two clusters are that the 2nd one is a
 multi-ip server (3 adresses on the same eth). But the hostname is
 pointing to the main eth0 address.

 any idea?

 Jean-Philippe Bélanger
 CGI



 Filip Hanik wrote:

yikes :)
I fixed this one two days ago, download 5.0.18 and let me know if the
problem persists.

Filip




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




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



  1   2   >