Re: Client Real Source IP!

2006-09-22 Thread Alexander Khoo
Thanks for the information,Anyone can provide more detail on how this can be 
done? how the code is done perhaps?


- Original Message 
From: Li [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 22, 2006 1:42:14 PM
Subject: Re: Client Real Source IP!


Sorry Alexander,

Yeah, as Peter said, you can use getHeader(s) from Servlet API. Only if your
request header is customized one (like those for telecom), you should read
it by yourself.



On 9/22/06, Peter Rossbach [EMAIL PROTECTED] wrote:

 You can access the header with ServletRequest.getHeader, getHeaders,
 getHeadersNames.

 Read Servlet Spec 2.4 or 2.5 Headers 4.3


 Wrote your own Valve or ServletFilter 

 Regards
 Peter


 Am 22.09.2006 um 06:44 schrieb Alexander Khoo:

  Dear All,
 
  We currently have Tomcat Version5 install behind Pound reverse
  proxy! Our code cant identify the real source client IP instead the
  reverse proxy IP everytime, We understand Pound adds the X-
  Forwarded-for header with the original client address to every
  requestbut how we can identify it?
 
 
  Please Help!
  Alexander Khoo





-- 
When we invent time, we invent death.

Handling Tomcat Errors in Apache

2006-09-22 Thread Edward Quick

Hi,

I have an Apache 2 - mod_jk - Tomcat 5.5.16 set up and I'm trying to get 
Tomcat errors handled by Apache.


In Apache I have:

ErrorDocument 404 /cgi-bin/error.cgi

And in Tomcat's web.xml I have

error-page
   error-code404/error-code
   location/cgi-bin/error.cgi/location
/error-page

I guess the location tag is wrong here as it doesn't work, but I'm not 
surewhat else to put.

Could someone help me out please?!

Thanks,

Ed.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat + axis service:

2006-09-22 Thread Kristian Rink


Folks;

I am running an (axis-based) SOAP web service inside a tomcat 5.5
environment to link two subsidiaries of our company. This service is
supposed to recieve messages including very large ( 100 MB) MIME
attachments. So far, recieving and decoding messages (small sizes, or
locally) works well, but external tests using the remote sender client
and bigger attachments always ends up like that:


[...]
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode: faultString: java.net.SocketTimeoutException: Read timed
out faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}stackTrace:
java.net.SocketTimeoutException: Read timed out at
java.net.SocketInputStream.socketRead0(Native Method) at
java.net.SocketInputStream.read(SocketInputStream.java:129) at
java.io.BufferedInputStream.fill(BufferedInputStream.java:21
[...]


This is bad. So, short question, given that modifying the calling
client is not possible to me: Where to tweak my setup to get rid of
that error? Is that an issue related to the tomcat setup or to axis?
Currently I am playing around with axis MessageContext.setTimeout(),
but documentation on that is rather limited - is this what I am looking
for?

TIA for any hints and bye,
Kris



-- 
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771
One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality. (Hundertwasser)



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Java path

2006-09-22 Thread Li

in windows:

echo %JAVA_HOME% see if there is anything

in linux/unix

echo $JAVA_HOME see if there is anything

normally if you export JAVA_HOME, and add to path, you should be able to use
tools in /bin directly

so make sure your JAVA_HOME is exported

On 9/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hello List,

I ve Tomcat5 running and updated Java. Since then Tomcat refuses to start
up
because it can not find Java anymore. Where can I define the Java path for
Tomcat to work with? I tried to set JAVA_HOME, but Tomcat still would not
work :(

Thanks!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
When we invent time, we invent death.


AW: Java path

2006-09-22 Thread news
So Tamcat has no information about the Java version to use by itself? This
is hard to believe, because the System where Tomcat is running on never had
a JAVA_HOME path defiend and Tomcat run great on it until the Java update.
Also during the Tomcat installation process the wizard asks for an Java
installation to run with. This information must be stored somewhere. 


-Ursprüngliche Nachricht-
Von: Li [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 22. September 2006 09:46
An: Tomcat Users List
Betreff: Re: Java path


in windows:

echo %JAVA_HOME% see if there is anything

in linux/unix

echo $JAVA_HOME see if there is anything

normally if you export JAVA_HOME, and add to path, you should be able to use
tools in /bin directly

so make sure your JAVA_HOME is exported

On 9/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hello List,

 I ve Tomcat5 running and updated Java. Since then Tomcat refuses to start
 up
 because it can not find Java anymore. Where can I define the Java path for
 Tomcat to work with? I tried to set JAVA_HOME, but Tomcat still would not
 work :(

 Thanks!

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
When we invent time, we invent death.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Java path

2006-09-22 Thread Li

Tomcat has knowledge of what version java is if it can find where java home
dir is.

take a look at the startup file (.bat for windows and .sh for linux/unix),
you will have a brief idea on how tomcat starts

On 9/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


So Tamcat has no information about the Java version to use by itself? This
is hard to believe, because the System where Tomcat is running on never
had
a JAVA_HOME path defiend and Tomcat run great on it until the Java update.
Also during the Tomcat installation process the wizard asks for an Java
installation to run with. This information must be stored somewhere.


-Ursprüngliche Nachricht-
Von: Li [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 22. September 2006 09:46
An: Tomcat Users List
Betreff: Re: Java path


in windows:

echo %JAVA_HOME% see if there is anything

in linux/unix

echo $JAVA_HOME see if there is anything

normally if you export JAVA_HOME, and add to path, you should be able to
use
tools in /bin directly

so make sure your JAVA_HOME is exported

On 9/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hello List,

 I ve Tomcat5 running and updated Java. Since then Tomcat refuses to
start
 up
 because it can not find Java anymore. Where can I define the Java path
for
 Tomcat to work with? I tried to set JAVA_HOME, but Tomcat still would
not
 work :(

 Thanks!

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
When we invent time, we invent death.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
When we invent time, we invent death.


Webapps outside webapps directory cannot access shared/classes

2006-09-22 Thread _Seb_

Hi,

I have several webapps that need to access a shared properties configuration
file. To do so I put this file in shared/classes. I works well, I don't know
if this the right way to do, if you have better ways to do so you can tell
them to me.

Now I have to conditionnaly launch my webapps at tomcat startup. To do so, I
put my webapps outside of webapps dir and launch them with a context file in
conf/Catalina/localhost. Then if I don't want to launch a webapp I rename
the myContext.xml into myContext.bak. For this too I don't know if there is
a better way, so I there is one ...

My current problem is that when I launch my webapps like this they cannot
access shared/classes. I retrieve my configuration file with
getClassLoader().getResourceAsStream. When my webapps was in the webapps dir
this worked but now that I launch them with a context file it does not. If I
put my files in common/classes it works but before moving them I would like
to know if this behavior is normal or if this is a bug

Thanx

Seb
-- 
View this message in context: 
http://www.nabble.com/Webapps-outside-webapps-directory-cannot-access-shared-classes-tf2316609.html#a6443284
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



download a custom setup file

2006-09-22 Thread balaraju mandala

Hi All,

I need good help from all of you. My problem is i need to give a user a URL
link which will download a application to usersystem. I will append a id to
that URL, so that when ever a user clicks and downloading application that
application will need to read or recognizes that value which we append to
URL and stores anywhere for future reference. Can anybody give some ideas
for this to work.

regards,
Balaraju M


Re: URL Redirection

2006-09-22 Thread Ashirvad Uniyal

Hello,

The images that are referenced using the '.' current directory operator 
are visible when the folder is renamed ROOT but not the other images for 
example please look for the src=/jpivot/toolbar/cube-up.png in the 
page source.


I want to reference these images aswell with the '.' operator but iam 
unable to change testpage.jsp as it uses the Window Component Framework 
(wcf). Could you please suggest how can i change the path in the 
testpage.jsp.


Thanks and regards,
-Ash


David Smith wrote:
I see the gif image is the only one referenced using the '.' current 
directory operator.  I've found it better to code image urls as 
${pageContext.request.contextPath}/images/zapisz.gif.  This will 
render the full path relative to the site and will also change 
automatically as the webapp's context path changes.


--David

Ashirvad Uniyal wrote:

David Smith wrote:
Ok. Can you offer a code snippet showing where you compose the url 
to the gif image?


--David

Ashirvad Uniyal wrote:

Hello,

If the application is renamed say for example Test or anything, 
everything works fine and the gif appear but they

just vanish if the application is renamed as ROOT.

Regards,
Ash

Caldarale, Charles R wrote:
From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] Subject: 
Re: URL Redirection


I renamed the application to ROOT and everything works fine 
except that all the images (gif) have all together vanished


How are you referencing the images? Do you have a hard-coded URL 
in the

generated HTML?

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
PROPRIETARY

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the 
e-mail

and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Hello,

After spending long time understanding this project i still have no 
clue.


All logic is contained in one file, testpage.jsp. Despite of the size 
of the application, this file is a relatively small file. It was 
possible to achieve through the Window Component Framework (WCF). 
This framework is a set of tags, which enables developing short 
application code based on JSP.


I have problem understanding the testpage.jsp and modifing it. Please 
find the snippet of the page souce of testpage.jsp, and the code of 
testpage.jsp respectively





table border=0 cellspacing=0 cellpadding=0 style=width:100%
trtd class=lewa lewa_listwa valign=middle style=height:45px

table border=0 cellspacing=0 cellpadding=0tr valign=middle
td style=padding-left:10px
table border=0 cellspacing=1 cellpadding=0 
id=toolbar01trtdinput type=image 
name=toolbar01.cubeNaviButton src=/jpivot/toolbar/cube-up.png 
border=0 title=Open OLAP Navigator width=24 
height=24/tdtdinput type=image 
name=toolbar01.mdxEditButton src=/jpivot/toolbar/mdx-edit-up.png 
border=0 title=Show MDX Editor width=24 
height=24/tdtdinput type=image 
name=toolbar01.sortConfigButton 
src=/jpivot/toolbar/sort-asc-up.png border=0 title=Config OLAP 
Table width=24 height=24/tdtddiv style=width: 
1ex/div/tdtdinput type=image name=toolbar01.levelStyle 
src=/jpivot/toolbar/level-style-up.png border=0 title=Show 
Parent Members width=24 height=24/tdtdinput type=image 
name=toolbar01.hideSpans src=/jpivot/toolbar/hide-spans-up.png 
border=0 title=Hide Spans width=24 height=24/tdtdinput 
type=image name=toolbar01.propertiesButton 
src=/jpivot/toolbar/properties-up.png border=0 title=Show 
Properties width=24 height=24/tdtdinput type=image 
name=toolbar01.nonEmpty src=/jpivot/toolbar/non-empty-down.png 
border=0 title=Suppress Empty Rows / Columns width=24 
height=24/tdtdinput type=image name=toolbar01.swapAxes 
src=/jpivot/toolbar/swap-axes-up.png border=0 title=Swap Axes 
width=24 height=24/tdtddiv style=width: 
1ex/div/tdtdinput type=image name=toolbar01.drillMember 
src=/jpivot/toolbar/navi-member-up.png border=0 title=Drill 
Member width=24 height=24/tdtdinput type=image 
name=toolbar01.drillPosition 
src=/jpivot/toolbar/navi-position-down.png border=0 title=Drill 
Position width=24 height=24/tdtdinput type=image 
name=toolbar01.drillReplace 
src=/jpivot/toolbar/navi-replace-up.png border=0 title=Drill 
Replace width=24 height=24/tdtdinput type=image 
name=toolbar01.drillThrough01 
src=/jpivot/toolbar/navi-through-up.png border=0 title=Drill 
Through width=24 

Re: Upload Exception - Time out error

2006-09-22 Thread Mark Thomas
Sandeep Darvekar wrote:
 Hello,
 
 Is there any limit configuration on tomcat that restricts uploading the
 files above 2MB size?

See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

You want maxPostSize

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat + axis service:

2006-09-22 Thread Mark Thomas
Kristian Rink wrote:
 
 Folks;
 
 I am running an (axis-based) SOAP web service inside a tomcat 5.5
 environment to link two subsidiaries of our company. This service is
 supposed to recieve messages including very large ( 100 MB) MIME
 attachments. So far, recieving and decoding messages (small sizes, or
 locally) works well, but external tests using the remote sender client
 and bigger attachments always ends up like that:

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

Try maxPostSize = -1 and disableUploadTimeout = true



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Context file and path

2006-09-22 Thread LASSIEGE Hugo
Hi,
I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I have some
problems in context.xml file.
Previous to migration, I had a context path=/myapp/mymodule .../ in
a console.xml file (in Catalina/localhost). I reach my page through
http://localhost:8080/myapp/mymodule.


In 5.5.17, path is not read anymore and I reach my page throuh
http://localhost:8080/console/ (console is the name of the context
file).

Is it possible to have this kind of url : myapp/mymodule ? And how ?

Best regards,
Hugo 




CONFIDENTIALITY:   This email (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited.  If you received this email in error,
please notify the sender and delete this email from your system.  Thank you


CONFIDENTIALITE: Ce courrier electronique (pieces jointes incluses) peut 
contenir des informations confidentielles, proprietaires et privilegiees,
dont la divulgation ou l'utilisation non-autorisee est interdite.
Si vous avez recu ce courrier electronique par erreur, nous vous remercions de 
bien vouloir avertir l'expediteur et detruire ce courrier electronique
de votre systeme.
Merci.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Context file and path

2006-09-22 Thread Markus Schönhaber
LASSIEGE Hugo wrote:
 I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I have some
 problems in context.xml file.
 Previous to migration, I had a context path=/myapp/mymodule .../ in
 a console.xml file (in Catalina/localhost). I reach my page through
 http://localhost:8080/myapp/mymodule.


 In 5.5.17, path is not read anymore and I reach my page throuh
 http://localhost:8080/console/ (console is the name of the context
 file).

 Is it possible to have this kind of url : myapp/mymodule ? And how ?

Yes. Name the context file myapp#mymodule.xml instead of console.xml.

Regards
  mks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: download a custom setup file

2006-09-22 Thread Christopher Schultz
Balaraju,

 I need good help from all of you. My problem is i need to give a user a URL
 link which will download a application to usersystem. I will append a id to
 that URL, so that when ever a user clicks and downloading application that
 application will need to read or recognizes that value which we append to
 URL and stores anywhere for future reference. Can anybody give some ideas
 for this to work.

What type of application is this and how is it packaged?

For example, if you were distributing a JAR or, say, a setup ZIP file
containing an installer, then you could always just build the JAR or ZIP
file on the fly with that user's custom configuration, and return that
to the user.

Of course, you wouldn't want to be generating a ZIP file upon every
request if this were a high-traffic system.

-chris



signature.asc
Description: OpenPGP digital signature


Re: Context file and path

2006-09-22 Thread David Smith
I remember an old thread suggesting you name your context xml file 
myapp#mymodule.xml -- try it and let us know.


--David

LASSIEGE Hugo wrote:

Hi,
I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I have some
problems in context.xml file.
Previous to migration, I had a context path=/myapp/mymodule .../ in
a console.xml file (in Catalina/localhost). I reach my page through
http://localhost:8080/myapp/mymodule.


In 5.5.17, path is not read anymore and I reach my page throuh
http://localhost:8080/console/ (console is the name of the context
file).

Is it possible to have this kind of url : myapp/mymodule ? And how ?

Best regards,
Hugo 





CONFIDENTIALITY:   This email (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited.  If you received this email in error,
please notify the sender and delete this email from your system.  Thank you


CONFIDENTIALITE: Ce courrier electronique (pieces jointes incluses) peut 
contenir des informations confidentielles, proprietaires et privilegiees,
dont la divulgation ou l'utilisation non-autorisee est interdite.
Si vous avez recu ce courrier electronique par erreur, nous vous remercions de 
bien vouloir avertir l'expediteur et detruire ce courrier electronique
de votre systeme.
Merci.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE : Context file and path

2006-09-22 Thread LASSIEGE Hugo
Thanks for this quick answer.


Hugo

-Message d'origine-
De : Markus Schönhaber [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 22 septembre 2006 15:30
À : Tomcat Users List
Objet : Re: Context file and path

LASSIEGE Hugo wrote:
 I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I have some
 problems in context.xml file.
 Previous to migration, I had a context path=/myapp/mymodule .../ in
 a console.xml file (in Catalina/localhost). I reach my page through
 http://localhost:8080/myapp/mymodule.


 In 5.5.17, path is not read anymore and I reach my page throuh
 http://localhost:8080/console/ (console is the name of the context
 file).

 Is it possible to have this kind of url : myapp/mymodule ? And how ?

Yes. Name the context file myapp#mymodule.xml instead of console.xml.

Regards
  mks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




CONFIDENTIALITY:   This email (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited.  If you received this email in error,
please notify the sender and delete this email from your system.  Thank you


CONFIDENTIALITÉ: Ce courrier électronique (pièces jointes incluses) peut 
contenir des informations confidentielles, propriétaires et privilégiées,
dont la divulgation ou l'utilisation non-autorisée est interdite.
Si vous avez reçu ce courrier électronique par erreur, nous vous remercions de 
bien vouloir avertir l'expéditeur et détruire ce courrier électronique
de votre système.
Merci.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



2nd try: directory permissions question

2006-09-22 Thread jason
hey tomcat-heads,

I have apache-tomcat-5.5.17 installed on a solaris 10 box. When my users 
create their applications, they end up in 
/var/local/user/apache-tomcat-5.5.17/webapps
with drwxr-r-x  permissions on the directory under webapps.
what I want, it for it to show up as drwxrwr-x  (group writable).
In the startup script for tomcat, I tried setting the umask to
0002, but now when directories get created, they show up like
drwxr-sr-x

so whats the proper way to accomplish this?

regards,
Jason



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HttpSession loose attributes.

2006-09-22 Thread Christopher Schultz
Dzmitry,

 When i do the same with jsp or html files everything is OK.
 Where is my mistake? How to make this fast deployment  without loosing
 session.

If the objects you put into the session do not implement Serializable,
then your session will fail to re-load along with the webapp.

When you copy a new JSP into your webapp, only that JSP will re-load.
However, when you update a .class file, Tomcat re-starts the entire
webapp for you (if you have it configured to do that). Part of the
re-start procedure is to write all sessions to a file before the webapp
is taken out of service, and then to read them back from that file when
the new instance starts up.

If your session attributes are not Serializable, the sessions cannot of
saved or re-loaded, so you get a new session every time you re-start.

-chris




signature.asc
Description: OpenPGP digital signature


Looking for someone to review a Tomcat setup.

2006-09-22 Thread Charles P. Killmer
Is anyone in the Central Minnesota area interested in reviewing a Tomcat
5.5 setup and providing suggestions for proper setup?  I have a number
of production sites running on it and everything was working fine on it.
Now about once a week, one of the sites will stop responding.  I need to
log in and restart IIS 6.0 and Tomcat before it starts working again.
This is a very big headache.

Setup
Windows Server Standard 2003 SP1
IIS 6.0
Tomcat 5.5
SQL Server 7.0 on a separate Server
 
 
Charles Killmer
720 St Germain. Suite 200
Saint Cloud, MN 56303
Phone: 320.251.4700 x107
Toll Free : 877.797.4700 x107
Fax: 320.251.5030
http://www.netgainhosting.com
[EMAIL PROTECTED]





  Confidentiality Notice: This e-mail message, including any
attachments, is covered
 by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, and
is for 
 the sole use of the intended recipient's. It may contain confidential
and/or legally
 privileged information. Unauthorized review, use, disclosure or
distribution is 
 prohibited. If you are not the intended recipient, please contact the
sender by reply 
 e-mail and destroy all copies of the original message.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Looking for someone to review a Tomcat setup.

2006-09-22 Thread Tim Funk
My first guess would be your database server is taken down for cold 
backups once a week and the JDBC driver is barfing on that. [Assuming 
its pooling driver of some kind]


Good luck

-Tim

Charles P. Killmer wrote:

Is anyone in the Central Minnesota area interested in reviewing a Tomcat
5.5 setup and providing suggestions for proper setup?  I have a number
of production sites running on it and everything was working fine on it.
Now about once a week, one of the sites will stop responding.  I need to
log in and restart IIS 6.0 and Tomcat before it starts working again.
This is a very big headache.

Setup
Windows Server Standard 2003 SP1
IIS 6.0
Tomcat 5.5
SQL Server 7.0 on a separate Server
 
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Looking for someone to review a Tomcat setup.

2006-09-22 Thread Charles P. Killmer
Thanks for the thought.  I am the DB admin as well it happens at random
times through the days and weeks.  Also SQL Server creates backups
online.  

I am more interested in someone coming and looking through the system
for configuration issues.

 
 
Charles Killmer
720 St Germain. Suite 200
Saint Cloud, MN 56303
Phone: 320.251.4700 x107
Toll Free : 877.797.4700 x107
Fax: 320.251.5030
http://www.netgainhosting.com
[EMAIL PROTECTED]





  Confidentiality Notice: This e-mail message, including any
attachments, is covered
 by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, and
is for 
 the sole use of the intended recipient's. It may contain confidential
and/or legally
 privileged information. Unauthorized review, use, disclosure or
distribution is 
 prohibited. If you are not the intended recipient, please contact the
sender by reply 
 e-mail and destroy all copies of the original message.

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 22, 2006 8:50 AM
To: Tomcat Users List
Subject: Re: Looking for someone to review a Tomcat setup.

My first guess would be your database server is taken down for cold 
backups once a week and the JDBC driver is barfing on that. [Assuming 
its pooling driver of some kind]

Good luck

-Tim

Charles P. Killmer wrote:
 Is anyone in the Central Minnesota area interested in reviewing a
Tomcat
 5.5 setup and providing suggestions for proper setup?  I have a number
 of production sites running on it and everything was working fine on
it.
 Now about once a week, one of the sites will stop responding.  I need
to
 log in and restart IIS 6.0 and Tomcat before it starts working again.
 This is a very big headache.

 Setup
 Windows Server Standard 2003 SP1
 IIS 6.0
 Tomcat 5.5
 SQL Server 7.0 on a separate Server
  
   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat and IIS - quick setup

2006-09-22 Thread Mikolaj Rydzewski

Hi,

In the near future I'll face the problem of integrating Tomcat with IIS 
server. I'm a unix guy for a years, so it frightens me a little ;-)


I have read http://tomcat.apache.org/connectors-doc/howto/iis.html - is 
there any simpler way? Something similiar to ProxyPass in Apache? How 
do you integrate Tomcat with IIS?
I'm thinking also about running Tomcat standalone on port 80 listening 
on another IP address.


Any ideas?

I'll have to deploy my application at client's site and know very little 
about their configs (they run IIS 6.0) and qualifications of IT stuff there.


--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tomcat Training Recommendations?

2006-09-22 Thread Emre Ersoz

what kind of training?

just documentation i have checked so far..


On 9/6/06, Jeanna Geier [EMAIL PROTECTED] wrote:


Hi-

I'm looking for some recommendations for training on Tomcat.  Has anyone
out there attended any training and have any recommendations (good or bad)?

Thanks,
-Jeanna



IIS and Tomcat

2006-09-22 Thread Timo Erbach . netbixx
Hi,

I´ve just connected IIS 5 to Tomcat 5.5.17.
The delivery of the webpage (a simple jsp) is very slow.
Calling he same jsp to Tomcat directly (Port 8080) the
site is displayed very fast.

What configuration do I have to change to speed up the
delivery through IIS?

Regards
Timo


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat and IIS - quick setup

2006-09-22 Thread Peter Crowther
 From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] 
 http://tomcat.apache.org/connectors-doc/howto/iis.html - is 
 there any simpler way?

No.  IIS does not have built-in proxying.

 I'm thinking also about running Tomcat standalone on port 80 
 listening on another IP address.

That's a simpler config, and has been my weapon of choice when working in a
Windows environment.  My dev box here has several IIS apps and several
Tomcat apps on it.  For the public Tomcat apps, I simply configure a
redirect on IIS so that if someone hits the normal Web server, they get
issued a redirect to the alternate address.  In my case, that's on the same
IP address but an alternate port; but a redirect is a redirect :-).

- Peter


smime.p7s
Description: S/MIME cryptographic signature


Filter Like behaviour within Tomcat Itself?

2006-09-22 Thread Mike Wannamaker

What I would like to do is have something registered with Tomcat so that all
requests that come to all contexts, or configured per context, will first go
through this class before even getting to the applications servlets/filtes.

This itself would act much like a Filter does, but I don't want to have to
enforce all web apps to setup the filter, just want to do it at Tomcat level
with apps even knowing.

Thanks

--ekiM

--
Every man should believe in something, and I believe I will have another
beer!



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging application messages to a file instead of to the console

2006-09-22 Thread Mark Barnes

Shiby -

Could you show us the code where your code creates your Logger and set your 
Formatter and Handler, then give us an example where your code
actually uses the Logger to log a message?


---Mark


Shiby Maria John wrote:

Ok thanks


.
.
.


Sorry Shiby,

I've got no idea about the java logger as such. But had it been Log4j,

I'd have checked my log4j.properties for the configured appender.

Santosh.

Shiby Maria John wrote:

No, java logger. (java.util.logging package)

.
.
.

Hi,

What Logger are you using within the application. Is it Log4j?

Santosh.

Shiby Maria John wrote:


Thanks for the immediate reply..
But I tried that .. it is loggin only Tomcat server specific


messages


and not the application messages.

This is what I gave in my server.xml file

Logger classname=org.apache.catalina.logger.FileLogger
path=D:\applog.log verbosity=INFORMATION /

But only the INFO: messages from the server is coming in the file.

.
.
.





From: Shiby Maria John [mailto:[EMAIL PROTECTED]
Subject: Logging application messages to a file instead of to
the console

I have an application deployed in Tomcat 5.0 in Linux OS.

I want my application messages as well as the JVM logs to log into


a


file instead of into the console.



Perhaps you should read the doc:
http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html

 - Chuck


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Filter Like behaviour within Tomcat Itself?

2006-09-22 Thread Peter Crowther
 From: Mike Wannamaker 
 What I would like to do is have something registered with 
 Tomcat so that all
 requests that come to all contexts, or configured per 
 context, will first go
 through this class before even getting to the applications 
 servlets/filtes.

You want a Valve.  These can be configured at the server level.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



New session PER REQUEST

2006-09-22 Thread Darren Hall
I wasn't sure if my issue was a Tomcat issue or a Struts issue, so I posted
it here just in case.

 

I have a serious problem.

I'm running a webapp built on Struts 1.2.9 running in Tomcat 5.5 and using
an Apache 2.2 http server. I've noticed that any value I put into the
session is always removed after one request/response cycle. In the Tomcat
Manager, I can see that every time I hit the webapp and view a page, the
session count increments. This is terrible, as it prevents me from
persisting values across my user's session. Any idea why this would be
happening?? (I'm looking for a starting point to trouble shoot and correct
this issue.)

 

Thanks

- Darren

 



RE: New session PER REQUEST

2006-09-22 Thread Peter Crowther
 From: Darren Hall [mailto:[EMAIL PROTECTED] 
 I'm running a webapp built on Struts 1.2.9 running in Tomcat 
 5.5 and using
 an Apache 2.2 http server. I've noticed that any value I put into the
 session is always removed after one request/response cycle. 
 In the Tomcat
 Manager, I can see that every time I hit the webapp and view 
 a page, the
 session count increments. This is terrible, as it prevents me from
 persisting values across my user's session. Any idea why this would be
 happening?? (I'm looking for a starting point to trouble 
 shoot and correct
 this issue.)

What happens if you connect directly to Tomcat (if necessary, set up a
connector) and bypass Apache?

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SocketExceptions under load

2006-09-22 Thread Parham, Clinton
Hello,

 

I'm using JMeter 2.2 to perform load testing against a web application
running on Tomcat 5.5.16 on a Windows 2003 server. When I simulate 200
users all is well. When I jump up to about 300, I start seeing
SocketExceptions in JMeter as shown below - somewhere between 5% and 10%
of the requests fail this way. CPU utilization on the client and server
are fairly high during the test but not constantly above 90%.

 

I don't see any errors in the Tomcat logs (with default/standard
logging). I believe Tomcat is using tcnative-1.dll and the SSL connector
parameters shown below.

 

Has anyone seen this behavior before or know what I need to do to
avoid/troubleshoot the errors?

 

Thank you,

Umk

 

Connector port=443 maxHttpHeaderSize=8192

maxThreads=500 minSpareThreads=25 maxSpareThreads=75

enableLookups=false disableUploadTimeout=true

acceptCount=150 scheme=https secure=true

SSLEngine=on 

SSLCertificateFile=${catalina.home}/ssl/test.cer

SSLCertificateKeyFile=${catalina.home}/ssl/test.key /

 

Complete stack trace seen within JMeter:

java.net.SocketException: Connection reset at
java.net.SocketInputStream.read(SocketInputStream.java:168) at
com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA12275) at
com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA12275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at
com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(DashoA12275) at
com.sun.net.ssl.internal.ssl.SunJSSE_ax.i(DashoA12275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.k(DashoA12275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA12275) at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Da
shoA12275) at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.co
nnect(DashoA12275) at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.j
ava:406) at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
erBase.java:658) at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
erBase.java:647) at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) at
java.lang.Thread.run(Thread.java:534) 

 

 



RE: New session PER REQUEST

2006-09-22 Thread Darren Hall
Peter,
You are correct. When hitting Tomcat directly, the session remains intact.
When using mod_proxy to forward requests to Apache the session is lost.
Is this a common issue? How can I go about correcting this?

Thanks
- D

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 22, 2006 12:04 PM
To: Tomcat Users List
Subject: RE: New session PER REQUEST

 From: Darren Hall [mailto:[EMAIL PROTECTED] 
 I'm running a webapp built on Struts 1.2.9 running in Tomcat 
 5.5 and using
 an Apache 2.2 http server. I've noticed that any value I put into the
 session is always removed after one request/response cycle. 
 In the Tomcat
 Manager, I can see that every time I hit the webapp and view 
 a page, the
 session count increments. This is terrible, as it prevents me from
 persisting values across my user's session. Any idea why this would be
 happening?? (I'm looking for a starting point to trouble 
 shoot and correct
 this issue.)

What happens if you connect directly to Tomcat (if necessary, set up a
connector) and bypass Apache?

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0 Config with SQL Server 2005

2006-09-22 Thread Paul Wong
Dear all:

I hope someone can give me some advices here.

Here is some config. info for SQL Server 2000 and I am trying to have
the application to talk to SQL 2005.  I have downloaded the JDBC driver,
but not sure what will be the correct configuration/steps:

  Resource name=jdbc/xxxdbProxy auth=Container
type=javax.sql.DataSource/   
  ResourceParams name=jdbc/xxxdbProxy
parameter
  namefactory/name
  valuecom.xxx.jaas.DataSourceProxyFactory/value
/parameter
  /ResourceParams

  Resource name=jdbc/xxxdb auth=Application
type=com.microsoft.sqlserver.jdbc.SQLServerXADataSource /
  ResourceParams name=jdbc/xxxdb
parameter
  namefactory/name
 
valuecom.microsoft.sqlserver.jdbc.SQLServerDataSourceObjectFactory/va
lue
/parameter
parameter
  namedriverClassName/name
  valuecom.microsoft.sqlserver.jdbc.SQLServerDriver/value
/parameter


Thanks a lot for your kind help.

Yours Truly,

Paul

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: New session PER REQUEST

2006-09-22 Thread Bob Hall
--- Darren Hall [EMAIL PROTECTED] wrote:

 Peter,
 You are correct. When hitting Tomcat directly, the
 session remains intact.
 When using mod_proxy to forward requests to Apache
 the session is lost.
 Is this a common issue? How can I go about
 correcting this?
 
 Thanks
 - D

I don't have any experience with mod_proxy.
Have you tried mod_jk?

-Bob

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to monitor data in a request sent to a Tomcat server?

2006-09-22 Thread lingyan zhu
I have a client application that posts the content of a file using HTTP/1.0 
POST, to a web application served on a Tomcat server. The client application 
generates the appropriate HTTP POST header, and writes the header, followed by 
the content of the file, out to the server using socket.
  
 There has been a strange intermittent problem, where an extra line feed 
character ('\n') was sometimes mysteriously added to the beginning of the 
posted HTTP content. In another word, when I call getInputStream() on the 
request in the servlet's service() method, the first byte in the stream shows 
up as linefeed, even though the content of the original file being posted does 
not starts with line feed.
  
  
 It is unlikely a Tomcat problem, but I want to exclude the possibility that 
Tomcat is somehow adding this line feed under special circumstances. Therefore 
I want to monitor the entire data stream (including both header and content) 
that was sent in a request and check whether the data received by Tomcat 
already contains this extra line feed.
  
 Does anyone know how  to do this? Or is it possible that Tomcat could be doing 
anything like this?

  
 Thanks a lot,
yan

-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail.

Re: How to monitor data in a request sent to a Tomcat server?

2006-09-22 Thread Martin Gainty
Instead of InputStream alone Use BufferedReader (with InputStream as a 
parameter) 
then use BufferedReader.readLine to read until the newline
as in this example

  URL url = new URL(http://www.yoururl.com/;);
URLConnection conn = url.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(
conn.getInputStream()));
String inputLine;

//read all of the lines up until newlines
while ((inputLine = in.readLine()) != null) 
System.out.println(inputLine);
in.close();

HTH
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: lingyan zhu [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, September 22, 2006 7:54 PM
Subject: How to monitor data in a request sent to a Tomcat server?


I have a client application that posts the content of a file using HTTP/1.0 
POST, to a web application served on a Tomcat server. The client application 
generates the appropriate HTTP POST header, and writes the header, followed by 
the content of the file, out to the server using socket.
  
 There has been a strange intermittent problem, where an extra line feed 
 character ('\n') was sometimes mysteriously added to the beginning of the 
 posted HTTP content. In another word, when I call getInputStream() on the 
 request in the servlet's service() method, the first byte in the stream shows 
 up as linefeed, even though the content of the original file being posted 
 does not starts with line feed.
  
  
 It is unlikely a Tomcat problem, but I want to exclude the possibility that 
 Tomcat is somehow adding this line feed under special circumstances. 
 Therefore I want to monitor the entire data stream (including both header and 
 content) that was sent in a request and check whether the data received by 
 Tomcat already contains this extra line feed.
  
 Does anyone know how  to do this? Or is it possible that Tomcat could be 
 doing anything like this?
 
  
 Thanks a lot,
 yan
  
 -
 Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail.

Tomcat 5.5.17 has max 40 KB / sec

2006-09-22 Thread Steffen Heil
Hi

I use tomcat 5.5.17 and want to upload files. As this was *very* slow in
some cases, I wrote a benchmark servlet. Code is below.
I get the following statistics:

1. Running server on debian linux it accepts about 8.5 MB / sec. (Could
slowed down by VM overhead.)
2. Running server on windows xp it accepts about 3.5 MB / sec when the
client is connected over an rinetd redirection.
3. Running server on windows xp it accepts ONLY 40 KB / sec when the clinet
is connected directly.

This problem applies to Internet Explorer 6.0 as client only.
It does not occur so with Firebird (but still only about 2.4 MB / sec).

Using wireshark I found that the Internet Explorer is sending only 8 KB
(exactly) followed by an tcp PSH, which is not answered by the windows xp
machine running tomcat for 0.2 sec. That gives me exactly the 40 KB/sec.

I would say, my xp tcp stack is damaged, but it works with the same server,
when redirected through an external rinetd.

What can I do ?
Where can I start debugging ?
Anyone having similar problems ?

If possible, please also reply to me directly (CC).

Regards,
   Steffen



--8---

package mypackage;

import java.io.InputStream;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class UpstreamBenchmark extends HttpServlet implements Runnable
{

private long start = -1;

private int total;

private Thread thread;

private final byte[] buffer = new byte[ 4096 ];


public void run()
{
while ( !Thread.interrupted() ) {
if ( start != -1 ) {
long time = System.currentTimeMillis() -
start + 1;
double speed = ( total / 1.024 ) / time;
System.out.println( speed:  + speed + 
kb/sec );
}
try {
Thread.sleep( 500 );
} catch ( Throwable t ) {
t.printStackTrace();
}
}
}


@Override
public void destroy()
{
thread.interrupt();
super.destroy();
}


@Override
public void init()
throws ServletException
{
super.init();
thread = new Thread( this );
thread.start();
}


@Override
protected final void doPost( HttpServletRequest request,
HttpServletResponse response )
{
try {
total = 0;
start = System.currentTimeMillis();
InputStream is = request.getInputStream();
int read;
while ( ( read = is.read( buffer ) ) != -1 )
total += read;
is.close();
System.out.println( read  + total +  bytes. );
} catch ( Throwable t ) {
t.printStackTrace();
}
start = -1;
}

}


smime.p7s
Description: S/MIME cryptographic signature