Tomcat and JSF. Internet Explorer prompts for download

2006-11-08 Thread Josué Alcalde González
I am developing a JSF application using tomcat 5.5.20 and myfaces 1.1.4.

It works perfect in Firefox but IE doesn't show the faces pages, but it
prompts to download.

This is my web.xml file:

---

?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
  display-namepaninfo-web/display-name

  context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
  /context-param

  context-param
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
  /context-param

  context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
  /context-param

  context-param
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
  /context-param

  context-param
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
  /context-param

  filter
filter-nameMyFacesExtensionsFilter/filter-name

filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
  param-namemaxFileSize/param-name
  param-value20m/param-value
/init-param
  /filter

  !-- extension mapping for adding script/, link/, and other
resource tags to JSF-pages  --
  filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
!-- servlet-name must match the name of your
javax.faces.webapp.FacesServlet entry --
servlet-nameFaces Servlet/servlet-name
  /filter-mapping

  !-- extension mapping for serving page-independent resources
(javascript, stylesheets, images, etc.)  --
  filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
  /filter-mapping
  servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern*.faces/url-pattern
  /servlet-mapping
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list

/web-app

---

and this is how it looks my first a .faces file:

---
%@ page language=java contentType=text/html charset=UTF-8
pageEncoding=UTF-8%
%@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%
%@ taglib uri=http://java.sun.com/jstl/core_rt; prefix=c%
c:if test=${loginSessionBean != null}
  c:redirect url=usuarios.faces /
/c:if
html

[EMAIL PROTECTED] file=inc/htmlhead.inc.html%

body

f:view

  [EMAIL PROTECTED] file=inc/cabecera.inc.jsp%

  h:form id=frLogin
t:div styleClass=cont_login id=cont_login
  t:div styleClass=login_izqda id=login_izqda
t:graphicImage id=giIcoAcceso url=images/ico_acceso.gif
  alt=Imagen de acceso /
  /t:div
  t:div styleClass=login_dcha id=login_dcha
f:verbatim
  h2Bienvenido/h2
  span class=mensajesPor favor, introduzca sus datos para
proceder a la
  validación/span
/f:verbatim
h:panelGrid columns=2 cellpadding=0 cellspacing=0
  style=margin:5px 0 5px 0;
  h:outputLabel id=olLogin for=itLogin value=Usuario
style=margin-right:10px; /
  h:outputLabel id=olPassword for=isPassword
value=Contraseña /
  h:inputText id=itLogin required=true tabindex=0
style=margin-right:10px; /
  h:inputSecret id=isPassword required=true
f:validator
validatorId=es.csa.ubu.paninfo.web.validators.LoginValidator /
  /h:inputSecret
/h:panelGrid
h:commandButton value=Aceptar
action=#{loginSessionBean.autenticacion}
  styleClass=botones /
  /t:div

/t:div

t:div styleClass=errores id=errores
  rendered=#{! empty facesContext.maximumSeverity}
  h:panelGrid columns=1
t:message id=mesLogin for=itLogin /
t:message id=mesPassword for=isPassword /
  /h:panelGrid
/t:div
  /h:form
/f:view

/body

/html

---

What could be the problem? I have no ideas.



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

Re: Need setting up Tomcat with Apache web-server

2006-11-08 Thread Rainer Jung
You made a mistake when trying to post your workers.properties. You
posted the httpd.conf twice. Please post worker.properties.

The error situation looks strange. I would like to know, if you can
successfully send the same request to tomcats http conector. Even if you
don't want to use that connector in the end, its good to check your
installation and basic functionality with that one, before adding more
features and complexity with apache/mod_jk.

Regards,

Rainer

Patrick Fong schrieb:
 Hi
 
 I am trying to setup Tomcat with Apache web-server. I know this is a
 common problem, but I've searched the mailing lists database and have
 not found a solution to my problem. I have a feeling this is a simple
 problem and not opening a vital port.
 
 I'm running Apache2 (v2.0.59) with Tomcat (v5.5.17). Both Apache2 and
 Tomcat have been installed as services on my WinXP machine. I am looking
 for an open-source (free) alternative to Resin Caucho.
 
 After setting up and trying to run JSPs with Tomcat, I get a 503 error
 with the following error printed in the log files -
 
 [6124:5512] [info]  jk_ajp_common.c (941): (testWorker) Tomcat has
 forced a connection close for socket 824
 [6124:5512] [error] jk_ajp_common.c (1536): (testWorker) Tomcat is down
 or refused connection. No response has been sent to the client (yet)
 
 I've included the changes I've made the specific configuration files
 1) *Http.conf*
 
 LoadModule jk_module modules/mod_jk.so
 
 IfModule mod_jk.c
 JkWorkersFile C:/Program Files/Apache
 Group/apache-tomcat-5.5.17/conf/workers.properties
 JkLogFile c:/logs/tomcat/tomcat.log
 JkLogLevel info
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
 JkRequestLogFormat %w %V %T
 
 Alias /jsp-examples C:/Program Files/Apache
 Group/apache-tomcat-5.5.17/webapps/jsp-examples/
 Directory C:/Program Files/Apache
 Group/apache-tomcat-5.5.17/webapps/jsp-examples/
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
 /Directory
 JkMount /jsp-examples/servlet/* testWorker
 JkMount /jsp-examples/*.jsp testWorker
 Location /jsp-examples/WEB-INF/
AllowOverride None
deny from all
 /Location
 /IfModule
 
  
 
 2) *Worker.properties*
 IfModule mod_jk.c
 JkWorkersFile C:/Program Files/Apache
 Group/apache-tomcat-5.5.17/conf/workers.properties
 JkLogFile c:/logs/tomcat/tomcat.log
 JkLogLevel info
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
 JkRequestLogFormat %w %V %T
 
 Alias /jsp-examples C:/Program Files/Apache
 Group/apache-tomcat-5.5.17/webapps/jsp-examples/
 Directory C:/Program Files/Apache
 Group/apache-tomcat-5.5.17/webapps/jsp-examples/
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
 /Directory
 JkMount /jsp-examples/servlet/* testWorker
 JkMount /jsp-examples/*.jsp testWorker
 Location /jsp-examples/WEB-INF/
AllowOverride None
deny from all
 /Location
 /IfModule
 
  
 
 3) *server.xml *- I've changed the port for non-SSL HTTP/1.1 Connector
 to 8081 because port 8080 is being used by an existing application.
 HTTP/1.0 is not created.
 
!-- Define a non-SSL HTTP/1.1 Connector on port 8081(From 8080) --
Connector port=8081 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
 
Connector port=8009
   enableLookups=false redirectPort=8443
 protocol=AJP/1.3 /
 
Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009
minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/
 
 Context path=/jsp-examples docBase=C;/Program Files/Apache
 Group/apache-tomcat-5.5.17/webapps/jsp-examples/ debug=0/
 
 
 
 Any ideas?
 
 Cheers
 Patrick
 

-
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: Call For Papers -- 2007 Southern California Linux Expo

2006-11-08 Thread Ilan Rabinovitch

Hello,

We are coming up on the end of the SCALE 5x call for papers, and I
wanted to give everyone a quick reminder that the last day for
submissions is Novmeber 20, 2006.

SCALE 5x is the 5th annual Southern California Linux Expo.  It will be
held at the Los Angeles Airport Westin Hotel on Feb 10-11.

The call for papers can be found at:
http://www.socallinuxexpo.org/scale5x/cfp/scale5x.pdf

Sponsorship and exhibitor opportunities are available as well.

Regards,
Ilan

On 8/12/06, Ilan Rabinovitch [EMAIL PROTECTED] wrote:

Hello,

My appolgoies for the off-topic post..

We just announced the CFP for SCALE 5x.  SCALE is a non-profit /
community event on the topic of Linux, open-source and free software.
The show will be held on Feb 10-11, 2007 at the Los Angeles Airport
Westin.

If you are interested in presenting on a topic related to Linux / open-source
-- We invite you to submit a presentation proposal as part of our call
for papers.  I am including details bellow.

Past presentations are available online (including slides and audio):
2006 - http://www.socallinuxexpo.org/past/2006/hours.php
2005 - http://www.socallinuxexpo.org/past/2005/hours.php
2003 - http://www.socallinuxexpo.org/past/2003/presentations.php
2002 - http://www.socallinuxexpo.org/past/2002/presentations.php

If you have any questions please feel free to contact the Call For
Papers team at : kapadia =at= socallinuxexp.org
http://socallinuxexp.org/

CFP PDF:  http://www.socallinuxexpo.org/scale5x/cfp/scale5x.pdf

We look forward to seeing you at SCALE 5x!

Best regards,
Ilan Rabinovitch
Conference Chair
Southern California Linux Expo
http://www.socallinuxexpo.org
818-442-1865 Voice


2007 Southern CAlifornia Linux Expo (SCALE 5x)  Call For Papers

The USC, Simi/Conejo, and UCLA Linux User Groups are proud to announce
the  5th Annual Southern California Linux Expo scheduled for February
10-11, 2007 at  the Westin  Los Angeles Airport Hotel.

We invite you to share your work on Linux and Open Source projects
with the rest  of the community as well as exchange ideas with some of
the leading experts in these  fields. Details about SCALE 5X as well
as archives for the last few years can be found  at
http://www.socallinuxexpo.com.

Topics of interest include, but are not limited to:
– Linux Core
– Linux Kernel Enhancements
– Linux in the Infrastructure - Tools and Appliances
– Linux for Embedded Systems
– Linux Virtualization
– User Experience
– Linux Desktop Environments
– Productivity Applications for Linux
– Linux Multimedia
– Linux Games
– Linux Security
– Linux Deployments and Experiences: War Stories
– Other Open Source Projects
– LAMP
– Voice over IP (VoIP)
– Administration techniques for specific distributions
– Open source Licensing
– Government policies with Open Source

The proposals should be submitted in form of a 1-page extended
abstract comprising:

1. Title for the talk
2. Name, Affiliation, Bio, a passport size picture (optional) and
contact email ad-  dress of the Presenter
3. What will be covered? A bulleted list or a brief description of the
main points to  be presented should be submitted. Please include
enough detail that will enable  the committee to evaluate the
proposal.
4. Any specific requirements needed for the presentation other than an
overhead  projector and a microphone.


Submission formats in txt and pdf will be accepted. Presentations are
allotted a time  slot of about 45 minutes. All proposals are to be
sent to [EMAIL PROTECTED]


Important Dates:
=
20 July, 2006: CFP Opens
20 Nov, 2006: Last date for abstracts/proposals
20 Dec, 2006: Last date for notification of acceptance
10 Feb, 2007: Conference starts



-
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: Why can java.io.NotSerializableException occur?

2006-11-08 Thread Tim Lucia
If all your session objects (beans) implement java.io.Serializable, then
Tomcat can persist sessions across shutdowns and restarts.  If they do not,
then session cannot survive a shutdown/restart.  The message is otherwise
harmless.

If you want to cluster Tomcats to serve your app, you really should
implement this interface, otherwise Tomcat cannot ship the sessions between
the cluster members.

As a cheap and dirty trick, you can write a session listener that checks
when objects are added and logs a message with the class name for objects
which do not conform.

Ciao,
Tim


-Original Message-
From: starki78 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 2:21 AM
To: users
Subject: Re: Why can java.io.NotSerializableException occur?

THank you, I don't know
I just can say that this error occured the first time:

Has someone seen it before?
Nice greetings Starki

2006-11-07 11:25:49 StandardManager[/pss] IOException while loading
persisted sessions: java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: com.production.pss.bde.dwh.Deviance
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: com.production.pss.bde.dwh.Deviance
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.util.ArrayList.readObject(ArrayList.java:547)
at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)









-- Initial Header ---

From  : Juanjo Cuadrado [EMAIL PROTECTED]
To  : Tomcat Users List users@tomcat.apache.org
Cc  : 
Date  : Tue, 7 Nov 2006 12:01:56 +0100
Subject : Re: Why can java.io.NotSerializableException occur?







 Hi,
 
 maybe the problem is that tomcat is trying to do anything with the
 session and it is trying to write you object for sesion persistence...
 
 
 2006/11/7, starki78 [EMAIL PROTECTED]:
 
  We have a crash at tomcat 4.
  The thing I don't understand is the fact that
  the class causing this error has no default constructor and
  does not implement serializable.
 
  So why can this error occur?
 
  THANKS A LOT
 
 
  2006-11-07 11:25:49 StandardManager[/pss] IOException while loading
persi=
  sted sessions: java.io.WriteAbortedException: writing aborted;
java.io.No=
  tSerializableException: com.struts.statistics.Deviation
 
  .Measures
  java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableEx=
  ception: com.struts.statistics.Deviation
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at java.util.ArrayList.readObject(ArrayList.java:547)
  at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838=
  )
  at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)=
 
  at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1=
  646)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at
org.apache.catalina.session.StandardSession.readObject(StandardSessio=
  n.java:1369)
  at
org.apache.catalina.session.StandardSession.readObjectData(StandardSe=
  ssion.java:864)
  at
org.apache.catalina.session.StandardManager.load(StandardManager.java=
  :440)
  at
org.apache.catalina.session.StandardManager.start(StandardManager.jav=
  a:655)
  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3=
  585)
  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=
 
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=
 
  at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363=
  )
  at
org.apache.catalina.core.StandardService.start(StandardService.java:4=
  97)
  at
org.apache.catalina.core.StandardServer.start(StandardServer.java:219=
  0)
  at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.jav=
  a:273)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.=
  java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at

RE: Comet + tomcat6

2006-11-08 Thread Jayant Kumar
Hi Mark

Thank you for your suggestions. We are using the default connector for
tomcat6(probably the Http connectors). We would be greatful to you 
If you could guide us or send us a link as to how to use APR and NIO
connectors (which support Comet).

Regards
Jayant

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 9:59 AM
To: Tomcat Users List
Subject: Re: Comet + tomcat6

Nimit Walia wrote:
 F ANYBODY CAN HELP PLS HELP ME AS SOON AS POSSIBLE

Please do not send the same message multiple times.
http://tomcat.apache.org/faq/tomcatuser.html#why

I haven't looked at or been involved in the Comet development but as far as
I can tell from looking at the code and the docs you need to be using the
APR (http://tomcat.apache.org/tomcat-6.0-doc/apr.html) or NIO connectors.

Which connector are you using?

There is a request flag that indicates comet support
(org.apache.tomcat.comet.support) but it is set on every request by the
connectors that support comet so you should not need to do anything here.

The only other thing I can suggest is to look at the chat example provided
in the TC6 for further clues.

HTH,

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]


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.30/521 - Release Date: 11/7/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date: 11/7/2006
 


-
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: Comet + tomcat6

2006-11-08 Thread Mark Thomas
Jayant Kumar wrote:
 Hi Mark
 
 Thank you for your suggestions. We are using the default connector for
 tomcat6(probably the Http connectors). We would be greatful to you 
 If you could guide us or send us a link as to how to use APR and NIO
 connectors (which support Comet).

It was in my last message.

Mark

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 07, 2006 9:59 AM
 To: Tomcat Users List
 Subject: Re: Comet + tomcat6
snip/
 I haven't looked at or been involved in the Comet development but as far as
 I can tell from looking at the code and the docs you need to be using the
 APR (http://tomcat.apache.org/tomcat-6.0-doc/apr.html) or NIO connectors.
snip/

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



Several hosts with default contexts...

2006-11-08 Thread Peter Björkman

Hi! This might be a stupid question, but I can't find the answer anywhere.

I will run multiple hosts (Tomcat 5.0) and they should each have different 
default web applications. I could define the contexts in server.xml, but this 
is not recommended according to the documentation. The way we usually do it is 
to place our context.xml in teh META-INF directory, but then how could the 
correct host handle the context? 

Is the solution to manually insert the context.xml file into:

conf/[Engine]/[hostname]/context.xml
that is,
conf/Catalina/www.mydomain.com/context.xml

Or is there some other way of doing it?

Regards
Peter

PETER BJÖRKMAN - SYSTEM ARCHITECT
josh / together is better / www.josh.se
sveavagen 59 / 113 59 stockholm / sweden
phone +46 (0)8 650 21 07 / mobile +46 (0)709 687 887
###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.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: Several hosts with default contexts...

2006-11-08 Thread Mark Thomas
Peter Björkman wrote:
 Hi! This might be a stupid question, but I can't find the answer anywhere.
This came up yesterday. I think I need to put something in the docs...

http://marc.theaimsgroup.com/?l=tomcat-userm=116296369528038w=2

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]



Undeploy does not remove all of the files in the application

2006-11-08 Thread René Schade
Hi!

I have a problem when trying to undeploy an application.

Whenever I try to undeploy using the manager application (or from Ant), not all 
of the files in the application (located in webapps) are removed. Some of the 
jar-files still exist in the folder. I have to restart tomcat in order to 
remove the jar-files.

When I try to remove the files using an explorer I get Cannot delete xxx.jar: 
It is being used by another person or program.

Im running Tomcat 5.5-20 on Win32.

Any help is appreciated!

Regards,
René


-
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: Undeploy does not remove all of the files in the application

2006-11-08 Thread Mikolaj Rydzewski

René Schade wrote:

Any help is appreciated!
  
The classloaders cannot be unloaded. It's a common problem. Google for 
it ;-)


The simple workadound is to use anti*locking attributes in context.xml: 
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html



--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Valve using Spring / Classloading problem

2006-11-08 Thread Marco Pöhler

Hi list,

I try to write a Valve, that uses a Spring BeanFactory to lookup beans 
and do things. A FactoryBean is initialized when the Valve is called the 
first time. Here is the code for the Valve:


public class TrackingValve extends ValveBase {

   private StorageService storageService;

   private String configFile = tracking-valve-applicationContext.xml;

   public void invoke(Request request, Response response) throws 
IOException,

   ServletException {

   if (storageService == null) {
   containerLog.info(initialize  + this.getClass().getName()
   +  using configuration from  + configFile);
   ResourceLoader rl = new DefaultResourceLoader(getClass()
   .getClassLoader());
   Resource resource = rl.getResource(configFile);
   BeanFactory beanFactory = new XmlBeanFactory(resource);
   storageService = (StorageService) beanFactory
   .getBean(storageService);
   }

   next.invoke(request, response);

   if (storageService != null) {
   containerLog.info(do something with StorageService  !);
   } else {
   containerLog.error(StorageService lookup failed !);
   }
   }

This Class extending org.apache.catalina.valves.ValveBase, part of 
catalina.jar in server/lib.
Because of the Classloader Hierarchie described here 
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html#Overview
I created a jar containing my TrackingValve.class and all dependencies 
(spring, implementation of StorageService and many other things) and put 
it in the server/lib. The tracking-valve-applicationContext.xml resides 
in the root folder of the jar.


When starting Tomcat, everthing looks fine. The first call to the valve 
throws an Exception:


stdout.log:
14:16:42,203  INFO (Http11AprProtocol.java:121) - Initializing Coyote 
HTTP/1.1 on http-80

14:16:42,203  INFO (Catalina.java:511) - Initialization processed in 594 ms
14:16:42,218  INFO (StandardService.java:442) - Starting service Catalina
14:16:42,234  INFO (StandardEngine.java:431) - Starting Servlet Engine: 
Apache Tomcat/5.5.17

14:16:42,296  INFO (StandardHost.java:716) - XML validation disabled
14:16:42,968  INFO (Http11AprProtocol.java:151) - Starting Coyote 
HTTP/1.1 on http-80

14:16:42,984  INFO (Catalina.java:559) - Server startup in 781 ms
14:16:48,531 ERROR (CoyoteAdapter.java:157) - An exception or error 
occurred in the container during the request processing
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot 
find class [eu.tuxoo.omt.model.service.impl.StorageServiceImpl] for bean 
with name 'storageService' defined in class path resource 
[tracking-valve-applicationContext.xml]; nested exception is 
java.lang.ClassNotFoundException: 
eu.tuxoo.omt.model.service.impl.StorageServiceImpl

Caused by:
*java.lang.ClassNotFoundException: 
eu.tuxoo.omt.model.service.impl.StorageServiceImpl*
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)

   at org.springframework.util.ClassUtils.forName(ClassUtils.java:177)
   at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:313)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:912)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:346)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
   at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)

   at eu.tuxoo.omt.valve.TrackingValve.invoke(TrackingValve.java:35)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
   at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
   at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)

   at java.lang.Thread.run(Unknown Source)

catalina.out
08.11.2006 14:16:48 eu.tuxoo.omt.valve.TrackingValve invoke
INFO: initialize eu.tuxoo.omt.valve.TrackingValve using configuration 
from tracking-valve-applicationContext.xml

08.11.2006 14:16:48 

java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

2006-11-08 Thread Vasiliy Keretsman

Hi!

I've got the following problem during Tomcat 5.5.20 startup

- Error configuring application listener of class
myapp.util.WebApplicationContextSupport
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

servlet-api.jar is in common/lib.


I've never had such problem with Tomcat 5.0.28.

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



Can anyone get startup -jkconf to work?

2006-11-08 Thread Beagan, Patrick

Can anyone get startup -jkconf to work?  I've tried this command on
multiple OSes and it never produces a jkConfig file.  Tomcat just
starts up normally.  Is this feature broken?  I doubt it, but it is
not producing a file as stated in the docs.  Any ideas?
thanks.


Re[2]: Comet + tomcat6

2006-11-08 Thread Dima Retov
JK If you could guide us or send us a link as to how to use APR and NIO
JK connectors (which support Comet).

APR is not comet.
NIO is comet.

I do not think that APR support async IO.
APR only handles sleeping keep-alive connections in async way.
APR processes requests in regular way.

Am I right?


Wednesday, November 8, 2006, 2:03:29 PM, you wrote:

JK Hi Mark

JK Thank you for your suggestions. We are using the default connector for
JK tomcat6(probably the Http connectors). We would be greatful to you
JK If you could guide us or send us a link as to how to use APR and NIO
JK connectors (which support Comet).

JK Regards
JK Jayant

JK -Original Message-
JK From: Mark Thomas [mailto:[EMAIL PROTECTED] 
JK Sent: Tuesday, November 07, 2006 9:59 AM
JK To: Tomcat Users List
JK Subject: Re: Comet + tomcat6

JK Nimit Walia wrote:
 F ANYBODY CAN HELP PLS HELP ME AS SOON AS POSSIBLE

JK Please do not send the same message multiple times.
JK http://tomcat.apache.org/faq/tomcatuser.html#why

JK I haven't looked at or been involved in the Comet development but as far as
JK I can tell from looking at the code and the docs you need to be using the
JK APR (http://tomcat.apache.org/tomcat-6.0-doc/apr.html) or NIO connectors.

JK Which connector are you using?

JK There is a request flag that indicates comet support
JK (org.apache.tomcat.comet.support) but it is set on every request by the
JK connectors that support comet so you should not need to do anything here.

JK The only other thing I can suggest is to look at the chat example provided
JK in the TC6 for further clues.

JK HTH,

JK Mark

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


JK --
JK No virus found in this incoming message.
JK Checked by AVG Free Edition.
JK Version: 7.1.409 / Virus Database: 268.13.30/521 - Release Date: 11/7/2006
 




-- 
Best regards,
 Dimamailto:[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]



Application deployment error

2006-11-08 Thread evi
Hello, 

While trying to deploy Jetspeed portal application I get an error: SEVERE:
Context [/jetspeed] startup failed due to previous errors

Please advise where to look for solution. 
Evi

The Tomcat Catalina.log reads:

Nov 8, 2006 5:24:22 PM 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:
C:\Tomcat\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOW
S;C:\WINDOWS\System32\Wbem
Nov 8, 2006 5:24:22 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 8, 2006 5:24:22 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1172 ms
Nov 8, 2006 5:24:22 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 8, 2006 5:24:22 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Nov 8, 2006 5:24:22 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 8, 2006 5:24:24 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 8, 2006 5:24:24 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/jetspeed] startup failed due to previous errors
Nov 8, 2006 5:24:27 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 8, 2006 5:24:27 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 8, 2006 5:24:27 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/188  config=null
Nov 8, 2006 5:24:27 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 8, 2006 5:24:27 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5359 ms
Nov 8, 2006 5:25:08 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 8, 2006 5:25:08 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/jetspeed] startup failed due to previous errors

The Jetspeed catalina.log reads as:

Nov 8, 2006 5:24:37 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Portable Runtime which allows optimal performance in
production environments was not found on the java.library.path:
C:\Java\jdk1.5.0_08\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32
;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Documents and
Settings\Administrator\Desktop\Installid\apache-ant-1.6.5-bin\apache-ant-1.6
.5\bin;C:\Documents and
Settings\Administrator\Desktop\Installid\maven-1.0.2\maven-1.0.2\bin
Nov 8, 2006 5:24:37 PM org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
:297)
at
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:137
)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:580
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:762)
at org.apache.catalina.startup.Catalina.load(Catalina.java:488)
at org.apache.catalina.startup.Catalina.load(Catalina.java:508)
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.load(Bootstrap.java:247)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Nov 8, 2006 5:24:37 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:580
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:762)
at org.apache.catalina.startup.Catalina.load(Catalina.java:488)
at org.apache.catalina.startup.Catalina.load(Catalina.java:508)
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.load(Bootstrap.java:247)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Nov 8, 2006 

Web Service state migration/preservation possibly in combination with WSRF

2006-11-08 Thread Bertrand Baesjou

Hi all,

I have a question regarding the preservation of the state of a WS. Lets 
say I have two nodes which both run the same service and one of those 
nodes is sort of the primary node (clients only connect to the primary 
node). Now I want that the second node knows the state of the first 
node so that in a case of a failure (shutdown or something) of the first 
node, the second knows in which state the sessions of the clients in the 
primary node were and via some sort of negotiation, the second node 
resumes the session with the clients.


What are my possibilities here or stuff I certainly have to look into? 
The WS in question currently uses WSRF to preserve its state internally, 
is that re-usable? I also read something about WS-Context, but that is 
still just a document and not a framework yet, also not sure in which 
extent it is actually useful.


By the way, I am not searching for a solution where an edge node 
preserves  the session (dispatcher like) and the other nodes just 
process jobs. I really want to exchange state information between the 
nodes. This exchange may be done by WS, but might also be done by other 
means (syncing of databases with information using rsync or something). 
Since I am quite new to this, I might not have read everything, thus 
feel free to provide me links to sites or documents that might be 
interesting.


I hope I made myself a bit clear, if not I'll elaborate some more.

Best regards and thank you in advance,
   Bertrand

P.S. I am quite new in the Web Services world, so there is a lot to 
learn for me and maybe more questions will follow.
P.P.S. This question is due to a general model (not only for WS) I am 
developing for my Masters thesis about migrating service interfaces. 
Eventually this thesis will be freely available along with any relevant 
information for WS within the thesis subject.


-
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: Load balancing mark down question

2006-11-08 Thread Rainer Jung
Sharma,

from the 1.2.19 code the request should also work by completely omitting
the id  parameter and only using the worker name :)

Regards,

Rainer


Sharma, Siddharth schrieb:
 Hi Rainer
 Thx for the response.
 
 What does missing answers mean?
 If there is no http body, will it be marked down?
 
 Yea, I figured that status is probably the best way to do it.
 I already have status configured and I figured out the request parameters.
 Only complication is the id parameter. 
 Even if I provide the w parameter as the worker name, it does not update
 its status unless the 'correct' id value is provided.
 id value seems to be a positional index of the worker in the configuration
 or something.
 This sort of sucks for me because my coding will not be straightforward and
 I will have to maintain the mapping of worker name and id.
 
 
 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 07, 2006 3:58 PM
 To: Tomcat Users List
 Subject: Re: Load balancing mark down question
 
 Hi,
 
 Sharma, Siddharth schrieb:
 Hi

 We have a cluster of Linux (RedHat) machines each housing an apache, 4
 tomcat instances and 4 other jvms that run our custom servers.
 Each tomcat has a corresponding custom server that it delegates requests
 to.
 In other words, there is one to one correspondence between a tomcat
 instance
 and a custom server instance.
 Problem is that when a custom server crashes and its tomcat is still
 accepting, mod_jk does not mark it down. Consequently users continue to be
 directed to that tomcat even though they are experiencing errors.
 In mod_jk, we have defined a load balancing worker that fronts the 4
 tomcat
 workers.
 So questions are:

 1. On what basis does mod_jk mark a tomcat worker down? Is it http return
 codes?
 
 Never http return code. jk detects communication failures betwenn apache
 and tomcat:
 
 - timeouts
 - connection problems
 - missing answers
 - client (browser) aborts
 
 2. Some load balancers allow scraping of the http body to see if there is
 an
 error in addition to relying on http codes. Is that possible in mod_jk? Is
 it configurable?
 
 No. You need to do that externally.
 
 3. Is it possible to stop|start a mod_jk worker via an http call? Or some
 other programmable way? 
 
 Yes. Configure a status worker:
 
 worker.list=admin
 worker.admin.type=status
 
 The name of the worker (here: admin) is arbitrary.
 Map the worker to a url in your web server, e.g. using JkMount in
 Apache. Add access control to the URL (using web server methods).
 
 Then open the URL in your browser and get used to its features. You can
 click on the individual worker members of a balancer and a form will pop
 up, allowing to disable (no more new sessions) or stop (no more
 requests) this worker. The request when sending the form is a GET
 request, so you can learn the URL syntax easily.
 
 Be careful: these changes are not persistant. Apache restart, even
 graceful, throws you back to your config file settings.
 
 Regards,
 
 Rainer
 
 Any ideas on how to solve this problem?

 Thanks
 Sidd

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



RE: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

2006-11-08 Thread Caldarale, Charles R
 From: Vasiliy Keretsman [mailto:[EMAIL PROTECTED] 
 Subject: java.lang.NoClassDefFoundError: 
 javax/servlet/ServletContextListener
 
 - Error configuring application listener of class
 myapp.util.WebApplicationContextSupport
 java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
 
 servlet-api.jar is in common/lib.

Is the jar perchance in some other directory as well - such as inside
the webapp?  It shouldn't be in more than one place.

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



RE: Application deployment error

2006-11-08 Thread Caldarale, Charles R
 From: evi [mailto:[EMAIL PROTECTED] 
 Subject: Application deployment error
 
 SEVERE: Error initializing endpoint
 java.net.BindException: Address already in use: JVM_Bind:8080

So what else is using port 8080?  Could be another copy of Tomcat
running, could be another process, could be configured twice within
Tomcat, etc.  Use netstat -ao to see if somebody else already has it.

 - Chuck


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

-
To 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/ServletContextListener

2006-11-08 Thread Martin Gainty
Vasily-
Can we see the web.xml listener element configuration for 
ServletContextListener and any listener's deriving from ServletContextListener
have you verified your $CATALINA_HOME/commons/lib/servlet-api.jar is the same 
as the OS specific distro jar?

Anyone else?
M-
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
- Original Message - 
From: Vasiliy Keretsman [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, November 08, 2006 9:56 AM
Subject: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener


 Hi!
 
 I've got the following problem during Tomcat 5.5.20 startup
 
 - Error configuring application listener of class
 myapp.util.WebApplicationContextSupport
 java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
 
 servlet-api.jar is in common/lib.
 
 
 I've never had such problem with Tomcat 5.0.28.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


minimum context file contents

2006-11-08 Thread Michael Hencin
Hello I  have a context file with a JNDI resource configured in it. My
context .xml file is located in the META-INF, and gets copied to the
conf/Catalina/localhost/ just fine. I routinely rename my war file to
app2.war, app3.war, etc to create discrete instances for demo purposes.
However, the context file that gets loaded has some path info in it, that I
have to hand edit after subsequent deployment. If I leave out the path info,
will tomcat create those lines for me, based on the war file name? I am
using TC 5.0.28.

 

If  I leave the Context tag empty i.e. without docBase,path, and workDir
and will tomcat fill in the values? If I had this;

 

Context crossContext=true privileged=true 

 

after deployment would TC enter the Myapp info to give me this?

 

Context crossContext=true docBase=Myapp path=/Myapp privileged=true
workDir=work\Catalina\localhost\Myapp

 

 

 

 

Michael Hencin

Enginuity Development

815-505-5028

 



Re: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

2006-11-08 Thread Vasiliy Keretsman

Martin, Chuck

Thanks for reply.

1. servlet-api.jat is only in tomcat/common/lib

2. cut from web.xml


Can we see the web.xml listener element configuration for 
ServletContextListener and any listener's deriving from ServletContextListener


   listener
  
listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
   /listener

   listener
   listener-classmyapp.util.WebApplicationContextSupport/listener-class
   /listener


have you verified your $CATALINA_HOME/commons/lib/servlet-api.jar is the same 
as the OS specific distro jar?


Downloaded binary distro from Tomcat site. OS Linux (archlinux  debian)

Just tried  5.5.15 and 5.5.17 - the same problem.

it doesn't happen in 5.0.28 though.

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



Tomcat 5.5 not recognizing my trustedCertEntry?

2006-11-08 Thread Michael Casale
Hi All,

 

I'm very new to Tomcat, so please excuse my ignorance. I'm setting up a
server with Tomcat and SSL for our developers. For their product they
must use Tomcat 5.5 - they can not upgrade to 6 at this time.

 

The problem: I've purchased a cert from Geotrust.com, successfully
imported it into the keystore using keytool, yet the tomcat welcome page
kept coming up blank when I navigated to the SSL site on the server:
https://servername:8443. There were no errors in the error log. The page
works fine at the default address of http://servername:8080.

 

Here is what I've done:

 

1. I downloaded the root chain cert from geotrust.com and created my
keystore successfully, adding it and my newly purchased cert into the
keystore file.

 

2. I restarted tomcat and received no errors. But navigating to the
server in a browser shows a Page cannot be found error. Running
netstat -an in a command prompt shows port 8443 open and accepting
connections.

 

2. To test if it was my cert or Keystore file, I borrowed a keystore
from our developer and used it instead, and everything worked - page
opened fine when navigating to it at https://server:8443
https://server:8443/ . 

 

3. So, I have a problem with my Keystore. I then imported my cert into
his test keystore, but when I navigated to the page it used his key and
not mine. 

 

4. Next: I added the keyAlias=tomcat1 tag into the SSL connector
configs in the server.xml file, and restarted tomcat. And of course I
get this error in the Catalina error log:

 

java.io.IOException: Alias name tomcat1 does not identify a key entry

 

 

5. Next: I ran keystore -list and noted that his keys are listed as
keys (duh) and my key is listed as a trustedCertEntry - which is
probably why the system won't use it when I use the keyAlias=tomcat
tag in the server.xml file.

 

So - my big question is: how do I get tomcat to recognize my
trustedCertEntry as a valid Key? Do I need to create my own certificate
and place it in the original keystore I created, along with the root and
the cert I bought? Is there a tag for the server.xml file that will
force it to use the trustedCertEntry I imported into the keytool?

 

Here is a copy of the connector settings for server.xml, for the
configuration that loads without errors:

 

Connector className=org.apache.coyote.tomcat5.CoyoteConnector

port=8443 

minProcessors=5 maxProcessors=20

enableLookups=false
disableUploadTimeout=true

acceptCount=100 debug=0 scheme=https
secure=true

sslProtocol=TLS

keystoreFile=c:\files\keystore 

keystorePass=PASSWORD/

 

Thanks for any and all help provided,

 

Michael Casale

Systems Administrator / IT Manager

Knoa Software

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

Ph.  (212) 807-9608 ext. 6000

Fax  (212) 675-6121

 



Re: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

2006-11-08 Thread Vasiliy Keretsman

Hi!

The problem was solved.

Linux version of catalina/bin/setclasspath.sh in 5.5.15,17,20 hides
the following classpath setting under condition. With tools.jar in
classpath it works.

if [ $1 = debug -o $1 = javac ] ; then
 CLASSPATH=$JAVA_HOME/lib/tools.jar
fi

Btw, setclasspath.bat does not contain such condition as well as
bat/sh  of 5.0.28

Sounds odd, but it helped.


Best regards,
Vasiliy

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

2006-11-08 Thread Caldarale, Charles R
 From: Vasiliy Keretsman [mailto:[EMAIL PROTECTED] 
 Subject: Re: java.lang.NoClassDefFoundError: 
 javax/servlet/ServletContextListener
 
 Linux version of catalina/bin/setclasspath.sh in 5.5.15,17,20 hides
 the following classpath setting under condition. With tools.jar in
 classpath it works.

That makes no sense at all, since there are no javax.* classes in
tools.jar.  The only thing that Tomcat might use out of tools.jar is the
javac classes, and then only if you configure it to use javac instead of
the default compiler.

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



Re: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

2006-11-08 Thread Vasiliy Keretsman

That makes no sense at all, since there are no javax.* classes in
tools.jar.  The only thing that Tomcat might use out of tools.jar is the
javac classes, and then only if you configure it to use javac instead of
the default compiler.


I know it looks strange.
I manually added servlet-api.jar to CLASSPATH at first and Tomcat
started without errors.
Afterwards i've just compared setclasspath.sh in both 5.0 and 5.5.

Vasiliy

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

2006-11-08 Thread Caldarale, Charles R
 From: Vasiliy Keretsman [mailto:[EMAIL PROTECTED] 
 Subject: Re: java.lang.NoClassDefFoundError: 
 javax/servlet/ServletContextListener
 
 I manually added servlet-api.jar to CLASSPATH at first and Tomcat
 started without errors.

You've got something else going on.  Tomcat completely ignores any
existing CLASSPATH setting and establishes its own; the system
classloader is used only for bin/bootstrap.jar.

 Afterwards i've just compared setclasspath.sh in both 5.0 and 5.5.

They are different because 5.0 used the javac classes from tools.jar
whereas 5.5 includes its own Java compiler.  That's why 5.0 required a
JDK and 5.5 needs only a JRE.

You might want to run with -verbose:class just to see where classes are
really being loaded from.

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



RE: Load balancing mark down question

2006-11-08 Thread Sharma, Siddharth
Hey Rainer
I currently have 1.2.15.
Do I need to install all the interim releases or 1.2.19 is all encompassing?
Thanks
Sidd


Ref:
http://www.nabble.com/Load-balancing-mark-down-question-t2590766.html 

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 11:52 AM
To: Tomcat Users List
Subject: Re: Load balancing mark down question

Sharma,

from the 1.2.19 code the request should also work by completely omitting
the id  parameter and only using the worker name :)

Regards,

Rainer


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



Re: Tomcat and JSF. Internet Explorer prompts for download

2006-11-08 Thread Martin Gainty
Josue-

I cannot resolve http://java.sun.com/jsf/html from your index.jsp

Entiende?
M

This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
- Original Message - 
From: Josué Alcalde González [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, November 08, 2006 4:11 AM
Subject: Tomcat and JSF. Internet Explorer prompts for download


I am developing a JSF application using tomcat 5.5.20 and myfaces 1.1.4.
 
 It works perfect in Firefox but IE doesn't show the faces pages, but it
 prompts to download.
 
 This is my web.xml file:
 
 ---
 
 ?xml version=1.0 encoding=UTF-8?
 web-app id=WebApp_ID version=2.4
 xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
  display-namepaninfo-web/display-name
 
  context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
  /context-param
 
  context-param
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
  /context-param
 
  context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
  /context-param
 
  context-param
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
  /context-param
 
  context-param
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
  /context-param
 
  filter
filter-nameMyFacesExtensionsFilter/filter-name
 
 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
  param-namemaxFileSize/param-name
  param-value20m/param-value
/init-param
  /filter
 
  !-- extension mapping for adding script/, link/, and other
 resource tags to JSF-pages  --
  filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
!-- servlet-name must match the name of your
 javax.faces.webapp.FacesServlet entry --
servlet-nameFaces Servlet/servlet-name
  /filter-mapping
 
  !-- extension mapping for serving page-independent resources
 (javascript, stylesheets, images, etc.)  --
  filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
  /filter-mapping
  servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern*.faces/url-pattern
  /servlet-mapping
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
 
 /web-app
 
 ---
 
 and this is how it looks my first a .faces file:
 
 ---
 %@ page language=java contentType=text/html charset=UTF-8
 pageEncoding=UTF-8%
 %@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
 %@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
 %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%
 %@ taglib uri=http://java.sun.com/jstl/core_rt; prefix=c%
 c:if test=${loginSessionBean != null}
  c:redirect url=usuarios.faces /
 /c:if
 html
 
 [EMAIL PROTECTED] file=inc/htmlhead.inc.html%
 
 body
 
 f:view
 
  [EMAIL PROTECTED] file=inc/cabecera.inc.jsp%
 
  h:form id=frLogin
t:div styleClass=cont_login id=cont_login
  t:div styleClass=login_izqda id=login_izqda
t:graphicImage id=giIcoAcceso url=images/ico_acceso.gif
  alt=Imagen de acceso /
  /t:div
  t:div styleClass=login_dcha id=login_dcha
f:verbatim
  h2Bienvenido/h2
  span class=mensajesPor favor, introduzca sus datos para
 proceder a la
  validación/span
/f:verbatim
h:panelGrid columns=2 cellpadding=0 cellspacing=0
  style=margin:5px 0 5px 0;
  h:outputLabel id=olLogin for=itLogin value=Usuario
style=margin-right:10px; /
  h:outputLabel id=olPassword for=isPassword
 value=Contraseña /
  h:inputText id=itLogin required=true tabindex=0
style=margin-right:10px; /
  h:inputSecret id=isPassword required=true
f:validator
 validatorId=es.csa.ubu.paninfo.web.validators.LoginValidator /
  /h:inputSecret

using JAAS, SSL, tomcat JAASReam - how to get user's session

2006-11-08 Thread Kent, Doug
Hello,
I am implementing user authentication and authorization on an SSL-secured Web 
server running Tomcat 4.1 on Debian Linux, using the JAAS interfaces; in 
addition, am using the vanilla tomcat org.apache.catalina.realm.JAASRealm 
class. My question is, how would I get the user's session going from my 
LoginModule in order to get his certificate from the session? By way of more 
background, I need to authenticate the user based on his common name in the 
certificate, in an LDAP lookup.  
thanks in advance! 


configuring tomcat 6

2006-11-08 Thread chukwudi henry
hi my name is henry,am relatively new with jsp.  i just downloaded 
Apache-tomcat 6.0 after installing java5.0.i also set the environment variables 
for java.also i ve installed Apache tomcat too but ve not set the environment 
variables because i don't no the variable value.i used the default locations 
for the installation. ps can u put me through the process of configuring the 
Apache-tomcat and sething the variables. i will be glad if u c=
an start from scratch to put me through as if i don't no anything about it.
thanks in anticipation for Ur immediate response
henry
.So help me God.

 
..So help me God.
 
BLINGSS



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



configoration

2006-11-08 Thread chukwudi henry
hi my name is henry,am relatively new with jsp.  i just downloaded 
Apache-tomcat 6.0 after installing java5.0.i also set the environment variables 
for java.also i ve installed Apache tomcat too but ve not set the environment 
variables because i don't no the variable value.i used the default locations 
for the installation. ps can u put me through the process of configuring the 
Apache-tomcat and sething the variables. i will be glad if u c=
an start from scratch to put me through as if i don't no anything about it.
thanks in anticipation for Ur immediate response
henry
.So help me God.



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

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul,

You really ought to post this kind of stuff to the list. I'm cc'ing the
list so everyone can see our discussion. You can leave me off the cc
list from now on.

Paul Hickey wrote:
 I have tomcat  apache running side by side, and I've manged to figure
 out how to get tomcat to process jsp pages. However, I have a java web
 app that takes xsl  xslt to generate html pages on the fly, running in
 the tomcat server. When I go myserver:8080/myurl.html for a dynamic page
 all works fine. But I cant, no matter what I seem to try with JkMount,
 get apache to pass through the requests to tomcat when I use
 myserver:/myurl.html.

I assume you mean http://myserver/myurl.html -- having that stray ':' in
there will really mess things up.

 I get this error in the apache log:
 [Wed Nov 08 20:48:02 2006] [error] [client 80.13.228.249] File does not
 exist: /var/www/html/java
 when I request this url http://myserver/java/tracker/

That's not the URL you used earlier in your email.

I assume this is an Apache httpd error message, and not Tomcat, yes?

 with the following in my httpd.conf:
 
 VirtualHost localhost:80
 ServerName myserver
 
 JkMount /java/tracker/home/*.html ajp13
 JkMount /tracker/home/*.html ajp13
 JkMount /java/tracker/home/* ajp13
 JkMount /tracker/home/* ajp13
 /VirtualHost
 
 If you can add anything I would be extremely grateful.

You don't have any JkMount directives that cover these URIs:

/java/tracker
/myurl.html

So that's why they're not being forwarded to Tomcat.

If you want anything starting with /java/tracker to be sent to Tomcat,
you have to add this to httpd.conf:

   JkMount /java/tracker*  ajp13

The reason this is working when you use port 8080 is probably because
you still have the HTTP connector running inside Tomcat, so you are
avoiding Apache httpd altogether.

- -chris

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

iD8DBQFFUktI9CaO5/Lv0PARAr1eAKCwp+0T1Zmaes490OLP1g0R+WlbSwCgm6df
Q8wL45Spic9BDeJQenhBzJA=
=yNeu
-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]



Tomcat 5.0.30-27.2 Admin Tool Service (Catalina) tree does not display

2006-11-08 Thread Roger Hendrix at Baldor-IS
Greetings:

I have a new installation of linux (SuSe 10 Enterprise Server) running on an 
IBM Z9 mainframe.

I installed the Tomcat server (version 5.0.30-27.2) and all seems to work but 
the Admin Tool Service drop down window.

When I hover the mouse over the link the link appears to be incomplete:

Shortcut to TreeControlTest.do?tree=

Notice that nothing is following tree=

I suspect that this is a simple configuration step that must be done beyond the 
base install.

Please advise if you know what I have missed.

Respectfully,

Roger Hendrix
Baldor Electric Co.

-
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: SSL not working on Tomcat

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael,

Michael Casale wrote:
 I've installed Firefox 2.0 and I get the error:
 
 Firefox can't connect securely to upm.knoa.com because the site uses a
 security protocol which isn't enabled
 
 So... I changed sslProtocol=TLS to sslProtocol=SSL and restarted the
 service. I get the same error.

Wow. Sounds like something is seriously screwed up. Have you tried a
different client machine? Perhaps one of your SSL libraries is hosed.

Have you tried re-installing Tomcat? Perhaps one of TC's SSL libraries
is hosed.

If all else fails, I would run something like memtest86 on your server
to see if the memory is okay. It's tough to do all this crypto stuff and
not have an exception when the littlest thing goes wrong, so something
is definitely amiss. It's not like Sun invented a new SSL protocol and
didn't tell anyone about it ;)

- -chris

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

iD8DBQFFUlPC9CaO5/Lv0PARAiljAJ9auqO2pfKdS9+zimV5hFhJR2zn2wCfZkY5
KP4Xe5Do8g1iS9+EYc0LqvA=
=QizN
-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: Include Directive

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Justin,

Justin Jaynes wrote:
 You also suggested this: %@ include file=%= request.getContextPath() 
 %/header.jsp %
 I tried it but the code inside the quotes does not get evaluated.

Yeah, that was just an idea. I can't remember, does [EMAIL PROTECTED] %
require a context-relative path, or a server-relative path (meaning, you
should add the context path)? It occurs to me that an include is done on
the server-side, and is intended to be used within a webapp.

I also remember there was another way to import content from another
place. One of these directives actually compiles-in the content from the
other page (sort of like a JSP-include, where you can end up with one
big compiled JSP), and the other actually does an HTTP GET and includes
the resulting content in the output of the currently-executing JSP.

The former ought to be context-relative, meaning that you want
/header.jsp, while the latter might require a fully-qualified URI,
including the protocol and everything.

Does that help at all, or am I just wasting your time at this point? ;)

- -chris

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

iD8DBQFFUlTF9CaO5/Lv0PARAo/oAJ926rahrgg+HNi9dY26D0i6zJDycgCgkqq7
2fxafEjb7Mc5CLVlXuI+13U=
=TRxO
-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: Include Directive Misbehaving

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Justin,

Justin Jaynes wrote:
 Oh snap!

I just love it when people use that phrase! You just brightened-up my
evening, Justin.

 That's exactly what's happening.

No wonder nothing makes sense. Glad you found your problem. Good luck.

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

iD8DBQFFUlVq9CaO5/Lv0PARAmUyAJ9LSqqex1pTgaRFdfb0F3FYTGdm8ACfZaza
YSKKVJbMPgMhVCGvhe+RsFQ=
=/dAs
-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: Tomcat and JSF. Internet Explorer prompts for download

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Josué,

Josué Alcalde González wrote:
 I am developing a JSF application using tomcat 5.5.20 and myfaces 1.1.4.
 
 It works perfect in Firefox but IE doesn't show the faces pages, but it
 prompts to download.

MSIE is a pile of crap. Given your JSP code:

 %@ page language=java contentType=text/html charset=UTF-8
 pageEncoding=UTF-8%
 %@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
 %@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
 %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%
 %@ taglib uri=http://java.sun.com/jstl/core_rt; prefix=c%
 c:if test=${loginSessionBean != null}
   c:redirect url=usuarios.faces /
 /c:if
 html

You have a lot of stuff before the html header. MSIE ignores the
Content-Type header that the server sends because it thinks it's smarter
than the server. If it can't find something that looks like HTML in the
first couple of bytes of the document, it craps its pants and uses
application/octet-stream as the MIME type.

I recommend tweaking your JSP page so that your html comes as early in
the page as possible. Try taking out some of the extra newlines between
those %@ taglib % directives (seriously). Maybe even put the html
above the [EMAIL PROTECTED] % directive if tht even works.

My guess is that this small, stupid change will fix your MSIE woes.

Great further reading on MSIE and the Content-Type:
http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html

- -chris

 
 [EMAIL PROTECTED] file=inc/htmlhead.inc.html%
 
 body
 
 f:view
 
   [EMAIL PROTECTED] file=inc/cabecera.inc.jsp%
 
   h:form id=frLogin
 t:div styleClass=cont_login id=cont_login
   t:div styleClass=login_izqda id=login_izqda
 t:graphicImage id=giIcoAcceso url=images/ico_acceso.gif
   alt=Imagen de acceso /
   /t:div
   t:div styleClass=login_dcha id=login_dcha
 f:verbatim
   h2Bienvenido/h2
   span class=mensajesPor favor, introduzca sus datos para
 proceder a la
   validación/span
 /f:verbatim
 h:panelGrid columns=2 cellpadding=0 cellspacing=0
   style=margin:5px 0 5px 0;
   h:outputLabel id=olLogin for=itLogin value=Usuario
 style=margin-right:10px; /
   h:outputLabel id=olPassword for=isPassword
 value=Contraseña /
   h:inputText id=itLogin required=true tabindex=0
 style=margin-right:10px; /
   h:inputSecret id=isPassword required=true
 f:validator
 validatorId=es.csa.ubu.paninfo.web.validators.LoginValidator /
   /h:inputSecret
 /h:panelGrid
 h:commandButton value=Aceptar
 action=#{loginSessionBean.autenticacion}
   styleClass=botones /
   /t:div
 
 /t:div
 
 t:div styleClass=errores id=errores
   rendered=#{! empty facesContext.maximumSeverity}
   h:panelGrid columns=1
 t:message id=mesLogin for=itLogin /
 t:message id=mesPassword for=isPassword /
   /h:panelGrid
 /t:div
   /h:form
 /f:view
 
 /body
 
 /html
 
 ---
 
 What could be the problem? I have no ideas.
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUlaH9CaO5/Lv0PARAqlUAKCzkaxVdW1I0sld3hXg6BtxrNqcigCdGnKN
3ZCRTY9k23QtwQuyHxt1y3U=
=LkQX
-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: configuring tomcat 6

2006-11-08 Thread Martin Gainty
Henry -

It would be much easier to to implement this under tomcat standalone
Is/Are there any reasons to run Apache with Tomcat or could you run Tomcat 
standalone?

M-
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
- Original Message - 
From: chukwudi henry [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, November 08, 2006 3:41 PM
Subject: configuring tomcat 6


hi my name is henry,am relatively new with jsp.  i just downloaded 
Apache-tomcat 6.0 after installing java5.0.i also set the environment variables 
for java.also i ve installed Apache tomcat too but ve not set the environment 
variables because i don't no the variable value.i used the default locations 
for the installation. ps can u put me through the process of configuring the 
Apache-tomcat and sething the variables. i will be glad if u c=
an start from scratch to put me through as if i don't no anything about it.
thanks in anticipation for Ur immediate response
henry
.So help me God.

 
..So help me God.
 
BLINGSS



-
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: SSL not working on Tomcat - The Solution

2006-11-08 Thread Michael Casale
Hi All -

The simple solution to this whole problem is that I was using the wrong
Keystore file - not the one I originally used to generate my certificate
request.

I originally tried to use the original keystore file to import in my
newly purchased certification, but I kept getting the error Wrong
Keystore Format (or something to that effect - I forgot and am in a
hurry here).

The reason why is I was following poor instructions on my company's wiki
which omitted the storetype tag in the keystore -import line. You need
the -storetype PKCS12 when importing into a PKCS12 keystore. Duh on me. 

This is how we learn. I figured I'd just point this out for anyone else
using the keytool command and working with PKCS12 format keys and
keystores.

Thanks to all those who offered help!

Michael Casale

Systems Administrator / IT Manager

Knoa Software

[EMAIL PROTECTED]

Ph.  (212) 807-9608 ext. 6000

Fax  (212) 675-6121

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 5:02 PM
To: Tomcat Users List
Subject: Re: SSL not working on Tomcat

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael,

Michael Casale wrote:
 I've installed Firefox 2.0 and I get the error:
 
 Firefox can't connect securely to upm.knoa.com because the site uses
a
 security protocol which isn't enabled
 
 So... I changed sslProtocol=TLS to sslProtocol=SSL and restarted
the
 service. I get the same error.

Wow. Sounds like something is seriously screwed up. Have you tried a
different client machine? Perhaps one of your SSL libraries is hosed.

Have you tried re-installing Tomcat? Perhaps one of TC's SSL libraries
is hosed.

If all else fails, I would run something like memtest86 on your server
to see if the memory is okay. It's tough to do all this crypto stuff and
not have an exception when the littlest thing goes wrong, so something
is definitely amiss. It's not like Sun invented a new SSL protocol and
didn't tell anyone about it ;)

- -chris

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

iD8DBQFFUlPC9CaO5/Lv0PARAiljAJ9auqO2pfKdS9+zimV5hFhJR2zn2wCfZkY5
KP4Xe5Do8g1iS9+EYc0LqvA=
=QizN
-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]


-
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: Web Service state migration/preservation possibly in combination with WSRF

2006-11-08 Thread Richard Mixon (Qwest)
As you asked on the Tomcat forum, I'm assuming your wish a solution that
runs on Tomcat.

I have seen a number of web services frameworks discussed on this forum -
all that run under Tomcat (Axis is one I believe). I would think they must
all be built using the Servlet API as a foundation - but I do not have
experience using them.

In that event you should be able to configure session replication between
the two Tomcats (use the latest version 5.5.x). If your state is preserved
in the session, both Tomcats will have the exact same information available.
You then need a way of switching to the secondary Tomcat should the first
become unavaible.

Hope this helps - Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 9:10 AM
To: users@tomcat.apache.org
Subject: Web Service state migration/preservation possibly in combination
with WSRF

Hi all,

I have a question regarding the preservation of the state of a WS. Lets say
I have two nodes which both run the same service and one of those nodes is
sort of the primary node (clients only connect to the primary node). Now I
want that the second node knows the state of the first node so that in a
case of a failure (shutdown or something) of the first node, the second
knows in which state the sessions of the clients in the primary node were
and via some sort of negotiation, the second node resumes the session with
the clients.

What are my possibilities here or stuff I certainly have to look into? 
The WS in question currently uses WSRF to preserve its state internally, is
that re-usable? I also read something about WS-Context, but that is still
just a document and not a framework yet, also not sure in which extent it is
actually useful.

By the way, I am not searching for a solution where an edge node preserves
the session (dispatcher like) and the other nodes just process jobs. I
really want to exchange state information between the nodes. This exchange
may be done by WS, but might also be done by other means (syncing of
databases with information using rsync or something). 
Since I am quite new to this, I might not have read everything, thus feel
free to provide me links to sites or documents that might be interesting.

I hope I made myself a bit clear, if not I'll elaborate some more.

Best regards and thank you in advance,
Bertrand

P.S. I am quite new in the Web Services world, so there is a lot to learn
for me and maybe more questions will follow.
P.P.S. This question is due to a general model (not only for WS) I am
developing for my Masters thesis about migrating service interfaces. 
Eventually this thesis will be freely available along with any relevant
information for WS within the thesis subject.



-
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 with unpacking ROOT.war

2006-11-08 Thread Chris Halstead

Hi Andy,

Perhaps I'm missing a key point about what you're trying to achieve, but 
if you simply put your ROOT.war file *outside* of 
${CATALINA_HOME}/webapps and update your ROOT.xml file with an 
appropriate docBase element you'll find that it unpacks just fine. To 
wit, this works on TC-5.5.20:


--- ${CATALINA_HOME}/conf/Catalina/localhost/ROOT.xml ---
?xml version=1.0 encoding=UTF-8?
Context debug=1 docBase=/tmp/ROOT.war
/Context

In fact, the war can be named anything you want. It's the context 
descriptor name 'ROOT' that tells Tomcat to use this app as the default.


Cheers,

-chris
[EMAIL PROTECTED]
SourceLabs,Inc - Dependable Open Source Systems


[EMAIL PROTECTED] wrote:

Hi Nathan,

I thought there must be other users out there experiencing the same
problem!No - I haven't been able to resolve my problem (ROOT.war
doesn't unpack when ROOT.xml is in conf/Catalina/localhost), and have to
work around it instead.
  
I think the path attribute should be set to  for a root application -

though I think tomcat is robust in case you do use /.

When I was experimenting,  I was able to get the war file to expand if (1)
there wasn't a ROOT.xml in conf/Catalina/localhost and (2) ROOT.war has
META-INF/context.xml :

http://marc.theaimsgroup.com/?l=tomcat-userm=116107471021645w=2

and I think it will also expand if ROOT.war doesn't have a META-INF
directory.

But for our application, we need to use different context files in
different environments, and so can't ship a war file containing one context
file.  So I've written ant tasks to manually unpack the war when deploying
the app locally, and when the war is released, we have to manually unpack
the war.

... a drag - which is why I've been chasing this problem on this list (and
I guess I should raise a bug in bugzilla?)

cheers,

Andy
  



-
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: configuring tomcat 6

2006-11-08 Thread Mark Thomas
Martin Gainty wrote:
 Henry -
 
 It would be much easier to to implement this under tomcat standalone
 Is/Are there any reasons to run Apache with Tomcat or could you run Tomcat 
 standalone?

Martin - you are confusing Apache Httpd which is commonly known as
Apache and Apache Tomcat the full name for Tomcat. There is no
reference to httpd in Henry's message, only Apache Tomcat.

Henry - A few questions that will help us help you.
- What operating system are you using?
- What happens if you do:
java -version
on your command line?
- What happens when you try and start Tomcat at the moment? If your
Java environment is set up correctly you should not need to do
anything else.

Mark

 From: chukwudi henry [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Wednesday, November 08, 2006 3:41 PM
 Subject: configuring tomcat 6
 
 
 hi my name is henry,am relatively new with jsp.  i just downloaded 
 Apache-tomcat 6.0 after installing java5.0.i also set the environment 
 variables for java.also i ve installed Apache tomcat too but ve not set the 
 environment variables because i don't no the variable value.i used the 
 default locations for the installation. ps can u put me through the process 
 of configuring the Apache-tomcat and sething the variables. i will be glad if 
 u c=
 an start from scratch to put me through as if i don't no anything about it.


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



Installing a SSL under Tomcat 5

2006-11-08 Thread Andy Tipton
Evening,
 
I have been reading about installing the SSL certificate for my
server and when I when to download the JSSE (from Sun), it said that that
version did not support versions 1.4 and 1.5 of the JDK.  I am on 1.5, so
what do I do?  
 
Thank you in advance,
Andy


RE: Installing a SSL under Tomcat 5

2006-11-08 Thread Andy Tipton
Ah, great... thank you for the info...

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 9:49 PM
To: Tomcat Users List
Subject: Re: Installing a SSL under Tomcat 5

Andy Tipton wrote:
 Evening,
  
 I have been reading about installing the SSL certificate for
my
 server and when I when to download the JSSE (from Sun), it said that that
 version did not support versions 1.4 and 1.5 of the JDK.  I am on 1.5, so
 what do I do?

Nothing! JSSE is included in JDK 1.4 onwards.

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: Can anyone get startup -jkconf to work?

2006-11-08 Thread Bill Barker
If you are using a Tomcat version later that 3.3.x, then no.  That option is 
only for 3.3.x.

Beagan, Patrick [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

Can anyone get startup -jkconf to work?  I've tried this command on
multiple OSes and it never produces a jkConfig file.  Tomcat just
starts up normally.  Is this feature broken?  I doubt it, but it is
not producing a file as stated in the docs.  Any ideas?
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: Tomcat and JSF. Internet Explorer prompts for download

2006-11-08 Thread Stephen Souness

I'm no JSF expert, but the following might get you somewhere...

Do you have a MIME type configured for the url extension(s) that you 
have for your JSF URLs?


I've also seen a recommendation to add the following directive:

jsp:directive.page contentType=text/html/

on the Core JSF FAQ page.


--
Stephen


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Josué,

Josué Alcalde González wrote:

I am developing a JSF application using tomcat 5.5.20 and myfaces 1.1.4.

It works perfect in Firefox but IE doesn't show the faces pages, but it
prompts to download.


MSIE is a pile of crap. Given your JSP code:


%@ page language=java contentType=text/html charset=UTF-8
pageEncoding=UTF-8%
%@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%
%@ taglib uri=http://java.sun.com/jstl/core_rt; prefix=c%
c:if test=${loginSessionBean != null}
  c:redirect url=usuarios.faces /
/c:if
html


You have a lot of stuff before the html header. MSIE ignores the
Content-Type header that the server sends because it thinks it's smarter
than the server. If it can't find something that looks like HTML in the
first couple of bytes of the document, it craps its pants and uses
application/octet-stream as the MIME type.

I recommend tweaking your JSP page so that your html comes as early in
the page as possible. Try taking out some of the extra newlines between
those %@ taglib % directives (seriously). Maybe even put the html
above the [EMAIL PROTECTED] % directive if tht even works.

My guess is that this small, stupid change will fix your MSIE woes.

Great further reading on MSIE and the Content-Type:
http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html

- -chris


[EMAIL PROTECTED] file=inc/htmlhead.inc.html%

body

f:view

  [EMAIL PROTECTED] file=inc/cabecera.inc.jsp%

  h:form id=frLogin
t:div styleClass=cont_login id=cont_login
  t:div styleClass=login_izqda id=login_izqda
t:graphicImage id=giIcoAcceso url=images/ico_acceso.gif
  alt=Imagen de acceso /
  /t:div
  t:div styleClass=login_dcha id=login_dcha
f:verbatim
  h2Bienvenido/h2
  span class=mensajesPor favor, introduzca sus datos para
proceder a la
  validación/span
/f:verbatim
h:panelGrid columns=2 cellpadding=0 cellspacing=0
  style=margin:5px 0 5px 0;
  h:outputLabel id=olLogin for=itLogin value=Usuario
style=margin-right:10px; /
  h:outputLabel id=olPassword for=isPassword
value=Contraseña /
  h:inputText id=itLogin required=true tabindex=0
style=margin-right:10px; /
  h:inputSecret id=isPassword required=true
f:validator
validatorId=es.csa.ubu.paninfo.web.validators.LoginValidator /
  /h:inputSecret
/h:panelGrid
h:commandButton value=Aceptar
action=#{loginSessionBean.autenticacion}
  styleClass=botones /
  /t:div

/t:div

t:div styleClass=errores id=errores
  rendered=#{! empty facesContext.maximumSeverity}
  h:panelGrid columns=1
t:message id=mesLogin for=itLogin /
t:message id=mesPassword for=isPassword /
  /h:panelGrid
/t:div
  /h:form
/f:view

/body

/html

---

What could be the problem? I have no ideas.



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


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

iD8DBQFFUlaH9CaO5/Lv0PARAqlUAKCzkaxVdW1I0sld3hXg6BtxrNqcigCdGnKN
3ZCRTY9k23QtwQuyHxt1y3U=
=LkQX
-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]





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



Session Creation in Tomcat

2006-11-08 Thread Chetan Pandey
Hi All:

 

I have implemented a HttpSessionListener in my Struts based Web App.

 

And session creation and destruction are indicated by the printing of Debug
Statements on the Console.

 

I am also using Formm-based JDBC-JNDI Realm based Authentication.

 

But what I find strange is that when I launch the URL of my Web-App in IE
via Eclipse, the sessionCreated Debug statements get printed.

 

I think this is strange as I expect session to be created when the User
clicks on the Login Button.

 

So can anyone pls clarify if the session is supposed to be created when we
l;aunch the URL or session is supposed to be created when the User logs in.

 

Thanks.

 

Chetan



Re: Session Creation in Tomcat

2006-11-08 Thread Mark Thomas
Chetan Pandey wrote:
 I am also using Formm-based JDBC-JNDI Realm based Authentication.

 So can anyone pls clarify if the session is supposed to be created
when we
 l;aunch the URL or session is supposed to be created when the User
logs in.

FORM authentication requires a session so one gets created as soon as
you request a protected page, ie before the user has actually logged in.

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: Session Creation in Tomcat...Session timeout

2006-11-08 Thread Chetan Pandey

This must then be related to the session-timeout problem I am facing.

This is what is happening:

When my Session - currently set to 1 minute in web.xml - times-out clicking
on any LINK automatically redirects me to the Login Page.

On re-logging in, through the logs I am observing that it is not going to
the LoggingAction Class but directly to the Link that was clicked.

But the problem is in my LoggingAction I set a number of Session Variables
such as principalInSession which are referenced by the pages 

This session attribute principalInSession remains null and hence I get a
NullPointerException.

The surprising thing is that on Time-out if I refresh the page and then
redirected to the Login-page, the above problem doesn't occur i.e it goes to
the LoggingAction class and everything is normal.

Thanks for all your help.

Chetan 


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 09, 2006 11:52 AM
To: Tomcat Users List
Subject: Re: Session Creation in Tomcat

Chetan Pandey wrote:
 I am also using Formm-based JDBC-JNDI Realm based Authentication.

 So can anyone pls clarify if the session is supposed to be created
when we
 l;aunch the URL or session is supposed to be created when the User
logs in.

FORM authentication requires a session so one gets created as soon as
you request a protected page, ie before the user has actually logged in.

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]



Use tomcat ant task to precompile jsp file in my webapp

2006-11-08 Thread ying lcs

Hi,

Can you please tell me where can i find tomcat ant task to precompile
jsp files in my webapp?
I am using tomcat 4.1.


From here it said i shouldn't use the jspc task in ant.

http://ant.apache.org/manual/OptionalTasks/jspc.html

and from here, i can't find an example of how to use tomcat 4.1 ant
task to precompile jsp files.
http://tomcat.apache.org/tomcat-4.1-doc/appdev/build.xml.txt

Thank you.

-
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: Use tomcat ant task to precompile jsp file in my webapp

2006-11-08 Thread Mark Thomas
ying lcs wrote:
 Hi,
 
 Can you please tell me where can i find tomcat ant task to precompile
 jsp files in my webapp?
 I am using tomcat 4.1.
 
 From here it said i shouldn't use the jspc task in ant.
 http://ant.apache.org/manual/OptionalTasks/jspc.html
 
 and from here, i can't find an example of how to use tomcat 4.1 ant
 task to precompile jsp files.
 http://tomcat.apache.org/tomcat-4.1-doc/appdev/build.xml.txt

I think this is the page you are looking for:
http://tomcat.apache.org/tomcat-4.1-doc/jasper-howto.html#Web%20Application%20Compilation

HTH,

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: Use tomcat ant task to precompile jsp file in my webapp

2006-11-08 Thread ying lcs

Sorry, I found it:
http://tomcat.apache.org/tomcat-4.1-doc/jasper-howto.html



On 11/8/06, ying lcs [EMAIL PROTECTED] wrote:

Hi,

Can you please tell me where can i find tomcat ant task to precompile
jsp files in my webapp?
I am using tomcat 4.1.

From here it said i shouldn't use the jspc task in ant.
http://ant.apache.org/manual/OptionalTasks/jspc.html

and from here, i can't find an example of how to use tomcat 4.1 ant
task to precompile jsp files.
http://tomcat.apache.org/tomcat-4.1-doc/appdev/build.xml.txt

Thank you.



-
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: Include Directive Misbehaving: Feedback for Mark Thomas

2006-11-08 Thread Justin Jaynes
Mark Thomas,

To start on a positive note, I 've never found an open source project with
real help as accessable, as reliable, as knowledgeable, or as patient as I
have with Tomcat.  I have access to amazing
support/discussion groups, with immediate communications to developers and
document writers.  It's better than any product I've ever paid for.


I know you spend a LOT of time with end users.  Thanks a million.  You really 
make tomcat work for us.

With your pointers I've been able to glean the info I needed and I've fixed my 
problem.

I don't think there is any wrong info on the doc pages.  But either I am not 
seeing everything there is to read, or there is a lack of explanation about 
contexts.  I mean, really, I've been using tomcat for a few years and I learned 
the whole thing alone.  Just me, a book, tomcat, and this list (I guess that's 
not really alone).  And frankly, there is no reasonable explanation of what a 
context is.  I feel like the documentation might be assuming I know more than I 
do.  Me and anybody else who has very few resources to become introduced to 
tomcat.

Where am I looking on the site?  Well, I go to the tomcat page and click 
Configuration in the Reference section of links.  I click on Context under the 
Containters section of links.

The definition of a context there is VERY VAGUE.  And although it lists the 
elements of a context, it gives NO EXAMPLES and no explanation of how to create 
a context, and what a context does.  It says what a context is, but not what it 
does.

Please consider revising the context page to make it clearer.  If I had a 
firmer understanding, I would volunteer a revision myself.

Justin



- Original Message 
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, November 7, 2006 10:27:38 PM
Subject: Re: Include Directive Misbehaving

Justin Jaynes wrote:
 Oh snap!  That's exactly what's happening.  Can you point me to a good 
 document that expalins how to set up contexts?  I've got everything set up 
 exactly as you described.

 Any good reading for a comprehensive (or even rudimetry) understanding would 
 be greatly appreciated.
The on-line docs should have what you need. If we can id places where
changes are needed then I'll get them incorporated.

 If you can explain it in a reasonable length that is appropriate to this 
 forum (and convenient to your time), it would also be greatly appreciated.
The short version is:
- a context's docBase should never be the same as a host's appBase

A suitable directory structure for multiple hosts could be:
$CATALINA_HOME\host1-webapps  - Host1 appBase
$CATALINA_HOME\host1-webapps\ROOT - Default context for Host1
$CATALINA_HOME\host1-webapps\app1 - Application on Host1
$CATALINA_HOME\host1-webapps\app2 - Application on Host1
$CATALINA_HOME\host2-webapps  - Host2 appBase
$CATALINA_HOME\host2-webapps\ROOT - Default context for Host2
$CATALINA_HOME\host2-webapps\app3 - Application on Host2
etc for as many hosts and applications as you like

 The explanation in the doc on the tomcat.apache.org site seems to only cover 
 what I am using, which treats every director as a webapp.  Definatly not what 
 I want.
Which page(s) are you looking at? If the docs tell you to do this they
need to be changed. I can't see anything like this but I could easily
be missing the obvious.

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]