Re: Centos 5 OS not releasing memory Tomcat6

2009-05-28 Thread Maurizio Rottin
2009/5/28 André Warnier :
> If a non-existent process is able to hold on to some memory and not return
> it to the OS, doesn't that indicate an OS problem ?

i think so!
but i do not remeber any kernel problem related to memory caching in
Centos kernel releases.

Maybe you should give a try at Centos 5.3 kernels.

-- 
mr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Service fails to start

2009-05-28 Thread cum.nex

This works fine.
Thanks.
cum


Len Popp wrote:
> 
> This error occurs when it can't find the Microsoft C runtime library.
> Try copying the file msvcr71.dll from the Java bin directory to the
> Tomcat bin directory.
> -- 
> Len
> 
> 
> 
> On Thu, May 28, 2009 at 16:39, cum.nex  wrote:
>>
>> Tomcat installed from apache-tomcat-6.0.18.exe in WXP SP2 + Java from
>> jre-6u13-windows-i586-p-s.exe.
>> Installation seem fine, but Tomcat service fails to start, giving the
>> following log:
>>
>> [2009-05-28 22:13:14] [info] Procrun (2.0.4.0) started
>> [2009-05-28 22:13:14] [info] Running Service...
>> [2009-05-28 22:13:14] [info] Starting service...
>> [2009-05-28 22:13:14] [174  javajni.c] [error] Impossible to find the
>> specified module
>> [2009-05-28 22:13:14] [994  prunsrv.c] [error] Failed creating java
>> D:\Programmi\Java\jre6\bin\client\jvm.dll
>> [2009-05-28 22:13:14] [1269 prunsrv.c] [error] ServiceStart returned 1
>> [2009-05-28 22:13:14] [info] Run service finished.
>> [2009-05-28 22:13:14] [info] Procrun finished.
>>
>> Thank you
>> --
>> View this message in context:
>> http://www.nabble.com/Service-fails-to-start-tp23769675p23769675.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Service-fails-to-start-tp23769675p23773931.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Service fails to start

2009-05-28 Thread cum.nex

This works fine.
Thanks.
cum


Len Popp wrote:
> 
> This error occurs when it can't find the Microsoft C runtime library.
> Try copying the file msvcr71.dll from the Java bin directory to the
> Tomcat bin directory.
> -- 
> Len
> 
> 
> 
> On Thu, May 28, 2009 at 16:39, cum.nex  wrote:
>>
>> Tomcat installed from apache-tomcat-6.0.18.exe in WXP SP2 + Java from
>> jre-6u13-windows-i586-p-s.exe.
>> Installation seem fine, but Tomcat service fails to start, giving the
>> following log:
>>
>> [2009-05-28 22:13:14] [info] Procrun (2.0.4.0) started
>> [2009-05-28 22:13:14] [info] Running Service...
>> [2009-05-28 22:13:14] [info] Starting service...
>> [2009-05-28 22:13:14] [174  javajni.c] [error] Impossible to find the
>> specified module
>> [2009-05-28 22:13:14] [994  prunsrv.c] [error] Failed creating java
>> D:\Programmi\Java\jre6\bin\client\jvm.dll
>> [2009-05-28 22:13:14] [1269 prunsrv.c] [error] ServiceStart returned 1
>> [2009-05-28 22:13:14] [info] Run service finished.
>> [2009-05-28 22:13:14] [info] Procrun finished.
>>
>> Thank you
>> --
>> View this message in context:
>> http://www.nabble.com/Service-fails-to-start-tp23769675p23769675.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Service-fails-to-start-tp23769675p23773918.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread Andre-John Mas


On 28-May-2009, at 15:59, George Sexton wrote:

The issue is the default character set for Java. I've noticed that  
at least at one point in time, the default character set for Java  
running under windows was Windows-1252. Running under Linux it  
defaults to ISO-8859-1.


A few other things to ensure:

- If you are using JSPs ensure that the content header is correct:

  <%...@page contentType="text/html; charset=UTF-8"   
pageEncoding="UTF-8" %>


  You can specify any encoding you wish, but this is the most  
universal encoding.
  If you don't specify the character encoding in the content-type  
most browsers

  will default to ISO-8859-1 as the specification requires.

- You can over-ride the default encoding used by the VM, by passing
  the -Djava.encoding=UTF-8 option in catalina.bat

The default encoding under Linux actually depends on which  
distribution you are
using. Red Hat for example defaults to UTF-8. In general you should  
not make
any assumptions on which character encoding the OS is using. One  
assumption

you can make is that Java uses UTF-16 internally.

André-John
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat relative path

2009-05-28 Thread tcwarrior

Isn't it 2 per domain? Nothing stops image1.domain.com for being a cname for
a subdomain. I must have not worded or phrased my question well. Why
wouldn't you want your site to be the most responsive and allow for parallel
downloads? No the consultant guy wasn't brought in for this, it was more of
an fyi.


As for our dev team, why are they right? What is so hard about changing the
source? If you spread downloads across say 3 servers which are all on their
own subdomain, how would that not make a difference? Isn't it each   would
need to point to a different server? ex. have .gif's go to subdomain1 and
.jpg's to subdomain2?




Caldarale, Charles R wrote:
> 
>> From: tcwarrior [mailto:sr_s...@yahoo.com]
>> Subject: Tomcat relative path
>> 
>> Our tomcat servers are front ended by apache. The apache servers
>> do serve the static content. The img source is something like
>> /imagedir/pic.jpg which tomcat controls.
> 
> Not quite sure what you mean by "controls"; are you saying the web pages
> that hold the   links to the images are created by webapps running inside
> Tomcat?  (Probably doesn't really make a difference; I'm just curious.)
> 
>> We had a consultant tell us since we have 49 images
>> loading on our homepage we should change this so 
>> parallel downloads occur.
> 
> I hope you didn't pay that consultant very much.  All web browsers make
> concurrent requests for images, style sheets, applets, etc., that are
> embedded in web pages.  However, unless tweaked, most browsers limit the
> concurrency to two - as recommended by the HTTP RFC.  Nothing you do on
> the server can change that.
> 
>> web development staff said it'd be too hard to change.
> 
> They're right about that, but they should also know it won't make any
> difference.
> 
> 
>  
> 
> 
>> My question is, is there an easy way to switch or do you have to 
>> change the img src to be http://image1.domain.com/imagedir/pic.jpg?
> 
> Unless each   references a different server, it won't matter.  The browser
> concatenates links without a domain to the domain of the current page, so
> the end result is the same by the time the client puts the request on the
> wire.
> 
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-relative-path-tp23772234p23773866.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Potential connection leakage

2009-05-28 Thread Johnny Lui
Dear all

Just hit this error yesterday, but found no clues from google.

Description on the web application:
It is running on j2sdk1.4.2_11 and Apache Tomcat/4.1.39-LE-jdk14
It uses exploded deploy approach. Only root application present.
It connects to an Oracle database in another IP.
It uses org.apache.commons.dbcp.BasicDataSourceFactory,
oracle.jdbc.driver.OracleDriver and javax.sql.DataSource to connect.


There is no apache sits in front of it.


Below is the log. I can provide more information if needed. Thanks for
your help.

Created MBeanServer with ID: 5e179a:1218399b401:-8000:localhost.localdomain:1
StandardEngine[null]: setJvmRoute=sjm
May 28, 2009 3:43:57 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
Starting service Tomcat-Standalone
Apache Tomcat/4.1.39-LE-jdk14
-- listing properties --
May 28, 2009 3:43:58 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
May 28, 2009 3:43:58 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 28, 2009 3:43:58 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47  config=null
Potential connection leakage:4
Potential connection leakage:5
Potential connection leakage:6
Potential connection leakage:7
Potential connection leakage:8
Potential connection leakage:9
Potential connection leakage:10
Potential connection leakage:11
Potential connection leakage:12
Potential connection leakage:13
Potential connection leakage:14
Potential connection leakage:15
Potential connection leakage:16
Potential connection leakage:17
Potential connection leakage:18
Potential connection leakage:19
Potential connection leakage:20
Potential connection leakage:20
Potential connection leakage:20
Potential connection leakage:20





Regards
Johnny

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat relative path

2009-05-28 Thread Caldarale, Charles R
> From: tcwarrior [mailto:sr_s...@yahoo.com]
> Subject: Tomcat relative path
> 
> Our tomcat servers are front ended by apache. The apache servers
> do serve the static content. The img source is something like
> /imagedir/pic.jpg which tomcat controls.

Not quite sure what you mean by "controls"; are you saying the web pages that 
hold the  links to the images are created by webapps running inside 
Tomcat?  (Probably doesn't really make a difference; I'm just curious.)

> We had a consultant tell us since we have 49 images
> loading on our homepage we should change this so 
> parallel downloads occur.

I hope you didn't pay that consultant very much.  All web browsers make 
concurrent requests for images, style sheets, applets, etc., that are embedded 
in web pages.  However, unless tweaked, most browsers limit the concurrency to 
two - as recommended by the HTTP RFC.  Nothing you do on the server can change 
that.

> web development staff said it'd be too hard to change.

They're right about that, but they should also know it won't make any 
difference.

> My question is, is there an easy way to switch or do you have to 
> change the img src to be http://image1.domain.com/imagedir/pic.jpg?

Unless each  references a different server, it won't matter.  The 
browser concatenates links without a domain to the domain of the current page, 
so the end result is the same by the time the client puts the request on the 
wire.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread Stevo Slavić
True. If I understood well, problem is not in submitting requests, but in
rendering response, data fetched from database aren't displayed well on one
machine, but do get displayed well on the other. Abdul didn't mention
details about client side where was he opening problematic page. Let's
assume he always tested application using same browser and version on same
machine where server/application was running, so both client and server were
same pc. Besides possibility of different default encoding having effect on
server side, could availability of fonts on client machines also have effect
on how site is rendered? Maybe some application Abdul installed on XP but
not on two servers brought with itself additional fonts which site/page just
happens to makes use of.

Regards,
Stevo.

On Fri, May 29, 2009 at 1:02 AM, Andre-John Mas  wrote:

>
> On 28-May-2009, at 10:00, Stevo Slavić wrote:
>
>  Or Tomcat installations are configured differently on each of the
>> environments, e.g. Connector URIEncoding attribute.
>>
>>
> URIEncoding only effects how the query URL is interpretted, AFAIK.
> It effects nothing else.
>
> André-John
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Windows x64 Installer

2009-05-28 Thread will trillich
On Thu, May 28, 2009 at 6:18 PM, Caldarale, Charles R
 wrote:
>> I installed them on Windows 2008 x64, and could not get a
>> response from Tomcat, if coming from the net.  The local
>> browser would pull it up just fine.
>
> Tomcat (with or without APR) doesn't care if the request
> came via loopback or ethernet.  If it worked from the local
> browser, your firewall may be blocking the port from
> remote access.

Another variable to throw into the mix, just for fun -- do you have a
proxy? Squid doing a little web-caching perhaps? That can mess you up
as well.

Try
   telnet ip.address.here 8080
   GET / HTTP/1.0


(follow the GET with a blank line) and see if you get any HTML back.
You can try it from the same computer and/or other computers nearby.

If you do get an appropriate HTTP response, Tomcat is well and you've
got other issues. If you can't open the port at all, Tomcat isn't
listening. If you can open the port but Tomcat doesn't play nice with
an HTTP response, your configuration needs attention.

-- 
will trillich
"Our only real economic security lies in our power to meet human
needs." -- S.Covey, the 8th Habit

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache 2.2 to Tomcat 6 via proxy_ajp

2009-05-28 Thread J. Zimmerman
Thanks for all of the replies.  I had tried most of the suggestions
previously, but things were still not working the way I wanted.
Specifically I could get it to work if I was willing to using
http://domain.com/appname, but not just http://domain.com/.

I had seen the Tomcat virtual hosting documentation, but overall we kind of
run a hybrid apache2 / apache tomcat environment so I needed to front end
everything through Apache2 mod_proxy_ajp.

It turns out I was *really* close and technically it was working.  The
Tomcat application (which is an Apache Wicket) was doing a redirect that
made a working config seem broken.

So here is my working (deemed working without major testing) for this
specific application.  Others may not require the Rewrite rule or may
require a different rewrite rule.


> ServerName  testproxy.domain.com
>
> RewriteEngine On
> RewriteRule ^/appname/(.*)$ http://testproxy.domain.com/$1 [L]
>
> ProxyPreserveHost   On
>
> ProxyPass / ajp://localhost:8009/appname/
> ProxyPassReverse / ajp://localhost:8009/appname/
>
> 
> Order allow,deny
> Allow from all
> 
>
> ErrorLog /var/log/apache2/testproxy.domain.com-error.log
>
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
>
> CustomLog /var/log/apache2/testproxy.domain.com-access.log combined
> ServerSignature Off
> 
>

Thanks to everyone who read or responded to this thread.


Tomcat relative path

2009-05-28 Thread tcwarrior

First off I'm very new to Tomcat so I'll apologize if the question seems
entirely dumb.

Here is our scenario:
Our tomcat servers are front ended by apache. The apache servers do serve
the static content. The img source is something like /imagedir/pic.jpg which
tomcat controls. We had a consultant tell us since we have 49 images loading
on our homepage we should change this so parallel downloads occur. Our web
development staff said it'd be too hard to change. My question is, is there
an easy way to switch or do you have to change the img src to be
http://image1.domain.com/imagedir/pic.jpg?


-- 
View this message in context: 
http://www.nabble.com/Tomcat-relative-path-tp23772234p23772234.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Windows x64 Installer

2009-05-28 Thread Caldarale, Charles R
> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
> Subject: RE: Windows x64 Installer
> 
> They may need some work.
> I installed them on Windows 2008 x64, and could not get a 
> response from Tomcat, if coming from the net.  The local
> browser would pull it up just fine.

Tomcat (with or without APR) doesn't care if the request came via loopback or 
ethernet.  If it worked from the local browser, your firewall may be blocking 
the port from remote access.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread Andre-John Mas


On 28-May-2009, at 10:00, Stevo Slavić wrote:


Or Tomcat installations are configured differently on each of the
environments, e.g. Connector URIEncoding attribute.



URIEncoding only effects how the query URL is interpretted, AFAIK.
It effects nothing else.

André-John


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Windows x64 Installer

2009-05-28 Thread Jeffrey Janner
Mark -
They may need some work.
I installed them on Windows 2008 x64, and could not get a response from
Tomcat, if coming from the net.  The local browser would pull it up just
fine.
They worked fine on a Windows 2003 x64 box I have, and I got it to work
with the 32-bit library that was downloaded by the installer.
The full 32-bit version (Java/Tomcat/native libs) works fine on the
machine.  Just the full 64-bit with the supposed 64-bit library that
would not respond.
Jeff

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Wednesday, May 27, 2009 4:33 PM
To: Tomcat Users List
Subject: Re: Windows x64 Installer


I need to check how the APR/native library is handled. That may still
need some work.


***  NOTICE  *
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread Andre-John Mas


On 28-May-2009, at 09:23, abdul razack wrote:


Hi Mark,

 As you suggested, I have tested sample JSP in the FAQ as you pointed.
I could see Arabic in the output. This is OK.

I am not able to view Arabic data when tomcat application running on  
winodws 2003 server OR windows 2000 professional.


But I am surprised to see Arabic data when I run application on  
windows XP professional.


In all above scenarios data base SQL server 2005 resides on Windows  
2003 server.



Any other setting that I need to do in Tomcat.



The ability to display non-latin charactrers depends as much on the  
client operating system, as on the what the server is providing. For  
example if you have nothing on your computer that knows how to render  
arabic charcaters then you are likely to end up with junk characters  
(usually question marks).


The best character encoding to use for international data, and in  
general IMHO, is UTF-8. Most recent operating systems support UTF-8.  
With Windows 2003 server and Windows 2000, it will depend on what  
browser you are using, whether you have international language packs  
installed and whether you have the right fonts.


Linux, MS-Windows (as of Windows XP) and MacOS X all know how to deal  
with UTF-8. On Windows you should ensure that at least Internet  
Explorer 7 is being used.


Andre

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Debian Tomcat Fail

2009-05-28 Thread Martin Gainty

post the code and we'll walk you thru it

no sweat 
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 28 May 2009 14:51:28 -0700
> From: boppn...@swbell.net
> To: users@tomcat.apache.org
> Subject: RE: Debian Tomcat Fail
> 
> 
> Sorry, this code was provided to me by a graduate student (I'm a lowly
> freshman).  Still very new to all of this, I'll look into that.
> 
> 
> Caldarale, Charles R wrote:
> > 
> >> From: trojansnake12 [mailto:boppn...@swbell.net]
> >> Subject: RE: Debian Tomcat Fail
> >> 
> >> File myGifImage = new File("../webapps/geosim/WEB-INF/images/test.jpg");
> > 
> > Very bad form.  The servlet container (Tomcat) is under no obligation to
> > provide *any* access to the underlying file system (if there is one),
> > other than to a scratch area.  You should be using
> > ServletContext.getResourceAsStream() rather than expecting File objects to
> > work.
> > 
> >  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Debian-Tomcat-Fail-tp23734947p23770783.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_
Hotmail® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009

RE: Service fails to start

2009-05-28 Thread Martin Gainty

guis are for non-tech people who are are more concerned with a pretty 
face

a REAL tech has vi and a bash shell

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.






> From: chuck.caldar...@unisys.com
> To: users@tomcat.apache.org
> Date: Thu, 28 May 2009 16:34:30 -0500
> Subject: RE: Service fails to start
> 
> > From: Martin Gainty [mailto:mgai...@hotmail.com]
> > Subject: RE: Service fails to start
> > 
> > correct
> > HKLM\Software\JavaSoft\Java Runtime Engine\1.6\RuntimeLib
> > to point to server jvm.dll (should be located at)
> > D:\Programmi\Java\jre6\bin\server\jvm.dll
> 
> Don't do that!!!  Editing the registry is unnecessary and utterly idiotic for 
> this situation.  If you want to change which JVM the Tomcat service invokes, 
> use the Java tab of the tomcat6w.exe GUI program to modify it.
> 
> Len has posted the real answer to the question.
> 
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009

RE: retrive Arabic data

2009-05-28 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com]
> Subject: Re: retrive Arabic data
> 
> By the way, does anyone know for sure /where/ the Sun Windows JVM picks
> up the default "locale" settings ?

Via a couple of proprietary Windows APIs:

GetUserDefaultLCID
http://msdn.microsoft.com/en-us/library/dd318135(VS.85).aspx

GetSystemDefaultLCID
http://msdn.microsoft.com/en-us/library/dd318121(VS.85).aspx

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Centos 5 OS not releasing memory Tomcat6

2009-05-28 Thread André Warnier

msweeney wrote:

Hi,

Thank you for your reply.

Yes we did a custom install on Tomcat6.  


No there wasn't any java processes running when we stopped Tomcat, so it
appears from the OS level to be shutting down, but it's not releasing the
memory space back to the OS.  

If a non-existent process is able to hold on to some memory and not 
return it to the OS, doesn't that indicate an OS problem ?


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Debian Tomcat Fail

2009-05-28 Thread trojansnake12

Sorry, this code was provided to me by a graduate student (I'm a lowly
freshman).  Still very new to all of this, I'll look into that.


Caldarale, Charles R wrote:
> 
>> From: trojansnake12 [mailto:boppn...@swbell.net]
>> Subject: RE: Debian Tomcat Fail
>> 
>> File myGifImage = new File("../webapps/geosim/WEB-INF/images/test.jpg");
> 
> Very bad form.  The servlet container (Tomcat) is under no obligation to
> provide *any* access to the underlying file system (if there is one),
> other than to a scratch area.  You should be using
> ServletContext.getResourceAsStream() rather than expecting File objects to
> work.
> 
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Debian-Tomcat-Fail-tp23734947p23770783.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Debian Tomcat Fail

2009-05-28 Thread Caldarale, Charles R
> From: trojansnake12 [mailto:boppn...@swbell.net]
> Subject: RE: Debian Tomcat Fail
> 
> File myGifImage = new File("../webapps/geosim/WEB-INF/images/test.jpg");

Very bad form.  The servlet container (Tomcat) is under no obligation to 
provide *any* access to the underlying file system (if there is one), other 
than to a scratch area.  You should be using 
ServletContext.getResourceAsStream() rather than expecting File objects to work.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread André Warnier

For Len :

I agree with what George writes below.
I also agree with the point that a webapp /can/ handle any charset 
properly, if it is properly programmed to do so.
The point here is that probably, some webapp is /not/ properly 
programmed for that, and just uses the default charset of the JVM
And, as George explains below, that one is different under different 
circumstances. Which was why I asked the OP about the different Windows 
flavors.


By the way, does anyone know for sure /where/ the Sun Windows JVM picks 
up the default "locale" settings ?


George Sexton wrote:
The issue is the default character set for Java. I've noticed that at 
least at one point in time, the default character set for Java running 
under windows was Windows-1252. Running under Linux it defaults to 
ISO-8859-1.


I'm sure the same issue is happening here. It's defaulting to 
Windows-1256 on Arabic windows, on another OS it's defaulting to 
ISO-8859-1 or perhaps ISO-8859-6.


I ran into these kind of issues when I called the various String to Byte 
Array functions, e.g. String.getBytes(). I was calling getBytes() and 
then using a hash function for the result and getting different results 
on different machines.


If you call java.nio.charset.Charset.defaultCharset().displayName(), you 
can see what it is.


Here's a reasonable discussion of some of the issues.

http://stackoverflow.com/questions/361975/setting-the-default-java-character-encoding 



In short, there's no simple answer. You have to figure out step by step 
where things are going wrong, and then address those issues.


I would check:

1) Default Charset on each platform.
2) Charset the database is declared with
3) Charset of data coming in from db.
4) Charset of pages. Do the pages explicitly set the encoding to UTF-8?

André Warnier wrote:

Youssef Mohammed wrote:



I am not able to view Arabic data when tomcat application running on 
winodws 2003 server OR windows 2000 professional.
But I am surprised to see Arabic data when I run application on 
windows XP professional.



Hi.
My knowledge of java and Tomcat is limited, so I may be off-base here.
But I have also has occasional issues with Tomcat and non-US character 
sets on various Windows platforms.
Just for information, what is the basic Windows language version of 
the 3 Windows servers you are using ?
I mean, is for example the Windows XP system some arabic version, 
while the 2003 and 2000 servers are basic English/US-Windows ?


The reason for my question : when a Java JVM starts under Unix/Linux, 
it takes its language settings from the "locale" of the process it is 
starting under.
You can change these settings, by changing the locale of the process, 
then starting the JVM (and Tomcat e.g.).
For a Windows JVM however, there is no such "locale", and I've never 
quite figured out where the JVM takes its language settings (including 
the default charset).  I suppose it is from the Windows environment 
somewhere though.

I have a strong suspicion that your problem is in that area.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Debian Tomcat Fail

2009-05-28 Thread trojansnake12

I'm trying to access a file to read the image.  It is in my original post at
the top of this thread:

File myGifImage = new File("../webapps/geosim/WEB-INF/images/test.jpg");

It's very strange, using that relative path works fine on my Windows install
of Tomcat6.  But on my Debian machine, that sometimes goes in to the
!exists() if block, and sometimes after restarting it a couple times, it
works.  Very weird.  Giving it the absolute pathing ensures that it works
every time.

I know it isn't encountering a permissions error either, because (I know
this would be a bad idea if this were a legitimate production machine), I've
made all the permissions 777 public read, write, execute, for /var, /tomcat,
and recursively down the line.  This was simply for testing purposes so I
could eliminate that as a possible reason for the occurence.


Caldarale, Charles R wrote:
> 
>> From: trojansnake12 [mailto:boppn...@swbell.net]
>> Subject: Re: Debian Tomcat Fail
>> 
>> The
>> "../webapps/geosim/WEB-INF/classes/Project.java" 
>> does not work correctly.
> 
> When used from where?  What's the action being performed?
> 
>> What is the default relative path starting point?
> 
> For what kind of operation?
> 
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Debian-Tomcat-Fail-tp23734947p23770668.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Windows x64 Installer

2009-05-28 Thread André Warnier

Caldarale, Charles R wrote:

From: Mladen Turk [mailto:mt...@apache.org]
Subject: Re: Windows x64 Installer

You've beet me by a millisecond ;)


Yeah, but that's 300 km for an electron...


And please note that from the electron's point of view, it may be a lot 
less than a millisecond..


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Service fails to start

2009-05-28 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com]
> Subject: RE: Service fails to start
> 
> correct
> HKLM\Software\JavaSoft\Java Runtime Engine\1.6\RuntimeLib
> to point to server jvm.dll (should be located at)
> D:\Programmi\Java\jre6\bin\server\jvm.dll

Don't do that!!!  Editing the registry is unnecessary and utterly idiotic for 
this situation.  If you want to change which JVM the Tomcat service invokes, 
use the Java tab of the tomcat6w.exe GUI program to modify it.

Len has posted the real answer to the question.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Debian Tomcat Fail

2009-05-28 Thread Caldarale, Charles R
> From: trojansnake12 [mailto:boppn...@swbell.net]
> Subject: Re: Debian Tomcat Fail
> 
> The
> "../webapps/geosim/WEB-INF/classes/Project.java" 
> does not work correctly.

When used from where?  What's the action being performed?

> What is the default relative path starting point?

For what kind of operation?

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Debian Tomcat Fail

2009-05-28 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: Debian Tomcat Fail
> 
> ...which isn't in a package, violating the servlet specification.

Not true.  Only JSPs are required to be in a package, servlets are not.  
Regardless, it's still a good idea to use some meaningful package pretty much 
all the time.

BTW, if you'd read the whole thread, he's been happily running for some time 
now.

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



Re: Service fails to start

2009-05-28 Thread Len Popp
This error occurs when it can't find the Microsoft C runtime library.
Try copying the file msvcr71.dll from the Java bin directory to the
Tomcat bin directory.
-- 
Len



On Thu, May 28, 2009 at 16:39, cum.nex  wrote:
>
> Tomcat installed from apache-tomcat-6.0.18.exe in WXP SP2 + Java from
> jre-6u13-windows-i586-p-s.exe.
> Installation seem fine, but Tomcat service fails to start, giving the
> following log:
>
> [2009-05-28 22:13:14] [info] Procrun (2.0.4.0) started
> [2009-05-28 22:13:14] [info] Running Service...
> [2009-05-28 22:13:14] [info] Starting service...
> [2009-05-28 22:13:14] [174  javajni.c] [error] Impossible to find the
> specified module
> [2009-05-28 22:13:14] [994  prunsrv.c] [error] Failed creating java
> D:\Programmi\Java\jre6\bin\client\jvm.dll
> [2009-05-28 22:13:14] [1269 prunsrv.c] [error] ServiceStart returned 1
> [2009-05-28 22:13:14] [info] Run service finished.
> [2009-05-28 22:13:14] [info] Procrun finished.
>
> Thank you
> --
> View this message in context: 
> http://www.nabble.com/Service-fails-to-start-tp23769675p23769675.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Service fails to start

2009-05-28 Thread Martin Gainty

correct 
HKLM\Software\JavaSoft\Java Runtime Engine\1.6\RuntimeLib
to point to server jvm.dll (should be located at)
D:\Programmi\Java\jre6\bin\server\jvm.dll

http://www.mail-archive.com/d...@tomcat.apache.org/msg29292.html

(solution provided by George Sexton)
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 28 May 2009 13:39:45 -0700
> From: cum...@gmail.com
> To: users@tomcat.apache.org
> Subject: Service fails to start
> 
> 
> Tomcat installed from apache-tomcat-6.0.18.exe in WXP SP2 + Java from
> jre-6u13-windows-i586-p-s.exe.
> Installation seem fine, but Tomcat service fails to start, giving the
> following log:
> 
> [2009-05-28 22:13:14] [info] Procrun (2.0.4.0) started
> [2009-05-28 22:13:14] [info] Running Service...
> [2009-05-28 22:13:14] [info] Starting service...
> [2009-05-28 22:13:14] [174  javajni.c] [error] Impossible to find the
> specified module
> [2009-05-28 22:13:14] [994  prunsrv.c] [error] Failed creating java
> D:\Programmi\Java\jre6\bin\client\jvm.dll
> [2009-05-28 22:13:14] [1269 prunsrv.c] [error] ServiceStart returned 1
> [2009-05-28 22:13:14] [info] Run service finished.
> [2009-05-28 22:13:14] [info] Procrun finished.
> 
> Thank you
> -- 
> View this message in context: 
> http://www.nabble.com/Service-fails-to-start-tp23769675p23769675.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009

Re: Centos 5 OS not releasing memory Tomcat6

2009-05-28 Thread msweeney

Hi,

Thank you for your reply.

Yes we did a custom install on Tomcat6.  

No there wasn't any java processes running when we stopped Tomcat, so it
appears from the OS level to be shutting down, but it's not releasing the
memory space back to the OS.  

running the free command after stopping Tomcat shows all the memory still
being held:

# free
 total   used   free sharedbuffers cached
Mem:   39218843326672 595212  0 3170441528544
-/+ buffers/cache:14810842440800
Swap:  2048152 3162441731908


What I'm doing now is looking into the sysctl.conf parameters that will
flush the cache, sort of like Oracle.

Regards,

Marc Sweeney



Maurizio Rottin wrote:
> 
> 2009/5/28 msweeney :
>>
>> Tomcat version 6
>> Apache 2.2.3
>> Centos 5.2
>> VMware 2.5
>> 2 VPU's
>> 4G Memory
>>
>> Guest Memory usage is on a avg 122 MB and Host Memory is at 3.31 G so we
>> know it's not the balloon driver.
>>
>> Problem statement:
>>
>> I understand as a SysAdmin that the JVM loves to grab all the memory
>> resources as it can, sort of like Oracle.  However when we stop and then
>> attempt to restart Tomcat it fails and the server needs to be restarted.
>> Also it seems that this memory is being held in the Linux Cache system
>> and
>> to release it we run the following:
>> echo 3 > /proc/sys/vm/drop_caches
> 
> tomcat6 is not included in Centos, then i assume you take source file
> from apache tomcat website.
> 
> If this is the case, when you stop tomcat, then you have to kill the
> process.
> try a "ps -ef | grep j" and you will probably see that java is still
> running.
> 
> if you are succesful in killing the process, then try to start tomcat.
> 
> -- 
> mr
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Centos-5-OS-not-releasing-memory-Tomcat6-tp23761076p23769904.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache, Tomcat, Mod_JK Configurations

2009-05-28 Thread Rainer Jung
On 28.05.2009 22:05, CrystalCracker wrote:
> The problem has always occured at the oddest hours for me to do a thread
> dump. I have done jmeter load test and tried to recreate the problem in
> test, but have never able. 
> I will upgrade to the latest version and then play with the connection
> timeouts.

You can also add a little script as a cron job, doing the three dumps
like twice an hour. So you have a chance to capture something, at least
if the problem lasts long enough.

Try to write a timestamp to catalina.out before calling the dumps, so
that you can reconstruct, which dump belongs to the observed problem.

BTW: If it always occurs at odd hours, then that already might be an
indication of the root cause, e.g. some backend system (database,
mainframe, whatever) or similar doing nightly maintenance.

Regards,

Rainer

> CrystalCracker wrote:
>> Apache 2.2
>> Tomcat 6
>> Mod_jk 1.2.21
>>
>> All of them are running on the same box.
>>
>> I have at any given time around 300 active sessions using the site, and
>> upto 450 at max. Each user on average logs on to the site for around 15
>> minutes, and the calls are usually big and slow database or web- service
>> calls to various backend systems. The session time out is 30 minutes, but
>> a few users stay logged in for hours.
>>
>> My Major settings are:
>>
>> //Apache httpd.conf
>> KeepAlive Off
>> Timeout 120
>>
>> 
>> StartServers   8
>> MinSpareServers5
>> MaxSpareServers   20
>> ServerLimit  512
>> MaxClients   512
>> MaxRequestsPerChild  4000
>> 
>>
>> //Tomcat server.xml
>> 
>> > maxThreads="512" minSpareThreads="5" maxSpareThreads="20"
>> />
>>
>>
>> //Modjk worker.properties
>> worker.node1.port=8009
>> worker.node1.host= localhost
>> worker.node1.type=ajp13
>> worker.node1.lbfactor=1
>>
>> All other settings are using default values.
>>
>> Everything is working fine, except that I see a huge spike in Apache
>> threads and Tomcat threads (all 512 threads are used) every few days, and
>> it becomes literally unresponive for 10-15 minutes. The no of requests is
>> as usual and Garbage collection and memory usage seems to be fine.
>> Sometimes it recovers itself, and but most of the time I end up restarting
>> the servers.
>>
>> Upon looking at the mod_jk logs I see a lot of the following, but there
>> are no errors on tomcat side:
>>
>> [Tue May 26 13:38:45 2009][30302:33088] [error]
>> ajp_get_reply::jk_ajp_common.c (1580): (node1) Tomcat is down or refused
>> connection. No response has been sent to the client (yet)
>> [Tue May 26 13:38:45 2009][30302:33088] [info] 
>> ajp_service::jk_ajp_common.c (1891): (node1) receiving from tomcat failed,
>> recoverable operation attempt=0
>> [Tue May 26 13:38:45 2009][30302:33088] [info] 
>> ajp_service::jk_ajp_common.c (1930): (node1) sending request to tomcat
>> failed,  recoverable operation attempt=1
>> [Tue May 26 13:38:46 2009][30305:33088] [error]
>> ajp_connection_tcp_get_message::jk_ajp_common.c (951): (node1) can't
>> receive the response message from tomcat, network problems or tomcat
>> (127.0.0.1:800
>> 9) is down (errno=104)
>> [Tue May 26 13:38:46 2009][30305:33088] [error]
>> ajp_get_reply::jk_ajp_common.c (1580): (node1) Tomcat is down or refused
>> connection. No response has been sent to the client (yet)
>> [Tue May 26 13:38:46 2009][30305:33088] [info] 
>> ajp_service::jk_ajp_common.c (1891): (node1) receiving from tomcat failed,
>> recoverable operation attempt=0
>>
>> Is my configuration suited for the kind of load I have? I think errno=104
>> means modjk thinks tomcat is down. Why would that happen? Any advices?
>>
>> Thanks a lot.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Service fails to start

2009-05-28 Thread cum.nex

Tomcat installed from apache-tomcat-6.0.18.exe in WXP SP2 + Java from
jre-6u13-windows-i586-p-s.exe.
Installation seem fine, but Tomcat service fails to start, giving the
following log:

[2009-05-28 22:13:14] [info] Procrun (2.0.4.0) started
[2009-05-28 22:13:14] [info] Running Service...
[2009-05-28 22:13:14] [info] Starting service...
[2009-05-28 22:13:14] [174  javajni.c] [error] Impossible to find the
specified module
[2009-05-28 22:13:14] [994  prunsrv.c] [error] Failed creating java
D:\Programmi\Java\jre6\bin\client\jvm.dll
[2009-05-28 22:13:14] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-05-28 22:13:14] [info] Run service finished.
[2009-05-28 22:13:14] [info] Procrun finished.

Thank you
-- 
View this message in context: 
http://www.nabble.com/Service-fails-to-start-tp23769675p23769675.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Debian Tomcat Fail

2009-05-28 Thread trojansnake12

Thanks Chris, I was really just messing around with some stuff to see if I
could get the page working at all, I was really unconcerned with the file
types I was using.  In the end, as I said, I got this thing working, my only
question now is the relative file pathing.  The
"../webapps/geosim/WEB-INF/classes/Project.java" does not work correctly. 
If I use "/var/tomcat6/webapps/geosim/WEB-INF/classes/Project.java",
however, that does work.  What is the default relative path starting point? 
I'd rather not use absolutes, and I'm sure I'm just making a dumb mistake.
-- 
View this message in context: 
http://www.nabble.com/Debian-Tomcat-Fail-tp23734947p23769264.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache, Tomcat, Mod_JK Configurations

2009-05-28 Thread CrystalCracker

The problem has always occured at the oddest hours for me to do a thread
dump. I have done jmeter load test and tried to recreate the problem in
test, but have never able. 
I will upgrade to the latest version and then play with the connection
timeouts.



CrystalCracker wrote:
> 
> Apache 2.2
> Tomcat 6
> Mod_jk 1.2.21
> 
> All of them are running on the same box.
> 
> I have at any given time around 300 active sessions using the site, and
> upto 450 at max. Each user on average logs on to the site for around 15
> minutes, and the calls are usually big and slow database or web- service
> calls to various backend systems. The session time out is 30 minutes, but
> a few users stay logged in for hours.
> 
> My Major settings are:
> 
> //Apache httpd.conf
> KeepAlive Off
> Timeout 120
> 
> 
> StartServers   8
> MinSpareServers5
> MaxSpareServers   20
> ServerLimit  512
> MaxClients   512
> MaxRequestsPerChild  4000
> 
> 
> //Tomcat server.xml
> 
>  maxThreads="512" minSpareThreads="5" maxSpareThreads="20"
> />
> 
> 
> //Modjk worker.properties
> worker.node1.port=8009
> worker.node1.host= localhost
> worker.node1.type=ajp13
> worker.node1.lbfactor=1
> 
> All other settings are using default values.
> 
> Everything is working fine, except that I see a huge spike in Apache
> threads and Tomcat threads (all 512 threads are used) every few days, and
> it becomes literally unresponive for 10-15 minutes. The no of requests is
> as usual and Garbage collection and memory usage seems to be fine.
> Sometimes it recovers itself, and but most of the time I end up restarting
> the servers.
> 
> Upon looking at the mod_jk logs I see a lot of the following, but there
> are no errors on tomcat side:
> 
> [Tue May 26 13:38:45 2009][30302:33088] [error]
> ajp_get_reply::jk_ajp_common.c (1580): (node1) Tomcat is down or refused
> connection. No response has been sent to the client (yet)
> [Tue May 26 13:38:45 2009][30302:33088] [info] 
> ajp_service::jk_ajp_common.c (1891): (node1) receiving from tomcat failed,
> recoverable operation attempt=0
> [Tue May 26 13:38:45 2009][30302:33088] [info] 
> ajp_service::jk_ajp_common.c (1930): (node1) sending request to tomcat
> failed,  recoverable operation attempt=1
> [Tue May 26 13:38:46 2009][30305:33088] [error]
> ajp_connection_tcp_get_message::jk_ajp_common.c (951): (node1) can't
> receive the response message from tomcat, network problems or tomcat
> (127.0.0.1:800
> 9) is down (errno=104)
> [Tue May 26 13:38:46 2009][30305:33088] [error]
> ajp_get_reply::jk_ajp_common.c (1580): (node1) Tomcat is down or refused
> connection. No response has been sent to the client (yet)
> [Tue May 26 13:38:46 2009][30305:33088] [info] 
> ajp_service::jk_ajp_common.c (1891): (node1) receiving from tomcat failed,
> recoverable operation attempt=0
> 
> Is my configuration suited for the kind of load I have? I think errno=104
> means modjk thinks tomcat is down. Why would that happen? Any advices?
> 
> Thanks a lot.
> 
> 
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apache%2C-Tomcat%2C-Mod_JK-Configurations-tp23751902p23769058.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread George Sexton
The issue is the default character set for Java. I've noticed that at 
least at one point in time, the default character set for Java running 
under windows was Windows-1252. Running under Linux it defaults to 
ISO-8859-1.


I'm sure the same issue is happening here. It's defaulting to 
Windows-1256 on Arabic windows, on another OS it's defaulting to 
ISO-8859-1 or perhaps ISO-8859-6.


I ran into these kind of issues when I called the various String to Byte 
Array functions, e.g. String.getBytes(). I was calling getBytes() and 
then using a hash function for the result and getting different results 
on different machines.


If you call java.nio.charset.Charset.defaultCharset().displayName(), you 
can see what it is.


Here's a reasonable discussion of some of the issues.

http://stackoverflow.com/questions/361975/setting-the-default-java-character-encoding

In short, there's no simple answer. You have to figure out step by step 
where things are going wrong, and then address those issues.


I would check:

1) Default Charset on each platform.
2) Charset the database is declared with
3) Charset of data coming in from db.
4) Charset of pages. Do the pages explicitly set the encoding to UTF-8?

André Warnier wrote:

Youssef Mohammed wrote:



I am not able to view Arabic data when tomcat application running on 
winodws 2003 server OR windows 2000 professional.
But I am surprised to see Arabic data when I run application on 
windows XP professional.



Hi.
My knowledge of java and Tomcat is limited, so I may be off-base here.
But I have also has occasional issues with Tomcat and non-US character 
sets on various Windows platforms.
Just for information, what is the basic Windows language version of 
the 3 Windows servers you are using ?
I mean, is for example the Windows XP system some arabic version, 
while the 2003 and 2000 servers are basic English/US-Windows ?


The reason for my question : when a Java JVM starts under Unix/Linux, 
it takes its language settings from the "locale" of the process it is 
starting under.
You can change these settings, by changing the locale of the process, 
then starting the JVM (and Tomcat e.g.).
For a Windows JVM however, there is no such "locale", and I've never 
quite figured out where the JVM takes its language settings (including 
the default charset).  I suppose it is from the Windows environment 
somewhere though.

I have a strong suspicion that your problem is in that area.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



--
George Sexton
MH Software, Inc.
Voice: +1 303 438 9585
URL:   http://www.mhsoftware.com/


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread Len Popp
On Thu, May 28, 2009 at 15:35, André Warnier  wrote:
> Hi.
> My knowledge of java and Tomcat is limited, so I may be off-base here.
> But I have also has occasional issues with Tomcat and non-US character sets
> on various Windows platforms.
> Just for information, what is the basic Windows language version of the 3
> Windows servers you are using ?
> I mean, is for example the Windows XP system some arabic version, while the
> 2003 and 2000 servers are basic English/US-Windows ?
>
> The reason for my question : when a Java JVM starts under Unix/Linux, it
> takes its language settings from the "locale" of the process it is starting
> under.
> You can change these settings, by changing the locale of the process, then
> starting the JVM (and Tomcat e.g.).
> For a Windows JVM however, there is no such "locale", and I've never quite
> figured out where the JVM takes its language settings (including the default
> charset).  I suppose it is from the Windows environment somewhere though.
> I have a strong suspicion that your problem is in that area.

You shouldn't need to mess with the Java locale. A webapp can handle
text in different languages/alphabets simultaneously, no matter what
the default settings are for the server OS or JVM.

I was able to get character encodings to work correctly on Windows XP
by following the recommendations in the FAQ that Mark pointed out
(http://wiki.apache.org/tomcat/FAQ/CharacterEncoding) and making sure
the database was storing text as UTF-8. But I haven't tried other
versions of Windows.
-- 
Len

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: how to convert struts based apps from tomcat4 to tomcat5.5?

2009-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maurizio,

On 5/28/2009 11:04 AM, Maurizio Rottin wrote:
> 2009/5/28 Caldarale, Charles R :
>> Your code may be dependent on a bug in 4.1 that was fixed in later Tomcat 
>> levels.
> 
> this can be the error!
> but i don't know if this is the right mailinglist to post the code
> that generate the error!
> May I put the code here? (i think it's very little and simple to read)

Sure. Post what you've got and we'll take a look.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoe698ACgkQ9CaO5/Lv0PDzZwCgrj//hHVOHAxHrq4sPF99VDOX
S3gAoLoyOXyBSmvg3sNJpt72Imalg0hP
=Pr1l
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Debian Tomcat Fail

2009-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

To whom it may concern,

On 5/26/2009 10:22 PM, trojansnake12 wrote:
> I am about at my wits' end here with Tomcat on Debian.

With one exception, I think all your problems are self-inflicted. Let's
see...

> I have an app called
> Project.java

...which isn't in a package, violating the servlet specification. Put
Project.java into a package (use "package foo.bar;" in your code) and
into a subdirectory of WEB-INF/classes (like /foo/bar).

> and all it should do is grab a file from the file system, and
> output that on the browser window.

Note that you are doing WAY more work than necessary.

> On my windows box, this works perfectly.

Okay, what is different about your configuration?

> I'm using jdk6 on the windows box, and gcj4.3 on the debian box.

I suspect you mean that you are using Sun's JDK on your Windows box?
GCJ, for whatever reason, is next to worthless for use with web
applications. I really don't understand it, since that project has been
around for a long time and even comes preinstalled on many GNU/Linux
distros.

Switch to a Sun JVM on your Debian install (which it looks like you've
already done) and I suspect you'll get better results.

> My other
> apps work fine, none of them working with ImageIO.  I will post the code for
> the servlet below here.

Maybe ImageIO is the problem? This is where Debian can actually fight
you: if you don't have the native library required for ImageIO
installed, your stuff won't work.

> The BOLDED line below is the one that, if uncommented, totally breaks my
> server.

This list doesn't allow HTML posts, so we're only seeing the text
version. I suspect the line you meant was:

>  ImageIO.write(bufi,"bmp",response.getOutputStream());

> Like, if I travel to the URL, I get a server connection error, and
> my entire Tomcat server shuts down.

Wow, really? Your JVM crashes? That sounds like a serious bug in GCJ
which you should report.

> Why the hell is this happening?

Did you get a stack trace in catalina.out when your server died? How
about any logging of any kind?

>   File myGifFile = new 
> File("../webapps/geosim/WEB-INF/images/test.jpg");
>   if(!myGifFile.exists())
>   return;

Note that it's not polite to return /nothing/. 200 OK is the default
response type, but obviously in your case the situation is /not/ OK.
Consider responding with a 404 or even a 500.

>   BufferedImage bufi = ImageIO.read(myGifFile);
>   response.setContentType("image/bmp"); 
>   ImageIO.write(bufi,"bmp",response.getOutputStream());

Ugh. Transcoding? Why not just convert the GIF -> BMP once and serve the
copy?

It seems you have everything working, now, after a JVM upgrade and a
Tomcat upgrade (to a "real" Tomcat). If you're motivated, please contact
the Debian folks and tell them that their stuff wasn't working.
Honestly, we'd like to stop telling Tomcat users to discard the
package-managed versions of Tomcat, but when they continue to fail we
have no choice. If you can help the Debian folks fix their packages,
then we will have fewer chances to complain about their packages :)

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoe618ACgkQ9CaO5/Lv0PDJdgCfbSuxkJI42eGQH7aXMsttskgT
c2AAoIa7hjdeITYToKQEh/N6d8WUhRxL
=4W5P
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread André Warnier

Youssef Mohammed wrote:




I am not able to view Arabic data when tomcat application running on winodws 
2003 server OR windows 2000 professional.
But I am surprised to see Arabic data when I run application on windows XP 
professional.



Hi.
My knowledge of java and Tomcat is limited, so I may be off-base here.
But I have also has occasional issues with Tomcat and non-US character 
sets on various Windows platforms.
Just for information, what is the basic Windows language version of the 
3 Windows servers you are using ?
I mean, is for example the Windows XP system some arabic version, while 
the 2003 and 2000 servers are basic English/US-Windows ?


The reason for my question : when a Java JVM starts under Unix/Linux, it 
takes its language settings from the "locale" of the process it is 
starting under.
You can change these settings, by changing the locale of the process, 
then starting the JVM (and Tomcat e.g.).
For a Windows JVM however, there is no such "locale", and I've never 
quite figured out where the JVM takes its language settings (including 
the default charset).  I suppose it is from the Windows environment 
somewhere though.

I have a strong suspicion that your problem is in that area.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Load balancer (proxy?) problem.

2009-05-28 Thread Bill Davidson

Rainer Jung wrote:

To simplify your research a little bit: you mentioned you switched
cookies off in order to use the jsessionid URL parameter to log the
session IDs.

If you keep cookies on, then you can also log the value of the
JSESSIONID cookie by using the %C syntax of Apache's CustomLog.

Look at

http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats

Something like %{JSESSIONID}C should work.

If you want to track, whether a new session cookie has been set (because
the old one was invalid), you can add e.g.

\"%{Set-Cookie}o\"
  


Thanks.  That will come in handy.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: NIO Connector: "Possible key leak"

2009-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Filip,

On 5/27/2009 10:03 AM, Filip Hanik - Dev Lists wrote:
> the warning would only print when a GC happens and there are some keys
> that haven't been cancelled but dereferenced.
> I will work on this, but it should not cause any problems since the keys
> will be cleaned out.

Good to know. I'm happy to re-test with any patches you may develop.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoe5z0ACgkQ9CaO5/Lv0PBjgwCfeja/u1sB7hnQwjuQc3W51h2P
qiIAoLI1bjCMSwPC1V0ZYxeM5pfo1hJJ
=/GvB
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Server can't load himself (without using localhost)

2009-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Giorgio,

On 5/27/2009 3:19 AM, Sibil87 wrote:
> I haven't touch default installation configuration.
> 
> So the engine is:
> 
> 
> 
> Should I change it to something else?

No! You should leave it the way it is.

David's suggestion that DNS (or a firewall/router) is somehow broken in
your network and so you can't properly connect. I would talk to a
network admin that knows about your network to figure out the problem.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoe5vEACgkQ9CaO5/Lv0PAy5ACdEoAg37n2f2H8tb5OE/Yxei15
sVkAn07ww83vwgXbOxdOUQQ/SKRMagat
=7cQW
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP/HTTPS sessions

2009-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vikrant,

On 5/27/2009 12:48 AM, Jain, Vikrant wrote:
> In my application HttpSession is getting created on a SSL Login page,
> subsequently it redirects to HTTP page, but the HTTPS session is lost.
> 
> How do I maintain the same HttpSession across the HTTP and HTTPS Urls?  

This question has been answered on this list before several times,
occasionally by me. Check the archives for secure cookies, https, etc.
and see what's already been said. What's important to understand is that
there's no magic "make it work" setting in Tomcat: you have to code
around the problem yourself.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoe5n0ACgkQ9CaO5/Lv0PB1zACcDVKZzfUqUjmbfVkfPlnXkY4C
6/8AoK+ohxBO/lQUKliI/HJQCp5fba3i
=BRT4
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Has anyone created a WSDL for the Manager Application

2009-05-28 Thread André Warnier

Martin Gainty wrote:

Andre

could you explain how mod_perl would handle routing capability to pass to tc 
instances?..could mod_perl accomplish the functionality of a load-balancer?


It certainly could, but you don't have to go that far.
A mod_perl module could handle the original request (be it SOAP or REST 
or whatever), then issue calls to whatever number of back-end Tomcats 
using whatever interface /they/ provide.  There is no question of 
load-balancing here, you have to issue the requests to the back-end 
Tomcats sequentially, as far as I understand.
Basically in this case, the mod_perl module could just issue Apache 
internal sub-requests, and let the normal Apache and connector 
mechanisms handle the details of the communication with Tomcat.


If you don't know mod_perl, think of it this way : it is just a 
convenient perl API to the core Apache functionality. You can use it to 
write add-on modules that intervene at each individual step of the 
Apache request processing cycle, or not, as you wish.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread Martin Gainty


ssi
*.html
change to 

ssi
*.shtml

change the name of your input file.html to file.shtml


>  
> 
> 
> 
> Login
> 
> 
> 
> function directSubmit(_form,value)
> {
>if (value == "Login")_form.action = "/XYZ/login"
> else _form.action = "../XYZ/getnewlogin"
>return true
> }
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> cellpadding="0">
>   
>  size="5">
>   Login
>   
>   
>   
>   
>   
>  Please
> enter your username and password.
>   
>   
>  
>   
>   
>  
>  cellspacing="0">
>
>   
>   cellspacing="0">
> 
>
>   
>  
> 
> 
>User
>Identification:  
> 
> name="loginname" maxlength=20 size=20 >
>  
>  
>  width="116">PIN/Password:
> 
> size="3" color="black">
>  maxlength=10 size=10>
>   
>    onClick="'PasswordReset','scrollbars=yes,resizable=yes,width=535,height=240')">Forgot
> your password? 
>     
>  
>   
>
> 
>  
>   
>
> 
>   
> 
> 
>   
>   
>   
>
>
> 
> 
> 
> 
> 
> cellpadding="0">
>   
>   size="5">Login
>   
>   
>   
>   
>   
>  
>
>   Sorry... we could not determine your User Identification.
>
> 
>
>  ?/?
>
>
>   
>   
>   
>   
>
> 
> 
> 

Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 28 May 2009 14:35:41 -0400
> Subject: Re: HELP ME PLEASE--->first login page SSI is not
> getting enabled
> From: email2jo...@gmail.com
> To: users@tomcat.apache.org
> 
> *web.xml:*
> 
>  
>   ABC
>   com.abc.servlet.MyServlet
>   
>abc.dir
>path/config
>   
>   
>abc.props
>xyz.props
>   
>   
>abc.log
>xyz.log
>   
>   1
>   
> 
>   
>   ABC
>  /XYZ/login
> 
>   
> 
> 
>   
> DataBase 
>jdbc/my jdbc
>javax.sql.DataSource
>Container
> 
> 
>   
> com/xyz/abc/servlet/login.html
> 
> 
> 
> 
> ssi
> 
>   org.apache.catalina.ssi.SSIServlet
> 
> 
>   buffered
>   1
> 
> 
>   debug
>   0
> 
> 
>   expires
>   666
> 
> 
>   isVirtualWebappRelative
>   0
> 
> 4
> 
> 
> 
> ssi
> *.html
> 
> 
> 
> 
> *context.xml:*
> 
> 
> 
> 
> *html page:*
> **
>  
> 
> 
> 
> Login
> 
> 
> 
> function directSubmit(_form,value)
> {
>if (value == "Login")_form.action = "/XYZ/login"
> else _form.action = "../XYZ/getnewlogin"
>return true
> }
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> cellpadding="0">
>   
>  size="5"

Re: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
*web.xml:*

 
  ABC
  com.abc.servlet.MyServlet
  
   abc.dir
   path/config
  
  
   abc.props
   xyz.props
  
  
   abc.log
   xyz.log
  
  1
  

  
  ABC
 /XYZ/login

  


  
DataBase 
   jdbc/my jdbc
   javax.sql.DataSource
   Container


  
com/xyz/abc/servlet/login.html




ssi

  org.apache.catalina.ssi.SSIServlet


  buffered
  1


  debug
  0


  expires
  666


  isVirtualWebappRelative
  0

4



ssi
*.html




*context.xml:*




*html page:*
**
 



Login



function directSubmit(_form,value)
{
   if (value == "Login")_form.action = "/XYZ/login"
else _form.action = "../XYZ/getnewlogin"
   return true
}













   
  

  Login
  
  
  
  
  
 Please
enter your username and password.
  
  
 
  
  
 

   
  
 

   
  
 


   User
   Identification:  

   
 
 
PIN/Password:

   

  
  Forgot
your password? 
    
 
  
   

 
  
   

  


  
  
  
   
   
    




   
  
 Login
  
  
  
  
  
 
   
  Sorry... we could not determine your User Identification.
   

   
 ?/?
   
   
  
  
  
  
   





RE: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread Martin Gainty

dealing with partial questions and answers is problematic so could you
1)post your web.xml (i did'nt get the last iteration)
2)post any relevant jsp (even if it is only index.jsp)
3)post any context.xml

NOTA BENE: All mappings for SSI code should not have * or whitespace characters 
e.g.
web.xml contents:

 ssi
 org.apache.catalina.ssi.SSIServlet


 buffered
 1


  debug
  0


 expires
 666


 isVirtualWebappRelative
 0
 
 4


thanks,
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 28 May 2009 13:41:53 -0400
> Subject: Re: HELP ME PLEASE--->first login page SSI is not
> getting enabled
> From: email2jo...@gmail.com
> To: users@tomcat.apache.org
> 
> I also included that jar file in the lib, but still I am getting same error.
> 
> 2009/5/28 Martin Gainty 
> 
> >
> > ... i was following TC SSI 5.5 doc..
> >
> > the TC6 SSIServlet classes are now in $CATALINA_HOME/lib/catalina.jar
> >
> > Martin Gainty
> > __
> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> >
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> > dient lediglich dem Austausch von Informationen und entfaltet keine
> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> > de ceci est interdite. Ce message sert à l'information seulement et n'aura
> > pas n'importe quel effet légalement obligatoire. Étant donné que les email
> > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> > aucune responsabilité pour le contenu fourni.
> >
> >
> >
> >
> > > Date: Thu, 28 May 2009 11:22:34 -0400
> >  > Subject: Re: HELP ME PLEASE--->first login page SSI is
> > notgetting enabled
> > > From: email2jo...@gmail.com
> > > To: users@tomcat.apache.org
> > >
> > > Actually in the tomcat 6.0, i did not even find this
> > > servlets-ssi.renametojar file and also in the documentation of tomcat 6 ,
> > > they did not even mention about the jar file.
> > > whether I also need to change all the *.html to .shtml files..*
> > >
> > > **
> > >
> > >
> > >
> > > 2009/5/28 Martin Gainty 
> > >
> > > >
> > > > enable the see servlet-mapping in your web.xml
> > > >
> > > >
> > > >ssi
> > > >*.shtml
> > > >
> > > >
> > > > 
> > > > (mv/rename)  $CATALINA_HOME/server/lib/servlets-ssi.renametojar file
> > > >  $CATALINA_HOME/server/lib/servlets-ssi.jar
> > > >
> > > > please read directive syntax (config,echo,include) directive
> > information
> > > > displayed at
> > > > http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html
> > > >
> > > > //for example this directive will insert contents of file-name
> > > > #include virtual="file-name"
> > > >
> > > > hth
> > > > Martin Gainty
> > > > __
> > > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
> > confidentialité
> > > >
> > > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> > unbefugte
> > > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
> > Nachricht
> > > > dient lediglich dem Austausch von Informationen und entfaltet keine
> > > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
> > le
> > > > destinataire prévu, nous te 

RE: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread Caldarale, Charles R
> From: john S [mailto:email2jo...@gmail.com]
> Subject: Re: HELP ME PLEASE--->first login page SSI is
> not getting enabled
> 
> I also included that jar file in the lib

What do you mean by that?  You must not copy or move Tomcat-supplied jars to 
any other locations.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Windows x64 Installer

2009-05-28 Thread Caldarale, Charles R
> From: Mladen Turk [mailto:mt...@apache.org]
> Subject: Re: Windows x64 Installer
> 
> You've beet me by a millisecond ;)

Yeah, but that's 300 km for an electron...

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
I also included that jar file in the lib, but still I am getting same error.

2009/5/28 Martin Gainty 

>
> ... i was following TC SSI 5.5 doc..
>
> the TC6 SSIServlet classes are now in $CATALINA_HOME/lib/catalina.jar
>
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
> > Date: Thu, 28 May 2009 11:22:34 -0400
>  > Subject: Re: HELP ME PLEASE--->first login page SSI is
> notgetting enabled
> > From: email2jo...@gmail.com
> > To: users@tomcat.apache.org
> >
> > Actually in the tomcat 6.0, i did not even find this
> > servlets-ssi.renametojar file and also in the documentation of tomcat 6 ,
> > they did not even mention about the jar file.
> > whether I also need to change all the *.html to .shtml files..*
> >
> > **
> >
> >
> >
> > 2009/5/28 Martin Gainty 
> >
> > >
> > > enable the see servlet-mapping in your web.xml
> > >
> > >
> > >ssi
> > >*.shtml
> > >
> > >
> > > 
> > > (mv/rename)  $CATALINA_HOME/server/lib/servlets-ssi.renametojar file
> > >  $CATALINA_HOME/server/lib/servlets-ssi.jar
> > >
> > > please read directive syntax (config,echo,include) directive
> information
> > > displayed at
> > > http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html
> > >
> > > //for example this directive will insert contents of file-name
> > > #include virtual="file-name"
> > >
> > > hth
> > > Martin Gainty
> > > __
> > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
> confidentialité
> > >
> > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte
> > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
> Nachricht
> > > dient lediglich dem Austausch von Informationen und entfaltet keine
> > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
> le
> > > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie
> > > de ceci est interdite. Ce message sert à l'information seulement et
> n'aura
> > > pas n'importe quel effet légalement obligatoire. Étant donné que les
> email
> > > peuvent facilement être sujets à la manipulation, nous ne pouvons
> accepter
> > > aucune responsabilité pour le contenu fourni.
> > >
> > >
> > >
> > >
> > > > Date: Thu, 28 May 2009 10:48:56 -0400
> > > > Subject: Re: HELP ME PLEASE--->first login page SSI
> is
> > > notgetting enabled
> > >  > From: email2jo...@gmail.com
> > > > To: users@tomcat.apache.org
> > > >
> > > > Thanks for your response ..I m doing it through the servlet.
> > > >
> > > > *WEB.XML:*
> > > >
> > > >
> > > >   
> > > >   ABC
> > > >   com.abc.servlet.MyServlet
> > > >   
> > > >abc.dir
> > > >path/config
> > > >   
> > > >   
> > > >abc.props
> > > >xyz.props
> > > >   
> > > >   
> > > >abc.log
> > > >xyz.log
> > > >   
> > > >   1
> > > >   
> > > >
> > > >   
> > > >   ABC
> > > >  */XYZ/login
> > > > *
> > > >   
> > > >
> > > >
> > > >   
> > > > DataBase 
> > > >jdbc/my jdbc
> > > >javax.sql.DataSource
> > > >Container
> > > > 
> > > >
> > > >   
> > > > *com/xyz/abc/servlet/login.html*
> > > > 
> > > >
> > > >
> > > > 
> > > > ssi
> > > >* 
> > > >   org.apache.catalina.ssi.SSIServlet
> > > > 
> > > > *
> > > >   buffered
> > > >   1
> > > > 
> > > > 
> > > >   debug
> > > >   0
> > > > 
> > > > 
> > > >   expires
> > > >   666
> > > > 
> > > > 
> > > >   isVirtualWebappRelative
> > > >   0
> > > > 
> > > > 4
> > > > 
> > > >
> 

Re: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
I also included that jar file in the lib, but still I am getting same error.



2009/5/28 Martin Gainty 

>
> ... i was following TC SSI 5.5 doc..
>
> the TC6 SSIServlet classes are now in $CATALINA_HOME/lib/catalina.jar
>
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
> > Date: Thu, 28 May 2009 11:22:34 -0400
>  > Subject: Re: HELP ME PLEASE--->first login page SSI is
> notgetting enabled
> > From: email2jo...@gmail.com
> > To: users@tomcat.apache.org
> >
> > Actually in the tomcat 6.0, i did not even find this
> > servlets-ssi.renametojar file and also in the documentation of tomcat 6 ,
> > they did not even mention about the jar file.
> > whether I also need to change all the *.html to .shtml files..*
> >
> > **
> >
> >
> >
> > 2009/5/28 Martin Gainty 
> >
> > >
> > > enable the see servlet-mapping in your web.xml
> > >
> > >
> > >ssi
> > >*.shtml
> > >
> > >
> > > 
> > > (mv/rename)  $CATALINA_HOME/server/lib/servlets-ssi.renametojar file
> > >  $CATALINA_HOME/server/lib/servlets-ssi.jar
> > >
> > > please read directive syntax (config,echo,include) directive
> information
> > > displayed at
> > > http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html
> > >
> > > //for example this directive will insert contents of file-name
> > > #include virtual="file-name"
> > >
> > > hth
> > > Martin Gainty
> > > __
> > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
> confidentialité
> > >
> > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte
> > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
> Nachricht
> > > dient lediglich dem Austausch von Informationen und entfaltet keine
> > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
> le
> > > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie
> > > de ceci est interdite. Ce message sert à l'information seulement et
> n'aura
> > > pas n'importe quel effet légalement obligatoire. Étant donné que les
> email
> > > peuvent facilement être sujets à la manipulation, nous ne pouvons
> accepter
> > > aucune responsabilité pour le contenu fourni.
> > >
> > >
> > >
> > >
> > > > Date: Thu, 28 May 2009 10:48:56 -0400
> > > > Subject: Re: HELP ME PLEASE--->first login page SSI
> is
> > > notgetting enabled
> > >  > From: email2jo...@gmail.com
> > > > To: users@tomcat.apache.org
> > > >
> > > > Thanks for your response ..I m doing it through the servlet.
> > > >
> > > > *WEB.XML:*
> > > >
> > > >
> > > >   
> > > >   ABC
> > > >   com.abc.servlet.MyServlet
> > > >   
> > > >abc.dir
> > > >path/config
> > > >   
> > > >   
> > > >abc.props
> > > >xyz.props
> > > >   
> > > >   
> > > >abc.log
> > > >xyz.log
> > > >   
> > > >   1
> > > >   
> > > >
> > > >   
> > > >   ABC
> > > >  */XYZ/login
> > > > *
> > > >   
> > > >
> > > >
> > > >   
> > > > DataBase 
> > > >jdbc/my jdbc
> > > >javax.sql.DataSource
> > > >Container
> > > > 
> > > >
> > > >   
> > > > *com/xyz/abc/servlet/login.html*
> > > > 
> > > >
> > > >
> > > > 
> > > > ssi
> > > >* 
> > > >   org.apache.catalina.ssi.SSIServlet
> > > > 
> > > > *
> > > >   buffered
> > > >   1
> > > > 
> > > > 
> > > >   debug
> > > >   0
> > > > 
> > > > 
> > > >   expires
> > > >   666
> > > > 
> > > > 
> > > >   isVirtualWebappRelative
> > > >   0
> > > > 
> > > > 4
> > > > 
> > > >

Re: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
Thanks for your all responses.

The main thing is when i click login button ie., *onclick* function in html,
the controller class is going to get path informtaion ie..*getPathInfo*() in
Controller class and is going to check with LDAP settings and pass to the
index.html(home page).
but when i m clicking login button in html,its saying
*"/XYZ/login".--->
Not found error 404.*
**
*Actually in all my html pages I got  SSI , so i m enabling all .html pages.
*
**
*Also i tried my changing com/xyz/abc/servlet/login.html to login.html but
still the same error.*
**
Can any one tell me how can i pass the URL request to match the URL pattern
*/XYZ/login*.

===
class AuthController extends Controller
{
*protected HttpResponse service()*
*throws ControllerException*
{
Object localObject2;
Object localObject3;
String str = super.getPathInfo();
Session localSession = super.getSession();
Parameters localParameters = super.getParameters();


*if (str.equals("/XYZ/login")) {*
localObject1 = localSession.getUser();
if (localObject1 == null) {
localObject2 = localParameters.get("loginname");
if ((localObject2 == null) || (((String)localObject2).length() == 0)) {
return super.getMessageResponse(new StringSpec("servlet|login.missing"),
true, true, false);
}
}

Actually I dont have the source code for this...but these are the decompiled
version.

public abstract class *Controller*

{
protected final String *getPathInfo*()
{
return this.m_pathInfo;
}

*public HtmlResponse getMessageResponse*(StringSpec paramStringSpec, boolean
paramBoolean1, boolean paramBoolean2, boolean paramBoolean3)
{
  Locale localLocale = null;
  try { localLocale = Controller.access$0(Controller.this).getLocale();
} catch (DBHandlerException localDBHandlerException) {
  }
  return Controller.this.m_im.getMessageResponse(paramStringSpec,
paramBoolean1, paramBoolean2, paramBoolean3, localLocale);
}

}


RE: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread Martin Gainty

... i was following TC SSI 5.5 doc..

the TC6 SSIServlet classes are now in $CATALINA_HOME/lib/catalina.jar

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 28 May 2009 11:22:34 -0400
> Subject: Re: HELP ME PLEASE--->first login page SSI is not
> getting enabled
> From: email2jo...@gmail.com
> To: users@tomcat.apache.org
> 
> Actually in the tomcat 6.0, i did not even find this
> servlets-ssi.renametojar file and also in the documentation of tomcat 6 ,
> they did not even mention about the jar file.
> whether I also need to change all the *.html to .shtml files..*
> 
> **
> 
> 
> 
> 2009/5/28 Martin Gainty 
> 
> >
> > enable the see servlet-mapping in your web.xml
> >
> >
> >ssi
> >*.shtml
> >
> >
> > 
> > (mv/rename)  $CATALINA_HOME/server/lib/servlets-ssi.renametojar file
> >  $CATALINA_HOME/server/lib/servlets-ssi.jar
> >
> > please read directive syntax (config,echo,include) directive information
> > displayed at
> > http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html
> >
> > //for example this directive will insert contents of file-name
> > #include virtual="file-name"
> >
> > hth
> > Martin Gainty
> > __
> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> >
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> > dient lediglich dem Austausch von Informationen und entfaltet keine
> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> > de ceci est interdite. Ce message sert à l'information seulement et n'aura
> > pas n'importe quel effet légalement obligatoire. Étant donné que les email
> > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> > aucune responsabilité pour le contenu fourni.
> >
> >
> >
> >
> > > Date: Thu, 28 May 2009 10:48:56 -0400
> > > Subject: Re: HELP ME PLEASE--->first login page SSI is
> > notgetting enabled
> >  > From: email2jo...@gmail.com
> > > To: users@tomcat.apache.org
> > >
> > > Thanks for your response ..I m doing it through the servlet.
> > >
> > > *WEB.XML:*
> > >
> > >
> > >   
> > >   ABC
> > >   com.abc.servlet.MyServlet
> > >   
> > >abc.dir
> > >path/config
> > >   
> > >   
> > >abc.props
> > >xyz.props
> > >   
> > >   
> > >abc.log
> > >xyz.log
> > >   
> > >   1
> > >   
> > >
> > >   
> > >   ABC
> > >  */XYZ/login
> > > *
> > >   
> > >
> > >
> > >   
> > > DataBase 
> > >jdbc/my jdbc
> > >javax.sql.DataSource
> > >Container
> > > 
> > >
> > >   
> > > *com/xyz/abc/servlet/login.html*
> > > 
> > >
> > >
> > > 
> > > ssi
> > >* 
> > >   org.apache.catalina.ssi.SSIServlet
> > > 
> > > *
> > >   buffered
> > >   1
> > > 
> > > 
> > >   debug
> > >   0
> > > 
> > > 
> > >   expires
> > >   666
> > > 
> > > 
> > >   isVirtualWebappRelative
> > >   0
> > > 
> > > 4
> > > 
> > >
> > > 
> > > ssi
> > > *.html
> > > 
> > >
> > >
> > > 
> > >
> > > Thanks
> > >
> > > 2009/5/28 Martin Gainty 
> > >
> > > >
> > > > are you implementing SSI via SSIServlet or SSIFilter?
> > > > please display web.xml
> > > >
> > > > Martin
> > > > __
> > > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
> > confidentialité
> 

Re: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
Thanks for your all responses.

The main thing is when i click login button iee., onclick function in html,
the controller class is going to get path informtaion ie..getPathInfo() in
Controller class and is going to check with LDAP settings and pass to the
index.html(home page).

but when i m clicking login button in html,its saying
*"/XYZ/login".--->
Not found error 404.*

Can any one tell me how can i pass the URL request to match the URL pattern
/XYZ/login

===
*

class* AuthController *extends* Controller

{

*protected* HttpResponse service()

*throws* ControllerException

{

Object localObject2;

Object localObject3;

String str = *super*.getPathInfo();

Session localSession = *super*.getSession();

Parameters localParameters = *super*.getParameters();
*

if* (str.equals("/XYZ/login")) {

localObject1 = localSession.getUser();

*if* (localObject1 == *null*) {

localObject2 = localParameters.get("loginname");

*if* ((localObject2 == *null*) || (((String)localObject2).length() == 0)) {

*return* *super*.getMessageResponse(*new* StringSpec("servlet|login.missing"),
*true*, *true*, *false*);

}

}


*

public* *abstract* *class* Controller

*implements* IClickConstants

{

*protected* *final* String getPathInfo()

{

*return* *this*.m_pathInfo;

}

}


Re: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
*

Thanks for your all responses.

The main thing is when i click login button iee., onclick function in html,
the controller class is going to get path informtaion ie..*getPathInfo() in
Controller class and is going to check with LDAP settings and pass to the
index.html(home page).

but when i m clicking login button in html,its saying
*"/XYZ/login".--->
Not found error 404.*

Can any one tell me how can i pass the URL request to match the URL pattern
/XYZ/login

===
*

class* AuthController *extends* Controller

{

*protected* HttpResponse service()

*throws* ControllerException

{

Object localObject2;

Object localObject3;

String str = *super*.getPathInfo();

Session localSession = *super*.getSession();

Parameters localParameters = *super*.getParameters();
*

if* (str.equals("/XYZ/login")) {

localObject1 = localSession.getUser();

*if* (localObject1 == *null*) {

localObject2 = localParameters.get("loginname");

*if* ((localObject2 == *null*) || (((String)localObject2).length() == 0)) {

*return* *super*.getMessageResponse(*new* StringSpec("servlet|login.missing"),
*true*, *true*, *false*);

}

}


*

public* *abstract* *class* Controller

*implements* IClickConstants

{

*protected* *final* String getPathInfo()

{

*return* *this*.m_pathInfo;

}

}


Re: Windows x64 Installer

2009-05-28 Thread Mladen Turk

Caldarale, Charles R wrote:

From: Debbie Shapiro [mailto:dshap...@cardiacscience.com]
Subject: RE: Windows x64 Installer

I just did the 64-bit windows installation for Tomcat 6, but I was not
aware that there is a tcnative-1.dll that needed to be replaced. Where
do I find the 64-bit version of this file?


http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.16/binaries/win64/x64/



You've beet me by a millisecond ;)


You don't "need" the APR .dll, but it will likely improve performance, 
especially if using SSL.  Note that if you choose to use it, the SSL config is completely 
different for APR.



The tcnative-1.dll starting from 1.1.15 has apr and OpenSSL 0.9.8i
statically compiled in, so that's all you'll need.
We couldn't ship that earlier because of US crypto law restrictions.
(http://www.apache.org/dev/crypto.html)

And of course, there is no performance difference whatsoever.

Regards
--
^(TM)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread Caldarale, Charles R
> From: john S [mailto:email2jo...@gmail.com]
> Subject: Re: HELP ME PLEASE--->first login page SSI is
> not getting enabled
> 
>   
>   ABC
>  */XYZ/login*
>   

What do you expect the above mapping to do?  As you have it, the ABC servlet 
will only be invoked for the URL http://myhost[:port]/myapp/XYZ/login

Is that what you want?

>   
> *com/xyz/abc/servlet/login.html*
> 

The above is wrong; it should be just login.html, not the full path.

> 
> ssi
> *.html
> 

The above will cause the SSI servlet to be called for *every* HTML page on your 
web site; do you think that's desirable?

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread Caldarale, Charles R
> From: john S [mailto:email2jo...@gmail.com]
> Subject: Re: HELP ME PLEASE--->first login page SSI is
> not getting enabled
> 
> whether I also need to change all the *.html to .shtml files.*

If you're willing to suffer the overhead of running every HTML file through the 
SSI servlet, you can leave the mapping as you have it.  Most sites do 
differentiate between pure HTML and HTML with SSI by using the .shtml suffix.  
It's up to you how you want to do it.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Windows x64 Installer

2009-05-28 Thread Mladen Turk

Debbie Shapiro wrote:

I just did the 64-bit windows installation for Tomcat 6, but I was not
aware that there is a tcnative-1.dll that needed to be replaced. Where
do I find the 64-bit version of this file? Or is that just for Tomcat 5?


The regular place. tcnative-1 is the same for all Tomcat versions.
http://www.apache.org/dist/tomcat/tomcat-connectors/native/1.1.16/binaries/

Regards
--
^(TM)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Windows x64 Installer

2009-05-28 Thread Caldarale, Charles R
> From: Debbie Shapiro [mailto:dshap...@cardiacscience.com]
> Subject: RE: Windows x64 Installer
> 
> I just did the 64-bit windows installation for Tomcat 6, but I was not
> aware that there is a tcnative-1.dll that needed to be replaced. Where
> do I find the 64-bit version of this file?

http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.16/binaries/win64/x64/

You don't "need" the APR .dll, but it will likely improve performance, 
especially if using SSL.  Note that if you choose to use it, the SSL config is 
completely different for APR.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com]
> Subject: RE: HELP ME PLEASE--->first login page SSI is
> not getting enabled
> 
> enable the see servlet-mapping in your web.xml
> 
> 
> ssi
> *.shtml
> 

The OP clearly already enabled appropriate servlet mapping, using *.html; this 
will work, but it means that every .html page will be run through the SSI 
servlet, which can be expensive.

> 
> (mv/rename)  $CATALINA_HOME/server/lib/servlets-ssi.renametojar file
>  $CATALINA_HOME/server/lib/servlets-ssi.jar

The OP is using Tomcat 6, so the above doesn't apply and should not have been 
mentioned.

> please read directive syntax (config,echo,include) directive
> information displayed at
> http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html

Again, the OP is using Tomcat 6, so don't point him to doc for 5.5.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: MaxPermSize, Tomcat startup trouble

2009-05-28 Thread Jeffrey Janner
-XX:MaxPermSize=128m

Since it's an XX option, you need to verify that it is available with
your version of Java.

Jeff

-Original Message-
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] 
Sent: Thursday, May 28, 2009 10:58 AM
To: Tomcat Users List
Subject: RE: MaxPermSize, Tomcat startup trouble

I know I increased the PermGen size.  I'll see if I can find it --
later.
The max -Xmx was specifically meant for Windows 32-bit.  Sorry that I
wasn't clear.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Thursday, May 28, 2009 9:09 AM
To: Tomcat Users List
Subject: RE: MaxPermSize, Tomcat startup trouble

> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
> Subject: RE: MaxPermSize, Tomcat startup trouble
> 
> I believe there are some java options that control how the memory is
> divided between the different generations.

Not for PermGen - its size is controlled explicitly.  It's not really a
"generation" in proper GC terminology - nothing ever migrates into it.

> I seem to remember a ratio option that you could look into.

That's only for young vs old generations.

> Also, the maximum memory size you can supply to -Xmx is 1536M

That's platform and architecture dependant; there's no single value that
will work everywhere.  The next service pack will change it.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



***  NOTICE
*
This message is intended for the use of the individual or entity to
which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient,

you are hereby notified that any dissemination, distribution, or copying

of this communication is strictly prohibited.  If you have received this

communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



***  NOTICE  *
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Windows x64 Installer

2009-05-28 Thread Jeffrey Janner
To be honest, I forgot where I got it from.
Somewhere in the Apache.org FTP site.  It's in the normal place you
would get the latest version.
I think I found it using Google.
You only need it if you are running with (i.e. installed) the Native
Library support.
Otherwise, you can ignore it.

-Original Message-
From: Debbie Shapiro [mailto:dshap...@cardiacscience.com] 
Sent: Thursday, May 28, 2009 10:32 AM
To: users@tomcat.apache.org
Subject: RE: Windows x64 Installer

I just did the 64-bit windows installation for Tomcat 6, but I was not
aware that there is a tcnative-1.dll that needed to be replaced. Where
do I find the 64-bit version of this file? Or is that just for Tomcat 5?

I'm not that terribly familiar with the inner workings of Tomcat, so
this is all new to me.

Debbie Shapiro, Data Warehouse Manager
Office: 425.402.2233 
-Original Message-
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] 
Sent: Wednesday, May 27, 2009 1:44 PM
To: users@tomcat.apache.org
Subject: Windows x64 Installer

Would anyone like to tackle & post an installer for 64-bit Windows?
The current installer is 32-bit only.
I know that it is fairly simple to convert an installed 32-bit Tomcat to
64-bit:

1) Install a 64-bit Java.
2) Download the 64-bit Procrun executable and replace Tomcat5.exe &
Tomcat5w.exe with them.
3) Download the 64-bit version of the tcnative-1.dll file and replace
the existing version.
4) Run the Tomcat5.exe in Install mode to install the 64-bit version,
making sure to point
   to the 64-bit Java, etc.
   (still puts Procrun info under the HKLM\Software\Wow6432Node folder
in the registry.
It should be up a level for a 64-bit process, no?  Still works
apparently.)

However, if whomever maintains the NullSoft binary installer could
create a version that
distributes the 64-bit files, that would make like much easier out here
in the field.
(both 5.5 and 6.x please?)

Jeff Janner 


***  NOTICE
*
This message is intended for the use of the individual or entity to
which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient,

you are hereby notified that any dissemination, distribution, or copying

of this communication is strictly prohibited.  If you have received this

communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



***  NOTICE  *
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: MaxPermSize, Tomcat startup trouble

2009-05-28 Thread Jeffrey Janner
I know I increased the PermGen size.  I'll see if I can find it --
later.
The max -Xmx was specifically meant for Windows 32-bit.  Sorry that I
wasn't clear.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Thursday, May 28, 2009 9:09 AM
To: Tomcat Users List
Subject: RE: MaxPermSize, Tomcat startup trouble

> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
> Subject: RE: MaxPermSize, Tomcat startup trouble
> 
> I believe there are some java options that control how the memory is
> divided between the different generations.

Not for PermGen - its size is controlled explicitly.  It's not really a
"generation" in proper GC terminology - nothing ever migrates into it.

> I seem to remember a ratio option that you could look into.

That's only for young vs old generations.

> Also, the maximum memory size you can supply to -Xmx is 1536M

That's platform and architecture dependant; there's no single value that
will work everywhere.  The next service pack will change it.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



***  NOTICE  *
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Windows x64 Installer

2009-05-28 Thread Debbie Shapiro
I just did the 64-bit windows installation for Tomcat 6, but I was not
aware that there is a tcnative-1.dll that needed to be replaced. Where
do I find the 64-bit version of this file? Or is that just for Tomcat 5?

I'm not that terribly familiar with the inner workings of Tomcat, so
this is all new to me.

Debbie Shapiro, Data Warehouse Manager
Office: 425.402.2233 
-Original Message-
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] 
Sent: Wednesday, May 27, 2009 1:44 PM
To: users@tomcat.apache.org
Subject: Windows x64 Installer

Would anyone like to tackle & post an installer for 64-bit Windows?
The current installer is 32-bit only.
I know that it is fairly simple to convert an installed 32-bit Tomcat to
64-bit:

1) Install a 64-bit Java.
2) Download the 64-bit Procrun executable and replace Tomcat5.exe &
Tomcat5w.exe with them.
3) Download the 64-bit version of the tcnative-1.dll file and replace
the existing version.
4) Run the Tomcat5.exe in Install mode to install the 64-bit version,
making sure to point
   to the 64-bit Java, etc.
   (still puts Procrun info under the HKLM\Software\Wow6432Node folder
in the registry.
It should be up a level for a 64-bit process, no?  Still works
apparently.)

However, if whomever maintains the NullSoft binary installer could
create a version that
distributes the 64-bit files, that would make like much easier out here
in the field.
(both 5.5 and 6.x please?)

Jeff Janner 


***  NOTICE
*
This message is intended for the use of the individual or entity to
which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient,

you are hereby notified that any dissemination, distribution, or copying

of this communication is strictly prohibited.  If you have received this

communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
Actually in the tomcat 6.0, i did not even find this
servlets-ssi.renametojar file and also in the documentation of tomcat 6 ,
they did not even mention about the jar file.
whether I also need to change all the *.html to .shtml files..*

**



2009/5/28 Martin Gainty 

>
> enable the see servlet-mapping in your web.xml
>
>
>ssi
>*.shtml
>
>
> 
> (mv/rename)  $CATALINA_HOME/server/lib/servlets-ssi.renametojar file
>  $CATALINA_HOME/server/lib/servlets-ssi.jar
>
> please read directive syntax (config,echo,include) directive information
> displayed at
> http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html
>
> //for example this directive will insert contents of file-name
> #include virtual="file-name"
>
> hth
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
> > Date: Thu, 28 May 2009 10:48:56 -0400
> > Subject: Re: HELP ME PLEASE--->first login page SSI is
> notgetting enabled
>  > From: email2jo...@gmail.com
> > To: users@tomcat.apache.org
> >
> > Thanks for your response ..I m doing it through the servlet.
> >
> > *WEB.XML:*
> >
> >
> >   
> >   ABC
> >   com.abc.servlet.MyServlet
> >   
> >abc.dir
> >path/config
> >   
> >   
> >abc.props
> >xyz.props
> >   
> >   
> >abc.log
> >xyz.log
> >   
> >   1
> >   
> >
> >   
> >   ABC
> >  */XYZ/login
> > *
> >   
> >
> >
> >   
> > DataBase 
> >jdbc/my jdbc
> >javax.sql.DataSource
> >Container
> > 
> >
> >   
> > *com/xyz/abc/servlet/login.html*
> > 
> >
> >
> > 
> > ssi
> >* 
> >   org.apache.catalina.ssi.SSIServlet
> > 
> > *
> >   buffered
> >   1
> > 
> > 
> >   debug
> >   0
> > 
> > 
> >   expires
> >   666
> > 
> > 
> >   isVirtualWebappRelative
> >   0
> > 
> > 4
> > 
> >
> > 
> > ssi
> > *.html
> > 
> >
> >
> > 
> >
> > Thanks
> >
> > 2009/5/28 Martin Gainty 
> >
> > >
> > > are you implementing SSI via SSIServlet or SSIFilter?
> > > please display web.xml
> > >
> > > Martin
> > > __
> > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
> confidentialité
> > >
> > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte
> > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
> Nachricht
> > > dient lediglich dem Austausch von Informationen und entfaltet keine
> > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
> le
> > > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie
> > > de ceci est interdite. Ce message sert à l'information seulement et
> n'aura
> > > pas n'importe quel effet légalement obligatoire. Étant donné que les
> email
> > > peuvent facilement être sujets à la manipulation, nous ne pouvons
> accepter
> > > aucune responsabilité pour le contenu fourni.
> > >
> > >
> > >
> > >
> > > > Date: Thu, 28 May 2009 08:45:57 -0400
> > > > Subject: HELP ME PLEASE--->first login page SSI is
> not
> > > gettingenabled
> > > > From: email2jo...@gmail.com
> > > > To: users@tomcat.apache.org
> > >  >
> > > > Hi All
> > > >
> > > >this is my login in which Server Side Include is placed
> and it
> > > is
> > > > the initial page of my web application.
> > > >
> > > > 

Re: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
Actually in the tomcat 6.0, i did not even find this
servlets-ssi.renametojar file and also in the documentation of tomcat 6 ,
they did not even mention about the jar file.
whether I also need to change all the *.html to .shtml files.*

2009/5/28 Martin Gainty 

>
> enable the see servlet-mapping in your web.xml
>
>
>ssi
>*.shtml
>
>
> 
> (mv/rename)  $CATALINA_HOME/server/lib/servlets-ssi.renametojar file
>  $CATALINA_HOME/server/lib/servlets-ssi.jar
>
> please read directive syntax (config,echo,include) directive information
> displayed at
> http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html
>
> //for example this directive will insert contents of file-name
> #include virtual="file-name"
>
> hth
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
> > Date: Thu, 28 May 2009 10:48:56 -0400
> > Subject: Re: HELP ME PLEASE--->first login page SSI is
> notgetting enabled
>  > From: email2jo...@gmail.com
> > To: users@tomcat.apache.org
> >
> > Thanks for your response ..I m doing it through the servlet.
> >
> > *WEB.XML:*
> >
> >
> >   
> >   ABC
> >   com.abc.servlet.MyServlet
> >   
> >abc.dir
> >path/config
> >   
> >   
> >abc.props
> >xyz.props
> >   
> >   
> >abc.log
> >xyz.log
> >   
> >   1
> >   
> >
> >   
> >   ABC
> >  */XYZ/login
> > *
> >   
> >
> >
> >   
> > DataBase 
> >jdbc/my jdbc
> >javax.sql.DataSource
> >Container
> > 
> >
> >   
> > *com/xyz/abc/servlet/login.html*
> > 
> >
> >
> > 
> > ssi
> >* 
> >   org.apache.catalina.ssi.SSIServlet
> > 
> > *
> >   buffered
> >   1
> > 
> > 
> >   debug
> >   0
> > 
> > 
> >   expires
> >   666
> > 
> > 
> >   isVirtualWebappRelative
> >   0
> > 
> > 4
> > 
> >
> > 
> > ssi
> > *.html
> > 
> >
> >
> > 
> >
> > Thanks
> >
> > 2009/5/28 Martin Gainty 
> >
> > >
> > > are you implementing SSI via SSIServlet or SSIFilter?
> > > please display web.xml
> > >
> > > Martin
> > > __
> > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
> confidentialité
> > >
> > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte
> > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
> Nachricht
> > > dient lediglich dem Austausch von Informationen und entfaltet keine
> > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
> le
> > > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie
> > > de ceci est interdite. Ce message sert à l'information seulement et
> n'aura
> > > pas n'importe quel effet légalement obligatoire. Étant donné que les
> email
> > > peuvent facilement être sujets à la manipulation, nous ne pouvons
> accepter
> > > aucune responsabilité pour le contenu fourni.
> > >
> > >
> > >
> > >
> > > > Date: Thu, 28 May 2009 08:45:57 -0400
> > > > Subject: HELP ME PLEASE--->first login page SSI is
> not
> > > gettingenabled
> > > > From: email2jo...@gmail.com
> > > > To: users@tomcat.apache.org
> > >  >
> > > > Hi All
> > > >
> > > >this is my login in which Server Side Include is placed
> and it
> > > is
> > > > the initial page of my web application.
> > > >
> > > > 

RE: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread Martin Gainty

enable the see servlet-mapping in your web.xml


ssi
*.shtml



(mv/rename)  $CATALINA_HOME/server/lib/servlets-ssi.renametojar file   
 $CATALINA_HOME/server/lib/servlets-ssi.jar 

please read directive syntax (config,echo,include) directive information 
displayed at
http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html

//for example this directive will insert contents of file-name
#include virtual="file-name" 

hth
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 28 May 2009 10:48:56 -0400
> Subject: Re: HELP ME PLEASE--->first login page SSI is not
> getting enabled
> From: email2jo...@gmail.com
> To: users@tomcat.apache.org
> 
> Thanks for your response ..I m doing it through the servlet.
> 
> *WEB.XML:*
> 
> 
>   
>   ABC
>   com.abc.servlet.MyServlet
>   
>abc.dir
>path/config
>   
>   
>abc.props
>xyz.props
>   
>   
>abc.log
>xyz.log
>   
>   1
>   
> 
>   
>   ABC
>  */XYZ/login
> *
>   
> 
> 
>   
> DataBase 
>jdbc/my jdbc
>javax.sql.DataSource
>Container
> 
> 
>   
> *com/xyz/abc/servlet/login.html*
> 
> 
> 
> 
> ssi
>* 
>   org.apache.catalina.ssi.SSIServlet
> 
> *
>   buffered
>   1
> 
> 
>   debug
>   0
> 
> 
>   expires
>   666
> 
> 
>   isVirtualWebappRelative
>   0
> 
> 4
> 
> 
> 
> ssi
> *.html
> 
> 
> 
> 
> 
> Thanks
> 
> 2009/5/28 Martin Gainty 
> 
> >
> > are you implementing SSI via SSIServlet or SSIFilter?
> > please display web.xml
> >
> > Martin
> > __
> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> >
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> > dient lediglich dem Austausch von Informationen und entfaltet keine
> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> > de ceci est interdite. Ce message sert à l'information seulement et n'aura
> > pas n'importe quel effet légalement obligatoire. Étant donné que les email
> > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> > aucune responsabilité pour le contenu fourni.
> >
> >
> >
> >
> > > Date: Thu, 28 May 2009 08:45:57 -0400
> > > Subject: HELP ME PLEASE--->first login page SSI is not
> > gettingenabled
> > > From: email2jo...@gmail.com
> > > To: users@tomcat.apache.org
> >  >
> > > Hi All
> > >
> > >this is my login in which Server Side Include is placed and it
> > is
> > > the initial page of my web application.
> > >
> > > 

Re: how to convert struts based apps from tomcat4 to tomcat5.5?

2009-05-28 Thread Maurizio Rottin
2009/5/28 Caldarale, Charles R :
> Your code may be dependent on a bug in 4.1 that was fixed in later Tomcat 
> levels.

this can be the error!
but i don't know if this is the right mailinglist to post the code
that generate the error!
May I put the code here? (i think it's very little and simple to read)

>There are a set of system properties you can adjust to change the 5.5 behavior 
>to be the same as in 4.1, and you might need to experiment with those:
> http://tomcat.apache.org/tomcat-5.5-doc/config/systemprops.html
>
> In particular, look at the ones in the Jasper section.
>

i can't find where those are in the old tomcat installation, but the
specific problem should be a programming error. Anyway i'll continue
my search.

thanks,

-- 
mr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat does not respond

2009-05-28 Thread Caldarale, Charles R
> From: Diego Castorina [mailto:di...@quince.nl]
> Subject: RE: Tomcat does not respond
> 
> How can I write this wrapper?

I don't know Spring, but perhaps it already offers this capability.

Otherwise, Chris S recently posted a wrapper that, IIRC, will do this.  Will 
need to search the archives for it, unless Chris happens to read this.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat does not respond

2009-05-28 Thread Diego Castorina
Thanks for the tip.
How can I write this wrapper?
I can have different kind of client so I cannot encode the binary as string and 
decoding it on the client side.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: giovedì 28 maggio 2009 16.12
To: Tomcat Users List
Subject: RE: Tomcat does not respond

> From: Diego Castorina [mailto:di...@quince.nl]
> Subject: RE: Tomcat does not respond
> 
> I use the ServletOutputStream because I need to write binary directly
> in the response while with the PrintWriter I can only write character
> text to the client.

Then you may need to resort to your own wrapper for the Response object, and it 
can coordinate the use of the Writer with the OutputStream.

> I don't understand the reason for this exception since I don't use the
> JsonView class for the requests that return a binary as output.

The stack trace clearly shows you're mistaken.  You may not use it explicitly, 
but something you're using in Spring obviously does.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Diego Castorina | quince
--
mobile  
e-mail  di...@quince.nl
web www.quince.nl
--
assumburg 73
1081 gb amsterdam
the netherlands
tel: +31 (0)20 3471000
fax:+31 (0)20 3471005

P Please consider the environment before printing this email

Nederlands:
Dit bericht kan vertrouwelijke informatie bevatten. Indien u niet de 
geadresseerde van dit bericht bent, verzoeken wij u dit bericht te vernietigen 
zonder van de inhoud kennis te nemen en de inhoud ervan niet te gebruiken, niet 
te kopiëren en niet onder derden te verspreiden. Quince is een handelsnaam die 
wordt gevoerd door Quince B.V. te Amsterdam. Op alle werkzaamheden zijn de 
algemene voorwaarden en de algemene inkoopvoorwaarden van Quince B.V. van 
toepassing. In artikel 11 van de algemene voorwaarden en in artikel 9 van de 
algemene inkoopvoorwaarden is een beperking van aansprakelijkheid opgenomen. De 
voorwaarden zijn ook na te lezen op www.quince.nl/algemenevoorwaarden en 
www.quince.nl/inkoopvoorwaarden 

English:
This message may contain information that is privileged or confidential. If you 
are not the named addressee of this message, please destroy it without reading, 
using, copying or disclosing its contents to any other person. Quince is a 
trade name of Quince B.V. with its office in Amsterdam. All services are 
governed by the general terms and conditions and purchase terms and conditions 
of Quince B.V. . Article 11 of the general terms and conditions and article 9 
of the purchase terms and conditions contain a limitation of liability. A free 
copy of the general terms and conditions will be provided upon request. The 
conditions can also be read on www.quince.nl/termsandconditions and 
www.quince.nl/purchasetermsandconditions 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
Thanks for your response ..I m doing it through the servlet.

*WEB.XML:*


  
  ABC
  com.abc.servlet.MyServlet
  
   abc.dir
   path/config
  
  
   abc.props
   xyz.props
  
  
   abc.log
   xyz.log
  
  1
  

  
  ABC
 */XYZ/login
*
  


  
DataBase 
   jdbc/my jdbc
   javax.sql.DataSource
   Container


  
*com/xyz/abc/servlet/login.html*




ssi
   * 
  org.apache.catalina.ssi.SSIServlet

*
  buffered
  1


  debug
  0


  expires
  666


  isVirtualWebappRelative
  0

4



ssi
*.html





Thanks

2009/5/28 Martin Gainty 

>
> are you implementing SSI via SSIServlet or SSIFilter?
> please display web.xml
>
> Martin
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
> > Date: Thu, 28 May 2009 08:45:57 -0400
> > Subject: HELP ME PLEASE--->first login page SSI is not
> gettingenabled
> > From: email2jo...@gmail.com
> > To: users@tomcat.apache.org
>  >
> > Hi All
> >
> >this is my login in which Server Side Include is placed and it
> is
> > the initial page of my web application.
> >
> > 

Re: how to convert struts based apps from tomcat4 to tomcat5.5?

2009-05-28 Thread Maurizio Rottin
2009/5/28 Caldarale, Charles R :
>> From: Maurizio Rottin [mailto:maurizio.rot...@gmail.com]
>> Subject: how to convert struts based apps from tomcat4 to tomcat5.5?
>>
>> the error from catalina.out is:
>> "ERROR [TP-Processor40] - Servlet.service() for servlet jsp threw
>> exception
>> javax.servlet.jsp.JspException: Define tag cannot set a null value
>>         at
>> org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272)
>> etc. etc."
>
> Your code may be dependent on a bug in 4.1 that was fixed in later Tomcat 
> levels.  There are a set of system properties you can adjust to change the 
> 5.5 behavior to be the same as in 4.1, and you might need to experiment with 
> those:
> http://tomcat.apache.org/tomcat-5.5-doc/config/systemprops.html
>
> In particular, look at the ones in the Jasper section.

ok, i'll read it soon!

> Also, Tomcat 6 implemented several more Jasper-related properties that might 
> be pertinent (hard to tell without seeing your code).
>
> Since you're upgrading, why not move to Tomcat 6.0?  It's noticeably better 
> in many ways than 5.5.
>

I use centos5.3 and I am not a tomcat expert. Then i found easy to
install tomcat rpm's incuded in Centos distribution (which ships
tomcat 5.5.23).

Anyway i remember that is pretty easy to install tomcat, maybe just
untar the package, then maybe i'll give it a try!

thank you,

-- 
mr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: hello world

2009-05-28 Thread veena pandit
http://localhost:8080/webapps/Hello.htm
l
-Veena

On Thu, May 28, 2009 at 6:07 AM, S Arvind  wrote:

> What path you gave to get that html in browser?
>
> -Arvind S
>
> *
> "Many of lifes failure are people who did not realize how close they were
> to
> success when they gave up."
> -Thomas Edison
> *
>
>  On Wed, May 27, 2009 at 5:48 AM, veena pandit  wrote:
>
> > How to configure Hello.html in Tomcat?
> >
> > Where do I place the following file?  How to access it from the server?
> >
> >
> > 
> > 
> > Hello, world
> > 
> > 
> >
> >
> >
> >
> > Thanks,
> >
> > Veena
> >
>


RE: Tomcat does not respond

2009-05-28 Thread Caldarale, Charles R
> From: Diego Castorina [mailto:di...@quince.nl]
> Subject: RE: Tomcat does not respond
> 
> I use the ServletOutputStream because I need to write binary directly
> in the response while with the PrintWriter I can only write character
> text to the client.

Then you may need to resort to your own wrapper for the Response object, and it 
can coordinate the use of the Writer with the OutputStream.

> I don't understand the reason for this exception since I don't use the
> JsonView class for the requests that return a binary as output.

The stack trace clearly shows you're mistaken.  You may not use it explicitly, 
but something you're using in Spring obviously does.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: MaxPermSize, Tomcat startup trouble

2009-05-28 Thread Caldarale, Charles R
> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
> Subject: RE: MaxPermSize, Tomcat startup trouble
> 
> I believe there are some java options that control how the memory is
> divided between the different generations.

Not for PermGen - its size is controlled explicitly.  It's not really a 
"generation" in proper GC terminology - nothing ever migrates into it.

> I seem to remember a ratio option that you could look into.

That's only for young vs old generations.

> Also, the maximum memory size you can supply to -Xmx is 1536M

That's platform and architecture dependant; there's no single value that will 
work everywhere.  The next service pack will change it.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread Stevo Slavić
Or Tomcat installations are configured differently on each of the
environments, e.g. Connector URIEncoding attribute.

On Thu, May 28, 2009 at 3:28 PM, Youssef Mohammed <
youssef.moham...@gmail.com> wrote:

> On Thu, May 28, 2009 at 4:23 PM, abdul razack  wrote:
> > Hi Mark,
> >
> >  As you suggested, I have tested sample JSP in the FAQ as you pointed.
> > I could see Arabic in the output. This is OK.
>
> > I am not able to view Arabic data when tomcat application running on
> winodws 2003 server OR windows 2000 professional.
> > But I am surprised to see Arabic data when I run application on windows
> XP professional.
>
> This might suggest that the problem has nothing to do with tomcat. I
> would go for checking this issue with MS folks (platform setting , db/
> db driver settings, ... )
>
> >
> > In all above scenarios data base SQL server 2005 resides on Windows 2003
> server.
> >
> >
> > Any other setting that I need to do in Tomcat.
> >
> > Thanks & Regards
> > -Abdul Razack
> >
> >
> >
> >
> >
> > --- On Wed, 5/27/09, Mark Thomas  wrote:
> >
> >
> > From: Mark Thomas 
> > Subject: Re: retrive Arabic data
> > To: "Tomcat Users List" 
> > Date: Wednesday, May 27, 2009, 5:48 PM
> >
> >
> > abdul razack wrote:
> >>
> >>
> >> 1. In server.xml
> >> >>maxThreads="150" minSpareThreads="25"
> useBodyEncodingForURI="true"  URIEncoding="UTF-8"
> >>  maxSpareThreads="75" enableLookups="false"
> redirectPort="8443" acceptCount="100"
> >>connectionTimeout="2" disableUploadTimeout="true" />
> >>
> >> 2. In all JSP pages
> >>
> >>   <%@ page contentType="text/html;charset=UTF-8" %>
> >>  
> >>
> >> 3. But I am surprise to see in servlet that request.getCharacterEncoding
> ( ) as null.
> >>
> >> Still I have same problem.
> >
> > Try the sample JSP in the FAQ I pointed you towards. If that works, you
> > have an application issue. If that doesn't work, you have broken your
> > Tomcat config somewhere.
> >
> > Mark
> >
> >>
> >> -Abdul Razack
> >>
> >>
> >>
> >>
> >> --- On Wed, 5/27/09, Youssef Mohammed 
> wrote:
> >>
> >>
> >> From: Youssef Mohammed 
> >> Subject: Re: retrive Arabic data
> >> To: "Tomcat Users List" 
> >> Date: Wednesday, May 27, 2009, 4:53 PM
> >>
> >>
> >> u just need to set your content encoding to UTF-8 in your jspes
> >> <%@ page pageEncoding="UTF-8" %>
> >> I think also there might be a way to set the default encoding to utf8 !
> >> Regards, Youssef
> >>
> >>
> >>
> >> On Wed, May 27, 2009 at 2:16 PM, abdul razack 
> wrote:
> >>> Hi,
> >>>
> >>>  I have Java web application (JSP, Servlet, SQL server 2005) running on
> apache-tomcat-5.5.23.
> >>>
> >>> I am facing one problem when retriving Arabic data from database. The
> data contains both english and Arabic in table.
> >>> when retirve  data from java application all arabic is appearing as
> . But english is coming is perfectly.
> >>>
> >>> The combination of Arabic and english data will be inserted in the
> database through other application (ASP.Net technology).The encoding uses
> (UTF-8). In database table arabic columns will have arabic and english
> columns will have english.
> >>>
> >>> Please give me direction what would have gone wrong.
> >>> Would there be any problem in Tomcat.
> >>>
> >>> Thanks & Regards
> >>> -Abdul Razack
> >>>
> >>>
> >>>
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


RE: HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread Martin Gainty

are you implementing SSI via SSIServlet or SSIFilter?
please display web.xml

Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 28 May 2009 08:45:57 -0400
> Subject: HELP ME PLEASE--->first login page SSI is not 
> gettingenabled
> From: email2jo...@gmail.com
> To: users@tomcat.apache.org
> 
> Hi All
> 
>this is my login in which Server Side Include is placed and it is
> the initial page of my web application.
> 
> 

RE: MaxPermSize, Tomcat startup trouble

2009-05-28 Thread Jeffrey Janner
> Any ideas how we can get a much larger PermSpace going?

I believe there are some java options that control how the memory is
divided between the different generations.
I seem to remember a ratio option that you could look into.  I had to do
this for one implementation.
Check the java documentation for your JVM.

Also, the maximum memory size you can supply to -Xmx is 1536M, and that
is only if you use the /3G boot option for Windows. Otherwise, it is
about 1200M.  Not much can be done about this.  It's an MS thing.

***  NOTICE  *
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat does not respond

2009-05-28 Thread Diego Castorina
I use the ServletOutputStream because I need to write binary directly in the 
response while with the PrintWriter I can only write character text to the 
client.
I don't understand the reason for this exception since I don't use the JsonView 
class for the requests that return a binary as output. 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: giovedì 28 maggio 2009 15.15
To: Tomcat Users List
Subject: RE: Tomcat does not respond

> From: Diego Castorina [mailto:di...@quince.nl]
> Subject: RE: Tomcat does not respond
> 
> SEVERE: Servlet.service() for servlet springapp threw exception
> java.lang.IllegalStateException: getOutputStream() has already been
> called for this response
> at org.apache.catalina.connector.Response.getWriter(Response.java:604)
> at 
> org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
> at 
> org.springframework.web.servlet.view.json.JsonView.renderMergedOutputModel(JsonView.java:60)

It would seem like the first thing you need to do is fix your webapp so it 
doesn't provoke the above error.  If Spring intends to use the Writer 
associated with the Response object, you cannot use the OutputStream (and vice 
versa).  Fix the other parts of your webapp to use Response.getWriter(), not 
Response.getOutputStream().

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Diego Castorina | quince
--
mobile  
e-mail  di...@quince.nl
web www.quince.nl
--
assumburg 73
1081 gb amsterdam
the netherlands
tel: +31 (0)20 3471000
fax:+31 (0)20 3471005

P Please consider the environment before printing this email

Nederlands:
Dit bericht kan vertrouwelijke informatie bevatten. Indien u niet de 
geadresseerde van dit bericht bent, verzoeken wij u dit bericht te vernietigen 
zonder van de inhoud kennis te nemen en de inhoud ervan niet te gebruiken, niet 
te kopiëren en niet onder derden te verspreiden. Quince is een handelsnaam die 
wordt gevoerd door Quince B.V. te Amsterdam. Op alle werkzaamheden zijn de 
algemene voorwaarden en de algemene inkoopvoorwaarden van Quince B.V. van 
toepassing. In artikel 11 van de algemene voorwaarden en in artikel 9 van de 
algemene inkoopvoorwaarden is een beperking van aansprakelijkheid opgenomen. De 
voorwaarden zijn ook na te lezen op www.quince.nl/algemenevoorwaarden en 
www.quince.nl/inkoopvoorwaarden 

English:
This message may contain information that is privileged or confidential. If you 
are not the named addressee of this message, please destroy it without reading, 
using, copying or disclosing its contents to any other person. Quince is a 
trade name of Quince B.V. with its office in Amsterdam. All services are 
governed by the general terms and conditions and purchase terms and conditions 
of Quince B.V. . Article 11 of the general terms and conditions and article 9 
of the purchase terms and conditions contain a limitation of liability. A free 
copy of the general terms and conditions will be provided upon request. The 
conditions can also be read on www.quince.nl/termsandconditions and 
www.quince.nl/purchasetermsandconditions 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: MaxPermSize, Tomcat startup trouble

2009-05-28 Thread Jeffrey Janner
Peter's option is a valid one.  I use this approach myself to limit the
size of PermGen.  Of course, I may have more control over the apps than
you do. If you do need to load different version, you should be able to
put the alternate version in the apps WEB-INF/lib directory and the
app's loader will prefer it. (at least at 5.5).
One thing to watch out for.  Some libraries do not "play nice".  For
instance, log4j gets instantiated once for the jvm.  If you share the
lg4j library but each app has its own log file definition, they will end
up meshing into one log (I think the last one instantiated).

Jeff

-Original Message-
From: Peter Crowther [mailto:peter.crowt...@melandra.com] 
Sent: Thursday, May 28, 2009 4:03 AM
To: 'Tomcat Users List'
Subject: RE: MaxPermSize, Tomcat startup trouble


By the way, there's one other thing you *could* try if you had to reduce
memory usage.  I don't like it, because it makes versioning the webapps
a nightmare; but it might save you quite a lot of RAM and allow you to
go live on the current hardware.  The choice is yours!

If many of your webapps use the same versions of the same jars, you
*could* share them between webapps.  The classes will then be loaded
once, rather than once per webapp, reducing the amount of PermGen
required.  The problem, of course, is that your webapps are then locked
to the same library versions - updating one webapp with a new library is
a problem.

If you want to look at this approach, check the Tomcat 6 classloader
how-to on the web site.  But if you do this, I would suggest you regard
it as an emergency hack and look urgently at ways to remove it.

- Peter

***  NOTICE  *
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Compile JSP before the first request arrives

2009-05-28 Thread Martin Gainty

the example jar is catalina-root.jar whose contents consist of:
Index.list whose contents consist of
JarIndex-Version: 1.0

catalina-root.jar
org
org/apache
org/apache/jsp

Manifest.mf
NameOfJsp_jsp.class (packaged as org\apache\jsp\NameOfJsp_jsp.class)

place your compiled class from *.jsp into web-inf/classes/org/apache/jsp/*.*
and retry

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> From: arvindw...@gmail.com
> Date: Thu, 28 May 2009 15:57:31 +0530
> Subject: Re: Compile JSP before the first request arrives
> To: users@tomcat.apache.org
> 
> Hi Ghufran,
> The problem is not in that,
> problem is in
> http://www.rgagnon.com/javadetails/java-0414.html that u provide in previous
> post
> 
> if i run that jsp file i am getting that stack trace...
> 
> I am in tomcat 5.5
> 
> -Arvind S
> 
> *
> "Many of lifes failure are people who did not realize how close they were to
> success when they gave up."
> -Thomas Edison*
> 
> 
> On Thu, May 28, 2009 at 4:54 PM, Ghufran  wrote:
> 
> > Hi
> >
> >
> >
> > If your jsp can be successfully invoked at this url
> >
> > http://hostname.com/mywebapp/mypage.jsp
> >
> >
> >
> >
> >
> > Then it should also get pre compiled by invoking this url
> >
> >  
> > http://hostname.com/mywebapp/mypage.jsp?jsp_precompile
> >
> > or try this
> >
> > http://hostname.com/mywebapp/mypage.jsp?jsp_precompile=true
> >
> >
> >
> >
> >
> > Regards
> >
> > Ghufran
> >
> >
> >
> > -Original Message-
> > From: S Arvind [mailto:arvindw...@gmail.com]
> > Sent: Thursday, May 28, 2009 3:03 PM
> > To: Tomcat Users List
> > Subject: Re: Compile JSP before the first request arrives
> >
> >
> >
> > Hi Ghufran,
> >
> >
> >
> > if i ran the below mentioned jsp file to compile all jsp i am getting error
> >
> > with this stacktrace
> >
> > java.lang.ClassNotFoundException: org.apache.jsp.jsp.precompile_jsp
> >
> >at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >
> >at java.security.AccessController.doPrivileged(Native Method)
> >
> >at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >
> >at
> >
> > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
> >
> >at
> >
> > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
> >
> >at
> >
> >
> > org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597)
> >
> >at
> >
> >
> > org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav
> > a:137)
> >
> >at
> >
> >
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> > 14)
> >
> >at
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
> >
> >at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> >
> >at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> >
> >at
> >
> >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:269)
> >
> >at
> >
> >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:188)
> >
> >at
> >
> >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > va:213)
> >
> >at
> >
> >
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> > va:172)
> >
> >at
> >
> >
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
> > )
> >
> >at
> >
> >
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
> > )
> >
> >at
> >
> >
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> > :108)
> >
> >at
> >
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
> >
> >at
> >
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
> >
> >  

RE: Windows x64 Installer

2009-05-28 Thread Jeffrey Janner
Will -
Based on our empirical testing, the tcnative-1.dll offers noticeable
performance improvement. It also offers an improved and probably more
secure SSL environment as it incorporates OpenSSL versus the built-in
java SSL implementation.
If you are using SSL, you will need to alter your SSL connector
definition somewhat, but ultimately, it's much easier to implement.
We run in standalone mode, so I'm not sure of the performance
improvement if you are using only AJP.
Jeff

-Original Message-
From: will trillich [mailto:trill...@gmail.com] 
Sent: Wednesday, May 27, 2009 4:27 PM
To: Tomcat Users List
Subject: Re: Windows x64 Installer


If we skip the tcnative DLL, are we missing anything significant?
We're getting along without it for now...




***  NOTICE  *
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: how to convert struts based apps from tomcat4 to tomcat5.5?

2009-05-28 Thread Caldarale, Charles R
> From: Maurizio Rottin [mailto:maurizio.rot...@gmail.com]
> Subject: how to convert struts based apps from tomcat4 to tomcat5.5?
> 
> the error from catalina.out is:
> "ERROR [TP-Processor40] - Servlet.service() for servlet jsp threw
> exception
> javax.servlet.jsp.JspException: Define tag cannot set a null value
> at
> org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272)
> etc. etc."

Your code may be dependent on a bug in 4.1 that was fixed in later Tomcat 
levels.  There are a set of system properties you can adjust to change the 5.5 
behavior to be the same as in 4.1, and you might need to experiment with those:
http://tomcat.apache.org/tomcat-5.5-doc/config/systemprops.html

In particular, look at the ones in the Jasper section.

Also, Tomcat 6 implemented several more Jasper-related properties that might be 
pertinent (hard to tell without seeing your code).

Since you're upgrading, why not move to Tomcat 6.0?  It's noticeably better in 
many ways than 5.5.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread Youssef Mohammed
On Thu, May 28, 2009 at 4:23 PM, abdul razack  wrote:
> Hi Mark,
>
>  As you suggested, I have tested sample JSP in the FAQ as you pointed.
> I could see Arabic in the output. This is OK.

> I am not able to view Arabic data when tomcat application running on winodws 
> 2003 server OR windows 2000 professional.
> But I am surprised to see Arabic data when I run application on windows XP 
> professional.

This might suggest that the problem has nothing to do with tomcat. I
would go for checking this issue with MS folks (platform setting , db/
db driver settings, ... )

>
> In all above scenarios data base SQL server 2005 resides on Windows 2003 
> server.
>
>
> Any other setting that I need to do in Tomcat.
>
> Thanks & Regards
> -Abdul Razack
>
>
>
>
>
> --- On Wed, 5/27/09, Mark Thomas  wrote:
>
>
> From: Mark Thomas 
> Subject: Re: retrive Arabic data
> To: "Tomcat Users List" 
> Date: Wednesday, May 27, 2009, 5:48 PM
>
>
> abdul razack wrote:
>>
>>
>> 1. In server.xml
>>    >                maxThreads="150" minSpareThreads="25" 
>>useBodyEncodingForURI="true"  URIEncoding="UTF-8"
>>                  maxSpareThreads="75" enableLookups="false" 
>>redirectPort="8443" acceptCount="100"
>>                connectionTimeout="2" disableUploadTimeout="true" />
>>
>> 2. In all JSP pages
>>
>>   <%@ page contentType="text/html;charset=UTF-8" %>
>>  
>>
>> 3. But I am surprise to see in servlet that request.getCharacterEncoding ( ) 
>> as null.
>>
>> Still I have same problem.
>
> Try the sample JSP in the FAQ I pointed you towards. If that works, you
> have an application issue. If that doesn't work, you have broken your
> Tomcat config somewhere.
>
> Mark
>
>>
>> -Abdul Razack
>>
>>
>>
>>
>> --- On Wed, 5/27/09, Youssef Mohammed  wrote:
>>
>>
>> From: Youssef Mohammed 
>> Subject: Re: retrive Arabic data
>> To: "Tomcat Users List" 
>> Date: Wednesday, May 27, 2009, 4:53 PM
>>
>>
>> u just need to set your content encoding to UTF-8 in your jspes
>> <%@ page pageEncoding="UTF-8" %>
>> I think also there might be a way to set the default encoding to utf8 !
>> Regards, Youssef
>>
>>
>>
>> On Wed, May 27, 2009 at 2:16 PM, abdul razack  wrote:
>>> Hi,
>>>
>>>  I have Java web application (JSP, Servlet, SQL server 2005) running on 
>>>apache-tomcat-5.5.23.
>>>
>>> I am facing one problem when retriving Arabic data from database. The data 
>>> contains both english and Arabic in table.
>>> when retirve  data from java application all arabic is appearing as . 
>>> But english is coming is perfectly.
>>>
>>> The combination of Arabic and english data will be inserted in the database 
>>> through other application (ASP.Net technology).The encoding uses (UTF-8). 
>>> In database table arabic columns will have arabic and english columns will 
>>> have english.
>>>
>>> Please give me direction what would have gone wrong.
>>> Would there be any problem in Tomcat.
>>>
>>> Thanks & Regards
>>> -Abdul Razack
>>>
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>>
>>
>>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread abdul razack
Hi Mark,
 
 As you suggested, I have tested sample JSP in the FAQ as you pointed.
I could see Arabic in the output. This is OK.
 
I am not able to view Arabic data when tomcat application running on winodws 
2003 server OR windows 2000 professional.
 
But I am surprised to see Arabic data when I run application on windows XP 
professional.
 
In all above scenarios data base SQL server 2005 resides on Windows 2003 server.
 
 
Any other setting that I need to do in Tomcat.
 
Thanks & Regards
-Abdul Razack
 
  
 


--- On Wed, 5/27/09, Mark Thomas  wrote:


From: Mark Thomas 
Subject: Re: retrive Arabic data
To: "Tomcat Users List" 
Date: Wednesday, May 27, 2009, 5:48 PM


abdul razack wrote:
>  
>  
> 1. In server.xml
>                    maxThreads="150" minSpareThreads="25" 
>useBodyEncodingForURI="true"  URIEncoding="UTF-8"
>                  maxSpareThreads="75" enableLookups="false" 
>redirectPort="8443" acceptCount="100"
>                connectionTimeout="2" disableUploadTimeout="true" />
>  
> 2. In all JSP pages 
>  
>   <%@ page contentType="text/html;charset=UTF-8" %>
>  
>  
> 3. But I am surprise to see in servlet that request.getCharacterEncoding ( ) 
> as null.
> 
> Still I have same problem.

Try the sample JSP in the FAQ I pointed you towards. If that works, you
have an application issue. If that doesn't work, you have broken your
Tomcat config somewhere.

Mark

>  
> -Abdul Razack
>  
>  
> 
> 
> --- On Wed, 5/27/09, Youssef Mohammed  wrote:
> 
> 
> From: Youssef Mohammed 
> Subject: Re: retrive Arabic data
> To: "Tomcat Users List" 
> Date: Wednesday, May 27, 2009, 4:53 PM
> 
> 
> u just need to set your content encoding to UTF-8 in your jspes
> <%@ page pageEncoding="UTF-8" %>
> I think also there might be a way to set the default encoding to utf8 !
> Regards, Youssef
> 
> 
> 
> On Wed, May 27, 2009 at 2:16 PM, abdul razack  wrote:
>> Hi,
>>
>>  I have Java web application (JSP, Servlet, SQL server 2005) running on 
>>apache-tomcat-5.5.23.
>>
>> I am facing one problem when retriving Arabic data from database. The data 
>> contains both english and Arabic in table.
>> when retirve  data from java application all arabic is appearing as . 
>> But english is coming is perfectly.
>>
>> The combination of Arabic and english data will be inserted in the database 
>> through other application (ASP.Net technology).The encoding uses (UTF-8). In 
>> database table arabic columns will have arabic and english columns will have 
>> english.
>>
>> Please give me direction what would have gone wrong.
>> Would there be any problem in Tomcat.
>>
>> Thanks & Regards
>> -Abdul Razack
>>
>>
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 
> 
>       



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

RE: Tomcat does not respond

2009-05-28 Thread Caldarale, Charles R
> From: Diego Castorina [mailto:di...@quince.nl]
> Subject: RE: Tomcat does not respond
> 
> SEVERE: Servlet.service() for servlet springapp threw exception
> java.lang.IllegalStateException: getOutputStream() has already been
> called for this response
> at org.apache.catalina.connector.Response.getWriter(Response.java:604)
> at 
> org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
> at 
> org.springframework.web.servlet.view.json.JsonView.renderMergedOutputModel(JsonView.java:60)

It would seem like the first thing you need to do is fix your webapp so it 
doesn't provoke the above error.  If Spring intends to use the Writer 
associated with the Response object, you cannot use the OutputStream (and vice 
versa).  Fix the other parts of your webapp to use Response.getWriter(), not 
Response.getOutputStream().

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Centos 5 OS not releasing memory Tomcat6

2009-05-28 Thread Maurizio Rottin
2009/5/28 msweeney :
>
> Tomcat version 6
> Apache 2.2.3
> Centos 5.2
> VMware 2.5
> 2 VPU's
> 4G Memory
>
> Guest Memory usage is on a avg 122 MB and Host Memory is at 3.31 G so we
> know it's not the balloon driver.
>
> Problem statement:
>
> I understand as a SysAdmin that the JVM loves to grab all the memory
> resources as it can, sort of like Oracle.  However when we stop and then
> attempt to restart Tomcat it fails and the server needs to be restarted.
> Also it seems that this memory is being held in the Linux Cache system and
> to release it we run the following:
> echo 3 > /proc/sys/vm/drop_caches

tomcat6 is not included in Centos, then i assume you take source file
from apache tomcat website.

If this is the case, when you stop tomcat, then you have to kill the process.
try a "ps -ef | grep j" and you will probably see that java is still running.

if you are succesful in killing the process, then try to start tomcat.

-- 
mr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Centos 5 OS not releasing memory Tomcat6

2009-05-28 Thread msweeney

Tomcat version 6
Apache 2.2.3
Centos 5.2
VMware 2.5
2 VPU's
4G Memory

Guest Memory usage is on a avg 122 MB and Host Memory is at 3.31 G so we
know it's not the balloon driver.

Problem statement:

I understand as a SysAdmin that the JVM loves to grab all the memory
resources as it can, sort of like Oracle.  However when we stop and then
attempt to restart Tomcat it fails and the server needs to be restarted. 
Also it seems that this memory is being held in the Linux Cache system and
to release it we run the following:
echo 3 > /proc/sys/vm/drop_caches

I guess my question is there a tuneable on either the OS or in the JVM that
will give me the same result?


Let me know any more information I need to provide.

Thanks,

Marc Sweeney
 
-- 
View this message in context: 
http://www.nabble.com/Centos-5-OS-not-releasing-memory-Tomcat6-tp23761076p23761076.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



HELP ME PLEASEEEEE--------------->first login page SSI is not getting enabled

2009-05-28 Thread john S
Hi All

   this is my login in which Server Side Include is placed and it is
the initial page of my web application.


Re: Compile JSP before the first request arrives

2009-05-28 Thread S Arvind
Hi Ghufran,
The problem is not in that,
problem is in
http://www.rgagnon.com/javadetails/java-0414.html that u provide in previous
post

if i run that jsp file i am getting that stack trace...

I am in tomcat 5.5

-Arvind S

*
"Many of lifes failure are people who did not realize how close they were to
success when they gave up."
-Thomas Edison*


On Thu, May 28, 2009 at 4:54 PM, Ghufran  wrote:

> Hi
>
>
>
> If your jsp can be successfully invoked at this url
>
> http://hostname.com/mywebapp/mypage.jsp
>
>
>
>
>
> Then it should also get pre compiled by invoking this url
>
>  
> http://hostname.com/mywebapp/mypage.jsp?jsp_precompile
>
> or try this
>
> http://hostname.com/mywebapp/mypage.jsp?jsp_precompile=true
>
>
>
>
>
> Regards
>
> Ghufran
>
>
>
> -Original Message-
> From: S Arvind [mailto:arvindw...@gmail.com]
> Sent: Thursday, May 28, 2009 3:03 PM
> To: Tomcat Users List
> Subject: Re: Compile JSP before the first request arrives
>
>
>
> Hi Ghufran,
>
>
>
> if i ran the below mentioned jsp file to compile all jsp i am getting error
>
> with this stacktrace
>
> java.lang.ClassNotFoundException: org.apache.jsp.jsp.precompile_jsp
>
>at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>
>at java.security.AccessController.doPrivileged(Native Method)
>
>at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>
>at
>
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
>
>at
>
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
>
>at
>
>
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597)
>
>at
>
>
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav
> a:137)
>
>at
>
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 14)
>
>at
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
>
>at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
>at
>
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:269)
>
>at
>
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:188)
>
>at
>
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:213)
>
>at
>
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:172)
>
>at
>
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
> )
>
>at
>
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
> )
>
>at
>
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :108)
>
>at
>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>
>at
>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
>
>at
>
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
> onnection(Http11BaseProtocol.java:665)
>
>at
>
>
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
> a:528)
>
>at
>
>
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
> rkerThread.java:81)
>
>at
>
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:689)
>
>at java.lang.Thread.run(Thread.java:619)
>
>
>
>
>
> but the java class and java file is available in the correct location...
>
> i am working in linux with tomcat running in root user. so the java and
>
> class file will be also in root rights.. is there any relation between
>
> these?
>
>
>
> -Arvind S
>
>
>
> *
>
> "Many of lifes failure are people who did not realize how close they were
> to
>
> success when they gave up."
>
> -Thomas Edison*
>
>
>
>
>
> On Wed, May 27, 2009 at 8:17 PM, Ghufran  wrote:
>
>
>
> > Try this
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Some JSP containers (as per section 8.4.2 of the JSP 1.2 specification)
>
> > support the capability of precompiling a JSP page.
>
> >
>
> > To precompile a JSP page, access the page with a query string of
>
> > ?jsp_precompile
>
> >
>
> > http://hostname.com/mywebapp/mypage.jsp?jsp_precompile
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > see more details at http://www.rgagnon.com/javadetails/java-0414.html
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Regards
>
> >
>
> > Ghufran
>
> >
>
> >
>
> >
>
> > -Original Message-
>
> > From: S Arvind [mailto:arvindw...@gmail.com]
>
> > Sent: Wednesday, May 27, 2009 6:31 PM
>
> > To: Tomcat Users List
>
> > Subject: Re: Compile JSP before the first request arrives
>
> >
>
> >
>
> >
>
> > can you give me the good docs about this..
>
> >
>
> >
>
> >
>
> > -Arvind S
>
> >
>
> >
>
> >
>
> > *
>
> >
>
> > "Many 

RE: Compile JSP before the first request arrives

2009-05-28 Thread Ghufran
Hi

 

If your jsp can be successfully invoked at this url

http://hostname.com/mywebapp/mypage.jsp

 

 

Then it should also get pre compiled by invoking this url

 
http://hostname.com/mywebapp/mypage.jsp?jsp_precompile

or try this

http://hostname.com/mywebapp/mypage.jsp?jsp_precompile=true

 

 

Regards

Ghufran

 

-Original Message-
From: S Arvind [mailto:arvindw...@gmail.com] 
Sent: Thursday, May 28, 2009 3:03 PM
To: Tomcat Users List
Subject: Re: Compile JSP before the first request arrives

 

Hi Ghufran,

 

if i ran the below mentioned jsp file to compile all jsp i am getting error

with this stacktrace

java.lang.ClassNotFoundException: org.apache.jsp.jsp.precompile_jsp

at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

at

org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)

at

org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)

at

org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597)

at

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav
a:137)

at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
14)

at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:188)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:172)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:108)

at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)

at

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:665)

at

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:528)

at

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:81)

at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:689)

at java.lang.Thread.run(Thread.java:619)

 

 

but the java class and java file is available in the correct location...

i am working in linux with tomcat running in root user. so the java and

class file will be also in root rights.. is there any relation between

these?

 

-Arvind S

 

*

"Many of lifes failure are people who did not realize how close they were to

success when they gave up."

-Thomas Edison*

 

 

On Wed, May 27, 2009 at 8:17 PM, Ghufran  wrote:

 

> Try this

> 

> 

> 

> 

> 

> Some JSP containers (as per section 8.4.2 of the JSP 1.2 specification)

> support the capability of precompiling a JSP page.

> 

> To precompile a JSP page, access the page with a query string of

> ?jsp_precompile

> 

> http://hostname.com/mywebapp/mypage.jsp?jsp_precompile

> 

> 

> 

> 

> 

> see more details at http://www.rgagnon.com/javadetails/java-0414.html

> 

> 

> 

> 

> 

> Regards

> 

> Ghufran

> 

> 

> 

> -Original Message-

> From: S Arvind [mailto:arvindw...@gmail.com]

> Sent: Wednesday, May 27, 2009 6:31 PM

> To: Tomcat Users List

> Subject: Re: Compile JSP before the first request arrives

> 

> 

> 

> can you give me the good docs about this..

> 

> 

> 

> -Arvind S

> 

> 

> 

> *

> 

> "Many of lifes failure are people who did not realize how close they were

> to

> 

> success when they gave up."

> 

> -Thomas Edison

> 

> 

> 

> *

> 

> On Wed, May 27, 2009 at 6:23 PM, David Smith  wrote:

> 

> 

> 

> > S Arvind wrote:

> 

> > > Is there any way to pre-compile all the jsp files, when we are

> deploying

> 

> > in

> 

> > > the production environment?

> 

> > >

> 

> > > -Arvind S

> 

> > >

> 

> > > *

> 

> > >

> 

> > > "Many of lifes failure are people who did not realize how close they

> were

> 

> > to

> 

> > > success when they gave up."

> 

> > > -Thomas Edison*

> 

> > >

> 

> > >

> 

> > Yes ... depends on your build environment.  Most offer some means of

> 

> > pre-compiling the jsps to servlets.

> 

> >

> 

> >

Re: hello world

2009-05-28 Thread S Arvind
What path you gave to get that html in browser?

-Arvind S

*
"Many of lifes failure are people who did not realize how close they were to
success when they gave up."
-Thomas Edison
*

On Wed, May 27, 2009 at 5:48 AM, veena pandit  wrote:

> How to configure Hello.html in Tomcat?
>
> Where do I place the following file?  How to access it from the server?
>
>
> 
> 
> Hello, world
> 
> 
>
>
>
>
> Thanks,
>
> Veena
>


Re: Compile JSP before the first request arrives

2009-05-28 Thread S Arvind
Hi Ghufran,

if i ran the below mentioned jsp file to compile all jsp i am getting error
with this stacktrace
java.lang.ClassNotFoundException: org.apache.jsp.jsp.precompile_jsp
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597)
at
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)


but the java class and java file is available in the correct location...
i am working in linux with tomcat running in root user. so the java and
class file will be also in root rights.. is there any relation between
these?

-Arvind S

*
"Many of lifes failure are people who did not realize how close they were to
success when they gave up."
-Thomas Edison*


On Wed, May 27, 2009 at 8:17 PM, Ghufran  wrote:

> Try this
>
>
>
>
>
> Some JSP containers (as per section 8.4.2 of the JSP 1.2 specification)
> support the capability of precompiling a JSP page.
>
> To precompile a JSP page, access the page with a query string of
> ?jsp_precompile
>
> http://hostname.com/mywebapp/mypage.jsp?jsp_precompile
>
>
>
>
>
> see more details at http://www.rgagnon.com/javadetails/java-0414.html
>
>
>
>
>
> Regards
>
> Ghufran
>
>
>
> -Original Message-
> From: S Arvind [mailto:arvindw...@gmail.com]
> Sent: Wednesday, May 27, 2009 6:31 PM
> To: Tomcat Users List
> Subject: Re: Compile JSP before the first request arrives
>
>
>
> can you give me the good docs about this..
>
>
>
> -Arvind S
>
>
>
> *
>
> "Many of lifes failure are people who did not realize how close they were
> to
>
> success when they gave up."
>
> -Thomas Edison
>
>
>
> *
>
> On Wed, May 27, 2009 at 6:23 PM, David Smith  wrote:
>
>
>
> > S Arvind wrote:
>
> > > Is there any way to pre-compile all the jsp files, when we are
> deploying
>
> > in
>
> > > the production environment?
>
> > >
>
> > > -Arvind S
>
> > >
>
> > > *
>
> > >
>
> > > "Many of lifes failure are people who did not realize how close they
> were
>
> > to
>
> > > success when they gave up."
>
> > > -Thomas Edison*
>
> > >
>
> > >
>
> > Yes ... depends on your build environment.  Most offer some means of
>
> > pre-compiling the jsps to servlets.
>
> >
>
> > --David
>
> >
>
> > -
>
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>
> > For additional commands, e-mail: users-h...@tomcat.apache.org
>
> >
>
> >
>
> No virus found in this incoming message.
>
> Checked by AVG - www.avg.com
>
> Version: 8.5.339 / Virus Database: 270.12.39/2134 - Release Date: 05/25/09
> 18:14:00
>
>


Re: problems with mod_proxy (apache 2.2.9) and tomcat ajp connector (6.0.18)

2009-05-28 Thread Michael Biebl
2009/5/27 Guy Cube :
>
> Any found clue for this issue? We are also having similar issue with JBoss
> 4.2.3/Apache 2.2.9 and mod_proxy_ajp.

I haven't found a solution yet. On the other hand, I haven't seen
those issues for some time now. I tried to do some load tests but it
seems I wasn't able to trigger those problems in a reliable way.

>
> On JBoss side, ajp connections are hanging there. in netstat -an we saw
> AJP's tcp connections were in ESTABLISHED state and stay there forever.

I've seen that too, iirc. I had around 400 open connections on
tcp/tcp6 on port 8009.

>
> Can anyone give us clue, how to fix it?

Unfortunately not.
Just curious: Do you also run a Debian lenny kernel?

> Guy
>
>
>
> Michael Biebl-2 wrote:
>>
>> Hi,
>>
>> first of all, I'd like to say hi, as I'm new to the list.
>>
>> I hope you can help me with the following problem I have.
>> I run a stock Debian lenny installation with apache 2.2.9 and tomcat
>> 6.0.18
>> I'm using mod_proxy to forward the request to tomcat using ajp. The
>> apache vhost configuration looks like this:
>>
>> 
>>
>> ...
>>         ProxyRequests Off
>>         ProxyVia On
>>         ProxyPass /t/ ajp://localhost:8009/barcooServer/t/
>>         ProxyPass /ws/ ajp://localhost:8009/barcooServer/ws/
>>         ProxyPass /reports/ ajp://localhost:8009/barcooServer/reports/
>>         ProxyPass / ajp://localhost:8009/barcooWebsite/
>>         ProxyPassReverse / ajp://localhost:8009/barcooWebsite/
>>         ProxyPassReverseCookiePath /barcooWebsite /
>> ...
>>
>> 
>>
>> The apache mpm prefork modules is used with the following configuration.
>> 
>>     StartServers          5
>>     MinSpareServers       5
>>     MaxSpareServers      10
>>     MaxClients          200
>>     MaxRequestsPerChild   0
>> 
>>
>> The tomcat ajp connector configuration is as simple as
>> 
>>
>>
>> Now, when I get a lot of users access, the http connection via apache
>> slows down to a crawl
>> and I get a lot of the following messages in the kernel log:
>>
>> [2350915.113736] __ratelimit: 11 messages suppressed
>> [2350915.113742] TCPv6: Possible SYN flooding on port 8009. Dropping
>> request.
>>
>> apache and tomcat itself seem to be idling along, and the load is not
>> that high on the machine.
>>
>> Has anyone an idea what's going on there?
>>
>> Thanks in advance for your help,
>> Michael
>>
>> --
>> Why is it that all of the instruments seeking intelligent life in the
>> universe are pointed away from Earth?
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/problems-with-mod_proxy-%28apache-2.2.9%29-and-tomcat-ajp-connector--%286.0.18%29-tp23501257p23737358.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



how to convert struts based apps from tomcat4 to tomcat5.5?

2009-05-28 Thread Maurizio Rottin
Hi all,
i am in the process to move an application from tomcat 4.1.29(source
from tomcat website) to tomcat 5.5.23 with struts 1.2.9 from redhat.

It seems that everything works but one single page so far.

the error from catalina.out is:
"ERROR [TP-Processor40] - Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Define tag cannot set a null value
at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272)
etc. etc."

It should be something about the scope, but we do not understand why
now it works this way! Said in an other way, this error should not be
raised according to the struts documentation on-line.

Since we do not understand why this is not working properly, we are
wondering if:

a) is there a way to migrate the application from tomcat4.1.29 to
5.5.23 without modifing our (.java and .jsp) packages?

b) if not, what are the changes in the struts framework between the
two STRUTS versions? Or at least, may you point us to the right
documentation? (I really can't find it!)

Thank you in advance,

-- 
mr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: MaxPermSize, Tomcat startup trouble

2009-05-28 Thread Peter Crowther
> From: Henjo [mailto:henj...@gmail.com]
> Thank you both for replying. The architecture is indeed x86
> (Windows 2003
> server) and changing OS is not an option right now (going live soon).

The alternative view: You can go live with a known-unreliable system, or you 
can change OS and go live with a maybe-unreliable system :-).

> The strange thing is that if we place all 20 contexts in the Tomcat
> 6.0\webapps then we get this exception/error:
>
> ..backtrace..
> Cause by  java.lang.OutOfMemoryError: PermGen space.
>
> If we place the contexts outside of the Tomcat 6.0\webapps (updated
> server.xml ofc), then we DON'T get the OutOfMemoryError.
> Because we'd like to use the WAR update mechanism, keeping
> all webapps in Tomcat 6.0\webapps is preferred.

I'm somewhat surprised.  Do all 20 contexts get started when they're elsewhere?

By the way, there's one other thing you *could* try if you had to reduce memory 
usage.  I don't like it, because it makes versioning the webapps a nightmare; 
but it might save you quite a lot of RAM and allow you to go live on the 
current hardware.  The choice is yours!

If many of your webapps use the same versions of the same jars, you *could* 
share them between webapps.  The classes will then be loaded once, rather than 
once per webapp, reducing the amount of PermGen required.  The problem, of 
course, is that your webapps are then locked to the same library versions - 
updating one webapp with a new library is a problem.

If you want to look at this approach, check the Tomcat 6 classloader how-to on 
the web site.  But if you do this, I would suggest you regard it as an 
emergency hack and look urgently at ways to remove it.

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Debian Tomcat Fail

2009-05-28 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

trojansnake12 wrote:
> I am about at my wits' end here with Tomcat on Debian.  I have an app
> called Project.java, and all it should do is grab a file from the file
> system,

Debian's Tomcat runs with the security manager enabled by default. You need 
to turn it off (see /etc/default/tomcat6) or write the necessary security 
policy rules.

(And of course you should install openjdk-6-jdk, Tomcat will use it instead 
of gcj if it's installed.)

Cheers,

Marcus

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

iEYEARECAAYFAkoeRbEACgkQXjXn6TzcAQnpPACg0cnZY63fgSJbM4Qm57XzFRyc
VNcAoNlQjbteV+mBN4ph5Axr4YLxe2qH
=D5/a
-END PGP SIGNATURE-



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: retrive Arabic data

2009-05-28 Thread abdul razack
Hi,
 
 I have tested java application with the same setup as I mentioned on  windows 
XP professional PC, windows 2000 professional and Windows Server 2003 
Enterprise edition SP1.  The regional settings for Arabic in all three 
environments were configured.
 
 I could able to retrieve Arabic data perfectly only in Window XP prefessional.
 
But not able to retrive Arabic on Wnidows server 2003 Enterprise Edition SP1 
and Windows 2000 professional.
 
Please let me know whether any thing to do with Operating system settings
 
-Thanks & Regards
-Abdul Razack 
--- On Wed, 5/27/09, Mark Thomas  wrote:


From: Mark Thomas 
Subject: Re: retrive Arabic data
To: "Tomcat Users List" 
Date: Wednesday, May 27, 2009, 5:48 PM


abdul razack wrote:
>  
>  
> 1. In server.xml
>                    maxThreads="150" minSpareThreads="25" 
>useBodyEncodingForURI="true"  URIEncoding="UTF-8"
>                  maxSpareThreads="75" enableLookups="false" 
>redirectPort="8443" acceptCount="100"
>                connectionTimeout="2" disableUploadTimeout="true" />
>  
> 2. In all JSP pages 
>  
>   <%@ page contentType="text/html;charset=UTF-8" %>
>  
>  
> 3. But I am surprise to see in servlet that request.getCharacterEncoding ( ) 
> as null.
> 
> Still I have same problem.

Try the sample JSP in the FAQ I pointed you towards. If that works, you
have an application issue. If that doesn't work, you have broken your
Tomcat config somewhere.

Mark

>  
> -Abdul Razack
>  
>  
> 
> 
> --- On Wed, 5/27/09, Youssef Mohammed  wrote:
> 
> 
> From: Youssef Mohammed 
> Subject: Re: retrive Arabic data
> To: "Tomcat Users List" 
> Date: Wednesday, May 27, 2009, 4:53 PM
> 
> 
> u just need to set your content encoding to UTF-8 in your jspes
> <%@ page pageEncoding="UTF-8" %>
> I think also there might be a way to set the default encoding to utf8 !
> Regards, Youssef
> 
> 
> 
> On Wed, May 27, 2009 at 2:16 PM, abdul razack  wrote:
>> Hi,
>>
>>  I have Java web application (JSP, Servlet, SQL server 2005) running on 
>>apache-tomcat-5.5.23.
>>
>> I am facing one problem when retriving Arabic data from database. The data 
>> contains both english and Arabic in table.
>> when retirve  data from java application all arabic is appearing as . 
>> But english is coming is perfectly.
>>
>> The combination of Arabic and english data will be inserted in the database 
>> through other application (ASP.Net technology).The encoding uses (UTF-8). In 
>> database table arabic columns will have arabic and english columns will have 
>> english.
>>
>> Please give me direction what would have gone wrong.
>> Would there be any problem in Tomcat.
>>
>> Thanks & Regards
>> -Abdul Razack
>>
>>
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 
> 
>       



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

Re: Tomcat 6 - not started AJP/NIO on CentOS

2009-05-28 Thread Dmitriy Repin

Rainer Jung wrote:

Please share your solution, so that other people looking for help do not
need to ask the same question again.

On 28.05.2009 06:41, Dmitriy Repin wrote:
  

Dmitriy Repin wrote:


Caldarale, Charles R wrote:
  

Post the server.xml from your CentOS attempt so we can look at it.

 - Chuck

  


Problem solved.

Although I turned off the org.apache.catalina.core.AprLifecycleListener, 
it is still loaded libtcnative.

I moved the library and all works fine.

May 28, 2009 8:16:31 AM org.apache.coyote.http11.Http11NioProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 28, 2009 8:16:32 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 disabling channelSocket
May 28, 2009 8:16:32 AM org.apache.jk.common.ChannelNioSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 28, 2009 8:16:32 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/46  config=null


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



  1   2   >