Re: Failed to Deploy

2009-01-09 Thread Zaki Akhmad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Now the Tomcat Web Application Manager, shows my web application on
its list. But the message shown is: FAIL - Application at context path
/abcd could not be started. I try to undeploy and deploy it again.
This time didn't take much time.

Any hint?

- -za,
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: http://getfiregpg.org

iEYEARECAAYFAklnDboACgkQI3d58oE7Pt7DNwCeNScdCOqdezPHx5d5Nn9E0215
oK8AnRDccXyWbnuKb/0CPP92l9AD65Y6
=uyUA
-END PGP SIGNATURE-

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



Re: Failed to Deploy

2009-01-09 Thread Zaki Akhmad
Here's the log I found on /var/log/syslog

Jan  9 15:51:41 freelance2 jsvc.exec[3664]: 9-Jan-09 3:51:41 PM
org.apache.catalina.core.ApplicationContext log INFO: HTMLManager:
install: Installing context configuration at
'/home/za/tomcat/lpse/WEB-INF/web.xml' from '/home/za/tomcat/lpse'
Jan  9 15:51:41 freelance2 jsvc.exec[3664]: 9-Jan-09 3:51:41 PM
org.apache.catalina.startup.HostConfig deployDescriptor SEVERE: Error
deploying configuration descriptor lpse2.xml
Jan  9 15:51:41 freelance2 jsvc.exec[3664]: 9-Jan-09 3:51:41 PM
org.apache.catalina.core.StandardContext start SEVERE: Error in
dependencyCheck java.util.jar.JarException: Section should start with
a Name header: unexpected '
Jan  9 15:51:41 freelance2 jsvc.exec[3664]:
til.jar.JarUtils.readSectionName(libgcj.so.90)at
gnu.java.util.jar.JarUtils.readIndividualSections(libgcj.so.90)at
java.util.jar.Manifest.read(libgcj.so.90)at
java.util.jar.Manifest.init
Jan  9 15:51:41 freelance2 jsvc.exec[3664]: (libgcj.so.90)at
java.util.jar.JarInputStream.readManifest(libgcj.so.90)at
java.util.jar.JarInputStream.init(libgcj.so.90)at
org.apache.catalina.util.ExtensionValidator.getManifest(Exten
Jan  9 15:51:41 freelance2 jsvc.exec[3664]: sionValidator.java:373)
at 
org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:184)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:406
Jan  9 15:51:41 freelance2 jsvc.exec[3664]: 4)at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
   at org.apache.catalina.core.St
Jan  9 15:51:41 freelance2 jsvc.exec[3664]:
andardHost.addChild(StandardHost.java:544)at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:519
Jan  9 15:51:41 freelance2 jsvc.exec[3664]: )at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
at java.lang.reflect.Method.invoke(libgcj.so.90)at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.jav
Jan  9 15:51:41 freelance2 jsvc.exec[3664]: a:458)at
mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221)
   at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerI
Jan  9 15:51:41 freelance2 jsvc.exec[3664]: nterceptor.java:120)at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84)
   at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(Defa
Jan  9 15:51:41 freelance2 jsvc.exec[3664]:
ultMBeanServerInterceptor.java:120)at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
   at mx4j.server.interceptor.ContextClassLoaderMBeanServ
Jan  9 15:51:41 freelance2 jsvc.exec[3664]:
erInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203)
   at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043)
at org.apache.catalina.manager.ManagerServlet.check(Manag

-za

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



Tomcat Reload Problem with .zul file

2009-01-09 Thread Mohsen Saboorian
Hi,

I'm developing an application with ZK. The standard file names for ZK
page is .zul, which is an XML files being parsed and interpreted by a
filter. Whenever I change something in a zul file, Tomcat fully
reloads the module. Is this possible to specify some file extensions
for tomcat, to ignore reloading module when they are changed? For
example Tomcat doesn't reload when a JSP is changed.

Thanks,
Mohsen.

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



RE: File upload fails

2009-01-09 Thread Peter Crowther
 From: Alan Chaney [mailto:a...@compulsivecreative.com]
 I assume that as you are using MSIE
 then your dev. system is a PC? I develop on linux and don't
 know of any particular network monitor to recommend.

Wireshark again - http://www.wireshark.org/download.html has Windows downloads. 
 Lovely tool.

- Peter

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



Re: Failed to Deploy

2009-01-09 Thread Konstantin Kolinko
2009/1/9 Zaki Akhmad zakiakh...@gmail.com:

 Here's the log I found on /var/log/syslog


 gnu.java.util.jar.JarUtils

http://www.google.com/search?q=%22install+a+real+tomcat%22+site%3Awww.nabble.com

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



RE: Strange parser behavior from adding log4j

2009-01-09 Thread Mark Thomas
 From: Ken Bowen [mailto:kbo...@als.com]
 
 [Tomcat 6.0.18, java 1.5.0_16, struts 1.2.8]


snip/

 Has anyone any thoughts on what might be happening here?

Could be a variation of
https://issues.apache.org/bugzilla/show_bug.cgi?id=45933 Can you try testing
with a build from trunk? 

Mark



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



RE: Deleting context files when redeploy application

2009-01-09 Thread Mark Thomas
 From: Sreenivas Reddy [mailto:srinivasredd...@gmail.com]
 
 I'm using Tomcat 6.0.18. When I re-deploy my application using tomcat
 admin
 console, it is deleting context files from
 /tomcat6.0.18/conf/Catalina/localhost location. Pls help me to
 resolve
 this problem.

There is no admin applciation in Tomcat 6. Exactly what are steps are you
following?

Mark



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



SSL and client-authentication with smartcard

2009-01-09 Thread Benoit Maupas
I am using Tomcat with SSL and client-authentication by smartcard. My 
application uses Struts2 and Spring-Security. I would like to :
1/ get current SSL session retrieved from session-id
2/ close current SSL session in order to force end-user to typein again his pin 
code (i.e. a logout function)
3/ detect a smartcard removal

Is it possible ?
Which tomcat version provides this functionality ?
Is there any pointer to documentation relative to these issues ?

Thanks in advance





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



RE: Failed to Deploy

2009-01-09 Thread Caldarale, Charles R
 From: Zaki Akhmad [mailto:zakiakh...@gmail.com]
 Subject: Re: Failed to Deploy

 Here's the log I found on /var/log/syslog

 java.util.jar.Manifest.read(libgcj.so.90)at

Not only should you install a real Tomcat from tomcat.apache.org (as 
Konstantin's search link points out), but you also *MUST* install a real JVM to 
run Tomcat under.  The gcj project is a toy, and should not be considered for 
any kind of real Java work.

 - Chuck


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


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



RE: Tomcat Reload Problem with .zul file

2009-01-09 Thread Caldarale, Charles R
 From: Mohsen Saboorian [mailto:mohs...@gmail.com]
 Subject: Tomcat Reload Problem with .zul file

 Whenever I change something in a zul file, Tomcat fully
 reloads the module.

Don't suppose you'd want to tell us a few basics: what version of Tomcat, what 
JRE/JDK, what platform, and are you running Tomcat under and IDE?

What's in the Context element for your webapp?  In particular, are there any 
nested WatcheResource elements?

 - Chuck


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

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



Re: Tomcat Reload Problem with .zul file

2009-01-09 Thread Mohsen Saboorian
On Fri, Jan 9, 2009 at 6:39 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Mohsen Saboorian [mailto:mohs...@gmail.com]
 Subject: Tomcat Reload Problem with .zul file

 Whenever I change something in a zul file, Tomcat fully
 reloads the module.

 Don't suppose you'd want to tell us a few basics: what version of Tomcat, 
 what JRE/JDK, what platform, and are you running Tomcat under and IDE?

 What's in the Context element for your webapp?  In particular, are there 
 any nested WatcheResource elements?

  - Chuck


I'm on Tomcat 6.0.13 + JDK 1.6.0 + WinXP. Eclipse's WTP is used for
managing tomcat server. Here is my Context element in server.xml:
  Context docBase=myapp path=/myapp reloadable=true
source=org.eclipse.jst.jee.server:myapp/

WTP does nothing with any resource. It just deploys a resource as soon
as it's changed to tomcat webapp folder. Tomcat decides then to reload
the webapp.

Mohsen.

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



RE: Tomcat Reload Problem with .zul file

2009-01-09 Thread Caldarale, Charles R
 From: Mohsen Saboorian [mailto:mohs...@gmail.com]
 Subject: Re: Tomcat Reload Problem with .zul file

 I'm on Tomcat 6.0.13 + JDK 1.6.0 + WinXP. Eclipse's WTP is used for
 managing tomcat server. Here is my Context element in server.xml:
   Context docBase=myapp path=/myapp reloadable=true
 source=org.eclipse.jst.jee.server:myapp/

This doesn't affect your problem, but the Context element should not be 
placed in server.xml; its proper location is in the webapp's 
META-INF/context.xml file.  Note that neither the docBase nor the path 
attributes are allowed when the Context element is in the standard place.  
Also, there is no source attribute for Context.

 WTP does nothing with any resource. It just deploys a resource as soon
 as it's changed to tomcat webapp folder. Tomcat decides then to reload
 the webapp.

The default Context element in conf/context.xml contains a WatchedResource 
for WEB-INF/web.xml; I suspect Eclipse is rewriting that (or possibly 
redeploying the .war file for the webapp) every time you change something.

What happens if you run Tomcat by itself (don't use the IDE) and edit a .zul 
file in the webapp?  If the webapp doesn't reload, you've got an Eclipse, not 
Tomcat, problem.

 - Chuck


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

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



Re: Strange parser behavior from adding log4j

2009-01-09 Thread Ken Bowen

Mark,

I'm more than willing.  Are there nightly jar builds, or do I need to  
set up  do the build myself?

(First time for this).

Thanks
Ken

On Jan 9, 2009, at 5:17 AM, Mark Thomas wrote:


Could be a variation of
https://issues.apache.org/bugzilla/show_bug.cgi?id=45933 Can you try  
testing

with a build from trunk?




Correct email address for Apache Tomcat

2009-01-09 Thread HASSAN Kamrul


Please let know the correct way (and correct email address) to send
email request 
with question regarding Apache/Tomcat web server

Thanks
kam

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



RE: Correct email address for Apache Tomcat

2009-01-09 Thread Caldarale, Charles R
 From: HASSAN Kamrul [mailto:kamrul.has...@alcatel-lucent.com]
 Subject: Correct email address for Apache Tomcat

 Please let know the correct way (and correct email address)
 to send email request with question regarding Apache/Tomcat
 web server

Looks like you figured out the e-mail address, since your message got to the 
right place.

The mailing lists are documented here:
http://tomcat.apache.org/lists.html

This link (from the above page) describes appropriate etiquette:
http://www.catb.org/~esr/faqs/smart-questions.html

When asking questions, you should always include your exact Tomcat version, the 
JRE/JDK you're using, and the platform you're running on (including the IDE you 
run Tomcat under, if any).  Also, always start a new thread when asking a new 
question; don't just change the subject line of an existing message.

 - Chuck


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

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



REMOTE_USER is null to Tomcat

2009-01-09 Thread Ryu Fan
Greetings all,

Please NOTE: I want to mention that what I'm about to describe is
apparently a common problem. I have thoroughly searched the
tomcat-user mailing list archives and the google. I have attempted the
many, many suggestions put forth (which I will describe in more
detail), and this is still not working properly.

My environment
---
RHEL 4.7
Apache httpd 2.0.52
mod_jk 1.2.27
Tomcat 5.0.28 (this version is required by a proprietary app we're using)

The problem
--
No matter what I try, I am unable to get Tomcat to see the value of
the http variable REMOTE_USER. It is _always_ null to Tomcat.

Everything else related to my Apache web server / mod_jk / Tomcat
setup is working properly. I can view all /jsp-examples. I can use our
proprietary web java app.

What I have tried

* For starters, I have confirmed using a perl script that REMOTE_USER
is indeed being set (following a couple different authentication types
- Basic and Shibboleth).
* I have set JkLogLevel debug in httpd.conf, and confirmed (by tailing
mod_jk.log) that mod_jk is passing REMOTE_USER and its value from
Apache web server to Tomcat.
* I have tried JkEnvVar REMOTE_USER in httpd.conf.
* I have tried JkEnvVar REMOTE_USER fake, JkEnvVar REMOTE_USER
bob, JkEnvVar REMOTE_USER %{REMOTE_USER}, etc., etc., etc., etc. in
httpd.conf.
* I have set both tomcatAuthentication=false and
request.tomcatAuthentication=false in Tomcat's server.xml and in
jk2.properties (and endless combinations of one or both in one or both
places).

I am out of ideas. None of the common fixes (that I've found anyway)
are working. Does anyone have suggestions on how to fix this problem?

-- 
Best regards -
Ryu Fan // rfano...@gmail.com

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



Memory Leak(?) causing tomcat to store 57610801 tomcat objects in ONE request

2009-01-09 Thread Leon Rosenberg
Hi,

I was recently hunting what I thought to be a memory leak in our
application. What happens is that the Old Gen Space is running full at
once and then tomcat freezes
because java is busy with Full GC all the time. I've managed to create
a memory dump shortly before the crash and the top5 looked like that:

14481362 instances of class org.apache.tomcat.util.buf.ByteChunk
14471293 instances of class org.apache.tomcat.util.buf.CharChunk
14464658 instances of class org.apache.tomcat.util.buf.MessageBytes
7113296 instances of class org.apache.tomcat.util.http.MimeHeaderField
7080192 instances of class javax.servlet.http.Cookie

Other classes looked as normal (I was making jmap histograms all the
time and comparing).

Now, the funny thing is that all that data was bound to ONE request. I
checked the manager status page previously and it showed only one
active request, but lasting more than 5 hours:

S18757746 ms0 KB0 KBXXX.XXX.XXX.XXX   www.site.com
POST /searchboxright.html?linkId=XXX|SearchBoxRight|NA| HTTP/1.1

By analyzing the dump I found that all MimeHeaderFields were in one
large array belonging to one response object, belonging to the
request, with remote ip equal to the XXX.XXX.XXX.XXX ip of the request
in the manager.

I understand that sicne the request lasted 5 hours all the data went
into old space filling it out and causing the problem, but HOW can it
actually happen that a response object contains 8.000.000 mime
headers?

regards
Leon

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



RE: Memory Leak(?) causing tomcat to store 57610801 tomcat objects in ONE request

2009-01-09 Thread Caldarale, Charles R
 From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com]
 Subject: Memory Leak(?) causing tomcat to store 57610801
 tomcat objects in ONE request

 HOW can it actually happen that a response object
 contains 8.000.000 mime headers?

Must be a very productive servlet...

Sounds like you've got a rather ugly (and probably infinite) loop in your 
webapp.  Might want to put a trap in org.apache.tomcat.util.http.MimeHeaders to 
catch generation of an excessive number of header fields.

There's an interesting comment in there:

/* XXX XXX XXX Need a major rewrite  
 */

 - Chuck


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

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



RE: REMOTE_USER is null to Tomcat

2009-01-09 Thread Martin Gainty

if you're fronting with Apache 2.2 WebServer you need to rewrite the 
environment variable REMOTE_USER and place on request to TC to allow TC to use 
getRemoteUser()

http://osdir.com/ml/apache.mod-auth-kerb.general/2005-10/msg9.html

HTH
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




 Date: Fri, 9 Jan 2009 14:55:36 -0600
 From: rfano...@gmail.com
 To: users@tomcat.apache.org
 Subject: REMOTE_USER is null to Tomcat
 
 Greetings all,
 
 Please NOTE: I want to mention that what I'm about to describe is
 apparently a common problem. I have thoroughly searched the
 tomcat-user mailing list archives and the google. I have attempted the
 many, many suggestions put forth (which I will describe in more
 detail), and this is still not working properly.
 
 My environment
 ---
 RHEL 4.7
 Apache httpd 2.0.52
 mod_jk 1.2.27
 Tomcat 5.0.28 (this version is required by a proprietary app we're using)
 
 The problem
 --
 No matter what I try, I am unable to get Tomcat to see the value of
 the http variable REMOTE_USER. It is _always_ null to Tomcat.
 
 Everything else related to my Apache web server / mod_jk / Tomcat
 setup is working properly. I can view all /jsp-examples. I can use our
 proprietary web java app.
 
 What I have tried
 
 * For starters, I have confirmed using a perl script that REMOTE_USER
 is indeed being set (following a couple different authentication types
 - Basic and Shibboleth).
 * I have set JkLogLevel debug in httpd.conf, and confirmed (by tailing
 mod_jk.log) that mod_jk is passing REMOTE_USER and its value from
 Apache web server to Tomcat.
 * I have tried JkEnvVar REMOTE_USER in httpd.conf.
 * I have tried JkEnvVar REMOTE_USER fake, JkEnvVar REMOTE_USER
 bob, JkEnvVar REMOTE_USER %{REMOTE_USER}, etc., etc., etc., etc. in
 httpd.conf.
 * I have set both tomcatAuthentication=false and
 request.tomcatAuthentication=false in Tomcat's server.xml and in
 jk2.properties (and endless combinations of one or both in one or both
 places).
 
 I am out of ideas. None of the common fixes (that I've found anyway)
 are working. Does anyone have suggestions on how to fix this problem?
 
 -- 
 Best regards -
 Ryu Fan // rfano...@gmail.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

_
Windows Liveā„¢ HotmailĀ®: Chat. Store. Share. Do more with mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009

Problems with disableproxyCache=false

2009-01-09 Thread Al Blake
We are running a java based application served on SSL by Tomcat 5.
Everything is working fine *except* for users who access the application
using IE as their browser. They encounter the well-known *bug* in IE
which causes downloads to fail over SSL if the server sends a no-cache
in the header. As many of our clients will use IE we have to disable
this.
I have found numerous posts that indicate that this is possible by using
the disableproxycaching=false directive in the server.xml file.
So this is what I am trying to doproblem is it doenst work.
When I include the code:

Context
Valve
className=org.apache.catalina.authenticator.NoLoginAuthenticator
disableProxyCaching=false/
/Context 

In server.xml tomcat hangs on startup. Comment the line out and
everything is fine and the application works - but the IE users cant use
the app(!).
I am *not* a Tomcat configuration expert so I am sure the problem is
with my syntax, or understanding of where the code should sit in the
server.xml file, or the interaction between the context directives that
are already there. I have been fighting this for several days now and
have gone through all the howtoos I can find - but they all show
snippets of code, rather than the directive withint he context of a
complete server.xml.

Anyway - if Ianyone can point out where I am going wrong that would be
great. My server.xml is below. Hope this isnt too long for the list.
Thanks
Al




Server.xml

Server port=8005 shutdown=SHUTDOWN_NOW
  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina
Connector port=8080
protocol=org.apache.coyote.http11.Http11NioProtocol
   maxThreads=500 connectionTimeout=6
   redirectPort=443 useBodyEncodingForURI=true /

 Connector port=443
maxThreads=150 connectionTimeout=6
scheme=https secure = true SSLEnabled=true
keystoreFile=/etc/security/servoy.ks
keystorePass=**
clientAuth=false sslProtocol=TLS /
Engine name=Catalina defaultHost=localhost

  Realm className=org.apache.catalina.realm.MemoryRealm /


 Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false
xmlNamespaceAware=false


Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common/

!-- disable the sending of no-cache in the headers so that IE can
download the java applet over SSL
When this is enabled tomcat hangs on startup...why?
--

Context
Valve
className=org.apache.catalina.authenticator.NoLoginAuthenticator
disableProxyCaching=false/
/Context 

Context path=/lib docBase=../../lib/
Context path=/plugins docBase=../../plugins/
Context path=/beans docBase=../../beans/
Context path=/lafs docBase=../../lafs/
  /Host
/Engine
  /Service
/Server


Re: REMOTE_USER is null to Tomcat

2009-01-09 Thread Ryu Fan
On Fri, Jan 9, 2009 at 7:36 PM, Martin Gainty mgai...@hotmail.com wrote:

 if you're fronting with Apache 2.2 WebServer you need to rewrite the 
 environment variable REMOTE_USER and place on request to TC to allow TC to 
 use getRemoteUser()

 http://osdir.com/ml/apache.mod-auth-kerb.general/2005-10/msg9.html

 HTH
 Martin

Martin, thanks for the reply. I am running Apache httpd 2.0.52 (not 2.2).

For the sake of posterity, I will post what the fix was. Maybe it will
save someone from banging his head against the wall when he runs into
the same problem.

As it turns out, my problem was with my httpd.conf configuration. I
had my authentication directives within a Directory object (i.e. the
directory for the web application). When I went directly to said
directory from a web browser, I was prompted for credentials. But if I
went directly to a web page a couple subdirs deep in that directory,
it let me in without authentication.

Hmm... So, I put my authentication directives in a Location object
instead, like so:
--
Location /my_webapp

  AuthType shibboleth
  ShibRequireSession On
  require valid-user

/Location
--


Note that the JkMount directive is simply:
--
JkMount /my_webapp/*.jsp ajp13
--


Voila. We are in business. This (along with the
tomcatAuthentication=no change needed in server.xml) is working
properly. My guess is the way I had it set up earlier did not show a
value for REMOTE_USER because I was running a .jsp in a non-Shib /
non-Basic / non-whatever-protected directory.

-- 
Best regards -
Ryu Fan // rfano...@gmail.com

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



Tomcat6 JSP refresh problem

2009-01-09 Thread Aegyssus

Hi,
I know that tomcat is not supposed to cache the output of jsp and servlets
but here is my issue:
Our website has several hundred JSP pages, many of them with dynamic
includes; when we modify a page that is more popular (accessed more often)
than others, the change will not be reflected. Less popular pages have no
problem to reflect the changes. It's definitely no browser cache issue as we
tested with various browsers and cleaned up the browser cache.
Development parameter is false and checkInterval is set to 5 for JspServlet.
I think it's worthy to mention that the pages have no problem to compile:
the JSPs are correctly transformed to .java then compiled to .class files. I
checked these files from scratch folder and the changes are correctly
updated. But the output does not change...
The only way to see the new content is to redeploy the application (or to
restart the server, or other brutal refresh way...) but this is not an
acceptable solution for us.
This issue happens since we've upgraded the Tomcat server from 5.0 to 6.0.18
on our Linux server. Also, we upgraded the JVM from JDK1.5 to 1.6...
So this is pretty much our problem. Does anyone know what is the root cause?
Any suggestion or comment will be highly appreciated.
Regards,
aegyssus
-- 
View this message in context: 
http://www.nabble.com/Tomcat6-JSP-refresh-problem-tp21385171p21385171.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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