RE: Tomcat deployment question

2007-04-19 Thread Lakshmi Venkataraman
 I have finally a working configuration.  Please refer to the bottom of
this email
 for the directory structure.
 In server.xml I changed appBase=webapps (original value)
 htdocs.xml is renamed as ROOT.xml as Rashmi suggested with
docBase=${catalina.home}/htdocs
 Then I am able to type http://localhost:8080 which in turn looks up
index.html from
 the htdocs directory
  
 Even so, I have some more questions and my understanding is not that
clear yet. 
 I will post the questions in my next email.

Thanks
Lakshmi

-Original Message-
From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 18, 2007 9:33 PM
To: Tomcat Users List
Subject: RE: Tomcat deployment question

 Hi Rashmi,
 Thanks!  I renamed htdocs.xml to ROOT.xml. 
http://localhost:8080 did not work. 
 However, http://localhost:8080/htdocs/index.html worked which is some
progress.

I think my organization would prefer only http://localhost:8080

I am confused between the concepts appBase, docBase and path.
So given the directory structure below, what should be the values of
appBase, docBase and path so http://localhost:8080 looks for index.html
under htdocs.

Thanks again
Lakshmi



-Original Message-
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 9:04 PM
To: Tomcat Users List
Subject: Re: Tomcat deployment question

Hi Lakshmi,

Rename the context file from htdocs.xml to ROOT.xml then you should be
able to access the app at http://localhost:8080/

-Rashmi

---Original posting by Lakshmi
---
I have upgraded from Tomcat 3.3 to Tomcat 5.5.23.  It is running on
WinXP and I am using Java 1.5.
 
Here's my dierctory set up:
 
${Catalina.Home}
 -- conf
   -- Catalina
 --localhost
htdocs.xml 
 -- htdocs
   index.html
   --bin
   --html
   --jsp
   --css
   --jar
   --WEB-INF
web.xml
 --classes
 --lib
 --webapps
  
   
In server.xml, I modified the Host element to have {appBase=htdocs
autoDeploy=false}
I am using htdocs.xml in ${Catalina.home}/Catalina/localhost as the
context descriptor and is defined as follows:
 
 Context docBase=${catalina.home} override=true privileged=true
Loader className=com.example.appClassLoader reloadable=true/ 
!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
 !-- Uncomment this to disable session persistence across Tomcat
restarts --
   Manager pathname= /
/Context
 
Tomcat is able to load appClassLoader. However, when I type,
http://localhost:8080, it is not able to load
the index.html found under the htdocs directory.   If I create ROOT
directory and move the index.html over there it is able to load it.  
I guess, my main problem is how can I maintain the same directory
structure as above without having to create ROOT and move everything
below it?  The above directory structure worked in Tomcat 3.3.
 
What am I missing? 
 
Thanks
Lakshmi
-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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



Re: problems configuring mod_jk

2007-04-19 Thread Rainer Jung

Your worker.list entry is only a comment :(

Faheem Mitha wrote:


Hi,

I'm trying to set up Apache to talk to Tomcat using the mod_jk connector.
However, I get the following error in the log, /var/log/apache2/mod_jk.log

jk_handler::mod_jk.c (1986): Could not find a worker for worker 
name=ajp13_worker


Apparently it cannot find the definition (or whatever) for ajp13_worker, 
but this is defined in /etc/libapache2-mod-jk/workers.properties as far 
as I can tell.


I include the relevant portions of my config below. If anyone can tell 
me what I'm doing wrong, that would be great.


Thanks in advance. Faheem.


Relevant portion of apache config

LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so

VirtualHost x.x.x.60:443
ServerName ...
# Sample mod_jk configuration
# for Apache 2
#
# for all commands/options available see the manual
# provided in libapache-mod-jk-doc package.

# The location where mod_jk will find the workers definitions
JkWorkersFile   /etc/libapache2-mod-jk/workers.properties

# The location where mod_jk is going to place its log file
JkLogFile   /var/log/apache2/mod_jk.log

# The log level:
# - info log will contain standard mod_jk activity (default).
# - warn log will contain non fatal error reports.
# - error log will contain also error reports.
# - debug log will contain all information on mod_jk activity
# - trace log will contain all tracing information on mod_jk activity
JkLogLevel  info


# Assign specific URLs to Tomcat. In general the structure of a
# JkMount directive is: JkMount [URL prefix] [Worker name]

# send all requests ending in .jsp to ajp13_worker
JkMount /*.jsp ajp13_worker
#JkMount /* ajp13_worker
# send all requests ending /servlet to ajp13_worker
#JkMount /*/servlet/ ajp13_worker

# JkUnmount directive acts as an opposite to JkMount and blocks access
# to a particular URL. The purpose is to be able to filter out the
# particular content types from mounted context.

# do not send requests ending with .gif to ajp13_worker
#JkUnMount /servlet/*.gif ajp13_worker

# JkMount / JkUnMount directives can also be used inside VirtualHost
# sections of your httpd.conf file.
/VirtualHost


/etc/libapache2-mod-jk/workers.properties

# workers.properties -
#
# This file is a simplified version of the workers.properties supplied
# with the upstream sources. The jni inprocess worker (not build in the
# debian package) section and the ajp12 (deprecated) section are removed.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to do is un-comment and modify the first three
# properties, i.e. workers.tomcat_home, workers.java_home and ps.
# Most of the configuration is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp13 worker that connects to localhost:8009
# - A load balancer worker
#
#

# OPTIONS ( very important for jni mode )

#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=/usr/share/tomcat5.5

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/usr/lib/j2sdk1.5-sun

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/

#
#-- ADVANCED MODE 
#-
#

#
#-- worker list --
#-
#
#
# The workers that your plugins should create and work with
# worker.list=ajp13_worker

#
#-- ajp13_worker WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13_worker and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=localhost
worker.ajp13_worker.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the 

Redirection problem after login

2007-04-19 Thread Sly_cardinal

Hi,
I've seen this mentioned in a couple of places, unfortunately without
resolution:
 
A successful login, after attempting to access secure content, redirects the
user to the previous page instead of the requested page. Login

from an index page works as expected - it only occurs when authorisation is
required after attempting to navigate to secure content.

Simple example of what is happening:
- User logs in, navigates to page1.
- Session is lost (either timeout or server restart).
- User attempts to navigate to page2.
- Tomcat redirects to login page; user logs in.
-- At this point Tomcat should process the previous request and navigate to
page2; instead it returns to page1.

I suspect this is a similar problem:
http://www.nabble.com/No-redirection-after-successfull-form-submit-tf192009.html#a535182
however we're just using t:commandNavigation2 and simple navigation cases:

faces-config.xml:
navigation-rule
navigation-case
from-outcomego_agent_list/from-outcome
to-view-id/agent/agentList.jsp/to-view-id
/navigation-case
...
/navigation-rule

In JSP page:
t:commandNavigation2 value=Agent List action=go_agent_list /

We're using container-based login on Tomcat 5.5.20, but given the uncommon
occurrence of this issue I am wondering if this is a configuration

issue that is causing Tomcat to return to the previously requested page?

Security defined in web.xml:
  security-constraint
  web-resource-collection
 web-resource-nameSecure/web-resource-name
  url-pattern/home/*/url-pattern
  ...
 http-methodPOST/http-method
 http-methodGET/http-method
  /web-resource-collection

  auth-constraint
 role-nameregistered/role-name
  /auth-constraint
   /security-constraint

Thanks,
Coridyn
-- 
View this message in context: 
http://www.nabble.com/Redirection-problem-after-login-tf3605342.html#a10072692
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: How to create a kind of alias in tomcat

2007-04-19 Thread BENTOUHAMI MB Malek \(DCL\)
Thank you Johnny, I found a solution that consists to add
welcome-file-list 

welcome-file/PLATFORM/FRENCH/EWICHART/JAVA/L1.html/welcome-file 
/welcome-file-list 
In the web.xml file

I have to find a solution to point the name of the application to an alias.

Rgds,
Malek


-Message d'origine-
De : Johnny Kewl [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 18 avril 2007 17:17
À : Tomcat Users List
Objet : Re: How to create a kind of alias in tomcat


Thing about these questions is always depends on what you really after...
One way would be browser redirection ie stick this in the header of the 
index file under organigramme meta http-equiv=refresh content=N; 
URL=other-web-address

and the way I like but I always get too much hassel moans and groans...

Is create a servlet and just map the urls that u want to recieve to it... 
then with a little code... dispatch the call to the required page... or just 
use the a tomcat redirect like this

Check incoming URL and
response.sendRedirect(newUrl);

Or stick apache in front  and use its Aliases or Virtual Hosting



- Original Message -
From: BENTOUHAMI MB Malek (DCL) [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, April 18, 2007 1:57 PM
Subject: How to create a kind of alias in tomcat


Hello,

I'd like to connect to my application at
http://10.124.40.29:9090/ORGEWI/PLATFORM/FRENCH/EWICHART/JAVA/L1.html
but users need to connect via http://10.124.40.29:9090/organigramme
how to proceed ?

fyi : Calendra / tomcat v4
many applications with context file ORGEWI.xml

Tks,
Malek


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

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



Re: Tomcat 5.5.17 and IPv6 configuration

2007-04-19 Thread Johnny Kewl


Hi SAVERIO,

I just had IPv6 installed on a dev machine so I can make sure my code works 
with IPv6... like for example when you install IPv6 on XP and then 
http://localhost:8080 it comes into tomcat as a [::1] address, bet thats 
going to catch a few guys...


I also figured out a way that you can prove that your tomcat is binding with 
ipv6

type netstat -noa

it will give you the PID which you can get check in the task manager 
(cntrl-alt-delete)

Tomcat 5.5.17 is DEFINITELY IPv6 enabled...

BUT to my amazement the win32 binary of Apache httpd web server 2.2.4 on 
apache.org (latest one) IS NOT even though the docs say its ipv6 
enabled.
Guys... you got to fix that... because not only do IPv6 addresses not 
work... the host name on a IPv6 XP machine maps to a IPv6 address and Apache 
Web server DOES NOT WORK. it means windows IPv6 users see a BROKEN 
Apache.


Just netstat -noa and you will see it is not binding with IPv6

Saverio when I saw your email, I setup another IPv6 XP machine and tried 
to call it with IPv6 address, on local subnet to my horror it doesnt get 
through to machine with tomcat either however I can ping6 the 
machine


So unfortunately because Win32 Apache Web server is not IPv6 enabled I 
couldnt find another test case to see if it is in fact a Tomcat problem
Somehow I dont think it is there doesnt seem to be any intrinsic IPv6 
router support nor a IPv6 DNS and it might be that on IPv6 on one windows 
machine just cant see the other one anyway I'm researching will let 
you know what I find.


We either got to find a test case... like a working IPv6 apache web 
server or we got to figure out how one windows machine tells the others 
that it is an IPv6 animal..



- Original Message - 
From: SAVERIO FERRARO [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, April 18, 2007 4:25 PM
Subject: Tomcat 5.5.17 and IPv6 configuration



Hi all,
thank you for your responce.
But there is the problem tomcat 5.5.17 and IPV6 too.
I installed Microsoft IPv6 on Win XP sp2 and then Tomcat 5.5.17.
Now I can access to Tomcat page from OPERA with http://localhost:8080 and 
with http:/[::1]:8080.
I have just tried from remote computer with 
http://[full_ipv6_address]:8080 and http://[full_ipv6_address%ID]:8080 but 
nothing!


May You help me?
Thanks.

Saverio FERRARO

_
Scopri gli ospiti di MSN VideoVip! E intervieni in diretta! 
http://videovip.it.msn.com/



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





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



Re: How to create a kind of alias in tomcat

2007-04-19 Thread Johnny Kewl
Yes... I imagined thats what you had... but you said you also wanted users 
the get through

with  http://10.124.40.29:9090/organigramme   to the same page...
How did you do that??


- Original Message - 
From: BENTOUHAMI MB Malek (DCL) [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, April 19, 2007 9:29 AM
Subject: RE: How to create a kind of alias in tomcat


Thank you Johnny, I found a solution that consists to add
welcome-file-list
welcome-file/PLATFORM/FRENCH/EWICHART/JAVA/L1.html/welcome-file
/welcome-file-list
In the web.xml file

I have to find a solution to point the name of the application to an alias.

Rgds,
Malek


-Message d'origine-
De : Johnny Kewl [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 18 avril 2007 17:17
À : Tomcat Users List
Objet : Re: How to create a kind of alias in tomcat


Thing about these questions is always depends on what you really after...
One way would be browser redirection ie stick this in the header of the 
index file under organigramme meta http-equiv=refresh content=N; 
URL=other-web-address


and the way I like but I always get too much hassel moans and groans...

Is create a servlet and just map the urls that u want to recieve to it...
then with a little code... dispatch the call to the required page... or just 
use the a tomcat redirect like this


Check incoming URL and
response.sendRedirect(newUrl);

Or stick apache in front  and use its Aliases or Virtual Hosting



- Original Message -
From: BENTOUHAMI MB Malek (DCL) [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, April 18, 2007 1:57 PM
Subject: How to create a kind of alias in tomcat


Hello,

I'd like to connect to my application at
http://10.124.40.29:9090/ORGEWI/PLATFORM/FRENCH/EWICHART/JAVA/L1.html
but users need to connect via http://10.124.40.29:9090/organigramme
how to proceed ?

fyi : Calendra / tomcat v4
many applications with context file ORGEWI.xml

Tks,
Malek


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

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



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



loadbalancer + 2 tomcat

2007-04-19 Thread andrew00x

I have made loadbalancer on Apache2.0.54 + 2 Tomcats.
Workers configured like this:

ps=/
worker.list=balancer
worker.tomcatA.port=8009
worker.tomcatA.host=host1
worker.tomcatA.type=ajp13
worker.tomcatA.lbfactor=1
#worker.tomcatA.activation=D
worker.tomcatB.port=8009
worker.tomcatB.host=host2
worker.tomcatB.type=ajp13
worker.tomcatB.lbfactor=1
#worker.tomcatB.activation=S
#worker.tomcatB.redirect=tomcatA
worker.balancer.type=lb
worker.balancer.balance_workers=tomcatA, tomcatB
worker.balancer.sticky_session=1

Balancing working fine, requests divide to both of tomcat instance.
But when one of tomcat instance gets a problem, web application works wrong.
I mind one of application starts use 100% cpu and don't responses to
request,
loadbalacer continues to try get response from this instance and didn't
moves request
to other instance.
What can I add to workers.properties to fix this problem?   
Thanks! And I am sorry about my English!
-- 
View this message in context: 
http://www.nabble.com/loadbalancer-%2B-2-tomcat-tf3605763.html#a10073935
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Context.xml in tomcat 5.5

2007-04-19 Thread Avinash Kumar

thanks,
 In my web application context .xml is under TOMCAT_HOME\conf\context.xml
their is not META-INF so do i need to create a META-INF directoru nd shift
the context.xml i can modify it from where it is

On 4/19/07, Andre Prasetya [EMAIL PROTECTED] wrote:


the one at TOMCAT_HOME\conf\context.xml is the one that is loaded for all
application, you ll wanna use that if you have a global environment
variable. for example you need a DataSource (connection pool) that is
shared
for all application. you can configure a context.xml inside META-INF of
your
web app.

On 4/19/07, Avinash Kumar [EMAIL PROTECTED] wrote:

 Hi all,
   Thier is a file TOMCAT_HOME\conf\context.xml in tomcat 5.5 ,what we
have
 to write in this xml file and when is this file needed,i made two sample
 web
 application in jsp and servets ,i just deployed those in webapps ,i se
the
 java and tomcat home as required  and these application are running ,i
 just
 want to know that when we have to configure this file.
 Thanks




--
-Andre-

People see things the way they are and say why ? I see things that never
were and say Why not ?



RE: How to create a kind of alias in tomcat

2007-04-19 Thread BENTOUHAMI MB Malek \(DCL\)
I think I have to add an alias to context file orgewi.xml. I will try this 
afternoon and give you feedbacks.


-Message d'origine-
De : Johnny Kewl [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 19 avril 2007 10:23
À : Tomcat Users List
Objet : Re: How to create a kind of alias in tomcat

Yes... I imagined thats what you had... but you said you also wanted users the 
get through
with  http://10.124.40.29:9090/organigramme   to the same page...
How did you do that??


- Original Message - 
From: BENTOUHAMI MB Malek (DCL) [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, April 19, 2007 9:29 AM
Subject: RE: How to create a kind of alias in tomcat


Thank you Johnny, I found a solution that consists to add
welcome-file-list
welcome-file/PLATFORM/FRENCH/EWICHART/JAVA/L1.html/welcome-file
/welcome-file-list
In the web.xml file

I have to find a solution to point the name of the application to an alias.

Rgds,
Malek


-Message d'origine-
De : Johnny Kewl [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 18 avril 2007 17:17
À : Tomcat Users List
Objet : Re: How to create a kind of alias in tomcat


Thing about these questions is always depends on what you really after...
One way would be browser redirection ie stick this in the header of the 
index file under organigramme meta http-equiv=refresh content=N; 
URL=other-web-address

and the way I like but I always get too much hassel moans and groans...

Is create a servlet and just map the urls that u want to recieve to it...
then with a little code... dispatch the call to the required page... or just 
use the a tomcat redirect like this

Check incoming URL and
response.sendRedirect(newUrl);

Or stick apache in front  and use its Aliases or Virtual Hosting



- Original Message -
From: BENTOUHAMI MB Malek (DCL) [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, April 18, 2007 1:57 PM
Subject: How to create a kind of alias in tomcat


Hello,

I'd like to connect to my application at
http://10.124.40.29:9090/ORGEWI/PLATFORM/FRENCH/EWICHART/JAVA/L1.html
but users need to connect via http://10.124.40.29:9090/organigramme
how to proceed ?

fyi : Calendra / tomcat v4
many applications with context file ORGEWI.xml

Tks,
Malek


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

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



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

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



JasperException: Array index out of range

2007-04-19 Thread Konrád Gábor

I use JBuilder 8 with Tomcat 4.1.30, and I run my WEB application in the 
JBuilder IDE.
When the application is running I get the following error.
Can anyone help me to solve this problem?


Thank you in advance
Gabor Konrad


ApplicationDispatcher[/my-app]: Servlet.service() for servlet debugjsp threw 
exception
org.apache.jasper.JasperException: Array index out of range: 0
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1033)
at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:436)
at 
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:711)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:687)
at java.lang.Thread.run(Thread.java:536)
StandardWrapperValve[action]: Servlet.service() for servlet action threw 
exception
org.apache.jasper.JasperException: Array index out of range: 0
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 

Jasper5 And Fedora Core 6, build-classpath problems [repost]

2007-04-19 Thread stephen.hindmarch
[Reposted after getting my wrist slapped by Mark]

I am trying to use Jasper on Fedora Core 6 to precompile some of my jsp
but I come across the following classpath builder errors when trying run
the jasper script:-

$ /usr/bin/jasper5.sh
/usr/bin/build-classpath: error: Could not find jasper-compiler Java
extension for this JVM
/usr/bin/build-classpath: error: Could not find jasper-runtime Java
extension for this JVM
/usr/bin/build-classpath: error: Could not find jsp-2.0-api Java
extension for this JVM
/usr/bin/build-classpath: error: Could not find servlet-2.4-api Java
extension for this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
Usage: /usr/bin/jasper5.sh ( jspc )
Commands:
  jspc - Run the offline JSP compiler

I looked in the script to see what jar files the classpath builder
needed and compared that to similar looking jar files in /usr/share/java

By creating links to the following files I get rid of the errors

$ su -
# cd /usr/share/java
# ln -s jasper5-compiler.jar jasper-compiler.jar
# ln -s jasper5-runtime.jar jasper-runtime.jar
# ln -s tomcat5-jsp-2.0-api.jar jsp-2.0-api.jar
# ln -s tomcat5-servlet-2.4-api.jar servlet-2.4-api.jar
# exit
$ /usr/bin/jasper5.sh
Usage: /usr/bin/jasper5.sh ( jspc )
Commands:
  jspc - Run the offline JSP compiler

So what I am wondering is have I missed off installing a compatibility
package or is there a mistake in the jasper package that should either
create these links or change the names required in the script?

For reference the packages concerned are
tomcat5-servlet-2.4-api-5.5.17-6jpp.2
tomcat5-jsp-2.0-api-5.5.17-6jpp.2
tomcat5-jasper-5.5.17-6jpp.2

Steve Hindmarch
One IT - iBridge Development

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

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



Re: Tomcat 5.5.17 and IPv6 configuration

2007-04-19 Thread SAVERIO FERRARO


Hi johnny,
i think that is a id-scope problem.
when i ping6 a remote computer i just run ping ipv6_local_link_address%4
and it runs corectly!!!

i have just tried to conect with
telnet ipv6_local_link_address%4 8080 and it run good!

but when i put http://[ipv6_local_link_address%4]:8080 in url bar of 
Internet explorer 7 it doesn't run.

it tells me that it isn't a correct address

thanks

saverio


From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 09:32:03 +0200


Hi SAVERIO,

I just had IPv6 installed on a dev machine so I can make sure my code works 
with IPv6... like for example when you install IPv6 on XP and then 
http://localhost:8080 it comes into tomcat as a [::1] address, bet thats 
going to catch a few guys...


I also figured out a way that you can prove that your tomcat is binding 
with ipv6

type netstat -noa

it will give you the PID which you can get check in the task manager 
(cntrl-alt-delete)

Tomcat 5.5.17 is DEFINITELY IPv6 enabled...

BUT to my amazement the win32 binary of Apache httpd web server 2.2.4 
on apache.org (latest one) IS NOT even though the docs say its ipv6 
enabled.
Guys... you got to fix that... because not only do IPv6 addresses not 
work... the host name on a IPv6 XP machine maps to a IPv6 address and 
Apache Web server DOES NOT WORK. it means windows IPv6 users see a 
BROKEN Apache.


Just netstat -noa and you will see it is not binding with IPv6

Saverio when I saw your email, I setup another IPv6 XP machine and 
tried to call it with IPv6 address, on local subnet to my horror it 
doesnt get through to machine with tomcat either however I can ping6 
the machine


So unfortunately because Win32 Apache Web server is not IPv6 enabled I 
couldnt find another test case to see if it is in fact a Tomcat problem
Somehow I dont think it is there doesnt seem to be any intrinsic IPv6 
router support nor a IPv6 DNS and it might be that on IPv6 on one windows 
machine just cant see the other one anyway I'm researching will let 
you know what I find.


We either got to find a test case... like a working IPv6 apache web 
server or we got to figure out how one windows machine tells the others 
that it is an IPv6 animal..



- Original Message - From: SAVERIO FERRARO 
[EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, April 18, 2007 4:25 PM
Subject: Tomcat 5.5.17 and IPv6 configuration



Hi all,
thank you for your responce.
But there is the problem tomcat 5.5.17 and IPV6 too.
I installed Microsoft IPv6 on Win XP sp2 and then Tomcat 5.5.17.
Now I can access to Tomcat page from OPERA with http://localhost:8080 and 
with http:/[::1]:8080.
I have just tried from remote computer with 
http://[full_ipv6_address]:8080 and http://[full_ipv6_address%ID]:8080 but 
nothing!


May You help me?
Thanks.

Saverio FERRARO

_
Scopri gli ospiti di MSN VideoVip! E intervieni in diretta! 
http://videovip.it.msn.com/



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





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



_
Push the button! Crea il tuo blog e fatti vedere...   
http://pushthebutton2006.spaces.live.com/



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



Re: Context.xml in tomcat 5.5

2007-04-19 Thread Andre Prasetya

there are 2 context.xml : the global one at tomcat_home and the local one at
the webapp.
if you want a local one, create the folder META-INF outside WEB-INF, meaning
that META-INF is not inside WEB-INF

if you're using eclipse wtp, you may put the META-INF under WebContent
folder. undder folder web if you're using NB

On 4/19/07, Avinash Kumar [EMAIL PROTECTED] wrote:


thanks,
  In my web application context .xml is under TOMCAT_HOME\conf\context.xml
their is not META-INF so do i need to create a META-INF directoru nd shift
the context.xml i can modify it from where it is

On 4/19/07, Andre Prasetya [EMAIL PROTECTED] wrote:

 the one at TOMCAT_HOME\conf\context.xml is the one that is loaded for
all
 application, you ll wanna use that if you have a global environment
 variable. for example you need a DataSource (connection pool) that is
 shared
 for all application. you can configure a context.xml inside META-INF of
 your
 web app.

 On 4/19/07, Avinash Kumar [EMAIL PROTECTED] wrote:
 
  Hi all,
Thier is a file TOMCAT_HOME\conf\context.xml in tomcat 5.5 ,what we
 have
  to write in this xml file and when is this file needed,i made two
sample
  web
  application in jsp and servets ,i just deployed those in webapps ,i se
 the
  java and tomcat home as required  and these application are running ,i
  just
  want to know that when we have to configure this file.
  Thanks
 



 --
 -Andre-

 People see things the way they are and say why ? I see things that
never
 were and say Why not ?






--
-Andre-

People see things the way they are and say why ? I see things that never
were and say Why not ?


Re: Context.xml in tomcat 5.5

2007-04-19 Thread Avinash Kumar

Hi,
u wrote  for example you need a DataSource (connection pool) that is
shared
for all application. you can configure a context.xml inside META-INF of your
web app if it is shared by all application then sud i configure a
context.xml inside META-INF of my web app..then ud it  b common to all the
application.?thne i must write it in the TOMCAT_HOME/conf/context.xml ,isn't
it???
 Nd one more thing Sir,For configuring Data Source(for pooling) in tomcat
5.5 we can configure it in server.xml using JNDI ..then why in
TOMCAT_HOME/conf/context.xml ?


On 4/19/07, Andre Prasetya [EMAIL PROTECTED] wrote:


the one at TOMCAT_HOME\conf\context.xml is the one that is loaded for all
application, you ll wanna use that if you have a global environment
variable. for example you need a DataSource (connection pool) that is
shared
for all application. you can configure a context.xml inside META-INF of
your
web app.

On 4/19/07, Avinash Kumar [EMAIL PROTECTED] wrote:

 Hi all,
   Thier is a file TOMCAT_HOME\conf\context.xml in tomcat 5.5 ,what we
have
 to write in this xml file and when is this file needed,i made two sample
 web
 application in jsp and servets ,i just deployed those in webapps ,i se
the
 java and tomcat home as required  and these application are running ,i
 just
 want to know that when we have to configure this file.
 Thanks




--
-Andre-

People see things the way they are and say why ? I see things that never
were and say Why not ?



Re: Context.xml in tomcat 5.5

2007-04-19 Thread Andre Prasetya

there are 2 places you can configure the connection pooling
at global and at local. for your case its global. yes it is at
server.xmlbut you have to put an entry at
context.xml so that the web.xml recognise it

example
 GlobalNamingResources

   !-- Test entry for demonstration purposes --
   Environment value=30 type=java.lang.Integer name=simpleValue /

   !-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users --
   Resource pathname=conf/tomcat-users.xml description=User database
that can be updated and saved auth=Container type=
org.apache.catalina.UserDatabase name=UserDatabase factory=
org.apache.catalina.users.MemoryUserDatabaseFactory /
   Resource auth=Container
 description=DB Connection
 driverClass=com.mysql.jdbc.Driver
 maxPoolSize=100
 minPoolSize=1
 acquireIncrement=1
 name=jdbc/Standard
 user=
 password=***
 factory=org.apache.naming.factory.BeanFactory
 type=com.mchange.v2.c3p0.ComboPooledDataSource
 jdbcUrl=jdbc:mysql://127.0.0.1:3306/test?autoReconnect=true /
 /GlobalNamingResources

the following entry should be available at context.xml (global or local you
choose)
   ResourceLink
 name=jdbc/Standard
 global=jdbc/Standard
 type=javax.sql.DataSource/

then you can put this at your app web.xml
   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/Standard/res-ref-name
   res-type
   javax.sql.DataSource
   /res-type
   res-authContainer/res-auth
   res-sharing-scopeShareable/res-sharing-scope
   /resource-ref


On 4/19/07, Avinash Kumar [EMAIL PROTECTED] wrote:


Hi,
u wrote  for example you need a DataSource (connection pool) that is
shared
for all application. you can configure a context.xml inside META-INF of
your
web app if it is shared by all application then sud i configure a
context.xml inside META-INF of my web app..then ud it  b cogmmon to all
the
application.?thne i must write it in the TOMCAT_HOME/conf/context.xml
,isn't
it???
  Nd one more thing Sir,For configuring Data Source(for pooling) in tomcat
5.5 we can configure it in server.xml using JNDI ..then why in
TOMCAT_HOME/conf/context.xml ?


On 4/19/07, Andre Prasetya [EMAIL PROTECTED] wrote:

 the one at TOMCAT_HOME\conf\context.xml is the one that is loaded for
all
 application, you ll wanna use that if you have a global environment
 variable. for example you need a DataSource (connection pool) that is
 shared
 for all application. you can configure a context.xml inside META-INF of
 your
 web app.

 On 4/19/07, Avinash Kumar [EMAIL PROTECTED] wrote:
 
  Hi all,
Thier is a file TOMCAT_HOME\conf\context.xml in tomcat 5.5 ,what we
 have
  to write in this xml file and when is this file needed,i made two
sample
  web
  application in jsp and servets ,i just deployed those in webapps ,i se
 the
  java and tomcat home as required  and these application are running ,i
  just
  want to know that when we have to configure this file.
  Thanks
 



 --
 -Andre-

 People see things the way they are and say why ? I see things that
never
 were and say Why not ?






--
-Andre-

People see things the way they are and say why ? I see things that never
were and say Why not ?


Re: Context.xml in tomcat 5.5

2007-04-19 Thread Avinash Kumar

Thanks a Lot  Sir,
 I more thing i got to ask regarding this is dat in tomcat 4.1 we dont have
this context.xml file separately so if we do JNDI connection Pooling for all
the web
application present then where to set the context entries as we set in
context.xml in tomcat 5.5  ,as because in tomcat 4.1  this file (Context.xml)
is not present by default in TOMCAT4.1_HOME/conf/
thanks a Lot


On 4/19/07, Andre Prasetya [EMAIL PROTECTED] wrote:


there are 2 places you can configure the connection pooling
at global and at local. for your case its global. yes it is at
server.xmlbut you have to put an entry at
context.xml so that the web.xml recognise it

example
GlobalNamingResources

   !-- Test entry for demonstration purposes --
   Environment value=30 type=java.lang.Integer name=simpleValue /

   !-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users --
   Resource pathname=conf/tomcat-users.xml description=User database
that can be updated and saved auth=Container type=
org.apache.catalina.UserDatabase name=UserDatabase factory=
org.apache.catalina.users.MemoryUserDatabaseFactory /
   Resource auth=Container
 description=DB Connection
 driverClass=com.mysql.jdbc.Driver
 maxPoolSize=100
 minPoolSize=1
 acquireIncrement=1
 name=jdbc/Standard
 user=
 password=***
 factory=org.apache.naming.factory.BeanFactory
 type=com.mchange.v2.c3p0.ComboPooledDataSource
 jdbcUrl=jdbc:mysql://127.0.0.1:3306/test?autoReconnect=true /
/GlobalNamingResources

the following entry should be available at context.xml (global or local
you
choose)
   ResourceLink
 name=jdbc/Standard
 global=jdbc/Standard
 type=javax.sql.DataSource/

then you can put this at your app web.xml
   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/Standard/res-ref-name
   res-type
   javax.sql.DataSource
   /res-type
   res-authContainer/res-auth
   res-sharing-scopeShareable/res-sharing-scope
   /resource-ref


On 4/19/07, Avinash Kumar [EMAIL PROTECTED] wrote:

 Hi,
 u wrote  for example you need a DataSource (connection pool) that
is
 shared
 for all application. you can configure a context.xml inside META-INF of
 your
 web app if it is shared by all application then sud i configure a
 context.xml inside META-INF of my web app..then ud it  b cogmmon to all
 the
 application.?thne i must write it in the TOMCAT_HOME/conf/context.xml
 ,isn't
 it???
   Nd one more thing Sir,For configuring Data Source(for pooling) in
tomcat
 5.5 we can configure it in server.xml using JNDI ..then why in
 TOMCAT_HOME/conf/context.xml ?


 On 4/19/07, Andre Prasetya [EMAIL PROTECTED] wrote:
 
  the one at TOMCAT_HOME\conf\context.xml is the one that is loaded for
 all
  application, you ll wanna use that if you have a global environment
  variable. for example you need a DataSource (connection pool) that is
  shared
  for all application. you can configure a context.xml inside META-INF
of
  your
  web app.
 
  On 4/19/07, Avinash Kumar [EMAIL PROTECTED] wrote:
  
   Hi all,
 Thier is a file TOMCAT_HOME\conf\context.xml in tomcat 5.5 ,what
we
  have
   to write in this xml file and when is this file needed,i made two
 sample
   web
   application in jsp and servets ,i just deployed those in webapps ,i
se
  the
   java and tomcat home as required  and these application are running
,i
   just
   want to know that when we have to configure this file.
   Thanks
  
 
 
 
  --
  -Andre-
 
  People see things the way they are and say why ? I see things that
 never
  were and say Why not ?
 




--
-Andre-

People see things the way they are and say why ? I see things that never
were and say Why not ?



RE: Classloader leak

2007-04-19 Thread Gross, Keith
I'll need to strip the application of some confidential bits but since my
test case only required the menu page that shouldn't be a problem.  Once I
have a test case were would you like it placed?

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 17, 2007 6:05 PM
To: Tomcat Users List
Subject: Re: Classloader leak

Gross, Keith wrote:
 Is there some way to prevent this?

It could be application error or it could be a Tomcat bug. Can you create a
simple war that demonstrates the issue I can use for debugging?

Mark

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

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



Re: Classloader leak

2007-04-19 Thread Mark Thomas
Gross, Keith wrote:
 I'll need to strip the application of some confidential bits but since my
 test case only required the menu page that shouldn't be a problem.  Once I
 have a test case were would you like it placed?

Please create a bugzilla entry for it and add the war as an attachment.

http://tomcat.apache.org/bugreport.html

Mark


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



Re: Jasper5 And Fedora Core 6, build-classpath problems [repost]

2007-04-19 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 So what I am wondering is have I missed off installing a compatibility
 package or is there a mistake in the jasper package that should either
 create these links or change the names required in the script?
 
 For reference the packages concerned are
 tomcat5-servlet-2.4-api-5.5.17-6jpp.2
 tomcat5-jsp-2.0-api-5.5.17-6jpp.2
 tomcat5-jasper-5.5.17-6jpp.2

This looks like a packing problem to me but Tomcat does not provide
packages like this. I don't use Fedora so I can't help much more than
to say contact Fedora support.

Mark

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



Re: Max number of contexts

2007-04-19 Thread Diego Rodríguez Martín

Hi again,

   I have been evaluating the architecture described below (one kernel 
with lightweight webapps registered by ContextListener), but I'm still 
worried about memory. You said that memory will be the main limitation, 
but what I would like to know is how many memory overhead produces a 
context compared to the webapp plain classes it loads. We're planning to 
have hundreds of contexts and I would like to know if we should consider 
another architecture for our problem. In this new project we will use 
Tomcat 5.5, but we are using now Tomcat 4.1 for other project and we are 
having OutOf Memory errors every week, more frecuently as the number of 
contexts incresases (between10-15 contexts aprox), so you can understand 
my worries


   Thanks again

   Diego

Filip Hanik - Dev Lists escribió:

Diego Rodriguez wrote:


Hi,

   I'm using Tomcat 5.5.20. In the docs says You may define as many 
*Context* elements as you wish


   I'm going to design a new web application that will act as a 
kernel for other lightweight webapps that will implement different 
services and may be hot installed at any time. My plan is implement 
these services (lightweight webapps) as contexts that will register 
in the kernel using a ContextListener. What I would like to know is 
if there is any real maximum or a performance penalty if I reach some 
limit. Is there anybody who has implemented an architecture like this? ]

Memory will be your main limitation.
Filip


   Thanks in advance

  Diego



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.11/721 - Release Date: 
3/13/2007 4:51 PM
  



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




--
-
Diego Rodríguez Martín ([EMAIL PROTECTED])
ALTIRIA TIC - Servicios SMS - Desarrollo Web
Tel. +34 913311198 - Fax +34 913310087 - Móvil +34 610299750
www.altiria.com
-


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



Re: Tomcat 5.5.17 and IPv6 configuration

2007-04-19 Thread Johnny Kewl


Yes... that because the crazy person that designed IP6 used an URL escape 
character...


When you leave spaces in a URL say like http://123.123.123.123?mything=ure 
thing


after the browser has got hold of it it becomes

http://123.123.123.123?mything=ure%20thing

See its encoding the space but look at the character its using

a %

Now if you want a percent it will become. %25

For example type % into a google search and then look at the url it brings 
back


%  becomes this %25

So when you write code u could url encode % by just putting in %25

but the problem is browsers do it for you so if the scope is %4
you cant write it as %254  because the browser will try turn it into %25254
OR if it does see that as an escaped character... it will try change %254 
into whatever
the ascii should be BUT it doesnt exsist so ha ha... this is 
nuts maybe we should write it as
%25%04 and then you will find the browser doesnt reject the URL but 
in my case it
still doesnt find the machine.. maybe the browser inside the [ipv6] is 
interpreting that as %2525%2504
or it could be turning it into %4 who knows, we will have to ask the 
rocket scientist that designed this monster.


I was also thinking about these http://user:[EMAIL PROTECTED]/pathtype of 
urls with IP6  wonder how u now write those... ha ha.


OK... I actually HOPE we DONT need to include the scope in the URL 
because that scope is

[remote]%LOCAL SCOPE 
Its not the scope of the remote machine so hopefully the browser is 
smart enuf to detect the local area connection interface...
If it isnt like this... its going to be chaos ... for example as an 
experiment I installed a bluetooth cell phone on a machine
and as sure as nuts ipv6 if showed that the interface had 
changed means the IP address with scope also changes ha ha


I tried putting the [::remote:machine] into the host file and calling 
that. as ip6remotemachine in browser also doesnt work.


I still have an IP4 router and I thought maybe it doesnt know whats 
going on so I disconnected the router, restarted the IPv6 machines on 
the subnet and it still doesnt work ie just 2 MS machines on a 
hub maybe the hub must be ipv6?


Have a horrible feeling you supposed to rush out and buy a IP6 router and a 
DNS6 even for a subnet

This IPv6 stuff isnt ready... its too complicated.
Will try figure out why it doesnt work but I'm beginning to think IPv6 
will never become a reality in its current form.

Geeks dont even know wots going on... a normal human doesnt stand a chance.

Getting a long way from tomcat now but this is definitely going to come 
up over and over again...



- Original Message - 
From: SAVERIO FERRARO [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, April 19, 2007 11:34 AM
Subject: Re: Tomcat 5.5.17 and IPv6 configuration




Hi johnny,
i think that is a id-scope problem.
when i ping6 a remote computer i just run ping ipv6_local_link_address%4
and it runs corectly!!!

i have just tried to conect with
telnet ipv6_local_link_address%4 8080 and it run good!

but when i put http://[ipv6_local_link_address%4]:8080 in url bar of 
Internet explorer 7 it doesn't run.

it tells me that it isn't a correct address

thanks

saverio


From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 09:32:03 +0200


Hi SAVERIO,

I just had IPv6 installed on a dev machine so I can make sure my code 
works with IPv6... like for example when you install IPv6 on XP and then 
http://localhost:8080 it comes into tomcat as a [::1] address, bet thats 
going to catch a few guys...


I also figured out a way that you can prove that your tomcat is binding 
with ipv6

type netstat -noa

it will give you the PID which you can get check in the task manager 
(cntrl-alt-delete)

Tomcat 5.5.17 is DEFINITELY IPv6 enabled...

BUT to my amazement the win32 binary of Apache httpd web server 2.2.4 
on apache.org (latest one) IS NOT even though the docs say its ipv6 
enabled.
Guys... you got to fix that... because not only do IPv6 addresses not 
work... the host name on a IPv6 XP machine maps to a IPv6 address and 
Apache Web server DOES NOT WORK. it means windows IPv6 users see a 
BROKEN Apache.


Just netstat -noa and you will see it is not binding with IPv6

Saverio when I saw your email, I setup another IPv6 XP machine and 
tried to call it with IPv6 address, on local subnet to my horror it 
doesnt get through to machine with tomcat either however I can ping6 
the machine


So unfortunately because Win32 Apache Web server is not IPv6 enabled I 
couldnt find another test case to see if it is in fact a Tomcat 
problem
Somehow I dont think it is there doesnt seem to be any intrinsic IPv6 
router support nor 

Re: problems configuring mod_jk

2007-04-19 Thread Faheem Mitha



On Thu, 19 Apr 2007, Rainer Jung wrote:


Your worker.list entry is only a comment :(


This does look like it in the email, but it is probably some artifact of 
the cutting and pasting process. To make sure, I've added a blank line 
after every comment.


Anyway, that is not the problem. Any other ideas about this? Debugging 
strategies?


Thanks. Faheem.


Faheem Mitha wrote:


Hi,

I'm trying to set up Apache to talk to Tomcat using the mod_jk connector.
However, I get the following error in the log, /var/log/apache2/mod_jk.log

jk_handler::mod_jk.c (1986): Could not find a worker for worker 
name=ajp13_worker


Apparently it cannot find the definition (or whatever) for ajp13_worker, 
but this is defined in /etc/libapache2-mod-jk/workers.properties as far as 
I can tell.


I include the relevant portions of my config below. If anyone can tell me 
what I'm doing wrong, that would be great.


Thanks in advance. Faheem.


Relevant portion of apache config

LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so

VirtualHost x.x.x.60:443
ServerName ...
# Sample mod_jk configuration
# for Apache 2
#
# for all commands/options available see the manual
# provided in libapache-mod-jk-doc package.

# The location where mod_jk will find the workers definitions
JkWorkersFile   /etc/libapache2-mod-jk/workers.properties

# The location where mod_jk is going to place its log file
JkLogFile   /var/log/apache2/mod_jk.log

# The log level:
# - info log will contain standard mod_jk activity (default).
# - warn log will contain non fatal error reports.
# - error log will contain also error reports.
# - debug log will contain all information on mod_jk activity
# - trace log will contain all tracing information on mod_jk activity
JkLogLevel  info


# Assign specific URLs to Tomcat. In general the structure of a
# JkMount directive is: JkMount [URL prefix] [Worker name]

# send all requests ending in .jsp to ajp13_worker
JkMount /*.jsp ajp13_worker
#JkMount /* ajp13_worker
# send all requests ending /servlet to ajp13_worker
#JkMount /*/servlet/ ajp13_worker

# JkUnmount directive acts as an opposite to JkMount and blocks access
# to a particular URL. The purpose is to be able to filter out the
# particular content types from mounted context.

# do not send requests ending with .gif to ajp13_worker
#JkUnMount /servlet/*.gif ajp13_worker

# JkMount / JkUnMount directives can also be used inside VirtualHost
# sections of your httpd.conf file.
/VirtualHost


/etc/libapache2-mod-jk/workers.properties

# workers.properties -
#
# This file is a simplified version of the workers.properties supplied
# with the upstream sources. The jni inprocess worker (not build in the
# debian package) section and the ajp12 (deprecated) section are removed.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to do is un-comment and modify the first three
# properties, i.e. workers.tomcat_home, workers.java_home and ps.
# Most of the configuration is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp13 worker that connects to localhost:8009
# - A load balancer worker
#
#

# OPTIONS ( very important for jni mode )

#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=/usr/share/tomcat5.5

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/usr/lib/j2sdk1.5-sun

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/

#
#-- ADVANCED MODE 
#-
#

#
#-- worker list --
#-
#
#
# The workers that your plugins should create and work with
# worker.list=ajp13_worker

#
#-- ajp13_worker WORKER DEFINITION --
#-
#

#
# 

Global Footer Accross All Webapps

2007-04-19 Thread Simon Stone

I am trying to find a way to put some html text on the bottom of all pages
across all webapps.

So what i would like to acheive is when any page is displayed to a visitor
at the bottom of the page, MY text is added without changing the files
within the webapp's themselves.

Basically a global footer page.

An example of the footer page, would have the following information:-

Powered by Apache Tomcat  http://globalsite.com/images/tomcat.jpg border= 


My current structure is as follows:-

Tomcat
   WebApp1
  index.jsp
  page2.jsp
   WebApp2
  index.jsp
  someotherpage.jsp
   WebApp3
  index.jsp
  anyotherpage.jsp
-- 
View this message in context: 
http://www.nabble.com/Global-Footer-Accross-All-Webapps-tf3606998.html#a10077332
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: 404 and originally requested URL

2007-04-19 Thread Simon Stone

Have you tried using the request.getHeader(Referer) to get the page that
sent the previous request


Propes, Barry L [GCG-NAOT] wrote:
 
 did you check your logs? Did they tell you anything?
 
 -Original Message-
 From: Guilhem SEMPERE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 18, 2007 10:00 AM
 To: users@tomcat.apache.org
 Subject: 404 and originally requested URL
 
 
 Hi
 
 I am using Tomcat 5.5, having set it up so that any 404 error redirects 
 to a 404.jsp I have written for custom handling.
 
 Now I need access to the originally requested URL (the one which 
 couldn't be found).  I couldn't find a way to do this.  All info I can 
 get is that the requested URL is now 404.jsp, which I am not interested
 in.
 
 Any help much appreciated.  Thanks in advance,
 
 Guilhem
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/RE%3A-404-and-originally-requested-URL-tf3601601.html#a10077336
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Global Footer Accross All Webapps

2007-04-19 Thread Brantley Hobbs
You could easily do it with tiles.  An alternative would be to use a 
filter and append your footer to the output stream.


B.

Simon Stone wrote:

I am trying to find a way to put some html text on the bottom of all pages
across all webapps.

So what i would like to acheive is when any page is displayed to a visitor
at the bottom of the page, MY text is added without changing the files
within the webapp's themselves.

Basically a global footer page.

An example of the footer page, would have the following information:-

Powered by Apache Tomcat  http://globalsite.com/images/tomcat.jpg border= 



My current structure is as follows:-

Tomcat
   WebApp1
  index.jsp
  page2.jsp
   WebApp2
  index.jsp
  someotherpage.jsp
   WebApp3
  index.jsp
  anyotherpage.jsp


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



Re: Global Footer Accross All Webapps

2007-04-19 Thread Brantley Hobbs
Doh.  My coffee hasn't kicked in yet:  I just noticed that you want one 
for every webapp, not just a single one.


I wonder if you can do it with a valve.  That's a tomcat specific thing, 
 IIRC, so you might not be able to port that to some other container in 
the future.


B.

Simon Stone wrote:

I am trying to find a way to put some html text on the bottom of all pages
across all webapps.

So what i would like to acheive is when any page is displayed to a visitor
at the bottom of the page, MY text is added without changing the files
within the webapp's themselves.

Basically a global footer page.

An example of the footer page, would have the following information:-

Powered by Apache Tomcat  http://globalsite.com/images/tomcat.jpg border= 



My current structure is as follows:-

Tomcat
   WebApp1
  index.jsp
  page2.jsp
   WebApp2
  index.jsp
  someotherpage.jsp
   WebApp3
  index.jsp
  anyotherpage.jsp


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



Re: Tomcat 5.5.17 and IPv6 configuration

2007-04-19 Thread SAVERIO FERRARO


hi johnny,

the problem  has been resolved!!!

I have  set a global ipv6 address on the two computers, then I've set ipv6 
routes on the computers because i have only a hub between the machine.


They work!!!

NOW,in Internet Explorer url, the %25ID or %ID doesn't need.

Saverio


From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 14:38:24 +0200


Yes... that because the crazy person that designed IP6 used an URL escape 
character...


When you leave spaces in a URL say like http://123.123.123.123?mything=ure 
thing


after the browser has got hold of it it becomes

http://123.123.123.123?mything=ure%20thing

See its encoding the space but look at the character its using

a %

Now if you want a percent it will become. %25

For example type % into a google search and then look at the url it brings 
back


%  becomes this %25

So when you write code u could url encode % by just putting in %25

but the problem is browsers do it for you so if the scope is %4
you cant write it as %254  because the browser will try turn it into %25254
OR if it does see that as an escaped character... it will try change %254 
into whatever
the ascii should be BUT it doesnt exsist so ha ha... this is 
nuts maybe we should write it as
%25%04 and then you will find the browser doesnt reject the URL but 
in my case it
still doesnt find the machine.. maybe the browser inside the [ipv6] is 
interpreting that as %2525%2504
or it could be turning it into %4 who knows, we will have to ask the 
rocket scientist that designed this monster.


I was also thinking about these http://user:[EMAIL PROTECTED]/pathtype of 
urls with IP6  wonder how u now write those... ha ha.


OK... I actually HOPE we DONT need to include the scope in the URL 
because that scope is

[remote]%LOCAL SCOPE 
Its not the scope of the remote machine so hopefully the browser is 
smart enuf to detect the local area connection interface...
If it isnt like this... its going to be chaos ... for example as an 
experiment I installed a bluetooth cell phone on a machine
and as sure as nuts ipv6 if showed that the interface had 
changed means the IP address with scope also changes ha ha


I tried putting the [::remote:machine] into the host file and calling 
that. as ip6remotemachine in browser also doesnt work.


I still have an IP4 router and I thought maybe it doesnt know whats 
going on so I disconnected the router, restarted the IPv6 machines on 
the subnet and it still doesnt work ie just 2 MS machines on a 
hub maybe the hub must be ipv6?


Have a horrible feeling you supposed to rush out and buy a IP6 router and a 
DNS6 even for a subnet

This IPv6 stuff isnt ready... its too complicated.
Will try figure out why it doesnt work but I'm beginning to think IPv6 
will never become a reality in its current form.

Geeks dont even know wots going on... a normal human doesnt stand a chance.

Getting a long way from tomcat now but this is definitely going to come 
up over and over again...



- Original Message - From: SAVERIO FERRARO 
[EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, April 19, 2007 11:34 AM
Subject: Re: Tomcat 5.5.17 and IPv6 configuration




Hi johnny,
i think that is a id-scope problem.
when i ping6 a remote computer i just run ping ipv6_local_link_address%4
and it runs corectly!!!

i have just tried to conect with
telnet ipv6_local_link_address%4 8080 and it run good!

but when i put http://[ipv6_local_link_address%4]:8080 in url bar of 
Internet explorer 7 it doesn't run.

it tells me that it isn't a correct address

thanks

saverio


From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 09:32:03 +0200


Hi SAVERIO,

I just had IPv6 installed on a dev machine so I can make sure my code 
works with IPv6... like for example when you install IPv6 on XP and then 
http://localhost:8080 it comes into tomcat as a [::1] address, bet thats 
going to catch a few guys...


I also figured out a way that you can prove that your tomcat is binding 
with ipv6

type netstat -noa

it will give you the PID which you can get check in the task manager 
(cntrl-alt-delete)

Tomcat 5.5.17 is DEFINITELY IPv6 enabled...

BUT to my amazement the win32 binary of Apache httpd web server 2.2.4 
on apache.org (latest one) IS NOT even though the docs say its ipv6 
enabled.
Guys... you got to fix that... because not only do IPv6 addresses not 
work... the host name on a IPv6 XP machine maps to a IPv6 address and 
Apache Web server DOES NOT WORK. it means windows IPv6 users see a 
BROKEN Apache.


Just netstat -noa and you will see it 

Re: sending smtp mail failure

2007-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

MT,

Mighty Tornado wrote:
 It was churning for a long time and still didn't manage to send the email.
 But it left me this exception:

[snip]

 Caused by: javax.mail.MessagingException: Could not connect to SMTP host:
 smtp.gmail.com, port: 465, response: -1

- From the command-line on your server, can you telnet to
smtp.gmail.com:465? I'm wondering if you have a firewall that won't
allow you to make that connection.

 I heeded your advice and tried setting up Outlook Express for gmail
 server.
 This is the message that I got:
 The connection to the server has failed. Account: 'smtp.google.com',
 Server:
 'smtp.google.com', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket
 Error:
 10060, Error Number: 0x800CCC0E

So, it looks like this isn't a problem specific to Java. I'm guessing
that you are being blocked somewhere. Microsoft Windows versions since
2000 (at least) have had software firewalls built into them that you can
easily configure. You may also have another firewall on your network
between you and google's SMTP server. If that's the case, you'll have to
change the configuration of the firewall(s) to allow communication.

- -chris

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

iD8DBQFGJ2z19CaO5/Lv0PARAhw7AJ0eEUTkWPr0SJkAOysnoUHAWqb7FACeItA9
Z2wwl1/F8zG5/ahCnAdNIMY=
=1Ll0
-END PGP SIGNATURE-

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



Re: error-page directive in 5.5.20 - resending

2007-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Eqbal,

Eqbal wrote:
 I have an error-page directive in a webapp's web.xml to display a
 custom error page on 404/500 errors. . It works on my local machine
 which has Tomcat 5.5.17, but it does not work on my server which has
 5.5.20 installed. Any ideas?

Can you be more specific when you say doesn't work? Does it throw an
exception? Does the generic Tomcat error message show up on the user's
browser?

- -chris

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

iD8DBQFGJ21U9CaO5/Lv0PARApNIAJ9mIu3CYsgPHZMkUfw0EsRX0Pv60ACgtqYs
nR1Tw5eI4k75efEFa6rkRWs=
=ZuU1
-END PGP SIGNATURE-

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



CAS Filter Authentification

2007-04-19 Thread Aurélien Allienne

Hi,

I'm using a CAS Filter to authenticate user in Tomcat Administration and
Manager.

But I have a problem. I accept the certificate but I am not redirected to
the CAS login page.

I have write this in the web.xml of the admin webapps :

!-- CAS filter --
 filter
 filter-nameCAS Filter/filter-name
 filter-classedu.yale.its.tp.cas.client.filter.CASFilter
/filter-class
 init-param
param-nameedu.yale.its.tp.cas.client.filter.loginUrl/param-name
param-valuehttps://auth.univ-lille2.fr/cas/login/param-value
 /init-param

 init-param
param-nameedu.yale.its.tp.cas.client.filter.validateUrl
/param-name
param-valuehttps://auth.univ-lille2.fr/cas/serviceValidate
/param-value
 /init-param

 !--init-param
param-nameedu.yale.its.tp.cas.client.filter.authorizedProxy
/param-name
param-valuehttps://portalserver/CasProxyServlet/param-value
 /init-param--

 init-param
param-nameedu.yale.its.tp.cas.client.filter.serverName
/param-name
param-valuehttp://agenda.univ-lille2.fr:8080/param-value
 /init-param

 init-param
param-nameedu.yale.its.tp.cas.client.filter.wrapRequest
/param-name
param-valuetrue/param-value
 /init-param
 /filter

 filter-mapping
 filter-nameCAS Filter/filter-name
 url-pattern/*/url-pattern
 /filter-mapping


and i put casclient-2.1.1.jar in the WEB-INF/lib/

Where is the problem?

Cordially

Aurelien Allienne


Re: Tomcat 5.5.17 and IPv6 configuration

2007-04-19 Thread Johnny Kewl


Ah... did you configure one machine as a router... or every single machines 
IP6 routing table?
Did you find a good link somewhere...  I'd like to understand this... I 
cant imagine that MS

expects normal humans to configure routing tables

thx


- Original Message - 
From: SAVERIO FERRARO [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, April 19, 2007 3:20 PM
Subject: Re: Tomcat 5.5.17 and IPv6 configuration




hi johnny,

the problem  has been resolved!!!

I have  set a global ipv6 address on the two computers, then I've set ipv6 
routes on the computers because i have only a hub between the machine.


They work!!!

NOW,in Internet Explorer url, the %25ID or %ID doesn't need.

Saverio


From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 14:38:24 +0200


Yes... that because the crazy person that designed IP6 used an URL escape 
character...


When you leave spaces in a URL say like http://123.123.123.123?mything=ure 
thing


after the browser has got hold of it it becomes

http://123.123.123.123?mything=ure%20thing

See its encoding the space but look at the character its using

a %

Now if you want a percent it will become. %25

For example type % into a google search and then look at the url it brings 
back


%  becomes this %25

So when you write code u could url encode % by just putting in %25

but the problem is browsers do it for you so if the scope is %4
you cant write it as %254  because the browser will try turn it into 
%25254
OR if it does see that as an escaped character... it will try change %254 
into whatever
the ascii should be BUT it doesnt exsist so ha ha... this is 
nuts maybe we should write it as
%25%04 and then you will find the browser doesnt reject the URL 
but in my case it
still doesnt find the machine.. maybe the browser inside the [ipv6] is 
interpreting that as %2525%2504
or it could be turning it into %4 who knows, we will have to ask the 
rocket scientist that designed this monster.


I was also thinking about these http://user:[EMAIL PROTECTED]/pathtype of 
urls with IP6  wonder how u now write those... ha ha.


OK... I actually HOPE we DONT need to include the scope in the URL 
because that scope is

[remote]%LOCAL SCOPE 
Its not the scope of the remote machine so hopefully the browser is 
smart enuf to detect the local area connection interface...
If it isnt like this... its going to be chaos ... for example as an 
experiment I installed a bluetooth cell phone on a machine
and as sure as nuts ipv6 if showed that the interface had 
changed means the IP address with scope also changes ha ha


I tried putting the [::remote:machine] into the host file and calling 
that. as ip6remotemachine in browser also doesnt work.


I still have an IP4 router and I thought maybe it doesnt know whats 
going on so I disconnected the router, restarted the IPv6 machines on 
the subnet and it still doesnt work ie just 2 MS machines on a 
hub maybe the hub must be ipv6?


Have a horrible feeling you supposed to rush out and buy a IP6 router and 
a DNS6 even for a subnet

This IPv6 stuff isnt ready... its too complicated.
Will try figure out why it doesnt work but I'm beginning to think IPv6 
will never become a reality in its current form.
Geeks dont even know wots going on... a normal human doesnt stand a 
chance.


Getting a long way from tomcat now but this is definitely going to 
come up over and over again...



- Original Message - From: SAVERIO FERRARO 
[EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, April 19, 2007 11:34 AM
Subject: Re: Tomcat 5.5.17 and IPv6 configuration




Hi johnny,
i think that is a id-scope problem.
when i ping6 a remote computer i just run ping ipv6_local_link_address%4
and it runs corectly!!!

i have just tried to conect with
telnet ipv6_local_link_address%4 8080 and it run good!

but when i put http://[ipv6_local_link_address%4]:8080 in url bar of 
Internet explorer 7 it doesn't run.

it tells me that it isn't a correct address

thanks

saverio


From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 09:32:03 +0200


Hi SAVERIO,

I just had IPv6 installed on a dev machine so I can make sure my code 
works with IPv6... like for example when you install IPv6 on XP and then 
http://localhost:8080 it comes into tomcat as a [::1] address, bet thats 
going to catch a few guys...


I also figured out a way that you can prove that your tomcat is binding 
with ipv6

type netstat -noa

it will give you the PID which you can get check in the task manager 
(cntrl-alt-delete)

Tomcat 5.5.17 is 

Re: Getting a project deployed

2007-04-19 Thread John Calsbeek

Yeah, this isn't my webserver. I'm not excited about pulling out an
existing Apache setup...

On 4/18/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:

It is most likely that the project is not configured properly. We can
fix the 404 error by properly configuring your project for Tomcat
alone.

For starters, what is the absolute path of this index.jsp from the
root folder of the Linux machine?


/srv/www/tomcat5/base/webapps/jmarks/index.jsp

/srv/www/tomcat5/base/webapps/jmarks is aliased with Apache to the
HTTP path /path/to/jmarks

When I had this folder directly in /srv/www/htdocs/path/to/jmarks, I
had the same problem—*.html works fine, *.jsp does not.

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



RE: Classloader leak

2007-04-19 Thread Gross, Keith
Ok the problem has been created and the example war attached.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42172



-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 7:18 AM
To: Tomcat Users List
Subject: Re: Classloader leak

Gross, Keith wrote:
 I'll need to strip the application of some confidential bits but since 
 my test case only required the menu page that shouldn't be a problem.  
 Once I have a test case were would you like it placed?

Please create a bugzilla entry for it and add the war as an attachment.

http://tomcat.apache.org/bugreport.html

Mark


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

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



Re: Getting a project deployed

2007-04-19 Thread Rashmi Rubdi

Ok, if you insist on having an Apache Httpd (even though you may or
may not need it), someone on this list might help you further
configure it.

But I just wanted to say a few things... my reply is below...

On 4/19/07, John Calsbeek [EMAIL PROTECTED] wrote:

Yeah, this isn't my webserver. I'm not excited about pulling out an
existing Apache setup...

On 4/18/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:
 It is most likely that the project is not configured properly. We can
 fix the 404 error by properly configuring your project for Tomcat
 alone.

 For starters, what is the absolute path of this index.jsp from the
 root folder of the Linux machine?

/srv/www/tomcat5/base/webapps/jmarks/index.jsp


Normally in Tomcat a JSP page with the above absolute path is accessible at
http://localhost:8080/jmarks/index.jsp , where jmarks is known as the context

As Hassan mentioned earlier you would be able to change the port to 80
, the port configuration is in server.xml , look for where it says
8080 (only in case you want to change it in Tomcat and not through
Apache).



/srv/www/tomcat5/base/webapps/jmarks is aliased with Apache to the
HTTP path /path/to/jmarks


The above aliasing of paths also works in Tomcat alone with the use of
Filters. The aliasing is commonly known as URL Rewriting - normally
people write their own Filters or download and install a pre-written
one - Google will help here.



When I had this folder directly in /srv/www/htdocs/path/to/jmarks, I
had the same problem—*.html works fine, *.jsp does not.


Check the configuration of the above aliasing. Normally URL Rewriting
is done in a sequence, the first matching path pattern is applied, so
it helps to check all patterns and see which is the first one that's
being applied.

-Rashmi

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



HowTo forward user name from apache via mod_jk to tomcat

2007-04-19 Thread Peter Neu
Hello,

I'm doing user authentication on the apache server and forward then to
tomcat. I know this is not the best way but I can't change it for now. :o(

Until recently that was all but now I need to pass the user name to the
tomcat server as well. Is there any way to do this?

For authentication I use mod_auth_pgsql.

Tomcat 5.5.9,  apache 2.0.49, OS: SuSE ES9 

Cheers,
Pete 




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



Re: HTTP Status 503 - occurs once - only when i stop and start server

2007-04-19 Thread risky57

ok, ive restarted it, waited for a minute or more then tried opening the
browser and didn't get that problem.
but ive put a sleep for a minute for the first instance everytime i restart
and this worked.

i don't understand why id have to wait that long. 
and also why if i restart and launch a browser and refresh a second later
there is no problem. 
it seems to be every other launched browser instance is a fail.

e.g.
start - launch browser - ok
stop/start - launch browser - fail
stop/start - launch browser - ok
stop/start- launch browser - fail
stop/start - launch browser - ok
etc.

it just happens every other time i restart it on the first attempt to open
the browser.
thought it might  have been firefox. had the same problem with safari.




Is it just that Tomcat is taking time to start up? I wouldn't be
surprised to get a 503 error if Tomcat isn't ready to handle requests
yet. What happens if you start the server, wait for a minute, then
launch the browser?
-- 
Len

-- 
View this message in context: 
http://www.nabble.com/HTTP-Status-503---occurs-once---only-when-i-stop-and-start-server-tf3603240.html#a10078344
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: HTTP Status 503 - occurs once - only when i stop and start server

2007-04-19 Thread risky57

Does anyone know how to get  more feedback from tomcat embedded?
at the moment it tells me in started. but i know usually in regular tomcat
there is a lot more info. 




Rashmi Rubdi-2 wrote:
 
 Hi there,
 
 Have you set-up your projects in a way that it overloads Tomcat? Or is
 there something in the code that needs optimization?
 
 It helps to check Tomcat's logs for any exceptions/ error messages
 that give additional clues.
 
 According the the RFC 2616 and the Servlet 2.4 spec:
 
 Status code (503) indicates that the HTTP server is temporarily
 overloaded,
 and unable to handle the request.
 
 -Rashmi
 
 

-- 
View this message in context: 
http://www.nabble.com/HTTP-Status-503---occurs-once---only-when-i-stop-and-start-server-tf3603240.html#a10078350
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



connection_pool_size seems not to have any incidence

2007-04-19 Thread boulot BOULOT
Hi,

I have some Application Servers (tomcat) and 1 web server (httpd apache). 
(Linux RedHtat 3)
Apache works with the worker mpm.
There is an Apache Tomcat connector to link the web server to the ASs.
I'm trying to limit the number of connection from the web server to the ASs, 
using the worker.properties item connection_pool_size.

For example, I set the following properties in the httpd.conf :

IfModule worker.c
ServerLimit 20
StartServers20
MaxClients400
MinSpareThreads 40
MaxSpareThreads100
ThreadsPerChild 20
MaxRequestsPerChild  0
/IfModule

And set, in the workers.properties of the web server, for all the ASs :

worker.server_name.connection_pool_size=1

So, there should be at the maximum, 20 connections (20 worker.httpd process * 
connection_pool_size = 20) from the apache web server to each AS, but in fact, 
I saw up to 30 connections from the web server to each AS.

Did I understand well how it works ? Why does the connection_pool_size 
doesn't work ?

Thanks, 

Benoit.







  
___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: connection_pool_size seems not to have any incidence

2007-04-19 Thread Rainer Jung
A pool size of 1 for a thread count of 20 per process is somewhat 
strange. But OK, you could insist on this wish. Yes, it should be 
configurable like that.


Start apache with JkLogLevel debug and check the log file about messages 
concerning the pool size. You don't need to produce any traffic for 
these messages.


Regards,

Rainer
boulot BOULOT wrote:

Hi,

I have some Application Servers (tomcat) and 1 web server (httpd apache). 
(Linux RedHtat 3)
Apache works with the worker mpm.
There is an Apache Tomcat connector to link the web server to the ASs.
I'm trying to limit the number of connection from the web server to the ASs, using the 
worker.properties item connection_pool_size.

For example, I set the following properties in the httpd.conf :

IfModule worker.c
ServerLimit 20
StartServers20
MaxClients400
MinSpareThreads 40
MaxSpareThreads100
ThreadsPerChild 20
MaxRequestsPerChild  0
/IfModule

And set, in the workers.properties of the web server, for all the ASs :

worker.server_name.connection_pool_size=1

So, there should be at the maximum, 20 connections (20 worker.httpd process * 
connection_pool_size = 20) from the apache web server to each AS, but in fact, 
I saw up to 30 connections from the web server to each AS.

Did I understand well how it works ? Why does the connection_pool_size 
doesn't work ?

Thanks, 


Benoit.


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



Jakarta Tomcat Connector on IIS

2007-04-19 Thread Swaroop George

I have an IIS server sitting in the DMZ and I need to be able to
redirect all incoming requests to a Tomcat server in the in the
internal network.

I know that isapi_redirect.dll is the way to go about it. My question is

1) Does the DMZ server need a Tomcat installation for the redirect to
work? I think it is not required. But may be I am missing something

What has been done so far

1) Copied the isapi_redirect.dll into the DMZ server
2) Setup the workers.properties and uiworkermap.properties fils
3) set up the isapi_redirect.properties file for the registry entries
and placed it in the same directory as isapi_redirect.dll
4) Setup isapi_redirect.dll as an ISAPI filter on the IIS website.
Added isapi_redirect.dlll as a web service extension.

But somehow my isapi filter shows as Not Loaded.

Am I missing anything in the entire process?

Appreciate any pointers

Thanks
Swaroop

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



Re: HowTo forward user name from apache via mod_jk to tomcat

2007-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter,

Peter Neu wrote:
 I'm doing user authentication on the apache server and forward then to
 tomcat. I know this is not the best way but I can't change it for now. :o(
 
 Until recently that was all but now I need to pass the user name to the
 tomcat server as well. Is there any way to do this?

You're looking for JkEnvVar. Check out the Java/Tomcat/mod_jk
Integration section on this page (or just search for JkEnvVar):

http://webauth.stanford.edu/manual/mod/mod_webauth.html

This page is documentation for mod_webauth, but their config example
should be appropriate for any type of auth module.

To any mod_jk authors reading this, it might be helpful to flesh-out the
description and examples for the use of JkEnvVar on
http://tomcat.apache.org/connectors-doc/reference/apache.html. Maybe
just another example (plus how to get that information from the request
on the Java side) would be helpful.

- -chris

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

iD8DBQFGJ4Lu9CaO5/Lv0PARApKtAJwOsFZnr5SZ6KWAaCYCR8PGw4JQRgCfQJ0k
n3Z2oSPLeOu5RgrpubmMmIQ=
=fde5
-END PGP SIGNATURE-

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



RE: Jakarta Tomcat Connector on IIS

2007-04-19 Thread Peter Crowther
 From: Swaroop George [mailto:[EMAIL PROTECTED] 
 I have an IIS server sitting in the DMZ and I need to be able to
 redirect all incoming requests to a Tomcat server in the in the
 internal network.
[...]
 But somehow my isapi filter shows as Not Loaded.
 
 Am I missing anything in the entire process?

Version information please: versions of IIS and isapi_redirect.dll, plus
whether you're running x86 or x64 and which version of the DLL you've
downloaded?

- Peter

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



Re: Tomcat 5.5.17 and IPv6 configuration

2007-04-19 Thread SAVERIO FERRARO

hi johnny,

i want to explain you better.

in an ipv6 network you can ping a machine with an ipv6 address but you have 
to specified the index of interface (e.g. index 4 for interface Local Area 
Connection).

So if you want to ping:

ping ipv6address%4

The IE and mozzilla doesn't know %4 or %254 and so they tell us that the 
address is wrong!!


they want only http://[ipv6address] without %ID!

So i have thougth that
1 I give global ipv6 address to the 2 computer 2001::1 and 2001::2 
(Attention global address are different from link local address that 
automatic windows generates)


2 i have tried to ping between the 2 computer but nothig!!! Missing the 
route !! Because between the two computer i have only a hub.


3 I understand that missing the route so i have set this route both 
computers:

netsh interface ipv6 add route 2001::/68 Local Area Connection
so the interface Local Area Connection is begun my gateway!!!

Eureka

in windows Vista there isn't this problem!!!










From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 15:43:04 +0200


Ah... did you configure one machine as a router... or every single machines 
IP6 routing table?
Did you find a good link somewhere...  I'd like to understand this... I 
cant imagine that MS

expects normal humans to configure routing tables

thx


- Original Message - From: SAVERIO FERRARO 
[EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, April 19, 2007 3:20 PM
Subject: Re: Tomcat 5.5.17 and IPv6 configuration




hi johnny,

the problem  has been resolved!!!

I have  set a global ipv6 address on the two computers, then I've set ipv6 
routes on the computers because i have only a hub between the machine.


They work!!!

NOW,in Internet Explorer url, the %25ID or %ID doesn't need.

Saverio


From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 14:38:24 +0200


Yes... that because the crazy person that designed IP6 used an URL escape 
character...


When you leave spaces in a URL say like 
http://123.123.123.123?mything=ure thing


after the browser has got hold of it it becomes

http://123.123.123.123?mything=ure%20thing

See its encoding the space but look at the character its using

a %

Now if you want a percent it will become. %25

For example type % into a google search and then look at the url it 
brings back


%  becomes this %25

So when you write code u could url encode % by just putting in %25

but the problem is browsers do it for you so if the scope is %4
you cant write it as %254  because the browser will try turn it into 
%25254
OR if it does see that as an escaped character... it will try change %254 
into whatever
the ascii should be BUT it doesnt exsist so ha ha... this is 
nuts maybe we should write it as
%25%04 and then you will find the browser doesnt reject the URL 
but in my case it
still doesnt find the machine.. maybe the browser inside the [ipv6] 
is interpreting that as %2525%2504
or it could be turning it into %4 who knows, we will have to ask the 
rocket scientist that designed this monster.


I was also thinking about these http://user:[EMAIL PROTECTED]/pathtype of 
urls with IP6  wonder how u now write those... ha ha.


OK... I actually HOPE we DONT need to include the scope in the URL 
because that scope is

[remote]%LOCAL SCOPE 
Its not the scope of the remote machine so hopefully the browser is 
smart enuf to detect the local area connection interface...
If it isnt like this... its going to be chaos ... for example as an 
experiment I installed a bluetooth cell phone on a machine
and as sure as nuts ipv6 if showed that the interface had 
changed means the IP address with scope also changes ha ha


I tried putting the [::remote:machine] into the host file and calling 
that. as ip6remotemachine in browser also doesnt work.


I still have an IP4 router and I thought maybe it doesnt know whats 
going on so I disconnected the router, restarted the IPv6 machines on 
the subnet and it still doesnt work ie just 2 MS machines on a 
hub maybe the hub must be ipv6?


Have a horrible feeling you supposed to rush out and buy a IP6 router and 
a DNS6 even for a subnet

This IPv6 stuff isnt ready... its too complicated.
Will try figure out why it doesnt work but I'm beginning to think 
IPv6 will never become a reality in its current form.
Geeks dont even know wots going on... a normal human doesnt stand a 
chance.


Getting a long way from tomcat now but this is definitely going to 
come up over and over again...



- Original Message - From: SAVERIO FERRARO 
[EMAIL PROTECTED]

To: 

Re: Jakarta Tomcat Connector on IIS

2007-04-19 Thread Swaroop George

Jakarta Tomcat Connector version - jk-1.2.22 for win64

http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win64/jk-1.2.22/ia64/

IIS 6.0 running on Windows 2003



On 4/19/07, Peter Crowther [EMAIL PROTECTED] wrote:

 From: Swaroop George [mailto:[EMAIL PROTECTED]
 I have an IIS server sitting in the DMZ and I need to be able to
 redirect all incoming requests to a Tomcat server in the in the
 internal network.
[...]
 But somehow my isapi filter shows as Not Loaded.

 Am I missing anything in the entire process?

Version information please: versions of IIS and isapi_redirect.dll, plus
whether you're running x86 or x64 and which version of the DLL you've
downloaded?

   - Peter

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




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



JSP not recompiling properly

2007-04-19 Thread Propes, Barry L
Hi,
 
I've noticed  that one of my JSPs seems to not be changing properly.
 
I deleted the java and class files created in the work subdirectory where it's 
created upon being called. But it still calls the same data, and new string 
variables I've added and other parameters don't show.
 
I had stopped and restarted Tomcat...any idea why this is occurring?
 
I don't think I'm out of any kind of memory. Shouldn't be!
 
Any feedback is welcomed.
 
Thanks!


RE: JSP not recompiling properly

2007-04-19 Thread Propes, Barry L
ok, very very odd.

Java and Tomcat were doing their part, but for some reason, even though my JSP 
seemed to be saved on the surface, it wasn't getting updated accordingly 
through the OS or other system parts!

Was still showing a last modified date of 3/16 even though I'd done substantial 
changes to it this morning in my IDE, DreamWeaver.

Flaky, but it's never happened before so disregard this!



-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Thursday, April 19, 2007 10:33 AM
To: Tomcat Users List
Subject: JSP not recompiling properly


Hi,
 
I've noticed  that one of my JSPs seems to not be changing properly.
 
I deleted the java and class files created in the work subdirectory where it's 
created upon being called. But it still calls the same data, and new string 
variables I've added and other parameters don't show.
 
I had stopped and restarted Tomcat...any idea why this is occurring?
 
I don't think I'm out of any kind of memory. Shouldn't be!
 
Any feedback is welcomed.
 
Thanks!

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



Re: HowTo forward user name from apache via mod_jk to tomcat

2007-04-19 Thread Rainer Jung

In this case, why not simply use (mini test jsp):

User: %=request.getRemoteUser()%

:)

Honestly: mod_jk forwards quote some information apache has to tomcat, 
because mod_jk knows it's a reverse proxy situation. Besides the SSL 
info mentioned on the apache page of mod_jk reference guide, there is 
auth_type and remote_user. remote_user maps to request.getRemoteUser() 
in the servlet API.


Of course you can extend this by forwarding arbitrary apache environment 
variables via JkEnv to get them as request attributes on the tomcat 
side, but for the remote_user this should be not necessary.


I  hope this works for you (Peter).

Regards,

Rainer


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter,

Peter Neu wrote:

I'm doing user authentication on the apache server and forward then to
tomcat. I know this is not the best way but I can't change it for now. :o(

Until recently that was all but now I need to pass the user name to the
tomcat server as well. Is there any way to do this?


You're looking for JkEnvVar. Check out the Java/Tomcat/mod_jk
Integration section on this page (or just search for JkEnvVar):

http://webauth.stanford.edu/manual/mod/mod_webauth.html

This page is documentation for mod_webauth, but their config example
should be appropriate for any type of auth module.

To any mod_jk authors reading this, it might be helpful to flesh-out the
description and examples for the use of JkEnvVar on
http://tomcat.apache.org/connectors-doc/reference/apache.html. Maybe
just another example (plus how to get that information from the request
on the Java side) would be helpful.

- -chris

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

iD8DBQFGJ4Lu9CaO5/Lv0PARApKtAJwOsFZnr5SZ6KWAaCYCR8PGw4JQRgCfQJ0k
n3Z2oSPLeOu5RgrpubmMmIQ=
=fde5
-END PGP SIGNATURE-


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



Re: Getting a project deployed

2007-04-19 Thread John Calsbeek

On 4/19/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:

Check the configuration of the above aliasing. Normally URL Rewriting
is done in a sequence, the first matching path pattern is applied, so
it helps to check all patterns and see which is the first one that's
being applied.


The alias looks like this:

Alias /path/to/jmarks /srv/www/tomcat5/base/webapps/jmarks
Directory /srv/www/tomcat5/base/webapps/jmarks
   Options Indexes FollowSymLinks
   allow from all
/Directory

It is copied wholesale from aliases that already exist for the
built-in /jsp-examples and /servlets-examples, which work correctly.
In addition, I know that the alias works correctly for all other
content in the directory, and that I get the same error without
aliasing.

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



Re: HowTo forward user name from apache via mod_jk to tomcat

2007-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rainer,

Rainer Jung wrote:
 In this case, why not simply use (mini test jsp):
 
 User: %=request.getRemoteUser()%

Oh, hey, that's a lot better. No config or anything ;) I didn't realize
that REMOTE_USER was already being forwarded without further configuration.

Thanks for the clarification.

- -chris

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

iD8DBQFGJ5if9CaO5/Lv0PARAuDBAJ9Ilu2xZ0YW4FVQU44GAqEE5ag2TwCgoNeJ
eiNNp0sUwrpwkZyYdl9ZyPs=
=jHP3
-END PGP SIGNATURE-

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



SOLUTION: Tomcat 5.5.17 and IPv6 configuration

2007-04-19 Thread Johnny Kewl


OK... just want to get this documented because SAVERIO and I went around in 
circles on this thing...

Problem started as TOMCAT doesnt work with IPv6 on XP SP2

You install IPv6... as you would any other protocol... ie right click on 
Local Area Connection and Install and select the IPv6 stack.

Its that easy

Then when you type ipconfig in a dos screen (Run cmd)
you will see something like this.
   Connection-specific DNS Suffix  . :
   IP Address. . . . . . . . . . . . : 10.0.0.4
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   IP Address. . . . . . . . . . . . : fe80::20c:f1ff:feda:e48b%4
   Default Gateway . . . . . . . . . : 10.0.0.2

Then after you discover IE6 cant do IP6... you either get IE7 or the OPERA 
browser . (maybe others work as well)

and finally you type

http://[fe80::20c:f1ff:feda:e48b]:8080

into your new browser and you are filled with joy when you see Tomcat 
working life is terrific


Then you go type that into another machine that you have also 
installed IPv6 on and


IT BROKEN AGAIN it doesnt work

so from the other machine you

PING6 fe80::20c:f1ff:feda:e48b%5

where 5 is the LAN interface on THAT machine you get it by typing 
ipconfig if in the dos box.


it works so you try put the scope into the browser URL   (ie the %5) 
thing... (DONT EVEN TRY THAT... it doesnt work)
Eventually you have your router disconnected, you pull out your ADSL NAT 
and your hair
and then (remember all we trying to do is get 2 machines talking ipv6 ON THE 
SAME SUBNET something that just happens with ip4)
you eventually come to the conclusion... you need to buy an IP6 router... or 
you start trying to enter routing tables yourself... WRONG.


After reading more WRONG articles on the web that tell you to use the SCOPE 
(the %5 thing... in the url) you discover these two good articles

http://technet2.microsoft.com/WindowsServer/en/library/0af83b7a-16d7-4c8e-856b-22b7b65ceb7b1033.mspx?mfr=true
and
http://www.telscom.ch/index.php/downloads/configure_ipv6_features

after reading them you suddenly begin to realize that anything that 
starts with fe80... is a special LOCAL link... what that means... who knows
but its made automatically from the MAC address and its very local... like 
it only works on the machine local.


Then you think... well maybe IPv6 needs 2 address... the one MS give you and 
your own GLOBAL one so


then you copy an ip address like 2001:918:0:12:1::2, because you have no 
idea what the safe range is... like the ip4 10.0.0.0 range ;)

and you use this

netsh interface ipv6 set address Local Area Connection 2001:918:0:12:1::2
(because only if you upgrade to VISTA will it be a GUI)

You pray a little and type this into the remote machine...

http://[2001:918:0:12:1::2]:8080

IT WORKS!  xp is using IPv6 on a subnet.. and hallelujah! Tomcat is 
talking


Then when you type ipconfig now after putting in the GLOBAL address 
you now have 2 ipv6 addresses, the local and the global one that works,

and it lights up like a xmas tree... you see stuff like

Guid {6838F112-23C9-46CA-9C56-694FB4584896}
uses Neighbor Discovery
uses Router Discovery
link-layer address: 00-0c-f1-da-e4-8b
  preferred global 2001:918:0:12:1::2, life infinite (manual)
  preferred link-local fe80::20c:f1ff:feda:e48b, life infinite
  multicast interface-local ff01::1, 1 refs, not reportable
  multicast link-local ff02::1, 1 refs, not reportable
  multicast link-local ff02::1:ffda:e48b, 1 refs, last reporter
  multicast link-local ff02::1:ff00:2, 1 refs, last reporter
link MTU 1500 (true link MTU 1500)
current hop limit 128
reachable time 36500ms (base 3ms)
retransmission interval 1000ms
DAD transmits 1
default site prefix length 48

and that tells you that the internal routing has well and truely woken 
up.


AND thats it.. except along the way you discover there is a terrific way 
to see if a server is using IPv6


netstat -noa

May your pain be less than ours..

and if someone can tell me where to get a Win32 IPv6 enabled Web server 
I would be much obliged...


regards,
Johnny and Saverio...













SAVERIO FERRARO asked this question


Hi all,
thank you for your responce.
But there is the problem tomcat 5.5.17 and IPV6 too.
I installed Microsoft IPv6 on Win XP sp2 and then Tomcat 5.5.17.
Now I can access to Tomcat page from OPERA with http://localhost:8080 
and with http:/[::1]:8080.
I have just tried from remote computer with 
http://[full_ipv6_address]:8080 and http://[full_ipv6_address%ID]:8080 
but nothing!



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



Re: Tomcat 5.5.17 and IPv6 configuration

2007-04-19 Thread Johnny Kewl


Hi SAVERIO,
Yes just posted my findings. thanks very much, I think you got it with 
the Global address,
but you should not have to set up routes on a local subnet routing if 
its still normal should only be on a router box...   they have a million 
different protocols for self discovery on a subnet

I got it working without explicit routing thanks again

regards...



- Original Message - 
From: SAVERIO FERRARO [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, April 19, 2007 5:00 PM
Subject: Re: Tomcat 5.5.17 and IPv6 configuration



hi johnny,

i want to explain you better.

in an ipv6 network you can ping a machine with an ipv6 address but you 
have to specified the index of interface (e.g. index 4 for interface 
Local Area Connection).

So if you want to ping:

ping ipv6address%4

The IE and mozzilla doesn't know %4 or %254 and so they tell us that the 
address is wrong!!


they want only http://[ipv6address] without %ID!

So i have thougth that
1 I give global ipv6 address to the 2 computer 2001::1 and 2001::2 
(Attention global address are different from link local address that 
automatic windows generates)


2 i have tried to ping between the 2 computer but nothig!!! Missing the 
route !! Because between the two computer i have only a hub.


3 I understand that missing the route so i have set this route both 
computers:

netsh interface ipv6 add route 2001::/68 Local Area Connection
so the interface Local Area Connection is begun my gateway!!!

Eureka

in windows Vista there isn't this problem!!!










From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 15:43:04 +0200


Ah... did you configure one machine as a router... or every single 
machines IP6 routing table?
Did you find a good link somewhere...  I'd like to understand this... I 
cant imagine that MS

expects normal humans to configure routing tables

thx


- Original Message - From: SAVERIO FERRARO 
[EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, April 19, 2007 3:20 PM
Subject: Re: Tomcat 5.5.17 and IPv6 configuration




hi johnny,

the problem  has been resolved!!!

I have  set a global ipv6 address on the two computers, then I've set 
ipv6 routes on the computers because i have only a hub between the 
machine.


They work!!!

NOW,in Internet Explorer url, the %25ID or %ID doesn't need.

Saverio


From: Johnny Kewl [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat 5.5.17 and IPv6 configuration
Date: Thu, 19 Apr 2007 14:38:24 +0200


Yes... that because the crazy person that designed IP6 used an URL 
escape character...


When you leave spaces in a URL say like 
http://123.123.123.123?mything=ure thing


after the browser has got hold of it it becomes

http://123.123.123.123?mything=ure%20thing

See its encoding the space but look at the character its using

a %

Now if you want a percent it will become. %25

For example type % into a google search and then look at the url it 
brings back


%  becomes this %25

So when you write code u could url encode % by just putting in %25

but the problem is browsers do it for you so if the scope is %4
you cant write it as %254  because the browser will try turn it into 
%25254
OR if it does see that as an escaped character... it will try change 
%254 into whatever
the ascii should be BUT it doesnt exsist so ha ha... this is 
nuts maybe we should write it as
%25%04 and then you will find the browser doesnt reject the URL 
but in my case it
still doesnt find the machine.. maybe the browser inside the [ipv6] 
is interpreting that as %2525%2504
or it could be turning it into %4 who knows, we will have to ask the 
rocket scientist that designed this monster.


I was also thinking about these http://user:[EMAIL PROTECTED]/pathtype 
of urls with IP6  wonder how u now write those... ha ha.


OK... I actually HOPE we DONT need to include the scope in the URL 
because that scope is

[remote]%LOCAL SCOPE 
Its not the scope of the remote machine so hopefully the browser is 
smart enuf to detect the local area connection interface...
If it isnt like this... its going to be chaos ... for example as an 
experiment I installed a bluetooth cell phone on a machine
and as sure as nuts ipv6 if showed that the interface had 
changed means the IP address with scope also changes ha ha


I tried putting the [::remote:machine] into the host file and calling 
that. as ip6remotemachine in browser also doesnt work.


I still have an IP4 router and I thought maybe it doesnt know whats 
going on so I disconnected the router, restarted the IPv6 machines 
on the subnet and it still doesnt work ie just 2 MS machines on 
a 

Re: problems configuring mod_jk

2007-04-19 Thread Faheem Mitha



On Thu, 19 Apr 2007, Rainer Jung wrote:

Debugging: via JkLogLevel debug, try to check, if your configured objects 
appear in the debug log and of course you are free to post the log.


Hi Rainer,

Thanks for your message.

The relevant output from /var/log/apache2/mod_jk.log is appended below:

*
[Thu Apr 19 11:33:34 2007] [23164:18784] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (508): Attempting to map URI '/' from 1 maps
[Thu Apr 19 11:33:34 2007] [23164:18784] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (520): Attempting to map context URI '/*'
[Thu Apr 19 11:33:34 2007] [23164:18784] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (534): Found a wildchar match ajp13_worker - /*
[Thu Apr 19 11:33:34 2007] [23164:18784] [debug] jk_handler::mod_jk.c 
(1832): Into handler jakarta-servlet worker=ajp13_worker r-proxyreq=0
[Thu Apr 19 11:33:34 2007] [23164:18784] [debug] 
wc_get_worker_for_name::jk_worker.c (111): did not find a worker ajp13_worker
[Thu Apr 19 11:33:34 2007] [23164:18784] [info]  jk_handler::mod_jk.c 
(1986): Could not find a worker for worker name=ajp13_worker

**

The relevant output from the tomcat logs is appended below.

So, the communication between apache and tomcat is screwed up. Just 
wondering if the interface that tomcat is listening on is correct, or 
could this be the problem?


INFO: JK: ajp13 listening on /0.0.0.0:8009

Thanks.   Faheem.

**
Apr 19, 2007 11:36:01 AM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-core.dulci.org%2F152.3.172.111-443
Apr 19, 2007 11:36:02 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Apr 19, 2007 11:36:02 AM org.apache.coyote.http11.Http11BaseProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-core.dulci.org%2F152.3.172.111-443
Apr 19, 2007 11:36:02 AM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent

INFO: Failed shutdown of Apache Portable Runtime
Apr 19, 2007 11:36:10 AM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: 
/usr/lib/j2sdk1.

5-sun/jre/lib/amd64/server:/usr/lib/j2sdk1.5-sun/jre/lib/amd64
Apr 19, 2007 11:36:10 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on 
http-core.dulci.org%2F152.3.172.111-443

Apr 19, 2007 11:36:10 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1538 ms
Apr 19, 2007 11:36:10 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 19, 2007 11:36:10 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5
Apr 19, 2007 11:36:10 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 19, 2007 11:36:13 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-core.dulci.org%2F152.3.172.111-443
Apr 19, 2007 11:36:13 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 19, 2007 11:36:13 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Apr 19, 2007 11:36:13 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 19, 2007 11:36:13 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3243 ms


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



RE: Jasper5 And Fedora Core 6, build-classpath problems [repost]

2007-04-19 Thread stephen.hindmarch
I have raised bug 237140 on the Fedora bugzilla which can be tracked at
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237140
for those who are interested.

I will report back to this list if I get any joy.

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: 19 April 2007 13:24
 To: Tomcat Users List
 Subject: Re: Jasper5 And Fedora Core 6, build-classpath 
 problems [repost]
 
 [EMAIL PROTECTED] wrote:
  So what I am wondering is have I missed off installing a 
 compatibility
  package or is there a mistake in the jasper package that 
 should either
  create these links or change the names required in the script?
  
  For reference the packages concerned are
  tomcat5-servlet-2.4-api-5.5.17-6jpp.2
  tomcat5-jsp-2.0-api-5.5.17-6jpp.2
  tomcat5-jasper-5.5.17-6jpp.2
 
 This looks like a packing problem to me but Tomcat does not provide
 packages like this. I don't use Fedora so I can't help much more than
 to say contact Fedora support.
 
 Mark
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Steve Hindmarch
One IT - iBridge Development

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



Re: error-page directive in 5.5.20 - resending

2007-04-19 Thread Eqbal
Yes. It does not go to my custom page. It instead
shows the default Tomcat messages.
I also tried the changes suggested by Rashmi earlier
but doesn't seem to work.

Thanks.
--- Christopher Schultz [EMAIL PROTECTED]
wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Eqbal,
 
 Eqbal wrote:
  I have an error-page directive in a webapp's
 web.xml to display a
  custom error page on 404/500 errors. . It works on
 my local machine
  which has Tomcat 5.5.17, but it does not work on
 my server which has
  5.5.20 installed. Any ideas?
 
 Can you be more specific when you say doesn't
 work? Does it throw an
 exception? Does the generic Tomcat error message
 show up on the user's
 browser?
 
 - -chris
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (MingW32)
 Comment: Using GnuPG with Mozilla -
 http://enigmail.mozdev.org
 

iD8DBQFGJ21U9CaO5/Lv0PARApNIAJ9mIu3CYsgPHZMkUfw0EsRX0Pv60ACgtqYs
 nR1Tw5eI4k75efEFa6rkRWs=
 =ZuU1
 -END PGP SIGNATURE-
 

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


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

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



JSTL and Tomcat 6.0.10 ConditionalTagSupport class missing?

2007-04-19 Thread Greg Vilardi
I have a problem porting one of my webapps from 5.0.28 to 6.0.10. I've reduced 
the problem to the testcase in this message. Briefly, the following test case 
produces the exception shown below it. The class referenced in the error does 
appear in the old JSTL jar that we are using. However it is absent in the 
tomcat jars, and does not appear in the 1.6.0 JDK, either. Can anyone tell me 
what I'm missing or should be doing to make this work?

Thanks,
-Greg

Example jsp:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
head
%@ page buffer=50kb
 language=java
%
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %

%
boolean b = true;
%
/head 
body
c:choose
c:when test=%=b%
TRUE
/c:when
c:otherwise
FALSE
/c:otherwise
/c:choose
/body
/html

Exception:

java.lang.NoClassDefFoundError: 
javax/servlet/jsp/jstl/core/ConditionalTagSupport


Exception Type:class java.lang.NoClassDefFoundError
Status Code:500
URI:/ghvp/a.jsp
Request URI:/ghvp/errmsg
Exception:

java.lang.NoClassDefFoundError: 
javax/servlet/jsp/jstl/core/ConditionalTagSupport


Message:

javax/servlet/jsp/jstl/core/ConditionalTagSupport


Stack Trace:

java.lang.NoClassDefFoundError: 
javax/servlet/jsp/jstl/core/ConditionalTagSupport
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader
.java:1815)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:87
2)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13
25)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:12
04)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader
.java:1815)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:87
2)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13
25)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:12
04)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1221)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
at org.apache.jasper.compiler.Parser.parse(Parser.java:133)
at 
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:215)
at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
28)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
75)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav
a:525)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at 

Re: problems configuring mod_jk

2007-04-19 Thread Mladen Turk

Well, will you uncomment the worker.list directive or not?
If you choose not to then it will always give you the log like this.

Faheem Mitha wrote:


wc_get_worker_for_name::jk_worker.c (111): did not find a worker 
ajp13_worker


This means that the ajp13_worker is not listed in worker.list=


Regards,
Mladen.

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



performance with apache and tomcat

2007-04-19 Thread Eqbal
Hello,

We are planning on using Tomcat as the Servlet
container for one of our production systems. I would
like to know if there are any performance issues using
it together with Apache webserver 2.0 and the ajp
connector (using mod_rewrite). Is performance expected
to be better if we double up Tomcat as a webserver and
not use apache at all.
I heard an opinion that using apache with tomcat may
mean worse performance?
The site is a medium traffic site with about 800
concurrent users, about 40 hits per second. We plan on
using a hardware load balancer and we were not
planning on putting the webserver outside the
firewall, tomcat behind the firewall kind of
configuration, so our webserver and app server are on
the same hardware (Suse Linux). Original idea was to
place static files on the webserver (apache 2.0) and
servlets/jsps on Tomcat.
I appreciate any feedback.
Is this list searchable somewhere on the web? So I can
search any pervious discussions on this topic?

Thanks.

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

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



Reload an individual class

2007-04-19 Thread cifroes

Hi all,

I have an application composed of many JSPs, Javabeans, java classes, 
etc... I want to be able to alter one class and Tomcat to reload it.


I changed my context.xml to have Context reloadable=true but my 
problem is that this reloads the whole web application.


That means that while I'm stress testing one part of my application and 
I change a non-used class Tomcat reloads the whole application causing 
404 errors. Isn't there a way to reload individual classes?


Best Regards,
 --cifroes

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



Re: problems configuring mod_jk

2007-04-19 Thread Faheem Mitha



On Thu, 19 Apr 2007, Mladen Turk wrote:


Well, will you uncomment the worker.list directive or not?
If you choose not to then it will always give you the log like this.


The worker.list directive was always uncommented. When I sent the original 
message, I think there was some kind of error which made it look like it 
was commented. Anyway, it is definitely uncommented now, but the error 
persists.



Faheem Mitha wrote:


wc_get_worker_for_name::jk_worker.c (111): did not find a worker 
ajp13_worker


This means that the ajp13_worker is not listed in worker.list=


Could it be anything else?

Thanks.Faheem.

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



How Do I know when Tomcat Embedded has started?

2007-04-19 Thread risky57

Currently the output ends with 

INFO: Starting Coyote HTTP/1.1 on http-8080


how do i get output to tell me that Tomcat has started?
check to see if it has started?


like in regular tomcat, when its complete, it says something like started
in 11s  or something similar.


i want something to happen when tomcat has started, and not before. so need
to know when its started.


-- 
View this message in context: 
http://www.nabble.com/How-Do-I-know-when-Tomcat-Embedded-has-started--tf3609049.html#a10084449
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



enable debug logging

2007-04-19 Thread cifroes

Hi all,

I'm looking at Apache Tomcat source code and I'm seeing stuff like 
log.debug(...). How can i turn on the logging of these messages and 
where (which file) will they appear?


Thanks in advance,
-- cifroes

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



RE: Tomcat deployment question

2007-04-19 Thread Lakshmi Venkataraman
Please refer to the directory structure in the original message or
At the bottom of this email.

Given that directory structure, I have working configuration with
appBase=webapps in
 server.xml (seems like a dummy value since we don't have anything in
that directory).
In ${catalina.home}/conf/catalina/localhost/ROOT.xml I have defined the
Context element with
docBase=${catalina.home}/htdocs.

Here are the questions:
Previously,  I had appBase=htdocs and ROOT.xml was called htdocs.xml.
1) When absolute path such as ${catalina.home}/htdocs is specified why
does it look for
${catalina.home}/htdocs/htdocs/
2) Why does it expect a ROOT directory under htdocs?
3) What is special about ROOT? Should not the configuration be totally
under application
Developer's control?
4) What is path?

It is not very clear from the documenatation. It took me a while to get
to the current working
Configuration.  

I will appreciate it if one of you can clarify these concepts.

Thanks in advance,
Lakshmi


-Original Message-
From: Lakshmi Venkataraman
Sent: Wednesday, April 18, 2007 11:21 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat deployment question

 I have finally a working configuration.  Please refer to the bottom of
this email  for the directory structure.
 In server.xml I changed appBase=webapps (original value)  htdocs.xml
is renamed as ROOT.xml as Rashmi suggested with
docBase=${catalina.home}/htdocs  Then I am able to type
http://localhost:8080 which in turn looks up index.html from  the htdocs
directory
 
 Even so, I have some more questions and my understanding is not that
clear yet.
 I will post the questions in my next email.

Thanks
Lakshmi

-Original Message-
From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 9:33 PM
To: Tomcat Users List
Subject: RE: Tomcat deployment question

 Hi Rashmi,
 Thanks!  I renamed htdocs.xml to ROOT.xml.
http://localhost:8080 did not work.
 However, http://localhost:8080/htdocs/index.html worked which is some
progress.

I think my organization would prefer only http://localhost:8080

I am confused between the concepts appBase, docBase and path.
So given the directory structure below, what should be the values of
appBase, docBase and path so http://localhost:8080 looks for index.html
under htdocs.

Thanks again
Lakshmi



-Original Message-
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 9:04 PM
To: Tomcat Users List
Subject: Re: Tomcat deployment question

Hi Lakshmi,

Rename the context file from htdocs.xml to ROOT.xml then you should be
able to access the app at http://localhost:8080/

-Rashmi

---Original posting by Lakshmi
---
I have upgraded from Tomcat 3.3 to Tomcat 5.5.23.  It is running on
WinXP and I am using Java 1.5.

Here's my dierctory set up:

${Catalina.Home}
 -- conf
   -- Catalina
 --localhost
htdocs.xml
 -- htdocs
   index.html
   --bin
   --html
   --jsp
   --css
   --jar
   --WEB-INF
web.xml
 --classes
 --lib
 --webapps
 
  
In server.xml, I modified the Host element to have {appBase=htdocs
autoDeploy=false}
I am using htdocs.xml in ${Catalina.home}/Catalina/localhost as the
context descriptor and is defined as follows:

 Context docBase=${catalina.home} override=true privileged=true
Loader className=com.example.appClassLoader reloadable=true/
!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
 !-- Uncomment this to disable session persistence across Tomcat
restarts --
   Manager pathname= /
/Context

Tomcat is able to load appClassLoader. However, when I type,
http://localhost:8080, it is not able to load
the index.html found under the htdocs directory.   If I create ROOT
directory and move the index.html over there it is able to load it. 
I guess, my main problem is how can I maintain the same directory
structure as above without having to create ROOT and move everything
below it?  The above directory structure worked in Tomcat 3.3.

What am I missing?

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


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




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



RE: IDE

2007-04-19 Thread Nelson, Tracy M.
| From: David Short [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 17 April, 2007 11:35
| 
| NetBeans uses the embedded Tomcat 5.5.17 by default.  How can a newly
| installed Tomcat 5.5.20 be configured to be used as the default?

Right-click on your project in the Projects tab, click Properties, click
Run, select your new server in the Server drop-down list box, click
OK.  This will set the default for that project, I don't know how to make
it a global default.  

Of course, you must have added your new server to the NetBeans server list
first: Click the Runtime tab, right-click Servers, click Add Server.
Pick Tomcat 5.5 as the server, give it a name if you want (Maybe Tomcat
5.5.20), click Next.  Specify the Catalina home and manager login info,
then click Finish.  NetBeans will add it to the server list.  If it is
running, you'll see a little green triangle between the Tomcat logo and the
server name.  Then you can click on the expand box and see what's running.
Right-click on the server's name to start or stop it.

You might be able to poke around in the NetBeans config files and change the
Catalina home and other config settings to point the bundled tomcat
definition to your new server, but unless you spend most of your day
creating new projects and can't afford the time to specify the server when
you do, then I'd just add it as a new server and not undermine NetBeans'
basic assumptions...
-

The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.


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



Re: performance with apache and tomcat

2007-04-19 Thread Leon Rosenberg

unless you explicitely need the httpd I wouldn't put it in front of
tomcat, since besides less performance and security issues (last one
like a month (?) ago with mod_jk) it doesn't bring you any benefits.
Without knowing your requests (duration, resources they consume etc)
its hard to make any estimations at all, but normally (whatever
normally is) and on fair hardware 40 requests a second are easily
served by one tomcat. So you could set up two machines with tomcats,
put the traffic on one of them and let your hw loadbalancer perform
the failover to the spare machine if needed.

regards
Leon

P.S. There are indeed some real scenarios, where a httpd in front
would be useful: down page, ssl, port 80 stress, but since you have a
loadbalancer, it will be serving it much better as httpd, so use your
lb features.

On 4/19/07, Eqbal [EMAIL PROTECTED] wrote:

Hello,

We are planning on using Tomcat as the Servlet
container for one of our production systems. I would
like to know if there are any performance issues using
it together with Apache webserver 2.0 and the ajp
connector (using mod_rewrite). Is performance expected
to be better if we double up Tomcat as a webserver and
not use apache at all.
I heard an opinion that using apache with tomcat may
mean worse performance?
The site is a medium traffic site with about 800
concurrent users, about 40 hits per second. We plan on
using a hardware load balancer and we were not
planning on putting the webserver outside the
firewall, tomcat behind the firewall kind of
configuration, so our webserver and app server are on
the same hardware (Suse Linux). Original idea was to
place static files on the webserver (apache 2.0) and
servlets/jsps on Tomcat.
I appreciate any feedback.
Is this list searchable somewhere on the web? So I can
search any pervious discussions on this topic?

Thanks.

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

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




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



https - http redirect by tweaking config files only?

2007-04-19 Thread Edmund Mitchell
Hello all,

For ridiculous reasons, I need to redirect some users from https port 8443
- http port .  Hoping to do it without any code, which would force us
to go through a longer qa cycle, hence the config file only.

Seemed simple, but I can't get it to work.  We're no longer using https,
there is no security-constraint, and the only reason I'll have a Connector
on 8443 is to (hopefully) redirect these users that need redirecting.

I thought I could just add a redirectPort to my connector on port 8443, but
no go.  I've tried a bunch of permutations in this Connector,with/without
the security-constraint in web.xml, scheme, etc but no joy.  I can go
directly to the webapp via http just fine, but I can't make a request to
https://myHost:8443/my/webapp redirect to http://myHost:/mywebapp work.

Anyone know how to make this happen?  Thanks for your help!

Edmund


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



RE: Tomcat deployment question

2007-04-19 Thread Caldarale, Charles R
 From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat deployment question
 
 Please refer to the directory structure in the original message or
 At the bottom of this email.
 
 Given that directory structure, I have working configuration
 with appBase=webapps in server.xml (seems like a dummy value
 since we don't have anything in that directory).

The Host appBase attribute defines the default location for webapps.
You don't have to use it, since it's often easier to keep your webapps
completely outside of the Tomcat directory structure.

 In ${catalina.home}/conf/catalina/localhost/ROOT.xml I have 
 defined the Context element with
 docBase=${catalina.home}/htdocs.

This is probably not a good idea.  If you're not going to put your
webapps under the appBase directory, you're probably better off keeping
them entirely outside of the Tomcat directory structure.  Throwing
things into arbitrary locations can be a maintenance mess, especially at
upgrade time

 Previously,  I had appBase=htdocs and ROOT.xml was called 
 htdocs.xml.
 1) When absolute path such as ${catalina.home}/htdocs is 
 specified why does it look for ${catalina.home}/htdocs/htdocs/

I don't really understand the above question.  Who is it?  Where is
the absolute path specified?  What makes you think anyone or anything
was looking for ${catalina.home}/htdocs/htdocs/?

 2) Why does it expect a ROOT directory under htdocs?

Because you specified appBase to be htdocs and did not have a ROOT.xml
to override the default location.

 3) What is special about ROOT? Should not the configuration be totally
 under application Developer's control?

Some means of specifying the default webapp is necessary, and the Tomcat
developers chose to use ROOT as the default.  It's all in the docs:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 4) What is path?

The path attribute for the Context element is no longer used, unless
the Context element is within server.xml (strongly discouraged).
Path in this instance refers to the URL sent by a client to access a
webapp.

 It is not very clear from the documenatation. It took me 
 a while to get to the current working Configuration.  

It may be working, but I wouldn't leave it that way.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



I get this error message while starting tomcat

2007-04-19 Thread peri

Hi,
I'm a new user on tomcat. I'm using tomcat on my local machine for some
application. I use tomcat version 4.1 MySql version 4.1.22 as database and
eclipse 3.2 as ide. while I start tomcat on eclipse I got this error
messsage:
INFO: Initializing, config='ApplicationResources', returnNull=true
19-Apr-2007 23:00:16 org.apache.struts.action.ActionServlet
initModuleDataSources
SEVERE: Initializing application data source musiccollecton
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Access denied for user
'theDatabaseUserN'@'localhost' (using password: YES))
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
at
org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:959)
at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1087)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:879)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:767)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3483)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3709)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:776)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:759)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:537)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:730)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:625)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:374)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:784)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:330)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1155)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:696)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1147)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:310)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:449)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2212)
at org.apache.catalina.startup.Catalina.start(Catalina.java:458)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:345)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:150)
Caused by: java.sql.SQLException: Access denied for user
'theDatabaseUserN'@'localhost' (using password: YES)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:798)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3700)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1203)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2572)
at com.mysql.jdbc.Connection.init(Connection.java:1485)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
at
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
... 32 more
Could anyone help me to solve this exception. Before installing MySQL I
didn't get this error messge.
Thank you very much
Perihan
-- 
View this message in context: 
http://www.nabble.com/I-get-this-error-message-while-starting-tomcat-tf3609467.html#a10085885
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: JSTL and Tomcat 6.0.10 ConditionalTagSupport class missing?

2007-04-19 Thread Rashmi Rubdi

Hi Greg,

This question really belongs to the JSTL mailing list.

-Rashmi

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



How to use tomcat system path in log4j.properties

2007-04-19 Thread Vinit N

Hi I am getting FileNotFoundException

log4j: Setting property [append] to [true].
log4j: setFile called: /log/reguser_log.html, true
log4j: Parsed reguser options.
log4j: Finished configuring.
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from class path resource [hello.xml]; nested exception
is java.io.FileNotFoundException: class path resource [hello.xml] cannot be
opened because it does not exist
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: \log\reguser_log.html (The system cannot find
the path specified)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:177)
at java.io.FileOutputStream.init(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
at 
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)

My configuration is like this:

log4j.debug=true
log4j.rootLogger=info, reguser
log4j.appender.reguser=org.apache.log4j.FileAppender
log4j.appender.reguser.layout=org.apache.log4j.HTMLLayout
log4j.appender.reguser.layout.LocationInfo=true
log4j.appender.reguser.layout.Title='User Registration' Log
log4j.appender.reguser.File=${catalina.home}/log/reguser_log.html
log4j.appender.reguser.ImmediateFlush=true
log4j.appender.reguser.Append=true


-- 
View this message in context: 
http://www.nabble.com/How-to-use-tomcat-system-path-in-log4j.properties-tf3609468.html#a10085891
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: performance with apache and tomcat

2007-04-19 Thread Gary Evesson
Unless of course you need mod_rewrite. We also handle millions a day with
exactly this set up.

Gary Evesson
Decentrix Inc

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 1:30 PM
To: Tomcat Users List
Subject: Re: performance with apache and tomcat

unless you explicitely need the httpd I wouldn't put it in front of
tomcat, since besides less performance and security issues (last one
like a month (?) ago with mod_jk) it doesn't bring you any benefits.
Without knowing your requests (duration, resources they consume etc)
its hard to make any estimations at all, but normally (whatever
normally is) and on fair hardware 40 requests a second are easily
served by one tomcat. So you could set up two machines with tomcats,
put the traffic on one of them and let your hw loadbalancer perform
the failover to the spare machine if needed.

regards
Leon

P.S. There are indeed some real scenarios, where a httpd in front
would be useful: down page, ssl, port 80 stress, but since you have a
loadbalancer, it will be serving it much better as httpd, so use your
lb features.

On 4/19/07, Eqbal [EMAIL PROTECTED] wrote:
 Hello,

 We are planning on using Tomcat as the Servlet
 container for one of our production systems. I would
 like to know if there are any performance issues using
 it together with Apache webserver 2.0 and the ajp
 connector (using mod_rewrite). Is performance expected
 to be better if we double up Tomcat as a webserver and
 not use apache at all.
 I heard an opinion that using apache with tomcat may
 mean worse performance?
 The site is a medium traffic site with about 800
 concurrent users, about 40 hits per second. We plan on
 using a hardware load balancer and we were not
 planning on putting the webserver outside the
 firewall, tomcat behind the firewall kind of
 configuration, so our webserver and app server are on
 the same hardware (Suse Linux). Original idea was to
 place static files on the webserver (apache 2.0) and
 servlets/jsps on Tomcat.
 I appreciate any feedback.
 Is this list searchable somewhere on the web? So I can
 search any pervious discussions on this topic?

 Thanks.

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

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



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



smime.p7s
Description: S/MIME cryptographic signature


RE: performance with apache and tomcat

2007-04-19 Thread Eqbal
We will need to use SSL. 
What causes any performance overhead in using apache
with Tomcat, considering they will be on the same
server?
--- Gary Evesson [EMAIL PROTECTED] wrote:

 Unless of course you need mod_rewrite. We also
 handle millions a day with
 exactly this set up.
 
 Gary Evesson
 Decentrix Inc
 
 -Original Message-
 From: Leon Rosenberg
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 19, 2007 1:30 PM
 To: Tomcat Users List
 Subject: Re: performance with apache and tomcat
 
 unless you explicitely need the httpd I wouldn't put
 it in front of
 tomcat, since besides less performance and security
 issues (last one
 like a month (?) ago with mod_jk) it doesn't bring
 you any benefits.
 Without knowing your requests (duration, resources
 they consume etc)
 its hard to make any estimations at all, but
 normally (whatever
 normally is) and on fair hardware 40 requests a
 second are easily
 served by one tomcat. So you could set up two
 machines with tomcats,
 put the traffic on one of them and let your hw
 loadbalancer perform
 the failover to the spare machine if needed.
 
 regards
 Leon
 
 P.S. There are indeed some real scenarios, where a
 httpd in front
 would be useful: down page, ssl, port 80 stress, but
 since you have a
 loadbalancer, it will be serving it much better as
 httpd, so use your
 lb features.
 
 On 4/19/07, Eqbal [EMAIL PROTECTED] wrote:
  Hello,
 
  We are planning on using Tomcat as the Servlet
  container for one of our production systems. I
 would
  like to know if there are any performance issues
 using
  it together with Apache webserver 2.0 and the ajp
  connector (using mod_rewrite). Is performance
 expected
  to be better if we double up Tomcat as a webserver
 and
  not use apache at all.
  I heard an opinion that using apache with tomcat
 may
  mean worse performance?
  The site is a medium traffic site with about 800
  concurrent users, about 40 hits per second. We
 plan on
  using a hardware load balancer and we were not
  planning on putting the webserver outside the
  firewall, tomcat behind the firewall kind of
  configuration, so our webserver and app server are
 on
  the same hardware (Suse Linux). Original idea was
 to
  place static files on the webserver (apache 2.0)
 and
  servlets/jsps on Tomcat.
  I appreciate any feedback.
  Is this list searchable somewhere on the web? So I
 can
  search any pervious discussions on this topic?
 
  Thanks.
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 

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

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


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

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



java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-19 Thread David Kerber

Running tomcat 5.5.15 on Windows server 2003.

Why would I get the subject error when I'm deep into my code, and not 
near the top when I first use it?  I'm getting this in a class that is 
buried several layers deep in a utility jar file.  The servlet that 
calls this class is working fine, I get no compile errors, I am 
importing the proper class, and my startup env vars are set to:


-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5
-Dcatalina.base=c:\TomcatClients\EddSrv
-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 
5.5\common\endorsed


Here is the code snippet at issue, and the line where I'm getting the 
error.  This is in a utility .jar file in web-inf/lib


import javax.servlet.http.HttpServletRequest;
...
   public static int updateDb( HttpServletRequest request ) {
   HttpSessionsession;
 error line:
   session = request.getSession();

This is being called from a class in my .war file:

   rslt = TCfgHose.updateDb( request );


It works fine in dev mode in Eclipse, but fails when deployed.  What am 
I missing?  Do I need to put out a jdk after all?  Or is there a problem 
with passing a HttpServletRequest out of the webapp and into a utility .jar?


Dave




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



Re: How to use tomcat system path in log4j.properties

2007-04-19 Thread Vinit N

I am using jakarta-tomcat-5.0.28 and I did'nt set CATALINA_HOME system
variable ...


Vinit N wrote:
 
 Hi I am getting FileNotFoundException
 
 log4j: Setting property [append] to [true].
 log4j: setFile called: /log/reguser_log.html, true
 log4j: Parsed reguser options.
 log4j: Finished configuring.
 org.springframework.beans.factory.BeanDefinitionStoreException:
 IOException parsing XML document from class path resource [hello.xml];
 nested exception is java.io.FileNotFoundException: class path resource
 [hello.xml] cannot be opened because it does not exist
 log4j:ERROR setFile(null,true) call failed.
 java.io.FileNotFoundException: \log\reguser_log.html (The system cannot
 find the path specified)
   at java.io.FileOutputStream.openAppend(Native Method)
   at java.io.FileOutputStream.init(FileOutputStream.java:177)
   at java.io.FileOutputStream.init(FileOutputStream.java:102)
   at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
   at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
   at
 org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
   at
 org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
   at
 org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
 
 My configuration is like this:
 
 log4j.debug=true
 log4j.rootLogger=info, reguser
 log4j.appender.reguser=org.apache.log4j.FileAppender
 log4j.appender.reguser.layout=org.apache.log4j.HTMLLayout
 log4j.appender.reguser.layout.LocationInfo=true
 log4j.appender.reguser.layout.Title='User Registration' Log
 log4j.appender.reguser.File=${catalina.home}/log/reguser_log.html
 log4j.appender.reguser.ImmediateFlush=true
 log4j.appender.reguser.Append=true
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-tomcat-system-path-in-log4j.properties-tf3609468.html#a10086542
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: performance with apache and tomcat

2007-04-19 Thread Gary Evesson
There are a few things that can get you:

Make sure you have sufficient threads available for the mod_jk connector on
the Apache side. Port 8009 by default. The default value is frighteningly
low and not up to any real load.

Make sure that the machine has enough memory. That is the biggest issue that
I encountered. As the number of connections mount, the amount of memory that
both tomcat and apache need escalates very quickly. Once you get into
swapping, you may as well pack up and go home. Tune the threads
configuration in apache and your VM parameters carefully to avoid memory
contention between apache and tomcat. My experience is that it is better to
reduce the number of concurrent connections you can handle to avoid
swapping.

Gary Evesson
Decentrix Inc


-Original Message-
From: Eqbal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 2:27 PM
To: Tomcat Users List
Subject: RE: performance with apache and tomcat

We will need to use SSL. 
What causes any performance overhead in using apache
with Tomcat, considering they will be on the same
server?
--- Gary Evesson [EMAIL PROTECTED] wrote:

 Unless of course you need mod_rewrite. We also
 handle millions a day with
 exactly this set up.
 
 Gary Evesson
 Decentrix Inc
 
 -Original Message-
 From: Leon Rosenberg
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 19, 2007 1:30 PM
 To: Tomcat Users List
 Subject: Re: performance with apache and tomcat
 
 unless you explicitely need the httpd I wouldn't put
 it in front of
 tomcat, since besides less performance and security
 issues (last one
 like a month (?) ago with mod_jk) it doesn't bring
 you any benefits.
 Without knowing your requests (duration, resources
 they consume etc)
 its hard to make any estimations at all, but
 normally (whatever
 normally is) and on fair hardware 40 requests a
 second are easily
 served by one tomcat. So you could set up two
 machines with tomcats,
 put the traffic on one of them and let your hw
 loadbalancer perform
 the failover to the spare machine if needed.
 
 regards
 Leon
 
 P.S. There are indeed some real scenarios, where a
 httpd in front
 would be useful: down page, ssl, port 80 stress, but
 since you have a
 loadbalancer, it will be serving it much better as
 httpd, so use your
 lb features.
 
 On 4/19/07, Eqbal [EMAIL PROTECTED] wrote:
  Hello,
 
  We are planning on using Tomcat as the Servlet
  container for one of our production systems. I
 would
  like to know if there are any performance issues
 using
  it together with Apache webserver 2.0 and the ajp
  connector (using mod_rewrite). Is performance
 expected
  to be better if we double up Tomcat as a webserver
 and
  not use apache at all.
  I heard an opinion that using apache with tomcat
 may
  mean worse performance?
  The site is a medium traffic site with about 800
  concurrent users, about 40 hits per second. We
 plan on
  using a hardware load balancer and we were not
  planning on putting the webserver outside the
  firewall, tomcat behind the firewall kind of
  configuration, so our webserver and app server are
 on
  the same hardware (Suse Linux). Original idea was
 to
  place static files on the webserver (apache 2.0)
 and
  servlets/jsps on Tomcat.
  I appreciate any feedback.
  Is this list searchable somewhere on the web? So I
 can
  search any pervious discussions on this topic?
 
  Thanks.
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 

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

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


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

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



smime.p7s
Description: S/MIME cryptographic signature


Re: How to use tomcat system path in log4j.properties

2007-04-19 Thread Vinit N

Hey guys...please help me ?

Vinit N wrote:
 
 Hi I am getting FileNotFoundException
 
 log4j: Setting property [append] to [true].
 log4j: setFile called: /log/reguser_log.html, true
 log4j: Parsed reguser options.
 log4j: Finished configuring.
 org.springframework.beans.factory.BeanDefinitionStoreException:
 IOException parsing XML document from class path resource [hello.xml];
 nested exception is java.io.FileNotFoundException: class path resource
 [hello.xml] cannot be opened because it does not exist
 log4j:ERROR setFile(null,true) call failed.
 java.io.FileNotFoundException: \log\reguser_log.html (The system cannot
 find the path specified)
   at java.io.FileOutputStream.openAppend(Native Method)
   at java.io.FileOutputStream.init(FileOutputStream.java:177)
   at java.io.FileOutputStream.init(FileOutputStream.java:102)
   at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
   at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
   at
 org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
   at
 org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
   at
 org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
 
 My configuration is like this:
 
 log4j.debug=true
 log4j.rootLogger=info, reguser
 log4j.appender.reguser=org.apache.log4j.FileAppender
 log4j.appender.reguser.layout=org.apache.log4j.HTMLLayout
 log4j.appender.reguser.layout.LocationInfo=true
 log4j.appender.reguser.layout.Title='User Registration' Log
 log4j.appender.reguser.File=${catalina.home}/log/reguser_log.html
 log4j.appender.reguser.ImmediateFlush=true
 log4j.appender.reguser.Append=true
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-tomcat-system-path-in-log4j.properties-tf3609468.html#a10086546
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: How to use tomcat system path in log4j.properties

2007-04-19 Thread Rashmi Rubdi

Hi Vinit,

This error is not related to Tomcat.

It is basic Java related error and belongs to the Java Forums:


is java.io.FileNotFoundException: class path resource [hello.xml] cannot be
opened because it does not exist


According to the error message, something in your code or in Spring
framework is looking for a file called hello.xml in the
/WEB-INF/classes/ folder.

-Rashmi

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



Re: tomcat context

2007-04-19 Thread Orlando Reis

Just deploy the context to anywhere you want it...
jar xvf potatos.war

Then as Andoni said:
context path=bananas
docBase=/path_contexts_directory/directory_where_you_extrated_the_war_file ...
  !-- Other stuff if necessary! --
/context

Is that it?

Orlando




On 4/17/07, José Perdigão [EMAIL PROTECTED] wrote:


OConchubhair, Andoni wrote:
 Hi,

 What do you mean by 'context path'?

 Basically, what you have is:

 context path=last_bit_of_URL docBase=name_of_war_or_folder ...
   !-- Other stuff if necessary! --
 /context

 -Original Message-
 From: José Perdigão [mailto:[EMAIL PROTECTED]
 Sent: 17 April 2007 15:37
 To: users@tomcat.apache.org
 Subject: tomcat context

 Hi,
 I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to
 use a context path different to the name of the
 war file?
 Thanks

I want to deploy war files where the context name is not the same as the
original war file name, e.g. deploying potatoes.war and the context name
is /banana instead of /potatoes.

--
José Miguel Perdigão
homepage: zeperdi.pt.vu zeperdi.pt.vu

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




Re: I get this error message while starting tomcat

2007-04-19 Thread Rashmi Rubdi

Hi Perihan,

On 4/19/07, peri [EMAIL PROTECTED] wrote:


Hi,
I'm a new user on tomcat. I'm using tomcat on my local machine for some
application. I use tomcat version 4.1 MySql version 4.1.22 as database and
eclipse 3.2 as ide. while I start tomcat on eclipse I got this error
messsage:
INFO: Initializing, config='ApplicationResources', returnNull=true
19-Apr-2007 23:00:16 org.apache.struts.action.ActionServlet
initModuleDataSources


The overall error indicates that the application is configured to use
connection pooling.
This document 
http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html
will help you understand the various connection pooling related
parameters for your version of Tomcat.


SEVERE: Initializing application data source musiccollecton
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Access denied for user
'theDatabaseUserN'@'localhost' (using password: YES))


According to the above error, it appears that the JDBC connection
string is incorrect.
Use Google and find out the correct syntax for JDBC connection string
for your version of MySQL and check to see if the user name and
password are correct.

Also, try to connect to the database independent of Connection
Pooling, that is with DriverManager and see if you get a connection,
that will help you in verifying the connection string is correct.



Could anyone help me to solve this exception. Before installing MySQL I
didn't get this error messge.
Thank you very much
Perihan


-Rashmi

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



Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-19 Thread Rashmi Rubdi

Hi David,

On 4/19/07, David Kerber [EMAIL PROTECTED] wrote:

Check if you have servlet-api.jar in:
C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\


Running tomcat 5.5.15 on Windows server 2003.

Why would I get the subject error when I'm deep into my code, and not
near the top when I first use it?  I'm getting this in a class that is
buried several layers deep in a utility jar file.  The servlet that
calls this class is working fine, I get no compile errors, I am
importing the proper class, and my startup env vars are set to:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5
-Dcatalina.base=c:\TomcatClients\EddSrv
-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.5\common\endorsed


Have you set CATALINA_HOME, CATALINA_BASE, JAVA_HOME system wide
environment variables?

There's no need to modify catalina.bat, setting the above system
environment variables usually takes care of the NoClassDefinitionFound
error.

Also check if there's a system wide CLASSPATH , an incomplete or
incorrect system classpath also causes NoClassDefinitionFound error.



Here is the code snippet at issue, and the line where I'm getting the
error.  This is in a utility .jar file in web-inf/lib

import javax.servlet.http.HttpServletRequest;
...
public static int updateDb( HttpServletRequest request ) {
HttpSessionsession;
  error line:
session = request.getSession();

This is being called from a class in my .war file:

rslt = TCfgHose.updateDb( request );


It works fine in dev mode in Eclipse, but fails when deployed.  What am
I missing?  Do I need to put out a jdk after all?  Or is there a problem
with passing a HttpServletRequest out of the webapp and into a utility .jar?

Dave




-Rashmi

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



Re: enable debug logging

2007-04-19 Thread Rashmi Rubdi

Hi cifroes,

There's a file called logging.properties in the conf folder , which
specifies where the log files will appear.

According to the properties file, all Tomcat logs appear in the logs
folder somewhere under Tomcat's folder.

-Rashmi


On 4/19/07, cifroes [EMAIL PROTECTED] wrote:

Hi all,

I'm looking at Apache Tomcat source code and I'm seeing stuff like
log.debug(...). How can i turn on the logging of these messages and
where (which file) will they appear?

Thanks in advance,
 -- cifroes


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



Re: performance with apache and tomcat

2007-04-19 Thread Leon Rosenberg

On 4/19/07, Eqbal [EMAIL PROTECTED] wrote:

We will need to use SSL.


Can't you loadbalancer do it? Tomcat can serve SSL as well, but its
tricky to get the keys to work properly. However, serving 800 parallel
connections with SSL could be really tricky on one server.


What causes any performance overhead in using apache
with Tomcat, considering they will be on the same
server?


apache httpd is software which contains code lines, which consume
processor time, and hence real time. Since tomcat needs to completely
serve the request either way, this time is added to the time used by
tomcat and makes the processing slower.
Besides, it will eat away memory that you can better use in your application.

But I don't want to open the can of worms by flaming the httpd too
much. Just perform a load test on both configurations  and you will
see for yourself.

regards
Leon


--- Gary Evesson [EMAIL PROTECTED] wrote:

 Unless of course you need mod_rewrite. We also
 handle millions a day with
 exactly this set up.

 Gary Evesson
 Decentrix Inc

 -Original Message-
 From: Leon Rosenberg
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 19, 2007 1:30 PM
 To: Tomcat Users List
 Subject: Re: performance with apache and tomcat

 unless you explicitely need the httpd I wouldn't put
 it in front of
 tomcat, since besides less performance and security
 issues (last one
 like a month (?) ago with mod_jk) it doesn't bring
 you any benefits.
 Without knowing your requests (duration, resources
 they consume etc)
 its hard to make any estimations at all, but
 normally (whatever
 normally is) and on fair hardware 40 requests a
 second are easily
 served by one tomcat. So you could set up two
 machines with tomcats,
 put the traffic on one of them and let your hw
 loadbalancer perform
 the failover to the spare machine if needed.

 regards
 Leon

 P.S. There are indeed some real scenarios, where a
 httpd in front
 would be useful: down page, ssl, port 80 stress, but
 since you have a
 loadbalancer, it will be serving it much better as
 httpd, so use your
 lb features.

 On 4/19/07, Eqbal [EMAIL PROTECTED] wrote:
  Hello,
 
  We are planning on using Tomcat as the Servlet
  container for one of our production systems. I
 would
  like to know if there are any performance issues
 using
  it together with Apache webserver 2.0 and the ajp
  connector (using mod_rewrite). Is performance
 expected
  to be better if we double up Tomcat as a webserver
 and
  not use apache at all.
  I heard an opinion that using apache with tomcat
 may
  mean worse performance?
  The site is a medium traffic site with about 800
  concurrent users, about 40 hits per second. We
 plan on
  using a hardware load balancer and we were not
  planning on putting the webserver outside the
  firewall, tomcat behind the firewall kind of
  configuration, so our webserver and app server are
 on
  the same hardware (Suse Linux). Original idea was
 to
  place static files on the webserver (apache 2.0)
 and
  servlets/jsps on Tomcat.
  I appreciate any feedback.
  Is this list searchable somewhere on the web? So I
 can
  search any pervious discussions on this topic?
 
  Thanks.
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 

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


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




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

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




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



Re: Applet Help

2007-04-19 Thread jub jub jedi

sorry, I read the wrong number... Tomcat 5.5



Rashmi Rubdi-2 wrote:
 
 On 4/17/07, jub jub jedi [EMAIL PROTECTED] wrote:

 Ok... I have Windows XP Home Edition, Java version 1.6.0, Tomcat version
 2.0
 (I think)

 
 Are you sure about the version of Tomcat, may be its 4.x, 5.x, 6.x ?
 Tomcat 2.0 with JDK 1.6.0 looks odd to me.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Applet-Help-tf3588156.html#a10088602
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



mod_jk and image/png responses

2007-04-19 Thread John Cartwright

Hello All,

I have a servlet which generates and returns an PNG, setting the 
mimetype with setContentType(image/png).  Everything works fine when 
Tomcat directly handles the request.  However, when using mod_jk to pass 
the requests through Apache, the mime type of the response seems to be 
lost by the time Apache receives it.


My mod_jk.conf is very simple, using Tomcat to serve all of the content 
in the context:


JkMount /sampleIndexWms/* ajp13


Can anyone tell me what I'm doing wrong here?  Versions are: Tomcat 
5.5.20, mod_jk 1.2.20.



Thanks!

-- john


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



Re: JasperException: Array index out of range

2007-04-19 Thread Rashmi Rubdi

Hi Konrád ,

This error:


StandardWrapperValve[action]: Servlet.service() for servlet action threw 
exception
org.apache.jasper.JasperException: Array index out of range: 0


indicates that there's some code that is accessing the wrong index of
an Array , either the index is less than 0 or greater than or equal to
the size of the Array.

Check your code.

-Rashmi

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



Re: https - http redirect by tweaking config files only?

2007-04-19 Thread Rashmi Rubdi

On 4/19/07, Edmund Mitchell [EMAIL PROTECTED] wrote:


Anyone know how to make this happen?  Thanks for your help!


I'm just guessing that bay be a Filter can do the job, there are
pre-written URL Rewrite filters if you don't want to write one.



Edmund



-Rashmi

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



Re: sending smtp mail failure

2007-04-19 Thread Mighty Tornado

I have ZoneAlarm running, but normally Zone Alarm notifies me if a program
from within is trying to access the internet and let's me block it or let it
go. Is it possible that ZA is blocking not my request to connect to the smtp
server but the server's reply?

On 4/19/07, Christopher Schultz [EMAIL PROTECTED] wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

MT,

Mighty Tornado wrote:
 It was churning for a long time and still didn't manage to send the
email.
 But it left me this exception:

[snip]

 Caused by: javax.mail.MessagingException: Could not connect to SMTP
host:
 smtp.gmail.com, port: 465, response: -1

- From the command-line on your server, can you telnet to
smtp.gmail.com:465? I'm wondering if you have a firewall that won't
allow you to make that connection.

 I heeded your advice and tried setting up Outlook Express for gmail
 server.
 This is the message that I got:
 The connection to the server has failed. Account: 'smtp.google.com',
 Server:
 'smtp.google.com', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket
 Error:
 10060, Error Number: 0x800CCC0E

So, it looks like this isn't a problem specific to Java. I'm guessing
that you are being blocked somewhere. Microsoft Windows versions since
2000 (at least) have had software firewalls built into them that you can
easily configure. You may also have another firewall on your network
between you and google's SMTP server. If that's the case, you'll have to
change the configuration of the firewall(s) to allow communication.

- -chris

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

iD8DBQFGJ2z19CaO5/Lv0PARAhw7AJ0eEUTkWPr0SJkAOysnoUHAWqb7FACeItA9
Z2wwl1/F8zG5/ahCnAdNIMY=
=1Ll0
-END PGP SIGNATURE-

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




Re: Applet Help

2007-04-19 Thread jub jub jedi

Tomcat 5.5.23, Java 1.6.0


dimitryous wrote:
 
 In order for us to help you do that please: http://localhost:port/  
 and tell us what you get out of this URL. The version of Tomcat is  
 located at the upper left corner of your screen.
 
 On WinXP, you get your java version in Config panel/java then first  
 tab and then about (the first button)...
 
 Java 1.6 = no
 Tomcat 2.0 = no
 
 Sorry.
 On 17 avr. 07, at 13:44, Rashmi Rubdi wrote:
 
 On 4/17/07, jub jub jedi [EMAIL PROTECTED] wrote:

 Ok... I have Windows XP Home Edition, Java version 1.6.0, Tomcat  
 version 2.0
 (I think)


 Are you sure about the version of Tomcat, may be its 4.x, 5.x, 6.x ?
 Tomcat 2.0 with JDK 1.6.0 looks odd to me.

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


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

-- 
View this message in context: 
http://www.nabble.com/Applet-Help-tf3588156.html#a10088989
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Tomcat deployment question

2007-04-19 Thread Lakshmi Venkataraman
Thanks Chuck!  See my comments inline starting with Lakshmi: 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 12:58 PM
To: Tomcat Users List
Subject: RE: Tomcat deployment question

 From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED]
 Subject: RE: Tomcat deployment question
 
 Please refer to the directory structure in the original message or At 
 the bottom of this email.
 
 Given that directory structure, I have working configuration with 
 appBase=webapps in server.xml (seems like a dummy value since we 
 don't have anything in that directory).

The Host appBase attribute defines the default location for webapps.
You don't have to use it, since it's often easier to keep your webapps
completely outside of the Tomcat directory structure.

 In ${catalina.home}/conf/catalina/localhost/ROOT.xml I have defined 
 the Context element with docBase=${catalina.home}/htdocs.

This is probably not a good idea.  If you're not going to put your
webapps under the appBase directory, you're 
probably better off keeping them entirely outside of the Tomcat
directory structure.  Throwing things into 
arbitrary locations can be a maintenance mess, especially at upgrade
time

 Previously,  I had appBase=htdocs and ROOT.xml was called 
 htdocs.xml.
 1) When absolute path such as ${catalina.home}/htdocs is specified
why 
 does it look for ${catalina.home}/htdocs/htdocs/

I don't really understand the above question.  Who is it?  Where is
the absolute path specified?  What makes 
you think anyone or anything was looking for
${catalina.home}/htdocs/htdocs/?

Lakshmi: It is Tomcat. I am referring to ${catalina.home}/htdocs as
absoulte path. It becomes absolute after 
${catalina.home} is expanded.  When tomcat is started and starts reading
htdocs.xml, I get the following message:
 Warning: a docBase w:\INM\Apache\htdocs\htdocs inside the host appBase
has been defined and will be ignored.
In addition, I get java.lang.IllegalArgumentException saying that the
ROOT directory does not exist or is unreadable.

 2) Why does it expect a ROOT directory under htdocs?

Because you specified appBase to be htdocs and did not have a ROOT.xml
to override the default location.

 3) What is special about ROOT? Should not the configuration be totally

 under application Developer's control?

Some means of specifying the default webapp is necessary, and the Tomcat
developers chose to use ROOT as the default.  It's all in the docs:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 4) What is path?

The path attribute for the Context element is no longer used, unless
the Context element is within server.xml (strongly discouraged).
Path in this instance refers to the URL sent by a client to access a
webapp.

 It is not very clear from the documenatation. It took me a while to 
 get to the current working Configuration.

It may be working, but I wouldn't leave it that way.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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


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



Re: How Do I know when Tomcat Embedded has started?

2007-04-19 Thread Bill Barker

risky57 [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

 Currently the output ends with

 INFO: Starting Coyote HTTP/1.1 on http-8080


 how do i get output to tell me that Tomcat has started?
 check to see if it has started?

Assuming that you are using the Embedded class (as opposed to, say, JMX 
embedding), then Tomcat has started when the start method of Embedded 
returns without throwing an Exception.


 like in regular tomcat, when its complete, it says something like started
 in 11s  or something similar.


 i want something to happen when tomcat has started, and not before. so 
 need
 to know when its started.


 -- 
 View this message in context: 
 http://www.nabble.com/How-Do-I-know-when-Tomcat-Embedded-has-started--tf3609049.html#a10084449
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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

 




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



RE: Jasper compiler very slow

2007-04-19 Thread Berglas, Anthony
Thanks for the replies.

But I suspect that there is something very odd going on, and possibly
preventable.  There is just no way that any reasonably written code
could take that long to compile JSP.  I have checked that it is CPU
bound.  Maybe there is some O(n^4) algorithm in there, but I cannot
imagine what.

Anthony

 -Original Message-
 From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 19, 2007 12:42 PM
 To: Tomcat Users List
 Subject: Re: Jasper compiler very slow
 
 Anthony,
 
 Please ignore my first reply on this thread, I misunderstood your
 post, the reply I posted is irrelevant.
 
 Here's my new reply :
 
 On 4/18/07, Berglas, Anthony [EMAIL PROTECTED] wrote:
  Hello All,
 
  The compile time for my .jsp pages is extremely slow -- like 10
seconds
  on a modern PC to the first time any page is run.  Painful during
  development.
 
 I agree that 10 seconds is too long, normally having JSP pages with a
 lot of plain-text, causes them to be slow, also JSP page load time can
 be attributed to non-optimized application layer code as well.
 
 Here are a few suggestions that have worked for me:
 
 1) If the JSP pages have a lot of plain-text, move the plain text to a
 persistent store - for example an XML file or database.
 
 2) See if there's any code in the application layer that could be
 optimized --- JDBC code (normally using Connection Pooling and
 Prepared Statements, batch updates/inserts).
 
 3) If the result set returned from the persistence layer is too large
 try paging it into smaller chunks.
 
 After carefully making some of the above changes to my JSPs
 (especially moving out the plain text to a persistent store), my JSP
 page load within 1 second in the development environment on *first
 access*.
 
 
  I can compile a vast amount of Java code in 2 seconds.  It is
difficult
  to imagine what could be happening within Jasper to be that slow.
 
 
 I thought you meant the Jasper *pre-compiler* , and not the normal
 run-time compiler.
 
  I have been using the .tag facility to define custom tags fairly
  heavily.  The pages are template driven, so that my top level JSPs
  contain little or no actual HTML.  But there is not that much
template
  code -- an XML parser should be able to read the lot in a few tens
of
  milliseconds.
 
 I store all plain text in an XML file and I use XSLT to transform the
 XML structure into an HTML file. Then I call the transformation from a
 JSP page with JSTL's x:transform tag. This causes the page to load
 very quickly.
 
 Most of the HTML is dynamically generated by the XSLT.
 
 Also, I store chunks of plain text with HTML formatting in an XML file
 and transform it with XSLT to make the page load faster.
 
 
  I suspect that there is something very specific that is causing the
very
  bad performance.  Have not started profiling.  I'd call this a bug.
 
 
 Is the HTML being generated dynamically? or is there a lot of static
 HTML and plain text?
 
 Also, it would help to optimize the database layer and app layer code.
 
  Any ideas most welcome.
 
  [Pre-compiling the JSPs would not help -- it would make things
worse.
  At least now I only need to wait for the recompile of the JSPs that
I
  actually want to test in a run.  Pre-compiling would require me to
wait
  for all the JSPs to recompile -- many minutes.  (One needs to blast
the
  Jasper work area regularly otherwise changes to .tag files do not
get
  reflected in .jsps)]
 
 
 Yeah, I agree - pre-compiling is not meant to be used during
 application development anyway.
 
 Others are of course welcome to make their suggestions :-)
 
 -Rashmi
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Wildcard for server alias?

2007-04-19 Thread Jeremy Cowgar
Is it possible to do a wildcard on the server alias? I have something  
like username.hostname.com instead of hostname.com/~username/ ... I  
have a wildcard in DNS so I do not define each host. In the current  
apache version of the app, I have ServerAlias *.hostname.com which  
works great.


Can I do something similar w/Tomcat?

Thanks,

Jeremy


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



Re: SOLUTION: Tomcat 5.5.17 and IPv6 configuration

2007-04-19 Thread Johnny Kewl

Small correction

ipconfig if  ... is wrong
ipv6 if  ... will give u the interfaces

And its a Win32 APACHE ipv6 enabled WEB server I'm looking for... one on 
apache.org is not ipv6 enabled.
Dont confise this with TOMCAT... Tomcat 5.5.17 and above are DEFINITELY ipv6 
enabled. 



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



CAS Filter Authentification

2007-04-19 Thread Aurélien Allienne

Hi,

I'm using a CAS Filter to authenticate user in Tomcat Administration and
Manager.

But I have a problem. I accept the certificate but I am not redirected to
the CAS login page.

I have write this in the web.xml of the admin webapps :

!-- CAS filter --
 filter
 filter-nameCAS Filter/filter-name
 filter-classedu.yale.its.tp.cas.client.filter.CASFilter/filter-class

 init-param
param-nameedu.yale.its.tp.cas.client.filter.loginUrl/param-name
param-valuehttps://auth.univ-lille2.fr/cas/login /param-value
 /init-param

 init-param
param-nameedu.yale.its.tp.cas.client.filter.validateUrl
/param-name
param-value https://auth.univ-lille2.fr/cas/serviceValidate
/param-value
 /init-param

 !--init-param

param-nameedu.yale.its.tp.cas.client.filter.authorizedProxy/param-name

param-valuehttps://portalserver/CasProxyServlet/param-value
 /init-param--

 init-param
param-name edu.yale.its.tp.cas.client.filter.serverName
/param-name
param-valuehttp://agenda.univ-lille2.fr:8080/param-value
 /init-param

 init-param
param-nameedu.yale.its.tp.cas.client.filter.wrapRequest
/param-name
param-valuetrue/param-value
 /init-param
 /filter

 filter-mapping
 filter-nameCAS Filter/filter-name
 url-pattern/*/url-pattern
 /filter-mapping


and i put casclient-2.1.1.jar in the WEB-INF/lib/

Where is the problem?

Cordially

Aurelien Allienne