Re: Performance & *SpareThreads

2011-05-25 Thread McAfe

Hi Chris,

The Apache MPM I was using the default configuration (believe is prefork
MPM)

StartServers  5
MinSpareServers   5
MaxSpareServers  10
MaxClients  150
MaxRequestsPerChild   0

And I've changed to following (the result did not improve or any better
sign)
StartServers  64
MinSpareServers   64
MaxSpareServers  128
MaxClients   256
MaxRequestsPerChild   0


For tomcat executor this my setting, as I mention early





The scenario testing in Jmeter, before that in the tomcat I've 3 different
webapps (The Jmeter testing have 3 HTTP request and each point to each
webapps in the tomcat)

1) Number of thread = 200 and ramp-up period=1
   Result: Test 10 / Pass 10
2) Number of thread = 300 and ramp-up period=1
   Overall result: Test 10 each test will get 3%~5% error (but the tomcat /
apache still working)
   * The error is java.net.ConnectException: Connection refused: connect
3) Number of thread = 500 and ramp-up period=1
   Overall result: Test 10 each test will get 20%~50% error (but the tomcat
/ apache still working)
   * The error is java.net.ConnectException: Connection refused: connect

My plan is to target Number of thread = 1000 and ramp-up period =1 (I no
idea this can it be done) and the result is 100% if possible (so I can have
the benchmarks)

In the same time I will look on database connection, thank you as yesterday
you have giving the tips of IO part and worry when grab data from database
it may delay.

Thank You for your time and knowledge :-)

- McAfe
-- 
View this message in context: 
http://old.nabble.com/Performance---*SpareThreads-tp31687863p31704618.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: Hosting a website

2011-05-25 Thread David Kerber

On 5/25/2011 8:10 PM, abdelghni belfkih wrote:

I just don't know what to say or how to thank u André.
But i should say it;thank you so much for the attention u showed for this
matter and the time u spent to write the email.

I do agreed with u that I didn't make myself clear so that people could help
me easily. However, my problem is that I'm new to hosting websites and i
don't know the basics,


Neither do we, except for websites that run under tomcat.

Dave



and what's the provider's responsibility in this
case.



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



Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
And to give more information, the website is the OpenGTS project if you knew
it. It's an open source tracking GPS application.

On Thu, May 26, 2011 at 1:10 AM, abdelghni belfkih
wrote:

> I just don't know what to say or how to thank u André.
> But i should say it;thank you so much for the attention u showed for this
> matter and the time u spent to write the email.
>
> I do agreed with u that I didn't make myself clear so that people could
> help me easily. However, my problem is that I'm new to hosting websites and
> i don't know the basics, and what's the provider's responsibility in this
> case.
>
> I will search and get more information about this issue. And, then if i
> have any question or i need help i will ask you that.
>
> Tks again brave man and keep in touch :)
>
>
>
>
>
> On Wed, May 25, 2011 at 11:26 PM, André Warnier  wrote:
>
>> abdelghni belfkih wrote:
>>
>>> First, I assure you that tomcat is already installed in that server,
>>> because
>>> i have seen the default page which shows that tomcat is successfully
>>> installed and works.
>>>
>>
>> Good to know.  We did not know that before, or did we ?
>>
>>
>>  But, my issue isn't with tomcat itself but with transferring a website
>>> from
>>> a local server ( Ubuntu 10.10) to a distant and a payable server via
>>> DirectAdmin.
>>>
>>>  What do you mean by "website" ? "www.google.fr" is a website, composed
>> of many applications and running on several hundred or thousands of physical
>> hosts.
>>
>>
>>  Anyway i don't want to bother you with that problem since i have been
>>> told
>>> that it dosn't concern this mailing list.
>>>
>>>
>> abdelghni,
>> setting up Tomcat or a website or a web application is not poetry or
>> politics.
>> It is one of these dry technical matters which needs precise information,
>> and you cannot expect helpful answers if you do not provide this information
>> first.
>>
>> It is not that your problem does not /concern/ this mailing list, or that
>> people here would not want to help you.
>> The issue is that people on this list have no knowledge of that remote
>> server, or of this "DirectAdmin" of which you are talking, and thus cannot
>> help you with that particular aspect. (We don't know if it provides a
>> console, if it provides for file transfer, if you can use it to stop/start
>> Tomcat or change its configuration etc..)
>>
>> It is also that the expression "transfer a website" is not very clear.
>> Are you talking about one web application (or webapp or context), or about
>> a whole webserver "host" containing multiple web applications ?
>>
>> The point is, you have not asked your question in a way such that people
>> here would know if they can help or not, or how.
>>
>> Let me give you an example of a very simple case :
>>
>> - IF you have read the on-line Tomcat documentation
>> - IF the remote server has Tomcat installed, and the versions of Java and
>> Tomcat on your local server and remote server are relatively similar to one
>> another
>> - IF the remote Tomcat server has the Tomcat Manager application installed
>> and running, and accessible from your current location
>> - IF you know the user-id and password to access the Manager application
>> - IF what you must transfer is a single web application
>> - and IF that web application is already packaged as one single "war" file
>> (a special kind of zip file containing the whole web application)
>>
>> THEN
>> - you could install that web application on the remote server using simply
>> a browser :
>>  - call up the Manager application on the remote server
>> (http://remoteserver.company.com:port/manager/html)
>>  - on that page, there is a section "WAR file to deploy", that you can use
>> to upload
>>your web application ".war" file, and deploy it right away.
>>
>> and you would not even need to use this "DirectAdmin" at all.
>>
>> But you did not tell us any of that, and just asked us about DirectAdmin.
>>
>> If you are not in the simple case above, then moving one or more
>> applications from server1 to server2 will probably be more complicated, and
>> 1) will most probably involve copying files from the one to the other. So
>> you should find out (from your ISP support people, or from some
>> "DirectAdmin" support people) how this works
>> 2) may involve editing/changing some Tomcat configuration files on the
>> remote server, so you should also find out how to do that.
>> 3) will probably involve restarting Tomcat on the remote server, so you
>> should also find out how to do that
>> 4) if the versions of Java and/or Tomcat and/or the O.S. are different
>> between your local machine and the remote server, then there may be more
>> things to change. So you should also find that out.
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
> --
> Élève Ingénieur en TIC
> Op

Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
I just don't know what to say or how to thank u André.
But i should say it;thank you so much for the attention u showed for this
matter and the time u spent to write the email.

I do agreed with u that I didn't make myself clear so that people could help
me easily. However, my problem is that I'm new to hosting websites and i
don't know the basics, and what's the provider's responsibility in this
case.

I will search and get more information about this issue. And, then if i have
any question or i need help i will ask you that.

Tks again brave man and keep in touch :)





On Wed, May 25, 2011 at 11:26 PM, André Warnier  wrote:

> abdelghni belfkih wrote:
>
>> First, I assure you that tomcat is already installed in that server,
>> because
>> i have seen the default page which shows that tomcat is successfully
>> installed and works.
>>
>
> Good to know.  We did not know that before, or did we ?
>
>
>  But, my issue isn't with tomcat itself but with transferring a website
>> from
>> a local server ( Ubuntu 10.10) to a distant and a payable server via
>> DirectAdmin.
>>
>>  What do you mean by "website" ? "www.google.fr" is a website, composed
> of many applications and running on several hundred or thousands of physical
> hosts.
>
>
>  Anyway i don't want to bother you with that problem since i have been told
>> that it dosn't concern this mailing list.
>>
>>
> abdelghni,
> setting up Tomcat or a website or a web application is not poetry or
> politics.
> It is one of these dry technical matters which needs precise information,
> and you cannot expect helpful answers if you do not provide this information
> first.
>
> It is not that your problem does not /concern/ this mailing list, or that
> people here would not want to help you.
> The issue is that people on this list have no knowledge of that remote
> server, or of this "DirectAdmin" of which you are talking, and thus cannot
> help you with that particular aspect. (We don't know if it provides a
> console, if it provides for file transfer, if you can use it to stop/start
> Tomcat or change its configuration etc..)
>
> It is also that the expression "transfer a website" is not very clear.
> Are you talking about one web application (or webapp or context), or about
> a whole webserver "host" containing multiple web applications ?
>
> The point is, you have not asked your question in a way such that people
> here would know if they can help or not, or how.
>
> Let me give you an example of a very simple case :
>
> - IF you have read the on-line Tomcat documentation
> - IF the remote server has Tomcat installed, and the versions of Java and
> Tomcat on your local server and remote server are relatively similar to one
> another
> - IF the remote Tomcat server has the Tomcat Manager application installed
> and running, and accessible from your current location
> - IF you know the user-id and password to access the Manager application
> - IF what you must transfer is a single web application
> - and IF that web application is already packaged as one single "war" file
> (a special kind of zip file containing the whole web application)
>
> THEN
> - you could install that web application on the remote server using simply
> a browser :
>  - call up the Manager application on the remote server
> (http://remoteserver.company.com:port/manager/html)
>  - on that page, there is a section "WAR file to deploy", that you can use
> to upload
>your web application ".war" file, and deploy it right away.
>
> and you would not even need to use this "DirectAdmin" at all.
>
> But you did not tell us any of that, and just asked us about DirectAdmin.
>
> If you are not in the simple case above, then moving one or more
> applications from server1 to server2 will probably be more complicated, and
> 1) will most probably involve copying files from the one to the other. So
> you should find out (from your ISP support people, or from some
> "DirectAdmin" support people) how this works
> 2) may involve editing/changing some Tomcat configuration files on the
> remote server, so you should also find out how to do that.
> 3) will probably involve restarting Tomcat on the remote server, so you
> should also find out how to do that
> 4) if the versions of Java and/or Tomcat and/or the O.S. are different
> between your local machine and the remote server, then there may be more
> things to change. So you should also find that out.
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: Overriding error page displayed when a context fails to initialize

2011-05-25 Thread Sai Pullabhotla
I made the context fail by not having the database available.
Basically, in the contextInitialized method, we need to load various
application settings from the database and if the DB is not up, the
context fails to load.

The custom error pages are defined in the web.xml for ROOT and
context1. All error codes and specific exceptions are forwarded to an
ErrorHandlerServlet, which performs additional logging, create custom
titles and descriptions based on the error code/exception and then in
turn forwards to a JSP which displays the error.

I will take a look at the ErrorReportValve and see if I could make use of it.

Thanks.

Sai Pullabhotla



On Wed, May 25, 2011 at 9:04 AM, Pid  wrote:
> On 25/05/2011 13:36, Sai Pullabhotla wrote:
>> Thanks for the replies and suggestions.
>>
>> I don't think Tomcat falls back to the ROOT context if another context
>> fails to start (unless I'm missing something).
>>
>> Just to try it out, I did create a subfolder called "context1" in
>> ROOT, with an index page in the folder. I made the context1 to fail.
>> The log indicates that context1 failed to startup with the following
>> error.
>>
>> SEVERE: Context [/context1] startup failed due to previous errors
>
> How did you make it fail?
>
>
>> When I try an URL that starts with /context1, I still get Tomcat's
>> default error page with a status code of 404, not the custom error
>> pages I've in ROOT or the context1. If course, it will never be able
>> to load the custom error pages from context1, it does not fall back to
>> ROOT either. All other URLs (that do not start with /context1) display
>> the custom error pages from the ROOT context.
>
> How have you defined the custom error pages?
>
>
>> The main reason why we need custom error pages is for security - do
>> NOT display any information about the product that may help a hacker
>> to run sophisticated attacks.
>>
>> I guess, it may not be a bad idea for a product (container) to provide
>> an option to override error pages.
>
>
> @See ErrorReportValve
>
>  http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/valves/ErrorReportValve.html
>
>  http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html
>
>
> p
>
>
>

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



Apache Tomcat under SELinux policy

2011-05-25 Thread Marcos Ortiz

Regards to all the list
I'm a young Unix Administrator focused on this moment on the 
installation and configuration of a completed system under SELinux 
policies for MAC(Mandatory Access Control)
and one of the services that we are using on it is Apache Tomcat (mainly 
the version 6.X). So Can you provide to us a completed guide to Apache 
Tomcat's installation and configuration using SELinux? Any resources?


We are using basically two applications deployed on Tomcat:
- Liferay
- jasigCAS

Any ideas and comments are welcome.

--
Marcos Luis Ortiz Valmaseda
 Software Engineer (Distributed Systems)
 http://uncubanitolinuxero.blogspot.com



RE: JK Connector failure after IIS recycle - version 1.2.30

2011-05-25 Thread Nick Williams
Thanks for the insight. I'll give it a little more time, but I'm being
pushed by my superiors here for an answer that I can't give, so I'll have
to file a bug before long.

Does anyone know if there are any other (open source OR commercial/paid)
alternatives to integrating Tomcat with IIS and/or Apache?

N

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Wednesday, May 25, 2011 3:49 PM
To: Tomcat Users List
Subject: Re: JK Connector failure after IIS recycle - version 1.2.30

Nick Williams wrote:
> Does anyone have any feeback? Do I need to report a bug?
>

My own experience with this list, is that when someone reports an issue or
asks a question
which fits with the knowledge or experience of the people on the list,
usually the
reaction time is short.  So the fact that nobody has answered within the
last 3 working
days is unusual, and may be just an indication that nobody has a clue.
On the other hand, it may just mean that none of the relatively few people
qualified to
answer has been around yet, or has seen your original post.

About the bug report : I suppose you could, but 3 working days since the
initial problem
report may be a bit premature for an issue which, by your own description,
sounds for now
like a one-off and difficult for you or someone else to reproduce.



-
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: Hosting a website

2011-05-25 Thread André Warnier

abdelghni belfkih wrote:

First, I assure you that tomcat is already installed in that server, because
i have seen the default page which shows that tomcat is successfully
installed and works.


Good to know.  We did not know that before, or did we ?


But, my issue isn't with tomcat itself but with transferring a website from
a local server ( Ubuntu 10.10) to a distant and a payable server via
DirectAdmin.

What do you mean by "website" ? "www.google.fr" is a website, composed of many 
applications and running on several hundred or thousands of physical hosts.



Anyway i don't want to bother you with that problem since i have been told
that it dosn't concern this mailing list.



abdelghni,
setting up Tomcat or a website or a web application is not poetry or politics.
It is one of these dry technical matters which needs precise information, and you cannot 
expect helpful answers if you do not provide this information first.


It is not that your problem does not /concern/ this mailing list, or that people here 
would not want to help you.
The issue is that people on this list have no knowledge of that remote server, or of this 
"DirectAdmin" of which you are talking, and thus cannot help you with that particular 
aspect. (We don't know if it provides a console, if it provides for file transfer, if you 
can use it to stop/start Tomcat or change its configuration etc..)


It is also that the expression "transfer a website" is not very clear.
Are you talking about one web application (or webapp or context), or about a whole 
webserver "host" containing multiple web applications ?


The point is, you have not asked your question in a way such that people here would know 
if they can help or not, or how.


Let me give you an example of a very simple case :

- IF you have read the on-line Tomcat documentation
- IF the remote server has Tomcat installed, and the versions of Java and Tomcat on your 
local server and remote server are relatively similar to one another
- IF the remote Tomcat server has the Tomcat Manager application installed and running, 
and accessible from your current location

- IF you know the user-id and password to access the Manager application
- IF what you must transfer is a single web application
- and IF that web application is already packaged as one single "war" file (a special kind 
of zip file containing the whole web application)


THEN
- you could install that web application on the remote server using simply a 
browser :
  - call up the Manager application on the remote server
 (http://remoteserver.company.com:port/manager/html)
  - on that page, there is a section "WAR file to deploy", that you can use to 
upload
your web application ".war" file, and deploy it right away.

and you would not even need to use this "DirectAdmin" at all.

But you did not tell us any of that, and just asked us about DirectAdmin.

If you are not in the simple case above, then moving one or more applications from server1 
to server2 will probably be more complicated, and
1) will most probably involve copying files from the one to the other. So you should find 
out (from your ISP support people, or from some "DirectAdmin" support people) how this works
2) may involve editing/changing some Tomcat configuration files on the remote server, so 
you should also find out how to do that.
3) will probably involve restarting Tomcat on the remote server, so you should also find 
out how to do that
4) if the versions of Java and/or Tomcat and/or the O.S. are different between your local 
machine and the remote server, then there may be more things to change. So you should also 
find that out.




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



Re: JK Connector failure after IIS recycle - version 1.2.30

2011-05-25 Thread André Warnier

Nick Williams wrote:

Does anyone have any feeback? Do I need to report a bug?



My own experience with this list, is that when someone reports an issue or asks a question 
which fits with the knowledge or experience of the people on the list, usually the 
reaction time is short.  So the fact that nobody has answered within the last 3 working 
days is unusual, and may be just an indication that nobody has a clue.
On the other hand, it may just mean that none of the relatively few people qualified to 
answer has been around yet, or has seen your original post.


About the bug report : I suppose you could, but 3 working days since the initial problem 
report may be a bit premature for an issue which, by your own description, sounds for now 
like a one-off and difficult for you or someone else to reproduce.




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



Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
First, I assure you that tomcat is already installed in that server, because
i have seen the default page which shows that tomcat is successfully
installed and works.
But, my issue isn't with tomcat itself but with transferring a website from
a local server ( Ubuntu 10.10) to a distant and a payable server via
DirectAdmin.

Anyway i don't want to bother you with that problem since i have been told
that it dosn't concern this mailing list.

Thanks body

On Wed, May 25, 2011 at 8:16 PM, André Warnier  wrote:

> abdelghni belfkih wrote:
>
>> tks Peter for ur help and sorry if this wasn't a tomcat issue.
>>
>
> At this point and with the information you have provided so far, it is not
> even clear that the host you are talking about even has a Tomcat installed
> on it.
> You might want to check that first.
>
> And if/when it does, and you have questions related to Tomcat, then I
> suggest that you provide the following information with your next question :
> - the operating system and version
> - the exact version of Java
> - the exact version of Tomcat
> - and where from this Tomcat came
> That will save time for everyone, mostly for you.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: Hosting a website

2011-05-25 Thread André Warnier

abdelghni belfkih wrote:

tks Peter for ur help and sorry if this wasn't a tomcat issue.


At this point and with the information you have provided so far, it is not even clear that 
the host you are talking about even has a Tomcat installed on it.

You might want to check that first.

And if/when it does, and you have questions related to Tomcat, then I suggest that you 
provide the following information with your next question :

- the operating system and version
- the exact version of Java
- the exact version of Tomcat
- and where from this Tomcat came
That will save time for everyone, mostly for you.

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



Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
tks Peter for ur help and sorry if this wasn't a tomcat issue.

On Wed, May 25, 2011 at 4:14 PM, Peter Miklosko wrote:

> Off topic: DirectAdmin http://www.directadmin.com/ is like cPanel which is
> web hosting control panel system
>
> @abdelghni belfkih check DirectAdmin FTP Menu. If your hosting provider is
> any good you should have there default FTP
> user account that you can use it to upload your application. Nevertheless
> check hosting company guidelines for application deployment.
> If there are none then you need to contact your hosting company (at this
> point I would already consider to move to different provider)
>
>
> Peter
>
> On 25 May 2011 15:10, David kerber  wrote:
>
> > On 5/25/2011 10:01 AM, abdelghni belfkih wrote:
> >
> >> ah ok, i thought he meant support guys here
> >>
> >
> > You already have contacted them, by posting here...
> >
> > What is DirectAdmin, btw?
> >
> >
> >
> >
> >
> >> On Wed, May 25, 2011 at 2:32 PM, David kerber
> >>  wrote:
> >>
> >>  On 5/25/2011 9:13 AM, abdelghni belfkih wrote:
> >>>
> >>>  tks Mikolaj, so plz give me their mail :)
> 
> 
> >>> I believe he meant the support guys at your hosting service!
> >>>
> >>>
> >>>
> >>>
> >>>  On Wed, May 25, 2011 at 2:10 PM, abdelghni belfkih
>  wrote:
> 
>   i have a track.war and i deploy it in my local tomcat server. but to
> do
> 
> > it
> > via DirectAdmin for the distant sever that's the problem
> >
> >
> > On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski
> > wrote:
> >
> >  On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:
> >
> >>
> >>  yeah thats what I think I should do. But, how can i deploy my .rar
> >>
> >>> since
> >>> I connect to the distant server via DirectAdmin?
> >>>
> >>>
> >>>  Ask support guys?
> >>
> >> --
> >> Mikolaj Rydzewski
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
>



-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


RE: JK Connector failure after IIS recycle - version 1.2.30

2011-05-25 Thread Nick Williams
Does anyone have any feeback? Do I need to report a bug?



Nick



*From:* Nick Williams [mailto:nicholas.willi...@puresafety.com]
*Sent:* Friday, May 20, 2011 6:19 PM
*To:* 'Tomcat Users List'
*Subject:* JK Connector failure after IIS recycle - version 1.2.30



Environment:

Windows Server 2008

IIS 7.0

Tomcat 6.0.29

ISAPI Redirect JK Connector 1.2.30



At 14:06:57 this afternoon, IIS performed a recycle (it does this ever 29
hours and has for years without causing us problems):



“A worker process with process id of '10536' serving application pool
'DefaultAppPool' has requested a recycle because the worker process reached
its allowed processing time limit.”



The last log entry in the IIS log file until the recycle complete was at
14:06:57. We get about 100 requests per second, and there were about 100
requests at 14:06:57.



>From 14:06:58-14:07:01 (the three seconds following the recycle), the
following log messages appeared in the JK connector ISAPI redirect log (more
information following this abbreviated log output):



[Fri May 20 14:06:23.707 2011] [10536:7896] [error]
ajp_service::jk_ajp_common.c (2559): (s01aspgrp03) connecting to tomcat
failed.

[Fri May 20 14:06:58.745 2011] [12064:6756] [error]
wc_create_worker::jk_worker.c (151): factory for lb failed for lbaspgrp10

[Fri May 20 14:06:58.854 2011] [12064:6756] [error]
build_worker_map::jk_worker.c (262): failed to create worker lbaspgrp10

[Fri May 20 14:06:58.854 2011] [12064:6756] [error]
uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with
name 'lbaspgrp14' in uri map post processing.

… (hundreds of these messages) …

[Fri May 20 14:06:59.386 2011] [12064:6756] [error]
uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with
name 'lbaspgrp13' in uri map post processing.

[Fri May 20 14:06:59.433 2011] [12064:8708] [error]
ajp_worker_factory::jk_ajp_common.c (2929): allocating ajp worker record
from shared memory

[Fri May 20 14:06:59.433 2011] [12064:8708] [error]
wc_create_worker::jk_worker.c (151): factory for ajp13 failed for default

[Fri May 20 14:06:59.433 2011] [12064:8708] [error]
build_worker_map::jk_worker.c (262): failed to create worker default

[Fri May 20 14:06:59.433 2011] [12064:8708] [error]
uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with
name 'lbaspgrp14' in uri map post processing.

… (hundreds of these messages) …

[Fri May 20 14:07:00.012 2011] [12064:8708] [error]
uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with
name 'lbaspgrp13' in uri map post processing.

[Fri May 20 14:07:00.043 2011] [12064:14296] [error]
ajp_worker_factory::jk_ajp_common.c (2929): allocating ajp worker record
from shared memory

[Fri May 20 14:07:00.043 2011] [12064:14296] [error]
wc_create_worker::jk_worker.c (151): factory for ajp13 failed for default

[Fri May 20 14:07:00.043 2011] [12064:14296] [error]
build_worker_map::jk_worker.c (262): failed to create worker default

[Fri May 20 14:07:00.043 2011] [12064:14296] [error]
uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with
name 'lbaspgrp14' in uri map post processing.

… (hundreds of these messages) …

[Fri May 20 14:07:00.606 2011] [12064:14296] [error]
uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with
name 'lbaspgrp13' in uri map post processing.

[Fri May 20 14:07:00.638 2011] [12064:14904] [error]
ajp_worker_factory::jk_ajp_common.c (2929): allocating ajp worker record
from shared memory

[Fri May 20 14:07:00.638 2011] [12064:14904] [error]
wc_create_worker::jk_worker.c (151): factory for ajp13 failed for default

[Fri May 20 14:07:00.653 2011] [12064:14904] [error]
build_worker_map::jk_worker.c (262): failed to create worker default

[Fri May 20 14:07:00.653 2011] [12064:14904] [error]
uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with
name 'lbaspgrp14' in uri map post processing.

… (hundreds of these messages) …

[Fri May 20 14:07:01.169 2011] [12064:14904] [error]
uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with
name 'lbaspgrp13' in uri map post processing.



Beginning at 14:06:59 and continuing until we shut down IIS and failed over
to another server 30 minutes later, requests began appearing in the IIS log
file again, but at this time ALL requests were replied to with a 500
internal server error. We have been running this server with this
configuration for over a year without any issues like this until now. No
configuration settings were changed. No workers were added. We do not have
shm_size set anywhere since, per the documentation, that directive is not
needed anymore as of 1.2.27.



I have been unable to find any useful information about this elsewhere, save
this bug:



https://issues.apache.org/bugzilla/show_bug.cgi?id=40877



However, that bug was apparently fixed back in 2007 with version 1.2.20. So,
I’m not sure if it’s related or not.



Any insights? Has anyone else seen this?

Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-25 Thread Mark Thomas
On 25/05/2011 18:14, Christopher Schultz wrote:
> Kerotan,
> 
> On 5/25/2011 9:32 AM, kerotan wrote:
>> On "Package Explorer" of Eclipse, the file system is showed as follows:
>> 
>> test
>> +--- WEB-INF/src
>> | +--- servlets
>> |   +--- HelloServlet.java
>> +--- sample.txt
>> 
>> Yes. This webapp is devployes into the /test context path because I
>> confirmed the following two points.
>> First, I checked that
>> \apache-tomcat-7.0.14\conf\Catalina\localhost\test.xml is existed and
>> that "" is described in test.xml.
> 
> You should not have the "path" attribute set in the ... Tomcat
> can infer the name of the context path from the name of the XML config
> file, or the name of the WAR (or exploded WAR directory).
> 
>> Second, I tested that /test context path is workable with calling
>> "http://localhost:8080/test/sample.txt"; on a browser. It is OK.
> 
> Good.
> 
 A different file name, or a different "name" attribute chosen in the
 @WebServlet annotation? The former makes no sense, while the latter
 makes perfect sense.
> 
>> On "Package Explorer" of Eclipse, the file system is showed as follows:
>> 
>> ex3
>> +--- WEB-INF/src
>> | +--- input
>> | | +--- GuessServlet.java
>> | +--- input2
>> |   +--- GuessServlet.java
>> +--- input
>> | +--- guess.jsp
>> +--- input2
>>   +--- guess.jsp
>> 
>> "GuessServlet.java" of input2 package and "guess.jsp" of input2 package
>> revise specification of each input package.
>> In this case, "@WebServlet" annotation was not available under the
>> different "urlPatterns".
>> 
>> package:input
>> file name:GuessServlet.java
> 
>> @WebServlet(name="GuessServlet", urlPatterns={"/guess"})
>> public class GuessServlet extends HttpServlet {
>> 
>> package:input2
>> file name:GuessServlet.java
> 
>> @WebServlet(name="GuessServlet", urlPatterns={"/guess2"})
>> public class GuessServlet extends HttpServlet {
> 
> 
> Here, the problem is not that the file/class name is the same, but
> because you have declared both servlets to be called "GuessServlet".
> That's not legal: you must give them distinct names.
> 
>> I would like to explain a flow of three programs above Eclipse file system.
>> First, A browser calls "http://localhost:8080/basic/reqattr/guess.jsp";.
> 
> Everything here is confusing: the context path changes from "/test" to
> "/ex3" to "/basic". Let's deal with one thing at a time, here.
> 
>> Second, "guess.jsp" calls "/reqattr/GuessServlet.java" by inputing a
>> charactor. In this servlet program, depending on a answer, a return path
>> is branched into two paths.
>> Third, two path are brabched depending on a answer. One is
>> "/reqattr/guess.jsp". Another is "/reqattr/guess_hit.jsp". The branch
>> control is done by "RequestDispatcher dispatcher =
>> request.getRequestDispatcher(path);".
>> Forth, "GuessServlet.java" can return to "guess.jsp" or "guess_hit.jsp".
>> Fifth, "guess.jsp" can call "/reqattr/GuessServlet.java" by inputing a
>> charactor, again.
>> Sixth, Here, a browser showed the error message of HTTP status 404,
>> which indicated that the requested resource(/guess) is not available.
> 
> - From what you have above, "/guess" does not appear to be a valid URL.
> You appear to have lost the context path somewhere.
> 
>> A program of file upload with "@WebServlet" and "@MultipartConfig" is
>> successfully workable in my environment. So far, I would like to ask you
>> a technique to follow the specification of Servlet 3.0. Or is Tomcat
>> 7.0.14 under the implementation of the specification on Servlet 3.0?
> 
> Yes, Tomcat 7.0 follows Servlet 3.0. You just appear to be using it
> incorrectly.

Not to mention trying to get Tomcat to execute .java files that have no
been compiled into .class files.

Mark



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



Re: problems get tomcat6 running

2011-05-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 5/25/2011 11:06 AM, André Warnier wrote:
> I believe that the following lines in the log give a further hint :
>at
> org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:409)
> at
> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103)
> 
> 
> .. that it is maybe not in the "server.xml" file, but in the
> "tomcat-users.xml" file that the problem occurs.

+1

> And from this :
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1393)
> 
> might we guess also that you tried to remove a comment section, but did
> not quite succeed ?

It seems many people cannot successfully edit tomcat-users.xml due to
comment issues :(

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

iEYEARECAAYFAk3dLVsACgkQ9CaO5/Lv0PDEewCfadWT8XE/WgWr5OSqe9+vhIgk
JQEAn326yANrOmOXZj6iXtuJv2+vXMky
=ehD4
-END PGP SIGNATURE-

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



Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kerotan,

On 5/25/2011 9:32 AM, kerotan wrote:
> On "Package Explorer" of Eclipse, the file system is showed as follows:
> 
> test
> +--- WEB-INF/src
> | +--- servlets
> |   +--- HelloServlet.java
> +--- sample.txt
> 
> Yes. This webapp is devployes into the /test context path because I
> confirmed the following two points.
> First, I checked that
> \apache-tomcat-7.0.14\conf\Catalina\localhost\test.xml is existed and
> that "" is described in test.xml.

You should not have the "path" attribute set in the ... Tomcat
can infer the name of the context path from the name of the XML config
file, or the name of the WAR (or exploded WAR directory).

> Second, I tested that /test context path is workable with calling
> "http://localhost:8080/test/sample.txt"; on a browser. It is OK.

Good.

>>> A different file name, or a different "name" attribute chosen in the
>>> @WebServlet annotation? The former makes no sense, while the latter
>>> makes perfect sense.
>
> On "Package Explorer" of Eclipse, the file system is showed as follows:
> 
> ex3
> +--- WEB-INF/src
> | +--- input
> | | +--- GuessServlet.java
> | +--- input2
> |   +--- GuessServlet.java
> +--- input
> | +--- guess.jsp
> +--- input2
>   +--- guess.jsp
> 
> "GuessServlet.java" of input2 package and "guess.jsp" of input2 package
> revise specification of each input package.
> In this case, "@WebServlet" annotation was not available under the
> different "urlPatterns".
> 
> package:input
> file name:GuessServlet.java
> 
> @WebServlet(name="GuessServlet", urlPatterns={"/guess"})
> public class GuessServlet extends HttpServlet {
> 
> package:input2
> file name:GuessServlet.java
> 
> @WebServlet(name="GuessServlet", urlPatterns={"/guess2"})
> public class GuessServlet extends HttpServlet {


Here, the problem is not that the file/class name is the same, but
because you have declared both servlets to be called "GuessServlet".
That's not legal: you must give them distinct names.

> I would like to explain a flow of three programs above Eclipse file system.
> First, A browser calls "http://localhost:8080/basic/reqattr/guess.jsp";.

Everything here is confusing: the context path changes from "/test" to
"/ex3" to "/basic". Let's deal with one thing at a time, here.

> Second, "guess.jsp" calls "/reqattr/GuessServlet.java" by inputing a
> charactor. In this servlet program, depending on a answer, a return path
> is branched into two paths.
> Third, two path are brabched depending on a answer. One is
> "/reqattr/guess.jsp". Another is "/reqattr/guess_hit.jsp". The branch
> control is done by "RequestDispatcher dispatcher =
> request.getRequestDispatcher(path);".
> Forth, "GuessServlet.java" can return to "guess.jsp" or "guess_hit.jsp".
> Fifth, "guess.jsp" can call "/reqattr/GuessServlet.java" by inputing a
> charactor, again.
> Sixth, Here, a browser showed the error message of HTTP status 404,
> which indicated that the requested resource(/guess) is not available.

- From what you have above, "/guess" does not appear to be a valid URL.
You appear to have lost the context path somewhere.

> A program of file upload with "@WebServlet" and "@MultipartConfig" is
> successfully workable in my environment. So far, I would like to ask you
> a technique to follow the specification of Servlet 3.0. Or is Tomcat
> 7.0.14 under the implementation of the specification on Servlet 3.0?

Yes, Tomcat 7.0 follows Servlet 3.0. You just appear to be using it
incorrectly.

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

iEYEARECAAYFAk3dKsoACgkQ9CaO5/Lv0PDjGQCggYKfEOlJkd6EuNrc3fFE+obM
L00AoINnd5nCgbEwPeUtCl7Su91BstSF
=6KZx
-END PGP SIGNATURE-

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



Re: Hosting a website

2011-05-25 Thread Peter Miklosko
Off topic: DirectAdmin http://www.directadmin.com/ is like cPanel which is
web hosting control panel system

@abdelghni belfkih check DirectAdmin FTP Menu. If your hosting provider is
any good you should have there default FTP
user account that you can use it to upload your application. Nevertheless
check hosting company guidelines for application deployment.
If there are none then you need to contact your hosting company (at this
point I would already consider to move to different provider)


Peter

On 25 May 2011 15:10, David kerber  wrote:

> On 5/25/2011 10:01 AM, abdelghni belfkih wrote:
>
>> ah ok, i thought he meant support guys here
>>
>
> You already have contacted them, by posting here...
>
> What is DirectAdmin, btw?
>
>
>
>
>
>> On Wed, May 25, 2011 at 2:32 PM, David kerber
>>  wrote:
>>
>>  On 5/25/2011 9:13 AM, abdelghni belfkih wrote:
>>>
>>>  tks Mikolaj, so plz give me their mail :)


>>> I believe he meant the support guys at your hosting service!
>>>
>>>
>>>
>>>
>>>  On Wed, May 25, 2011 at 2:10 PM, abdelghni belfkih
 wrote:

  i have a track.war and i deploy it in my local tomcat server. but to do

> it
> via DirectAdmin for the distant sever that's the problem
>
>
> On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski
> wrote:
>
>  On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:
>
>>
>>  yeah thats what I think I should do. But, how can i deploy my .rar
>>
>>> since
>>> I connect to the distant server via DirectAdmin?
>>>
>>>
>>>  Ask support guys?
>>
>> --
>> Mikolaj Rydzewski
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


RE: JSP hosting

2011-05-25 Thread Caldarale, Charles R
> From: abdelghni belfkih [mailto:belfkih.i...@gmail.com] 
> Subject: JSP hosting

> I want to host a JSP website. the control panel used by the provider is
> DirectAdmin. I have access to my account there but since I'm new to hosting
> website i need help in this matter. Can someone send me a good tuto about
> this, or show me what to do?

Since you've already been told that you'll have to discuss this with your 
hosting provider - since no one here knows anything about whatever DirectAdmin 
is - why do you persist in asking non-Tomcat questions here?

 - 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: problems get tomcat6 running

2011-05-25 Thread André Warnier

Christian Röttger wrote:

Am 25.05.2011 16:00, schrieb Pid:

On 25/05/2011 13:55, Christian Röttger wrote:

Dear List,

i installed tomcat6.0.24 on a ubuntu 10.04 server with this installation
guide ( https://help.ubuntu.com/10.04/serverguide/C/tomcat.html )
without changing the port.

when i try to access the page on myserver:8080 it remains loading and
loading. I don't what went wrong.


The exception gives you a fairly big hint:


25.05.2011 14:25:53 org.apache.tomcat.util.digester.Digester fatalError
SCHWERWIEGEND: Parse Fatal Error at line 23 column 1: XML document
structures must start and end within the same entity.
org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 1; XML
document structures must start and end within the same entity.


You have an error in your Tomcat configuration, an element of your XML
is incorrectly written...


org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
SCHWERWIEGEND: Exception processing Global JNDI Resources
javax.naming.NamingException: XML document structures must start and end
within the same entity.


... in the Global JNDI definition.


If you can't see what it is, you can post the server.xml file inline,
with any username, passwords&  IPs removed.


I didn't change anything in that file, but the xml is attached.



I believe that the following lines in the log give a further hint :

   at 
org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:409)
at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103) 



.. that it is maybe not in the "server.xml" file, but in the "tomcat-users.xml" file that 
the problem occurs.

And from this :

at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1393)


might we guess also that you tried to remove a comment section, but did not 
quite succeed ?

Post the tomcat-users.xml file contents if you do not find it by yourself.
Better yet, use an XML-aware editor, it will highlight the problem.



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



Re: problems get tomcat6 running

2011-05-25 Thread Christian Röttger

Am 25.05.2011 16:00, schrieb Pid:

On 25/05/2011 13:55, Christian Röttger wrote:

Dear List,

i installed tomcat6.0.24 on a ubuntu 10.04 server with this installation
guide ( https://help.ubuntu.com/10.04/serverguide/C/tomcat.html )
without changing the port.

when i try to access the page on myserver:8080 it remains loading and
loading. I don't what went wrong.


The exception gives you a fairly big hint:


25.05.2011 14:25:53 org.apache.tomcat.util.digester.Digester fatalError
SCHWERWIEGEND: Parse Fatal Error at line 23 column 1: XML document
structures must start and end within the same entity.
org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 1; XML
document structures must start and end within the same entity.


You have an error in your Tomcat configuration, an element of your XML
is incorrectly written...


org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
SCHWERWIEGEND: Exception processing Global JNDI Resources
javax.naming.NamingException: XML document structures must start and end
within the same entity.


... in the Global JNDI definition.


If you can't see what it is, you can post the server.xml file inline,
with any username, passwords&  IPs removed.


I didn't change anything in that file, but the xml is attached.






  
  
  

  
  
  className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  
  className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />


  
  


  

  
  






















  
  

  
  

  
  

  
  







  

  




smime.p7s
Description: S/MIME Cryptographic Signature


Re: AW: Deploying tomcat 6.0.10 as a windows service

2011-05-25 Thread Mark Thomas
On 25/05/2011 15:07, arno.schae...@sqs.de wrote:
> Hi Andre,
> 
> that it is allowed to use any character, I want to use in windows,
> I know. Quoting the command and/or the service name doesn't help.
> 
> But at least it seem's that it is nowhere described what a valid
> service name is for tomcat. So I will find out by trail and error.

Look in the commons daemon docs. From memory it is limited to
alphanumeric. I'd just use names in camel case.

Mark

> 
> Thanks,
> Arno
> 
>>> Hi all,
>>>
>>> if I confiure an instance of tomcat as a windows service, I have to 
>>> give this instance a unique name (tomcat6 //IS//servicename 
>> {params ...}).
>>> What signs are at least allowed in this name? It seems that 
>> dashes and 
>>> under- scores are not allowed. What delimiter are possible 
>> to make the name readable.
>>>
>>> Background: I want to automate the creation of this services with 
>>> context dep- ending information and have to configure more than one 
>>> instance of a tomcat service.
>>>
>> There are possiby 2 parts to this.
>>
>> Part 1 : what Windows itself will accept as a Service name.
>>
>> The only clear info on that subject which I could find 
>> quickly is here :
>> http://msdn.microsoft.com/en-us/library/ms682450%28v=vs.85%29.aspx
>> which seems to exclude just "/" and "\".
>>
>> Part 2 : what the Windows command interpreter shell (cmd) 
>> does with your command line
>>
>> tomcat6 //IS//servicename {params ...}
>>
>> Have you tried putting "servicename" between quotes ?
>>
>> In a different context, I remember finding out that Netbios 
>> "system names" or "share names" do not admit "-" signs in 
>> them for instance (and maybe also not "_").
>> Maybe since a Service name may be used in Netbios sometimes, 
>> the same rules apply ?
>> (just guessing).
> 
> 
> -
> 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



JSP hosting

2011-05-25 Thread abdelghni belfkih
Hi everybody,

I want to host a JSP website. the control panel used by the provider is
DirectAdmin. I have access to my account there but since I'm new to hosting
website i need help in this matter. Can someone send me a good tuto about
this, or show me what to do?

Tks in advance :)

-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
tks for the clarification

On Wed, May 25, 2011 at 3:16 PM, David kerber  wrote:

> On 5/25/2011 10:13 AM, abdelghni belfkih wrote:
>
>> yeah  thats right!!!
>>
>> but still dont get the right solution to my problem :(
>>
>
> This doesn't appear to be a tomcat issue, but rather one that your hosting
> company will have to answer.  If they don't provide the tomcat manager app,
> then they must have some other mechanism for you to install your
> applications, and nobody here will know about that.
>
>
>
>
>> On Wed, May 25, 2011 at 3:10 PM, David kerber
>>  wrote:
>>
>>  On 5/25/2011 10:01 AM, abdelghni belfkih wrote:
>>>
>>>  ah ok, i thought he meant support guys here


>>> You already have contacted them, by posting here...
>>>
>>> What is DirectAdmin, btw?
>>>
>>>
>>>
>>>
>>>
>>>  On Wed, May 25, 2011 at 2:32 PM, David kerber
  wrote:

  On 5/25/2011 9:13 AM, abdelghni belfkih wrote:

>
>  tks Mikolaj, so plz give me their mail :)
>
>>
>>
>>  I believe he meant the support guys at your hosting service!
>
>
>
>
>  On Wed, May 25, 2011 at 2:10 PM, abdelghni belfkih
>
>> wrote:
>>
>>  i have a track.war and i deploy it in my local tomcat server. but to
>> do
>>
>>  it
>>> via DirectAdmin for the distant sever that's the problem
>>>
>>>
>>> On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski
>>> wrote:
>>>
>>>  On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:
>>>
>>>
  yeah thats what I think I should do. But, how can i deploy my .rar

  since
> I connect to the distant server via DirectAdmin?
>
>
>  Ask support guys?
>

 --
 Mikolaj Rydzewski


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


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: Hosting a website

2011-05-25 Thread David kerber

On 5/25/2011 10:13 AM, abdelghni belfkih wrote:

yeah  thats right!!!

but still dont get the right solution to my problem :(


This doesn't appear to be a tomcat issue, but rather one that your 
hosting company will have to answer.  If they don't provide the tomcat 
manager app, then they must have some other mechanism for you to install 
your applications, and nobody here will know about that.





On Wed, May 25, 2011 at 3:10 PM, David kerber  wrote:


On 5/25/2011 10:01 AM, abdelghni belfkih wrote:


ah ok, i thought he meant support guys here



You already have contacted them, by posting here...

What is DirectAdmin, btw?






On Wed, May 25, 2011 at 2:32 PM, David kerber
  wrote:

  On 5/25/2011 9:13 AM, abdelghni belfkih wrote:


  tks Mikolaj, so plz give me their mail :)




I believe he meant the support guys at your hosting service!




  On Wed, May 25, 2011 at 2:10 PM, abdelghni belfkih

wrote:

  i have a track.war and i deploy it in my local tomcat server. but to do


it
via DirectAdmin for the distant sever that's the problem


On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski
wrote:

  On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:



  yeah thats what I think I should do. But, how can i deploy my .rar


since
I connect to the distant server via DirectAdmin?


  Ask support guys?


--
Mikolaj Rydzewski





-
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: Hosting a website

2011-05-25 Thread abdelghni belfkih
yeah  thats right!!!

but still dont get the right solution to my problem :(

On Wed, May 25, 2011 at 3:10 PM, David kerber  wrote:

> On 5/25/2011 10:01 AM, abdelghni belfkih wrote:
>
>> ah ok, i thought he meant support guys here
>>
>
> You already have contacted them, by posting here...
>
> What is DirectAdmin, btw?
>
>
>
>
>
>> On Wed, May 25, 2011 at 2:32 PM, David kerber
>>  wrote:
>>
>>  On 5/25/2011 9:13 AM, abdelghni belfkih wrote:
>>>
>>>  tks Mikolaj, so plz give me their mail :)


>>> I believe he meant the support guys at your hosting service!
>>>
>>>
>>>
>>>
>>>  On Wed, May 25, 2011 at 2:10 PM, abdelghni belfkih
 wrote:

  i have a track.war and i deploy it in my local tomcat server. but to do

> it
> via DirectAdmin for the distant sever that's the problem
>
>
> On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski
> wrote:
>
>  On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:
>
>>
>>  yeah thats what I think I should do. But, how can i deploy my .rar
>>
>>> since
>>> I connect to the distant server via DirectAdmin?
>>>
>>>
>>>  Ask support guys?
>>
>> --
>> Mikolaj Rydzewski
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: Hosting a website

2011-05-25 Thread David kerber

On 5/25/2011 10:01 AM, abdelghni belfkih wrote:

ah ok, i thought he meant support guys here


You already have contacted them, by posting here...

What is DirectAdmin, btw?





On Wed, May 25, 2011 at 2:32 PM, David kerber  wrote:


On 5/25/2011 9:13 AM, abdelghni belfkih wrote:


tks Mikolaj, so plz give me their mail :)



I believe he meant the support guys at your hosting service!





On Wed, May 25, 2011 at 2:10 PM, abdelghni belfkih
wrote:

  i have a track.war and i deploy it in my local tomcat server. but to do

it
via DirectAdmin for the distant sever that's the problem


On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski   wrote:

  On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:


  yeah thats what I think I should do. But, how can i deploy my .rar

since
I connect to the distant server via DirectAdmin?



Ask support guys?

--
Mikolaj Rydzewski



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



Re: Overriding error page displayed when a context fails to initialize

2011-05-25 Thread Pid
On 25/05/2011 13:36, Sai Pullabhotla wrote:
> Thanks for the replies and suggestions.
> 
> I don't think Tomcat falls back to the ROOT context if another context
> fails to start (unless I'm missing something).
> 
> Just to try it out, I did create a subfolder called "context1" in
> ROOT, with an index page in the folder. I made the context1 to fail.
> The log indicates that context1 failed to startup with the following
> error.
> 
> SEVERE: Context [/context1] startup failed due to previous errors

How did you make it fail?


> When I try an URL that starts with /context1, I still get Tomcat's
> default error page with a status code of 404, not the custom error
> pages I've in ROOT or the context1. If course, it will never be able
> to load the custom error pages from context1, it does not fall back to
> ROOT either. All other URLs (that do not start with /context1) display
> the custom error pages from the ROOT context.

How have you defined the custom error pages?


> The main reason why we need custom error pages is for security - do
> NOT display any information about the product that may help a hacker
> to run sophisticated attacks.
> 
> I guess, it may not be a bad idea for a product (container) to provide
> an option to override error pages.


@See ErrorReportValve

 
http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/valves/ErrorReportValve.html

 http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html


p




signature.asc
Description: OpenPGP digital signature


Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
ah ok, i thought he meant support guys here

On Wed, May 25, 2011 at 2:32 PM, David kerber  wrote:

> On 5/25/2011 9:13 AM, abdelghni belfkih wrote:
>
>> tks Mikolaj, so plz give me their mail :)
>>
>
> I believe he meant the support guys at your hosting service!
>
>
>
>
>> On Wed, May 25, 2011 at 2:10 PM, abdelghni belfkih
>> wrote:
>>
>>  i have a track.war and i deploy it in my local tomcat server. but to do
>>> it
>>> via DirectAdmin for the distant sever that's the problem
>>>
>>>
>>> On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski  wrote:
>>>
>>>  On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:

  yeah thats what I think I should do. But, how can i deploy my .rar
> since
> I connect to the distant server via DirectAdmin?
>
>
 Ask support guys?

 --
 Mikolaj Rydzewski


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



>>>
>>> --
>>> Élève Ingénieur en TIC
>>> Option : *Informatique, Réseaux et Systèmes*
>>> Institut National des Postes et Télécommunication
>>> Mobile : +212672673731
>>> E-mail : blfkih.i...@gmail.com
>>>
>>>
>>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: problems get tomcat6 running

2011-05-25 Thread Pid
On 25/05/2011 13:55, Christian Röttger wrote:
> Dear List,
> 
> i installed tomcat6.0.24 on a ubuntu 10.04 server with this installation
> guide ( https://help.ubuntu.com/10.04/serverguide/C/tomcat.html )
> without changing the port.
> 
> when i try to access the page on myserver:8080 it remains loading and
> loading. I don't what went wrong.

The exception gives you a fairly big hint:

> 25.05.2011 14:25:53 org.apache.tomcat.util.digester.Digester fatalError
> SCHWERWIEGEND: Parse Fatal Error at line 23 column 1: XML document
> structures must start and end within the same entity.
> org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 1; XML
> document structures must start and end within the same entity.

You have an error in your Tomcat configuration, an element of your XML
is incorrectly written...

> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
> SCHWERWIEGEND: Exception processing Global JNDI Resources
> javax.naming.NamingException: XML document structures must start and end
> within the same entity.

... in the Global JNDI definition.


If you can't see what it is, you can post the server.xml file inline,
with any username, passwords & IPs removed.


p



signature.asc
Description: OpenPGP digital signature


Re: Expected behavior of Tomcat under load

2011-05-25 Thread Peter Crowther
Operating system and version?
Java version?
Tomcat version: 6.0.32 - thanks for this.
Java or native connector?
Pure Tomcat or something else in front?  (I'm assuming pure Tomcat from what
else you say)

- Peter

On 25 May 2011 12:51, Asankha C. Perera  wrote:

> Hi All
>
> During some performance tests, we've seen that Tomcat resets TCP
> connections under high load. To reproduce this rather consistently, a thread
> pool with a maximum of 300 threads could be configured on default Tomcat
> 6.0.32, and then 1280 ~ 2560 concurrent user requests simulated from a
> different machine over a real NW interface. I assume this could be
> reproduced with proportionately smaller numbers for both as well. The
> implementation uses a Xfire soap service.
>
> Tomcat refusing connections, or taking longer to accept new connections, or
> taking longer to reply (causing a socket timeout) can be expected under such
> load - but what we see are TCP resets of connections to which a client has
> already sent a full HTTP request.
>
> Is this the default behavior of Tomcat? The problem this presents is that
> the client cannot safely fail over to another instance, unlike with a
> refused connection or a connect timeout (i.e. delay in accepting)
>
> thanks
> asankha
>
>
> No. TimeSourceDestination   Protocol
> Src Port Dst Port Info
>  389961 37.056567   10.77.69.810.101.29.42  TCP
>  9062 8080 9062 > 8080 [SYN] Seq=0 Win=5792 [TCP CHECKSUM INCORRECT]
> Len=0 MSS=1460 TSV=363753 TSER=363574 WS=7
>  391297 37.108766   10.101.29.42  10.77.69.8TCP
>  8080 9062 8080 > 9062 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0
> MSS=1460 TSV=363383 TSER=363753 WS=7
>  391298 37.108773   10.77.69.810.101.29.42  TCP
>  9062 8080 9062 > 8080 [ACK] Seq=1 Ack=1 Win=5888 [TCP CHECKSUM
> INCORRECT] Len=0 TSV=363758 TSER=363383
>  391893 37.115809   10.77.69.810.101.29.42  HTTP
> 9062 8080 POST /xfire/xfire-service HTTP/1.1
>  391894 37.115837   10.77.69.810.101.29.42  HTTP
> 9062 8080 Continuation or non-HTTP traffic[Packet size limited
> during capture]
>  392677 37.125492   10.101.29.42  10.77.69.8TCP
>  8080 9062 8080 > 9062 [RST] Seq=1 Win=0 Len=0
>
>
> --
> Asankha C. Perera
> AdroitLogic, http://adroitlogic.org
>
> http://esbmagic.blogspot.com
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Hosting a website

2011-05-25 Thread David kerber

On 5/25/2011 9:13 AM, abdelghni belfkih wrote:

tks Mikolaj, so plz give me their mail :)


I believe he meant the support guys at your hosting service!




On Wed, May 25, 2011 at 2:10 PM, abdelghni belfkih
wrote:


i have a track.war and i deploy it in my local tomcat server. but to do it
via DirectAdmin for the distant sever that's the problem


On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski  wrote:


On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:


yeah thats what I think I should do. But, how can i deploy my .rar since
I connect to the distant server via DirectAdmin?



Ask support guys?

--
Mikolaj Rydzewski


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





--
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com








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



Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-25 Thread kerotan

Dear Sirs,

Thank you for your replying. I would like to explain my questions in detail.

---
Eclipse 3.6(Helios)
Tomcat 7.0.14
Servlet 3.0
Windows XP SP3 x86 version



What is the result? Is this webapp deployed into the /test context path?
A browser showed the error message of HTTP status 404, which indicated that 
the requested resource(/test/hello) is not available.


On "Package Explorer" of Eclipse, the file system is showed as follows:

test
+--- WEB-INF/src
| +--- servlets
|   +--- HelloServlet.java
+--- sample.txt

Yes. This webapp is devployes into the /test context path because I 
confirmed the following two points.
First, I checked that \apache-tomcat-7.0.14\conf\Catalina\localhost\test.xml 
is existed and that "" is described in 
test.xml.
Second, I tested that /test context path is workable with calling 
"http://localhost:8080/test/sample.txt"; on a browser. It is OK.




A different file name, or a different "name" attribute chosen in the
@WebServlet annotation? The former makes no sense, while the latter
makes perfect sense.

On "Package Explorer" of Eclipse, the file system is showed as follows:

ex3
+--- WEB-INF/src
| +--- input
| | +--- GuessServlet.java
| +--- input2
|   +--- GuessServlet.java
+--- input
| +--- guess.jsp
+--- input2
  +--- guess.jsp

"GuessServlet.java" of input2 package and "guess.jsp" of input2 package 
revise specification of each input package.
In this case, "@WebServlet" annotation was not available under the different 
"urlPatterns".


package:input
file name:GuessServlet.java

@WebServlet(name="GuessServlet", urlPatterns={"/guess"})
public class GuessServlet extends HttpServlet {

package:input2
file name:GuessServlet.java

@WebServlet(name="GuessServlet", urlPatterns={"/guess2"})
public class GuessServlet extends HttpServlet {

In JSP, url pattern is as follows:

folder:input
file name:guess.jsp



folder:input2
file name:guess.jsp



As a resutlt,a browser showed the error message of HTTP status 404.

Then, a file name was changed.On "Package Explorer" of Eclipse, the file 
system is showed as follows:


ex3
+--- WEB-INF/src
| +--- input
|   +--- GuessServlet.java
|   +--- GuessServlet2.java
+--- input
  +--- guess.jsp
  +--- guess2.jsp

In this case, "@WebServlet" annotation was available under the different 
"name and "urlPatterns" as follows:


package:input
file name:GuessServlet.java

@WebServlet(name="GuessServlet", urlPatterns={"/guess"})
public class GuessServlet extends HttpServlet {

package:input
file name:GuessServlet2.java

@WebServlet(name="GuessServlet2", urlPatterns={"/guess2"})
public class GuessServlet2 extends HttpServlet {

In JSP, url pattern is as follows:

folder:input
file name:guess.jsp



folder:input
file name:guess2.jsp





Can you explain this in more detail? I do not understand.

On "Package Explorer" of Eclipse, the file system is showed as follows:

basic
+--- WEB-INF/src
| +--- reqattr
|   +--- GuessServlet.java
+--- reqattr
  +--- guess_hit.jsp
  +--- guess.jsp

In this case, "@WebServlet" annotation is as follows:

package:reqattr
file name:GuessServlet.java

@WebServlet(name="GuessServlet", urlPatterns={"/guess"})
public class GuessServlet extends HttpServlet {

In JSP, url pattern is as follows:

folder:reqattr
file name:guess.jsp



I would like to explain a flow of three programs above Eclipse file system.
First, A browser calls "http://localhost:8080/basic/reqattr/guess.jsp";.
Second, "guess.jsp" calls "/reqattr/GuessServlet.java" by inputing a 
charactor. In this servlet program, depending on a answer, a return path is 
branched into two paths.
Third, two path are brabched depending on a answer. One is 
"/reqattr/guess.jsp". Another is "/reqattr/guess_hit.jsp". The branch 
control is done by "RequestDispatcher dispatcher = 
request.getRequestDispatcher(path);".

Forth, "GuessServlet.java" can return to "guess.jsp" or "guess_hit.jsp".
Fifth, "guess.jsp" can call "/reqattr/GuessServlet.java" by inputing a 
charactor, again.
Sixth, Here, a browser showed the error message of HTTP status 404, which 
indicated that the requested resource(/guess) is not available.


A program of file upload with "@WebServlet" and "@MultipartConfig" is 
successfully workable in my environment. So far, I would like to ask you a 
technique to follow the specification of Servlet 3.0. Or is Tomcat 7.0.14 
under the implementation of the specification on Servlet 3.0?



Best Wishes,
---
Noriko Etani
Kobe Institute of Computing, Japa

Re: Performance & *SpareThreads

2011-05-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

McAfe,

On 5/25/2011 2:24 AM, McAfe wrote:
> Christopher Schultz-2 wrote:
>> AJP expects to have persistent connections. What is your Apache httpd
>> configuration for StartServers/MinSpareServers/MaxSpareServers (for
>> prefork MPM) or startServers/MinSpareThreads/MaxSpareThreads (for worker
>> MPM)?
> 
> Mcafe[20110523]: Did not configure Apache so far target on Tomcat (as for
> research from google and test the result in Apache not much different)

If Apache httpd is in it's default configuration, then you likely have
either the worker or prefork MPM with a maximum simultaneous client
MaxClients=256.

>> What are you settings on the Tomcat side for your AJP ?
> 
> Mcafe[20110523]: the follows is my setting for AJP 
> 
>maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>   enableLookups="false" disableUploadTimeout="true"
>connectionTimeout="2" 
>redirectPort="8443" />

The above  is for HTTP/1.1 and not AJP. Are you sure you are
using Apache httpd in your setup?

If you *are* using AJP on another similarly-configured ,
since Apache httpd can handle 256 connections (you'll have to check your
MaxClients setting) but Tomcat can only handle 150 connections, you have
the possibility of httpd trying to forward a request to Tomcat that will
fail because all of your AJP connections are busy. Since AJP connections
are expected to be persistent, queuing the request in the TCP/IP stack
is pointless: the request will never be handled. Instead, mod_jk fails
fast and you'll probably get errors on the client (usually 500 or
something similar). Check your mod_jk log (or configure one if you don't
have one) and check to see if you are getting connection errors.

 From the research get to know minSpareThreads and maxSpareThreads, after
 set
 the configure it can handle more to 400 ~ 600
> 
>> minSpareThreads and maxSpareThreads shouldn't be used when using AJP:
>> you should be using the exact number configured on the httpd side.
>> Otherwise, you risk AJP connections churning.
> 
> Mcafe[20110523]: Sorry no idea about this, as I'm new and wanted to learn
> more. Fine tuning is not simple thing as just develop, hope you can give
> me more example

Use an executor:






> Mcafe[20110523]: Yup saw the default setting in the server.xml but unable
> to find any useful example for the setting tried and the result not much
> different (from the testing)
> 
>  maxThreads="150" minSpareThreads="4"/>

That should work. Remember to set the "executor" attribute in your
 to link them together.

 (2nd) From read 1 by 1 at the forums about Performance tuning - tomcat,
 some
 mention keep hit > 20k per seconds, how their do it?
>> 
>> That depends a lot on what kind of load it was under. Serving static
>> files is fast. Running database transactions is slow. Also, sizing the
>> various pools can have an effect: you can max-out the throughput of a
>> single client but still have plenty of CPU time and I/O time available
>> on the server. If that's the case, make your connection pools bigger.
> 
> Mcafe[20110523]: Yup, the webapps have to grab data from database and
> return according. I'm interesting with "you can max-out the throughput of
> a
> single client but still have plenty of CPU time and I/O time available
> on the server. If that's the case, make your connection pools bigger."
> 
> Can you explain more?

When you are making lots of requests, what does the CPU time and I/O
throughput look like? Use a tool like sar to take samples and maybe
graph them. Try taking samples during a load factor of 1 (just a single
request-at-a-time) and then a load factor of 10 (10 requests at a time)
and then a load factor of maybe 50 or 100. Compare the graphs to see if
it looks like you are hitting a throughput maximum. If not, you can
certainly handle more connections.

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

iEYEARECAAYFAk3dBB8ACgkQ9CaO5/Lv0PCMgQCdHbe573mrNjBux0fgnT9XLcwJ
rqIAn1Fv5G+MbEouM/QD4dxxsS92e5xC
=JS6Z
-END PGP SIGNATURE-

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



Re: JkExtractSSL not sending SSL information to tomcat

2011-05-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 5/24/2011 7:13 PM, André Warnier wrote:
> Christopher Schultz wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Marc,
>>
>> On 5/24/2011 10:56 AM, Marc Boorshtein wrote:
>>> I've setup a pretty generic httpd(2.2.19)+mod_jk to tomcat 6 on Oracle
>>> Linux 5 (CentOS 5 equiv) with SSL setup.  With JkExtractSSL and the
>>> correct SSLOptions in the httpd configuration files.  I can see the
>>> SSL environment variables in /cgi-bin/printenv but no headers or
>>> environment variables in the backend tomcat app.  Am I missing
>>> something?
>>
>> Something just tickled my brain, here: you said "environment variables
>> or headers". The data stored in environment variables on the Apache
>> httpd side are neither stored in environment variables (since the
>> environment is shared, and a multi-threaded server would never work) nor
>> in request headers (because that's not really appropriate).
>>
>> Instead, they are stored in the request /attributes/.
>>
>> Unfortunately, the mod_jk documentation doesn't make that clear. I'll
>> try to find a reference, even if it's only in the source code.
>>
> Checkup JkEnvVar.
> http://grokbase.com/topic/2007/04/19/howto-forward-user-name-from-apache-via-mod-jk-to-tomcat/00UYI-2ef5d4aI6oZhrQPFf3JD0

Yeah, except that JkEnvVar puts the environment variable FOO into the
request attribute "FOO", while JkExtractSSL puts them under attribute
keys defined by the servlet specification. That was not clear at all
from the existing documentation (at least not without having read the
servlet spec as well and drawing a logical conclusion).

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

iEYEARECAAYFAk3dAZcACgkQ9CaO5/Lv0PA08wCfZlOWEIntLxU+GIN7uqh2KAYk
SSoAnjrm3uykVbrlv9btssKqrAabWg9P
=Uy36
-END PGP SIGNATURE-

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



Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
tks Mikolaj, so plz give me their mail :)

On Wed, May 25, 2011 at 2:10 PM, abdelghni belfkih
wrote:

> i have a track.war and i deploy it in my local tomcat server. but to do it
> via DirectAdmin for the distant sever that's the problem
>
>
> On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski  wrote:
>
>> On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:
>>
>>> yeah thats what I think I should do. But, how can i deploy my .rar since
>>> I connect to the distant server via DirectAdmin?
>>>
>>
>> Ask support guys?
>>
>> --
>> Mikolaj Rydzewski 
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
> --
> Élève Ingénieur en TIC
> Option : *Informatique, Réseaux et Systèmes*
> Institut National des Postes et Télécommunication
> Mobile : +212672673731
> E-mail : blfkih.i...@gmail.com
>
>


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
i have a track.war and i deploy it in my local tomcat server. but to do it
via DirectAdmin for the distant sever that's the problem

On Wed, May 25, 2011 at 1:56 PM, Mikolaj Rydzewski  wrote:

> On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:
>
>> yeah thats what I think I should do. But, how can i deploy my .rar since
>> I connect to the distant server via DirectAdmin?
>>
>
> Ask support guys?
>
> --
> Mikolaj Rydzewski 
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


AW: Deploying tomcat 6.0.10 as a windows service

2011-05-25 Thread arno.schaefer
Hi Andre,

that it is allowed to use any character, I want to use in windows,
I know. Quoting the command and/or the service name doesn't help.

But at least it seem's that it is nowhere described what a valid
service name is for tomcat. So I will find out by trail and error.

Thanks,
Arno

> > Hi all,
> > 
> > if I confiure an instance of tomcat as a windows service, I have to 
> > give this instance a unique name (tomcat6 //IS//servicename 
> {params ...}).
> > What signs are at least allowed in this name? It seems that 
> dashes and 
> > under- scores are not allowed. What delimiter are possible 
> to make the name readable.
> > 
> > Background: I want to automate the creation of this services with 
> > context dep- ending information and have to configure more than one 
> > instance of a tomcat service.
> > 
> There are possiby 2 parts to this.
> 
> Part 1 : what Windows itself will accept as a Service name.
> 
> The only clear info on that subject which I could find 
> quickly is here :
> http://msdn.microsoft.com/en-us/library/ms682450%28v=vs.85%29.aspx
> which seems to exclude just "/" and "\".
> 
> Part 2 : what the Windows command interpreter shell (cmd) 
> does with your command line
> 
> tomcat6 //IS//servicename {params ...}
> 
> Have you tried putting "servicename" between quotes ?
> 
> In a different context, I remember finding out that Netbios 
> "system names" or "share names" do not admit "-" signs in 
> them for instance (and maybe also not "_").
> Maybe since a Service name may be used in Netbios sometimes, 
> the same rules apply ?
> (just guessing).


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



Re: Hosting a website

2011-05-25 Thread Mikolaj Rydzewski

On Wed, 25 May 2011 12:52:48 +, abdelghni belfkih wrote:
yeah thats what I think I should do. But, how can i deploy my .rar 
since

I connect to the distant server via DirectAdmin?


Ask support guys?

--
Mikolaj Rydzewski 

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



problems get tomcat6 running

2011-05-25 Thread Christian Röttger

Dear List,

i installed tomcat6.0.24 on a ubuntu 10.04 server with this installation 
guide ( https://help.ubuntu.com/10.04/serverguide/C/tomcat.html ) 
without changing the port.


when i try to access the page on myserver:8080 it remains loading and 
loading. I don't what went wrong.


i installed java-6-sun and set the path in /etc/environment ...

in the logs this error appears:

25.05.2011 14:25:52 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.19.
25.05.2011 14:25:52 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters 
[false], random [true].

25.05.2011 14:25:53 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
25.05.2011 14:25:53 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1425 ms
25.05.2011 14:25:53 org.apache.tomcat.util.digester.Digester fatalError
SCHWERWIEGEND: Parse Fatal Error at line 23 column 1: XML document 
structures must start and end within the same entity.
org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 1; XML 
document structures must start and end within the same entity.
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:391)
at 
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1391)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity(XMLDocumentFragmentScannerImpl.java:882)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:582)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1370)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1740)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1393)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2769)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:741)
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
at 
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1661)
at 
org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:409)
at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103)
at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)

at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at 
org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
at 
org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:703)

at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)
at o

Re: Hosting a website

2011-05-25 Thread Partha Goswami
you need war

On Wed, May 25, 2011 at 6:22 PM, abdelghni belfkih
 wrote:
> yeah thats what I think I should do. But, how can i deploy my .rar since
> I connect to the distant server via DirectAdmin?
>
> On Wed, May 25, 2011 at 1:44 PM, Partha Goswami
> wrote:
>
>> Ok. Just go tomcat manager then upload your rar and deploy it you will
>> find the link too
>>
>> On Wed, May 25, 2011 at 6:10 PM, abdelghni belfkih
>>  wrote:
>> > Can you plz explain what do you mean by file tomcat root manager.
>> Because,
>> > in my tomcat folder i have root folder and manager folder both in webapps
>> > folder. So which folder of these do you mean?
>> >
>> > On Wed, May 25, 2011 at 1:36 PM, Martin Gainty 
>> wrote:
>> >
>> >>
>> >> assuming your provider configures tc on port 80 instead of apache or iis
>> >>
>> >> 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: Wed, 25 May 2011 18:02:12 +0530
>> >> > Subject: Re: Hosting a website
>> >> > From: parthagoswam...@gmail.com
>> >> > To: users@tomcat.apache.org
>> >> >
>> >> > i think you have to upload file tomcat root manager or public_html
>> >> > folder, 1st connect ftp using ftp client like filezilla then upload
>> >> > all files.
>> >> >
>> >> > On Wed, May 25, 2011 at 5:59 PM, abdelghni belfkih
>> >> >  wrote:
>> >> > > Dear,
>> >> > >
>> >> > > I'm using a distant tomcat server to host my JSP website via
>> >> DirectAdmin. I
>> >> > > already have my website worked in my local server ( in Ubuntu
>> 10.10).
>> >> But,
>> >> > > now i want to host my website in a distant server and i don't know
>> how
>> >> to do
>> >> > > it or where to put the directories which contains my website.
>> >> > >
>> >> > > Please help me solve this problem because I'm a beginner in hosting
>> >> > > websites.
>> >> > >
>> >> > > Ur sincerely,
>> >> > >
>> >> > >
>> >> > > --
>> >> > > Élève Ingénieur en TIC
>> >> > > Option : *Informatique, Réseaux et Systèmes*
>> >> > > Institut National des Postes et Télécommunication
>> >> > > Mobile : +212672673731
>> >> > > E-mail : blfkih.i...@gmail.com
>> >> > >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Regards
>> >> >
>> >> > Partha Goswami
>> >> > Find About me And Latest Update of mine @
>> >> > www.parthagoswami.me
>> >> >
>> >> > -
>> >> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> >> > For additional commands, e-mail: users-h...@tomcat.apache.org
>> >> >
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Élève Ingénieur en TIC
>> > Option : *Informatique, Réseaux et Systèmes*
>> > Institut National des Postes et Télécommunication
>> > Mobile : +212672673731
>> > E-mail : blfkih.i...@gmail.com
>> >
>>
>>
>>
>> --
>> Regards
>>
>> Partha Goswami
>> Find About me And Latest Update of mine @
>> www.parthagoswami.me
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
> --
> Élève Ingénieur en TIC
> Option : *Informatique, Réseaux et Systèmes*
> Institut National des Postes et Télécommunication
> Mobile : +212672673731
> E-mail : blfkih.i...@gmail.com
>



-- 
Regards

Partha Goswami
Find About me And Latest Update of mine @
www.parthagoswami.me

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



Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
yeah thats what I think I should do. But, how can i deploy my .rar since
I connect to the distant server via DirectAdmin?

On Wed, May 25, 2011 at 1:44 PM, Partha Goswami
wrote:

> Ok. Just go tomcat manager then upload your rar and deploy it you will
> find the link too
>
> On Wed, May 25, 2011 at 6:10 PM, abdelghni belfkih
>  wrote:
> > Can you plz explain what do you mean by file tomcat root manager.
> Because,
> > in my tomcat folder i have root folder and manager folder both in webapps
> > folder. So which folder of these do you mean?
> >
> > On Wed, May 25, 2011 at 1:36 PM, Martin Gainty 
> wrote:
> >
> >>
> >> assuming your provider configures tc on port 80 instead of apache or iis
> >>
> >> 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: Wed, 25 May 2011 18:02:12 +0530
> >> > Subject: Re: Hosting a website
> >> > From: parthagoswam...@gmail.com
> >> > To: users@tomcat.apache.org
> >> >
> >> > i think you have to upload file tomcat root manager or public_html
> >> > folder, 1st connect ftp using ftp client like filezilla then upload
> >> > all files.
> >> >
> >> > On Wed, May 25, 2011 at 5:59 PM, abdelghni belfkih
> >> >  wrote:
> >> > > Dear,
> >> > >
> >> > > I'm using a distant tomcat server to host my JSP website via
> >> DirectAdmin. I
> >> > > already have my website worked in my local server ( in Ubuntu
> 10.10).
> >> But,
> >> > > now i want to host my website in a distant server and i don't know
> how
> >> to do
> >> > > it or where to put the directories which contains my website.
> >> > >
> >> > > Please help me solve this problem because I'm a beginner in hosting
> >> > > websites.
> >> > >
> >> > > Ur sincerely,
> >> > >
> >> > >
> >> > > --
> >> > > Élève Ingénieur en TIC
> >> > > Option : *Informatique, Réseaux et Systèmes*
> >> > > Institut National des Postes et Télécommunication
> >> > > Mobile : +212672673731
> >> > > E-mail : blfkih.i...@gmail.com
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > Regards
> >> >
> >> > Partha Goswami
> >> > Find About me And Latest Update of mine @
> >> > www.parthagoswami.me
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >> >
> >>
> >>
> >
> >
> >
> > --
> > Élève Ingénieur en TIC
> > Option : *Informatique, Réseaux et Systèmes*
> > Institut National des Postes et Télécommunication
> > Mobile : +212672673731
> > E-mail : blfkih.i...@gmail.com
> >
>
>
>
> --
> Regards
>
> Partha Goswami
> Find About me And Latest Update of mine @
> www.parthagoswami.me
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: Hosting a website

2011-05-25 Thread Partha Goswami
Ok. Just go tomcat manager then upload your rar and deploy it you will
find the link too

On Wed, May 25, 2011 at 6:10 PM, abdelghni belfkih
 wrote:
> Can you plz explain what do you mean by file tomcat root manager. Because,
> in my tomcat folder i have root folder and manager folder both in webapps
> folder. So which folder of these do you mean?
>
> On Wed, May 25, 2011 at 1:36 PM, Martin Gainty  wrote:
>
>>
>> assuming your provider configures tc on port 80 instead of apache or iis
>>
>> 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: Wed, 25 May 2011 18:02:12 +0530
>> > Subject: Re: Hosting a website
>> > From: parthagoswam...@gmail.com
>> > To: users@tomcat.apache.org
>> >
>> > i think you have to upload file tomcat root manager or public_html
>> > folder, 1st connect ftp using ftp client like filezilla then upload
>> > all files.
>> >
>> > On Wed, May 25, 2011 at 5:59 PM, abdelghni belfkih
>> >  wrote:
>> > > Dear,
>> > >
>> > > I'm using a distant tomcat server to host my JSP website via
>> DirectAdmin. I
>> > > already have my website worked in my local server ( in Ubuntu 10.10).
>> But,
>> > > now i want to host my website in a distant server and i don't know how
>> to do
>> > > it or where to put the directories which contains my website.
>> > >
>> > > Please help me solve this problem because I'm a beginner in hosting
>> > > websites.
>> > >
>> > > Ur sincerely,
>> > >
>> > >
>> > > --
>> > > Élève Ingénieur en TIC
>> > > Option : *Informatique, Réseaux et Systèmes*
>> > > Institut National des Postes et Télécommunication
>> > > Mobile : +212672673731
>> > > E-mail : blfkih.i...@gmail.com
>> > >
>> >
>> >
>> >
>> > --
>> > Regards
>> >
>> > Partha Goswami
>> > Find About me And Latest Update of mine @
>> > www.parthagoswami.me
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> > For additional commands, e-mail: users-h...@tomcat.apache.org
>> >
>>
>>
>
>
>
> --
> Élève Ingénieur en TIC
> Option : *Informatique, Réseaux et Systèmes*
> Institut National des Postes et Télécommunication
> Mobile : +212672673731
> E-mail : blfkih.i...@gmail.com
>



-- 
Regards

Partha Goswami
Find About me And Latest Update of mine @
www.parthagoswami.me

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



Re: Hosting a website

2011-05-25 Thread abdelghni belfkih
Can you plz explain what do you mean by file tomcat root manager. Because,
in my tomcat folder i have root folder and manager folder both in webapps
folder. So which folder of these do you mean?

On Wed, May 25, 2011 at 1:36 PM, Martin Gainty  wrote:

>
> assuming your provider configures tc on port 80 instead of apache or iis
>
> 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: Wed, 25 May 2011 18:02:12 +0530
> > Subject: Re: Hosting a website
> > From: parthagoswam...@gmail.com
> > To: users@tomcat.apache.org
> >
> > i think you have to upload file tomcat root manager or public_html
> > folder, 1st connect ftp using ftp client like filezilla then upload
> > all files.
> >
> > On Wed, May 25, 2011 at 5:59 PM, abdelghni belfkih
> >  wrote:
> > > Dear,
> > >
> > > I'm using a distant tomcat server to host my JSP website via
> DirectAdmin. I
> > > already have my website worked in my local server ( in Ubuntu 10.10).
> But,
> > > now i want to host my website in a distant server and i don't know how
> to do
> > > it or where to put the directories which contains my website.
> > >
> > > Please help me solve this problem because I'm a beginner in hosting
> > > websites.
> > >
> > > Ur sincerely,
> > >
> > >
> > > --
> > > Élève Ingénieur en TIC
> > > Option : *Informatique, Réseaux et Systèmes*
> > > Institut National des Postes et Télécommunication
> > > Mobile : +212672673731
> > > E-mail : blfkih.i...@gmail.com
> > >
> >
> >
> >
> > --
> > Regards
> >
> > Partha Goswami
> > Find About me And Latest Update of mine @
> > www.parthagoswami.me
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
>
>



-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


RE: Hosting a website

2011-05-25 Thread Martin Gainty

assuming your provider configures tc on port 80 instead of apache or iis

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: Wed, 25 May 2011 18:02:12 +0530
> Subject: Re: Hosting a website
> From: parthagoswam...@gmail.com
> To: users@tomcat.apache.org
> 
> i think you have to upload file tomcat root manager or public_html
> folder, 1st connect ftp using ftp client like filezilla then upload
> all files.
> 
> On Wed, May 25, 2011 at 5:59 PM, abdelghni belfkih
>  wrote:
> > Dear,
> >
> > I'm using a distant tomcat server to host my JSP website via DirectAdmin. I
> > already have my website worked in my local server ( in Ubuntu 10.10). But,
> > now i want to host my website in a distant server and i don't know how to do
> > it or where to put the directories which contains my website.
> >
> > Please help me solve this problem because I'm a beginner in hosting
> > websites.
> >
> > Ur sincerely,
> >
> >
> > --
> > Élève Ingénieur en TIC
> > Option : *Informatique, Réseaux et Systèmes*
> > Institut National des Postes et Télécommunication
> > Mobile : +212672673731
> > E-mail : blfkih.i...@gmail.com
> >
> 
> 
> 
> -- 
> Regards
> 
> Partha Goswami
> Find About me And Latest Update of mine @
> www.parthagoswami.me
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
  

Re: Overriding error page displayed when a context fails to initialize

2011-05-25 Thread Sai Pullabhotla
Thanks for the replies and suggestions.

I don't think Tomcat falls back to the ROOT context if another context
fails to start (unless I'm missing something).

Just to try it out, I did create a subfolder called "context1" in
ROOT, with an index page in the folder. I made the context1 to fail.
The log indicates that context1 failed to startup with the following
error.

SEVERE: Context [/context1] startup failed due to previous errors

When I try an URL that starts with /context1, I still get Tomcat's
default error page with a status code of 404, not the custom error
pages I've in ROOT or the context1. If course, it will never be able
to load the custom error pages from context1, it does not fall back to
ROOT either. All other URLs (that do not start with /context1) display
the custom error pages from the ROOT context.

The main reason why we need custom error pages is for security - do
NOT display any information about the product that may help a hacker
to run sophisticated attacks.

I guess, it may not be a bad idea for a product (container) to provide
an option to override error pages.


Sai Pullabhotla



On Tue, May 24, 2011 at 1:15 PM, André Warnier  wrote:
> Caldarale, Charles R wrote:
>>>
>>> From: Sai Pullabhotla [mailto:sai.pullabho...@jmethods.com] Subject: Re:
>>> Overriding error page displayed when a context fails to initialize
>>
>>> What I'm looking for is a way to override the error pages of Tomcat at
>>> the global level (not application/context specific)
>>
>> There's no such mechanism mostly because the servlet spec doesn't provide
>> for one.  The ROOT webapp becomes the catch-all, and you can put filters and
>> generic error pages there.
>>
>
> Would the following work, e.g. ?
>
> Suppose there are 3 webapps : app1, app2, app3,
> respectively deployed at
> (tomcat_dir)/webapps/app1
> (tomcat_dir)/webapps/app2
> (tomcat_dir)/webapps/app3
>
> plus the default ROOT context deployed at
> (tomcat_dir)/webapps/ROOT
>
> and suppose you created 3 additional directories under webapps/ROOT,
> respectively
>
> (tomcat_dir)/webapps/ROOT/app1
> (tomcat_dir)/webapps/ROOT/app2
> (tomcat_dir)/webapps/ROOT/app3
>
> The standard Tomcat setup defines, in (tomcat_dir)/conf/web.xml, a "welcome
> file list" as follows :
>    
>        index.html
>        index.htm
>        index.jsp
>    
>
> So, in each of the above new directories, you deploy a "index.jsp" page,
> like
> (tomcat_dir)/webapps/ROOT/app1/index.jsp
> (tomcat_dir)/webapps/ROOT/app2/index.jsp
> (tomcat_dir)/webapps/ROOT/app3/index.jsp
> , each of these pages displaying a nice message like :
> "Sorry, this xyz application failed to deploy and is not available".
>
> Then what would happen is :
> - if all applications deploy properly, a request for the URL "/app1/x" would
> be mapped to the application "app1"
> - if app1 did not deploy properly, a request for the URL "/app1" would end
> up being mapped to the default ROOT application and its sub-directory
> "/ROOT/app1", thus returning the welcome page
> (tomcat_dir)/webapps/ROOT/app1/index.jsp, and the message.
>
> No ?
>
> (The above was for the basic principle, but I suppose one could optimise
> this, to avoid having to create these sub-directories and duplicating those
> error pages, by mapping these things more cleverly in ROOT's web.xml.)
>
>
> -
> 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: Hosting a website

2011-05-25 Thread abdelghni belfkih
Thank you for your help.

On Wed, May 25, 2011 at 1:32 PM, Partha Goswami
wrote:

> i think you have to upload file tomcat root manager or public_html
> folder, 1st connect ftp using ftp client like filezilla then upload
> all files.
>
> On Wed, May 25, 2011 at 5:59 PM, abdelghni belfkih
>  wrote:
> > Dear,
> >
> > I'm using a distant tomcat server to host my JSP website via DirectAdmin.
> I
> > already have my website worked in my local server ( in Ubuntu 10.10).
> But,
> > now i want to host my website in a distant server and i don't know how to
> do
> > it or where to put the directories which contains my website.
> >
> > Please help me solve this problem because I'm a beginner in hosting
> > websites.
> >
> > Ur sincerely,
> >
> >
> > --
> > Élève Ingénieur en TIC
> > Option : *Informatique, Réseaux et Systèmes*
> > Institut National des Postes et Télécommunication
> > Mobile : +212672673731
> > E-mail : blfkih.i...@gmail.com
> >
>
>
>
> --
> Regards
>
> Partha Goswami
> Find About me And Latest Update of mine @
> www.parthagoswami.me
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: Hosting a website

2011-05-25 Thread Partha Goswami
i think you have to upload file tomcat root manager or public_html
folder, 1st connect ftp using ftp client like filezilla then upload
all files.

On Wed, May 25, 2011 at 5:59 PM, abdelghni belfkih
 wrote:
> Dear,
>
> I'm using a distant tomcat server to host my JSP website via DirectAdmin. I
> already have my website worked in my local server ( in Ubuntu 10.10). But,
> now i want to host my website in a distant server and i don't know how to do
> it or where to put the directories which contains my website.
>
> Please help me solve this problem because I'm a beginner in hosting
> websites.
>
> Ur sincerely,
>
>
> --
> Élève Ingénieur en TIC
> Option : *Informatique, Réseaux et Systèmes*
> Institut National des Postes et Télécommunication
> Mobile : +212672673731
> E-mail : blfkih.i...@gmail.com
>



-- 
Regards

Partha Goswami
Find About me And Latest Update of mine @
www.parthagoswami.me

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



Hosting a website

2011-05-25 Thread abdelghni belfkih
Dear,

I'm using a distant tomcat server to host my JSP website via DirectAdmin. I
already have my website worked in my local server ( in Ubuntu 10.10). But,
now i want to host my website in a distant server and i don't know how to do
it or where to put the directories which contains my website.

Please help me solve this problem because I'm a beginner in hosting
websites.

Ur sincerely,
-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Hosting a website

2011-05-25 Thread abdelghni belfkih
Dear,

I'm using a distant tomcat server to host my JSP website via DirectAdmin. I
already have my website worked in my local server ( in Ubuntu 10.10). But,
now i want to host my website in a distant server and i don't know how to do
it or where to put the directories which contains my website.

Please help me solve this problem because I'm a beginner in hosting
websites.

Ur sincerely,


-- 
Élève Ingénieur en TIC
Option : *Informatique, Réseaux et Systèmes*
Institut National des Postes et Télécommunication
Mobile : +212672673731
E-mail : blfkih.i...@gmail.com


Re: Deploying tomcat 6.0.10 as a windows service

2011-05-25 Thread André Warnier

arno.schae...@sqs.de wrote:

Hi all,

if I confiure an instance of tomcat as a windows service, I have to give this
instance a unique name (tomcat6 //IS//servicename {params ...}).
What signs are at least allowed in this name? It seems that dashes and under-
scores are not allowed. What delimiter are possible to make the name readable.

Background: I want to automate the creation of this services with context dep-
ending information and have to configure more than one instance of a tomcat
service.


There are possiby 2 parts to this.

Part 1 : what Windows itself will accept as a Service name.

The only clear info on that subject which I could find quickly is here :
http://msdn.microsoft.com/en-us/library/ms682450%28v=vs.85%29.aspx
which seems to exclude just "/" and "\".

Part 2 : what the Windows command interpreter shell (cmd) does with your 
command line

tomcat6 //IS//servicename {params ...}

Have you tried putting "servicename" between quotes ?

In a different context, I remember finding out that Netbios "system names" or "share 
names" do not admit "-" signs in them for instance (and maybe also not "_").

Maybe since a Service name may be used in Netbios sometimes, the same rules 
apply ?
(just guessing).

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



Expected behavior of Tomcat under load

2011-05-25 Thread Asankha C. Perera

Hi All

During some performance tests, we've seen that Tomcat resets TCP 
connections under high load. To reproduce this rather consistently, a 
thread pool with a maximum of 300 threads could be configured on default 
Tomcat 6.0.32, and then 1280 ~ 2560 concurrent user requests simulated 
from a different machine over a real NW interface. I assume this could 
be reproduced with proportionately smaller numbers for both as well. The 
implementation uses a Xfire soap service.


Tomcat refusing connections, or taking longer to accept new connections, 
or taking longer to reply (causing a socket timeout) can be expected 
under such load - but what we see are TCP resets of connections to which 
a client has already sent a full HTTP request.


Is this the default behavior of Tomcat? The problem this presents is 
that the client cannot safely fail over to another instance, unlike with 
a refused connection or a connect timeout (i.e. delay in accepting)


thanks
asankha


No. TimeSourceDestination   Protocol 
Src Port Dst Port Info
 389961 37.056567   10.77.69.810.101.29.42  
TCP  9062 8080 9062 > 8080 [SYN] Seq=0 Win=5792 [TCP 
CHECKSUM INCORRECT] Len=0 MSS=1460 TSV=363753 TSER=363574 WS=7
 391297 37.108766   10.101.29.42  10.77.69.8
TCP  8080 9062 8080 > 9062 [SYN, ACK] Seq=0 Ack=1 Win=5792 
Len=0 MSS=1460 TSV=363383 TSER=363753 WS=7
 391298 37.108773   10.77.69.810.101.29.42  
TCP  9062 8080 9062 > 8080 [ACK] Seq=1 Ack=1 Win=5888 [TCP 
CHECKSUM INCORRECT] Len=0 TSV=363758 TSER=363383
 391893 37.115809   10.77.69.810.101.29.42  
HTTP 9062 8080 POST /xfire/xfire-service HTTP/1.1
 391894 37.115837   10.77.69.810.101.29.42  
HTTP 9062 8080 Continuation or non-HTTP traffic[Packet size 
limited during capture]
 392677 37.125492   10.101.29.42  10.77.69.8
TCP  8080 9062 8080 > 9062 [RST] Seq=1 Win=0 Len=0



--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com





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



Deploying tomcat 6.0.10 as a windows service

2011-05-25 Thread arno.schaefer
Hi all,

if I confiure an instance of tomcat as a windows service, I have to give this
instance a unique name (tomcat6 //IS//servicename {params ...}).
What signs are at least allowed in this name? It seems that dashes and under-
scores are not allowed. What delimiter are possible to make the name readable.

Background: I want to automate the creation of this services with context dep-
ending information and have to configure more than one instance of a tomcat
service.

Best regards 
Arno Schäfer


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



Re: Context path from ServletContextListener

2011-05-25 Thread Mateu Yabar
Sorry, I don't see how I did not see it:
arg0.getServletContext().getContextPath()

On 25 May 2011 10:53, Mateu Yabar  wrote:

> Hi to all,
>
> I've created a ServletContextListener, which needs to use get the current
> context path (as defined in web.xml):
>
> public class UpdateExecutionStartContextListener implements
> javax.servlet.ServletContextListener{
> @Override
> public void contextInitialized(ServletContextEvent arg0) {
> String conextPath=¿?
> }
>(...)
>
> Is there any way to obtain this?
>
> Iv'e seen in
> http://www.jcp.org/aboutJava/communityprocess/maintenance/jsr154/servlet-2.5_MR2.htmlthat
>  in servlet 2.5 it will exists the method
> ServletContext.getServletPath(), however with my tomcat6-Java6 this method
> does not exist yet.
>
> Thanks
>
>
>


Context path from ServletContextListener

2011-05-25 Thread Mateu Yabar
Hi to all,

I've created a ServletContextListener, which needs to use get the current
context path (as defined in web.xml):

public class UpdateExecutionStartContextListener implements
javax.servlet.ServletContextListener{
@Override
public void contextInitialized(ServletContextEvent arg0) {
String conextPath=¿?
}
   (...)

Is there any way to obtain this?

Iv'e seen in
http://www.jcp.org/aboutJava/communityprocess/maintenance/jsr154/servlet-2.5_MR2.htmlthat
in servlet 2.5 it will exists the method
ServletContext.getServletPath(), however with my tomcat6-Java6 this method
does not exist yet.

Thanks


Tomcat 5.5.27, session lost, cookies

2011-05-25 Thread Diego Ruotolo
Hi,

this is my first post to this list. Maybe it's a post more related to
the developers list, if so please tell me so and I will send it to that
list.

Working with my company's webapp, I noticed a strange behaviour:
sometimes http session, managed through JSESSIONID cookie, is lost. We
use Tomcat 5.5.27 on Windows.
Debugging Tomcat classes using the Eclipse debugger, I noticed that this
happens because cookies are not correctly parsed, in fact:

* Cookies (class org.apache.tomcat.util.http.Cookies) are instantiated
when a new Request (class org.apache.coyote.Request) is created.
* Constructor of class Cookies accept a MimeHeaders as argument.
* Cookies are parsed using the method  getCookieCount(): this method
sets the boolean variable "unprocessed" to false and call the method
processCookies() for processing cookis from the header (that is the
argument of the Cookies class constructor)

Everything works fine, but sometimes it happens that even if cookies are
correctly inserted in the request header (I can see it!) and
"unprocessed" variable of class Cookies is set to false (== cookies
parsed) , the cookies are NOT parsed: in fact the ServerCookie array is
empty!
It seems that is a time-related issue: IMHO the problem is that
sometimes cookies are parsed BEFORE header is parsed.

Hope I've been clear...

Is this a known problem? Any suggestions? Maybe there is some
"configuration tricks" I can use to avoid this problem?

Thanks in advice,

best regards
-- 

Ing. Diego Ruotolo
Software developer


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



Re: SLL Certificate Chain

2011-05-25 Thread Dipl.-Ing. Mag. Bernhard Hobiger
Thanks Christopher Schultz and Crypto Sal for your replies!

The key hint was the certificate chain length. My problem seemed to be that I 
got the server certificate as PKS12 file (including the private key). I 
imported it using "-importkeystore -srcstoretype PKCS12". "-trustcacerts" 
doesnt seem to have any effects with "-importkeystore". Since the PKS12 file 
containd only the server certificate, it was imported with certificate chain 
length 1.

So here is what worked for me:

I converted the root and intermediate certificates to human readable form by 
importing them into a keystore and then exporting them again using "-export 
-rfc".

I imported my server certificate into a new keystore and adapted alias and 
passwords for use with my Tomcat configuration

I exported the server certificate again using "-export -rfc"

I opened the newly created export file of my server certificate and inserted 
the contents of the intermediate and the root certificates at the bottom of the 
file. This created a valid certificate chain in PKCS7 format.

I imported the altered certificate file into the same keystore using the same 
alias. This replaced the single certificate with the complete certificate chain 
(private key remained unaltered).

Now I have a valid keystore with my server certificate and the intermediate and 
root certificates and the certificate chain length is 3. Tomcat deliveres the 
chain correctly and I finally got rid of the annoying security warnings in 
Firefox.

Thanks for your help!
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org