Hi,
I am running a tomcat server running here. We have a servlet container
hosted in the server. The servlet is called from a java client program and
is working fine(http).
Then i following the instructions from the tomcat documentation page i
installed a self signed certificate. The site now sho
Do you have the option of reinstalling Tomcat5 - so that Tomcat5 would just
pick up java 5 and not have anything at all to do with java 1.4??
-Anoop
On 2/9/06, Letícia Álvares Barbalho <[EMAIL PROTECTED]> wrote:
>
> Hey,
>
> First of all thank you very much for the attention. I got some reading
Hi.
Just wanting to know if anyone can tell me in which version of Tomcat
the bug was fixed that allows you to enter in a URL like
http://domain.com/%3f.jsp and get a directory listing. I know it exists
in 3.2, just wondering which version it was fixed in.
Thanks,
Jo.
---
> From: Mark Demma [mailto:[EMAIL PROTECTED]
> Subject: Re: Using Tomcat over NFS over multiple hosts, want
> to separate locations of directories
>
> I can't for the life of me find anywhere that you can tell tomcat
> that it should look for it's whole [EMAIL PROTECTED]@ conf/ directory in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I think I have it, well, at least part of it... using the argument -
config $CATALINA_HOME/conf/server.xml allows it to start up, but
then if the CATALINA_BASE doesn't have a conf/ directory, it doesn't
work. I copied the conf directory from th
Just wanted to make sure you didn't have 1.4 .
Going out on a limb here, do you have allowlinking =true attribute set in
you context? It might be worth a try as some of your paths may appear as
links to Tomcat even if they are mounted volumes.
Doug
- Original Message -
From: "Mark
> From: Mark Demma [mailto:[EMAIL PROTECTED]
> Subject: Re: Using Tomcat over NFS over multiple hosts, want
> to separate locations of directories
>
> the problem is that anything I put into webapps barfs with the
> following, looking like it can't find any of it's libraries at /usr/
> dist/p
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
Mark Demma
Senior UNIX Systems Admin
PlanetOut Inc.
On 9 Feb 2006, at 19:49, Parsons T
"Alan Chandler" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thursday 09 February 2006 04:05, Bill Barker wrote:
>> "Alan Chandler" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
> ...
>> This works correctly in TC 5.x. You need to reverse the order for TC
>>
What version of java are you running?
- Original Message -
From: "Mark Demma" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Thursday, February 09, 2006 10:38 PM
Subject: Re: Using Tomcat over NFS over multiple hosts, want to separate
locations of directories
-BEGIN PGP SI
"Mickael Goujon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> We have a web application deployed under Tomcat 5.0 which uses a custom
> Realm for authentication. This custom Realm basically does a web service
> call using the user's credentials to authenticate with the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Well, I got tomcat running via NFS with these variables starting up:
(where /usr/dist/pkgs/... is a NFS mounted RO directory)
JAVA_HOME=/usr/dist/pkgs/java
CATALINA_BASE=/usr/local/tomcat
CATALINA_HOME=/usr/dist/pkgs/tomcat
LOG_HOME=/usr/local/log
I'm trying to re-word these two concepts in a more elegant way:
1) I'm looking for a way to use form based authentication - but unlike
with the current form login Realm, I need a way to intercept the persons
email address(s) (typed into the username field), so that I can convert
that into its
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thanx for the hints... what I still can't figure out is how to put
the /conf/ directory in CATALINA_HOME instead of CATALINA_BASE
or at least configure where it looks for it...
Mark Demma
Senior UNIX Systems Admin
PlanetOut Inc.
On 9 Feb
Hi All,
I have searched over and over to an answer to this question and I can't find
an answer anywhere. Basically if you have a rogue servlet or jsp page that
is taking a very long time to run either because of bad programming or
because of a problem with user abuse, is there is a setting to cap
On Wed, Feb 08, 2006 at 12:14:36AM +0100, Ed wrote:
> Yep, JSPs automatically create sessions (part of the JSP spec certainly).
>
> To turn session off
> put <%@ page session="false" %> in your JSP.
>
> Beware, that web frameworks such as struts may also create sessions for
> other purposes (eg,
Sycamore Days wrote:
> Follow the instructions here on tomcat's site:
>
> Every step is correct, ***EXCEPT*** for the Verisign link:
>For Verisign.com go to:
> http://www.verisign.com/support/install/intermediate.html
>
> That should be:
>
> http://www.verisign.com/support/verisign-inte
Thanks! It seems to be unanimous then, that for the purposes I need,
the listener is the way to go. That was my gut feel as well, but I
don't know enough of the internals of session handling to know why it
would be that way.
GB Developer wrote:
Well let's just think about that for a secon
Hello all,
I'm having a problem with a couple of my servers, whereby the last
modified date of an shtml file isn't being properly reported by the
LAST_MODIFIED variable, if server side includes are used in a
directory that is served by mod_jk / tomcat.
So, to break down the run-on sentan
Well let's just think about that for a second.
Filter:
a filter is called each and every time you make a web request. So even if
the filter is highly efficient, if you make 1000 requests in a session, you
(that is, the container) will invoke the filter's doFilter method 1000
times.
Listener:
A
The listener should get called only once, right? Whereas the filter will
get called for every matching URL (keeping in mind it does additional useful
things in my case...) and if checks to see if the session is new each and
every time.
I seem to recall an issue recently (can't find it in a quick
Thanks to both of you, Tim and Joey! I've tested them both, and either
one of these methods seems to work great for my limited needs.
I still have a question about performance: any idea which of these
methods (filter or listener) will use less cpu time when handling 50 to
100 simultaneous us
Hi,
Once in about 4-5 times I make a request to a page in my simple JSF
application deployed on Tomcat 5, I get this sort of message on the browser
- I am sure that I am not setting these messages anywhere in my application
or jsp's.
HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Co
Thank you for the clarification.
-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 11:38 AM
To: 'Tomcat Users List'
Subject: RE: Logging session timeouts
The filter, implementing HttpSessionListener, and binding itself to the
session, will be
The filter, implementing HttpSessionListener, and binding itself to the
session, will be called by Tomcat when the session is invalidated (all bound
values which implement HttpSessionListener will have their valueUnbound
method called.)
So, the filter is effective in that it won't miss any session
Joey Geiger wrote:
While the user can delete the cookie that is associated with the session,
the server will consider the session valid until it times out, as the user
is unable to end the session manually. If you add in a link/button that says
"Remove my session from server" and then have the a
While the user can delete the cookie that is associated with the session,
the server will consider the session valid until it times out, as the user
is unable to end the session manually. If you add in a link/button that says
"Remove my session from server" and then have the application invalidate
I don't believe so. Someone please correct me if I am wrong.
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 12:09 PM
To: Tomcat Users List
Subject: Re: Logging session timeouts
That got me going; thanks!
One more question:
Is there a
That got me going; thanks!
One more question:
Is there any way of telling if the session was actively invalidated, or
if it timed out? Looking at the docs for HttpSessionBindingEvent, I
don't see any differentiation between them. That's not a big deal, but
would be nice to have.
Dave
Tim
Cool; I'll give that one a try as well. Do you have any idea which one
is likely to give less of a performance hit in an environment of 50 to
100 simultaneous users, where everything is done in a session, and there
is no static content?
Dave
Joey Geiger wrote:
Here is the code I use, inst
> From: Marcelo Fukushima [mailto:[EMAIL PROTECTED]
> Subject: Environment Entry
>
> Another sily question: how do i retrieve these Environment Entries
> within an application? im using tomcat 5.5
There are examples here:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
- Chuc
Here is the code I use, instead of a filter, I use a listener so I don't
have to worry about setting urls.
This part is in web.xml
yourpackage.SessionListener
The majority of this code was found online (and I think came from
coreservlets.com)
package yourpackage;
import java.util.Date;
im
The error reported is:
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error: Only a type can be imported.
org.apache.commons.fileupload.DiskFileUpload resolves to a package
And the JSP page is:
<%@ page import="org.apache.commons.fileupload.DiskFileUpload
Setting a classpath will not work as tomcat doesn't use it. At least
that is what I have read and experienced. putting you stuff in the
CLASSPATH tomcat uses is a more likely scenario.
On my system I can only find it in one place:
/usr/local/server/webapps/manager/WEB-INF/lib/commons-fileupload
Add the following fragment to your web.xml:
SessionCountFilter
SessionCountFilter
SessionCountFilter
/*
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 10:56 AM
To: Tomcat Users List
Subject: Re
Another sily question: how do i retrieve these Environment Entries
within an application?
im using tomcat 5.5
thanks again
--
[]'s
Marcelo Takeshi Fukushima
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
actually, i could solve it without the context.xml, just adding the
tag, linking the global resource to the local
definition...
On 2/9/06, Marcelo Fukushima <[EMAIL PROTECTED]> wrote:
> oh sorry... im using 5.5, tough hans solved my problems, but thanks
> for listening...
> On 2/9/06, Glen Mazza
(Sorry if this message is repeated - not sure my messages are reaching
the list)
Version 5.5.15
Tomcat is not finding libtcnative-1.so, it is located in the
java.library.path and permissions are good.
Nothing seems to be wrong with the library:
app1:/usr/share/tomcat/bin # ldd libtcnative-
I got your code in, and it compiles, but I don't understand how I
configure the url-mapping you refer to. Could you point me to some docs
for that? I looked through the web.xml files (both the server one, and
the one for the app), but couldn't find anything about url-mapping or
filters that s
> From: Marcelo Fukushima [mailto:[EMAIL PROTECTED]
> Subject: Re: starting with JNDI
>
> #1 solved my problem quite right... tough, i couldnt find the
> context.xml in the documentation whatsoever
It's here:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
This is reached from t
Hey,
First of all thank you very much for the attention. I got some reading about
it and found the jars [jaxp_parser_impl].jar and [xml-commons-apis].jar
under /usr/share/tomcat5/common/endorsed
I renamed them (so they could not be found) and restarted the server (the
computer, I mean). Still, did
oh sorry... im using 5.5, tough hans solved my problems, but thanks
for listening...
On 2/9/06, Glen Mazza <[EMAIL PROTECTED]> wrote:
> Perhaps best to give the version of Tomcat you're using.
>
> Glen
>
> Marcelo Fukushima wrote:
> > Hello guys... its gonna sound really stupid, but i cant seen to
;O)
Yeah, this is missing in the documentation. I needed two hours to solve this
whole problem. Hopefully you didn't waste so much time.
You could also add this context.xml to a certain folder in Tomcat. I don't
know which one at the moement but it seems there is a problem if you do this
so it se
Perhaps best to give the version of Tomcat you're using.
Glen
Marcelo Fukushima wrote:
Hello guys... its gonna sound really stupid, but i cant seen to
configure JNDI to work (either global and context bound)...
im getting this exception, wich sugested that something was wrong,
maybe in the ser
thanks man!
#1 solved my problem quite right... tough, i couldnt find the
context.xml in the documentation whatsoever
On 2/9/06, Hans Sowa <[EMAIL PROTECTED]> wrote:
> Hi
>
> I hope I had the same problem ;O)
>
> My server.xml was correct but I did following steps to solve this problem:
> 1.
Hi
I hope I had the same problem ;O)
My server.xml was correct but I did following steps to solve this problem:
1. I created a context.xml in my META-INF Folder. With this content:
2.I guess you have a correct web.xml but anyway:
In the web.xml you need this lines.
xxxblablbaxx
Hello guys... its gonna sound really stupid, but i cant seen to
configure JNDI to work (either global and context bound)...
im getting this exception, wich sugested that something was wrong,
maybe in the server.xml sintax or something, but even the tomcat
manager cant make it work:
Cannot create
We rotate the catalina.out file using the logrotate program on linux. The
rotation is based on file size - 10 Meg limit. We use copytruncate with
compression and maintain 14 rotated files before overwriting the oldest.
The following is a logrotate script that is placed in the /etc/logrotate.d
> From: Letícia Álvares Barbalho [mailto:[EMAIL PROTECTED]
> Subject: Problem with Tomcat and Java versions
>
> I was using java 1.4.2 here, and recently migrated to java 1.5.
> Unfortunately, something probably is missing, 'cause I'm
> having problems with Tomcat.
You don't say what Tomcat ver
Ugh, sorry I pasted and mailed the wrong link...
The example posted by Tim Lucia is good.
>>I was hoping for something a little simpler to implement into my app for
>>just logging a user timing out
Just look at the code and use it as a base and modify what you need.
-Original Message-
I was hoping for something a little simpler to implement into my app for
just logging a user timing out (something like a HttpSession.timeOut
event), but I will definitely have a use for the high water mark
functionality in the not-too-distant future.
Thanks!
Tim Lucia wrote:
Below is a fi
Session Listeners
http://pdf.coreservlets.com/CSAJSP-Chapter9.pdf
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 8:38 AM
To: Tomcat Users List
Subject: Logging session timeouts
Is there any way of trapping session timeouts, so I can log
Below is a filter which keeps track of how many sessions are attached to a
web app. The key part is the HttpSessionBindingListener interface.
Tim
/**
* J2EE "Filter" to count page hits. What it counts depends on the
url-mapping
* in web.xml.
*
* @author tim.lucia
*/
public class SessionC
On Thursday, 9 בFebruary 2006 16:30, Boris Unckel wrote:
> > Guys, how can I setup log4j with a context specific configuration
> > file ?
> >
> > In the past I used to put a global log4j configuration in the
> > system classpath for the tomcat, but that is no longer appropriate
> > in my current se
Is there any way of trapping session timeouts, so I can log them? I am
logging when a user logs in and when they explicitly log out, but would
like to log when their session times out, if that is possible.
TIA!
Dave
-
To un
This is trivial if you only introduce log4j.jar in each web app.
If you share log4j.jar across web apps, then you have some
LoggerRepositorySelector coding ahead of you. This is easy enough via
JNDI context for cases where the contextual classloader is set for you
by Tomcat, but in other case
> Guys, how can I setup log4j with a context specific configuration file ?
>
> In the past I used to put a global log4j configuration in the system
> classpath for the tomcat, but that is no longer appropriate in my
> current setup.
>
Hi,
remove any log4j.jar and log4j.properties from your gl
Guys, how can I setup log4j with a context specific configuration file ?
In the past I used to put a global log4j configuration in the system
classpath for the tomcat, but that is no longer appropriate in my
current setup.
--
Oded
::..
"Who the hell wants to hear actors talk?"
-- H.
I have send this mail to another mail list, but have no reply yet. I have
wasted much time in
this problem, please help.
Does MySQL5.0.18 suport XA in Tomcat 5.5 ? I do a XA test in tomcat with only
one jsp file and
necessary jars. The jsp is as:
-
<
Hi,
I have following error message
Error Message
Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/SSLContext
at
org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSoc
ketFactory.java:469)
at
org.apache.catalina.net.SSLServerSocketFactory.initialize(SSL
Hello everyone,
I was using java 1.4.2 here, and recently migrated to java 1.5.
Unfortunately, something probably is missing, 'cause I'm having problems
with Tomcat.
When I turn on the computer (that has tomcat on it), if I open the browser
and try to access a web application built on java 1.5, i
your commons-fileupload.jar should go in your webapp's WEB-INF/lib directory
Mir Kasim Ali a écrit :
>The problem was for package called org.apache.common.fileupload but
>when I put the jar file for above package in the C:\Program
>Files\Apache Software Foundation\Tomcat 5.5\common\lib directory
The problem was for package called org.apache.common.fileupload but
when I put the jar file for above package in the C:\Program
Files\Apache Software Foundation\Tomcat 5.5\common\lib directory still
it causes differnet error.The error now is...
root cause
javax.servlet.ServletException:
org/apach
Hi Mir,
The problem is because your using <%@ page import="" %> multiple
times...
Use only once like <%@ page
import="org.apache.commons...,org.apache." %>
Use commas to separate each importI think then it should work
fine.:-).
Regards,
Awaneesh
-Original Message-
Fro
Hi Mir,
The problem is because your using <%page import="" %> multiple
times...
Use only once like <% page
import="org.apache.commons...,org.apache." %>
Use commas to separate each importI think then it should work
fine.:-).
Regards,
Awaneesh
-Original Message-
From
I am getting following error
*
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Only a type can be imported.
org.apache.commons.fileupload.DiskFileUpload resolves to a package
Generated servlet error:
Only a ty
Hi,
We have a web application deployed under Tomcat 5.0 which uses a custom
Realm for authentication. This custom Realm basically does a web service
call using the user's credentials to authenticate with the web service
server (basic WS-I username/password authentication).
If the web service
Hi all!
in org.apache.catalina.realm.GeneralPrincipal I've found the following code:
public Principal getUserPrincipal() {
if (userPrincipal != null) {
return userPrincipal;
} else {
return this;
}
}
Could anybody explain me the reason why
This email may contain confidential or privileged information for the
intended recipient(s) and the views expressed in the same are not
necessarily the views of Zensar Technologies Ltd. If you are not the intended
recipient or have received this e-mail by error, its use is strictly
prohibit
> There are any form of change the loading order or i
> would need reinstall apache.
Re-intalling will do you no good. You'd still end up
with the same Apache. Re-building it, would, but that
can be quite a task. Finding a newer version,
differently compiled, might also be a good idea.
Anyway, I'
Hello guys!
I have a question.
I instaled a jre in a flash memory, and a Tomcat server too. But I don't
know how to start it directly, not like a Windows service. The Tomcat
installed is a Tomcat 5.5. It only runs like a service, but I need that
Tomcat to make some presentations of our web applica
you may try to manually run tomcat via a script, that may help you to assign
tomcat variables seperately
i run tomcat via a script (guistart.sh) containing that
CATALINA_HOME=$ARGELA_RUN_HOME/SANE_GUI_WEB/tomcat
export CATALINA_HOME
cd $CATALINA_HOME/bin
java -Dcatalina.base=$CATALINA_HOME -Dcatal
72 matches
Mail list logo