hi all,
I recently downloaded Tomcat 5.5.4 and installed it
in my windows machine.
When I tried this http://localhost:8080/adminI got a
message that the admin is not provided and i have to download it
seperately
I downloaded the zip file for the admin and it had
two folders conf and
I have answered one of the points below myself with more testing:
HttpSessionActivationListener#sessionWillPassivate seems to work slightly
different to the other Listeners in that its methods are only called when
they are an object bound to the session is an instance of the
From: Susan Hoddinott [mailto:[EMAIL PROTECTED]
I am wondering what the best way to avoid display of an
ftp URL is when redirecting to an ftp location.
Are you redirecting the user's browser to that location, or are you
wanting to obtain content from that location to send to the user's
It says you have attempted to forward after a response has been commited.
Can you post some code related to this error ?
On Thu, 9 Dec 2004 12:15:12 -0700, Chris Cherrett
[EMAIL PROTECTED] wrote:
java.lang.IllegalStateException: Cannot forward after response has been
committed
is the error
Hi,
Unzip the admin distro to your $CATALINA_HOME. It'll create
server/webapps/admin and conf/Catalina/localhost/admin.xml. The admin.xml file
should NOT go just in conf.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: VTR Ravi Kumar [mailto:[EMAIL PROTECTED]
Sent:
On Friday 10 December 2004 15:25, Venkat Radha Venkataramanan wrote:
Can somebody suggest a good book on Tomcat for beginners?
The one that I use daily is called: Tomcat 5 Unleashed.
It is published by SAMS and is one of the most comprehensive reference guides
for Tomcat that I have found to
Hi,
You could also try forwarding (RequestDispatcher) from your servlet to
the FTP resource, rather than redirecting. The servlet's address will
remain in the browser's address bar.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Susan Hoddinott [mailto:[EMAIL
Hi experts:
I must say that I've got a little experience using digester for XML
configuration files, but now I must populate some beans for a interface between
systems and it's really quite diferent.
I've also read about converters and my doubty come's just at that point.
Let me explain it.
Without knowing what you are transferring or if you are transferring in Passive
or Active or if there are Proxies setup you can use Sun's FTPClient
sun.net.ftp.FtpClient
Knowing these limitations
a.. the FtpClient class is unsupported by Sun (even though it works, they
could modify or remove
Hi,
Thank Yoav very much.
I will report my ending for the problem.
Li Zhenxing
No problem, I'm glad to help. These are the interesting problems, to me
at least. Especially when the person working on them seems to have a
good grip on things, like you do. I look forward to seeing your results
You are on the wrong list. Digester resides in Jakarta Commons.
Oliver
On Fri, 10 Dec 2004 10:38:31 -0300, Leonardo Larraquy
[EMAIL PROTECTED] wrote:
Hi experts:
I must say that I've got a little experience using digester for XML
configuration files, but now I must populate some beans for a
Hi,
Tomcat is not throwing that exception just because it feels like it. An
instance of that class must be reachable in the serialization process of
at least of the session attributes.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Steve Kirk [mailto:[EMAIL
Shapira, Yoav said:
(What's not fine is using Tomcat v4.1.3 -- bad and ancient version, and
you should upgrade when you get a chance).
Why is this a bad version? What bugs are not possible to live with? What
about Tomcat 3.2.1?
Isn't it enough (in both cases) that one also keeps third party and
Hi,
I have an app that must wait for a return from another machine that
will
send an
asynchronous message. I go into a while loop where I put the current
thread
to
sleep for 1000 mills. several times.
Yikes ;( I hope you realize that fragility of this design, given that
J2EE apps (which
Hi,
Why is this a bad version? What bugs are not possible to live with?
What
For me, numerous. For you, maybe none.
about Tomcat 3.2.1?
Isn't it enough (in both cases) that one also keeps third party and
homemade libraries at the latest compatible version?
It's enough until you run into a
Hi,
my custom class I use pageContext.getRequest().getLocalAddr(), it
always
answers localhost address of 127.0.0.1, but the request and response
are going to an outside machine on a private 192.x.x.x address.
Request#getLocalAddr doesn't have anything to do with the remote
machine. Why would
Robert S. Harper
801.265.8800 ex. 255
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
I have an app that must wait for a return from another machine that
Yikes ;( I hope you realize that fragility of this design, given that
J2EE apps (which includes Servlet
I believe it's because they were trying to figure out whether they had a
new session because the old one expired or because they just hit the
site for the first time. In either case the session would be new.
On Fri, 2004-12-10 at 10:11, Phillip Qin wrote:
I am curious why people spent so much
Yeah, that's my point.
-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: December 10, 2004 10:19 AM
To: Tomcat Users List
Subject: RE: How to detect expired session vs. no session? (Solved)
I believe it's because they were trying to figure out whether they had a new
Here is our configuration:
Windows Server 2003
Apache 2.0.49 (Win32) mod_ssl/2.0.51 OpenSSL/0.9.7d DAV/2 mod_jk/1.2.6
Tomcat 5.5.4
sun jdk 1.5.0-b64
We have a 2 node tomcat cluster each running with the -Xms128m
-Xmx1024m options. We have the following thread options set in the
AJP/1.3 connector:
Following a few post about being off topic, I leaning towards that this may
end up OT.
Try a few test:
Compare:
http://203.192.197.197:8080
http://127.0.0.1:8080
http://localhost:8080
http://www.yoururl.com:8080If you have a url.
You might also try back stepping to a 1.4 JDK as a test.
Are
Hi,
Do you need JMX request registration? If not, turn it off by setting it
to false in the configuration file. That'll save you some memory by
itself.
Your OOME is the root cause, so if you fix that the hundreds of others
errors will likely go away. The OOME, in turn, is probably caused not
Have you looked at Doug Lea's stuff? I personally would never have a
server thread wait on anything from another thread. The idea of two
threads running together makes little sense where one is just waiting.
This may seem too strict, but I follow it to the letter.
Jack
On Fri, 10 Dec 2004
Funny where is the ROOT context the only context available
is the one that I defined.
I know that if I re-enable the Coyote HTTP/1.1 Connector and
disable the Coyote/JK2 AJP 1.3 Connector then the ROOT context
implicitly works otherwise it doesn't whe I try to bring it up in my URL
I've just installed Tomcat 5.5.4. I also downloaded the separate Tomcat
Administration application. But when I click the Tomcat Administration
button I still get the message saying the web application is no longer
installed by default. From the Tomcat manager it says that application
'admin' is
Hi,
My question is this: Can I force all traffic coming through port 80 to
web-app1, 8443 to web-app2 etc...???
Yes.
I believe the answer may lie with using a customised valve, but have
found
no examples of this.
There are a number of ways you can do this, a custom valve being one of
the
Kelly, Steve wrote:
I've just installed Tomcat 5.5.4. I also downloaded the separate Tomcat
Administration application. But when I click the Tomcat Administration
button I still get the message saying the web application is no longer
installed by default. From the Tomcat manager it says that
expireSessionsOnShutdown=false - on shutdown - expire sessions locally, but
do not propagate to the cluster
expireSessionsOnShutdown=true - on shutdown - expire sessions locally, and
propagate to the cluster
stupid name for the variable, I agree
- Original Message -
From: Christoph
the original question, which Jospeh indicated is now solved, threw up more
questions. at least that's why I was replying !
-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Friday 10 December 2004 15:12
To: 'Tomcat Users List'
Subject: RE: How to detect expired
Hi,
Did you restart Tomcat after unzipping the admin distro? Did you set up
a user for the admin app in tomcat-users.xml?
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 12:10 PM
To: [EMAIL
I am not familiar with Doug Lea or any of his opinions. I do not have direct
control of the threading of the RMI communication. The RMI method calls are
asynchronous and I have to wait for the return message before I can produce the
display content. I have not gone too deep into JMS to make it
Thanks for the quick reply!
How can I turn off JMX request registration? I tried to find it in the
Tomcat documentation, but all I could find was the MBean Descriptor How
To which wasn't very helpful. I doubt that we need it.
I will look into the resource problem. I doubt that we're running out
Steve Kirk wrote:
By default:
1. getSession(true)!=null
2. getSession(false)!=null
But if a JSP page contains the tag %@ page session=false %, then:
1. getSession(true)!=null
2. getSession(false)==null
In the last of these 4 cases, do you mean that the implicit JSP session
object returns
The behavior of getSession(false) also depends on whether you're
calling it from within a standard Servlet or calling it from the
Request passed to a Stuts Action. getSession(false) always returns
null if a valid session is not associated with the current request
(whether or not the client sent a
Forgot to mention that we are using Sun's JVM 1.4.2_06 on Linux (Debian
3.0r2, Kernel 2.6.4, i686 with NPTL threads enabled) using a Xeon system.
At 11:18 AM 12/10/2004, Brad Neuberg wrote:
Hi everyone. Over at the company I work for, Rojo, we've been having a
variety of Out of Memory (OOM)
In the last of these 4 cases, do you mean that the implicit
JSP session
object returns null, or that request.getSession(false)
returns null? I
could understand the first behaviour but would be surprised
by the second.
actually forget I said that, I made a mistake,
You are of course right ;) I was just experiencing temporary blindness.
I had overlooked an underlying grandparent class of my User class which was
in the Session; the grandparent contains a reference to its creator, which
is the culprit mentioned in the Exception. This in itself is a nasty
Hi,
1) If you have a large scale web application with many JSP files, or an
application that will generate a large amount of reflective objects (if
it
is using Hibernate for example), the default Permanent Generation and
Max
Permanent Generation settings on the JVM are not sufficient. By
OR
I could just make an NEW Host ex:
Host name=www.mycompany.com ...
...
Aliasmycompany.com/Alias
...
/Host
and build and explicit *|appBase|* to tomcat/webapps.
What you think???
That would work the same??
Laconia Data Systems wrote:
This from David Brown concerning ROOT.WAR
the ROOT
Yeah. Restarted tc. Users created but I don't even get as far as it
asking me to login as an admin user before I get the message telling me
to download and install the admin package, which I already did.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 10 December
Wade,
Forgive me but I'm a novice at this stuff. How can I modify the link ?
The context name is 'admin' but when I key in
http://localhost:8080/admin I get the same message telling me to
download and install the separate admin application.
Steve.
-Original Message-
From: Wade
Hi,
Glad you've solved it. An extra tip on this issue: the commons-lang
(http://jakarta.apache.org/commons/lang/) SerializationUtils class is
useful in quickly testing whether a complex object graph can be
serialized or not. I use it every now and then and it's been great.
Hopefully you or
Did you simply extract the .zip file into your Tomcat 5.5.4 install
directory?
The .zip has a file path of jakarta-tomcat-5.5.4\, but the default
installation directory is Tomcat 5.5\
So if you simply extracted the zip into your install directory, look for
a directory named jakarta-tomcat-5.5.4
On Fri, 10 Dec 2004 08:22:12 -0400, Peng Tuck Kwok
[EMAIL PROTECTED] wrote:
It says you have attempted to forward after a response has been commited.
Can you post some code related to this error ?
yes here's the code involved with the problem (at least this is the code
that's giving the error.
Hi all,
I'm running Tomcat 5.0.30 on FC2 with SUN 1.4.1_02 jdk
I'm having this strange problem, I can not access any jsp or servlet
pages using a browser, it seems to be timing out, but telnet to the
port tomcat is listening then type GET ... works. I can see the
directory structure and regular
I am having this wired problem driving me crazy.
I am using JSTL and Tomcat 5.0.30.
Some times for unknown reason the JSP expressions are displayed as string
for example
The following command
c:out value=${fn:escapeXml(param.code)}/
will display the expressions
On Fri, Dec 10, 2004 at 08:50:00AM -0500, Shapira, Yoav wrote:
: The danger with these books is that Tomcat's development
: pace is faster than the book publishing pace, so any Tomcat-specific
: parts in them are subject to change. (Stuff that's portable, i.e.
: designed and written to the
Can anyone point me to where there can be resource on which preferred
versions of JVM to use with Tomcats 5.0.28 and 5.5.4?
Cheers,
Hari
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
We're going to have to get low level on this
In other words we need to know whats wrong before offering diagnosis
We can diagnose this problem with tcpdump available at
http://www.tcpdump.org/
example:
tcpdump src host YangXiao.com and port 80
this will give you every incoming/outgoing packet
I'm running Tomcat 5.0.30 on FC2 with SUN 1.4.1_02
jdk I'm having this strange problem, I can not
access
any jsp or servlet pages using a browser, it seems
to be timing out, but telnet to the port tomcat is
listening then type GET ... works. I can see the
directory structure and regular
Hi,
I use jakarta-tomcat-5.0.19 and Apache HTTP Server 2.0.49. I am having
problem displaying static resources such as gif. When I have gif in the
HTML, not only it doesn't display the gif, the page also doesn't wait
for user input. The page gets displayed and continues back to the servlet.
I
Hello,
Looks like you need to read an overview of how web based HTTP
technology works. Essentially, in the typical and simple case, a
request holding name/value pairs in a request object,
HttpServletRequest in your case, and other information from the client
makes a request and then your
Hi Jack,
Thanks for your response.
I understand how HTTP technology works. I have a working application
with a Form with form elements including a button. When I do not have a
gif in the HTML, the behaviour is what is expected of HTTP. In other
words, the displayed page waits for the user to
Dear friends,
I too face the similar problem and one more thing i noted that
inside the admin contect all folders except the WEB-INF seem to be empty
probably there is some mistake in the files kept for download or so...
VTR
- Original Message -
From: Kelly, Steve [EMAIL PROTECTED]
To:
Ram,
Are the images served out ok on other pages?
As a test can you serve out a static page from the same folder the gif is
in?
When you say it is making the round trip, please explain what or how you
know this.
Is it possible that when you see the round trip, you are actually seeing the
Hi Doug,
Response inline
Thanks...Ram
Parsons Technical Services wrote:
Ram,
Are the images served out ok on other pages?
Images are not being served at all in any page.
As a test can you serve out a static page from the same folder the gif
is in?
In fact, I brought up the Tomcat index.jsp
Doug,
This is what I did. I stopped Apache; I don't that made any difference.
I was the application on port 8080 anyways. I put a static HTML page in
the same directory as the image (and tried it from the ROOT directory as
well). When I access the html (http://localhost:8080/image/test.html or
Hi Steve,
I am jumping into this discussion rather late and I am probably not going to
answer any of your questions. I just would like to add that I examined the
session persistence and listeners topic also very deep some weeks ago. After
all I found it not really practical because the servlet
This is probably the bug you're talking about.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29521
On Fri, 2004-12-10 at 04:19, Steve Kirk wrote:
I have answered one of the points below myself with more testing:
HttpSessionActivationListener#sessionWillPassivate seems to work slightly
Ben Souther said:
This is probably the bug you're talking about.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29521
Aha. Thanks Ben. That clears up most of it in one go.
So it was fixed in 5.0.29 but as far as I can see (from the Jakarta news
page and the TC download page) there
INFO: Cannot serialize session attribute LOGGED_IN_USER
for session 58FD0ECF29BDCEB9DC096C5DF57A1DCC
java.io.NotSerializableException:
core.servlet.processor.SubmitLogin
at
is certainly *not* the class of any object stored in the
session - I have
Do you have a reference to it in
no. I've checked this by adding more debug code to my SessionLogger class
(which implements all the Listener interfaces). Every time a session event
is fired, my listener code lists all the session attribute names and values
to the log. So when I shutdown TC, the log output looks like this:
Can somebody suggest a good book on Tomcat for beginners?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
There are a number out there: search amazon.com for apache tomcat and
you'll see. The danger with these books is that Tomcat's development
pace is faster than the book publishing pace, so any Tomcat-specific
parts in them are subject to change. (Stuff that's portable, i.e.
designed and
Hi,
-Our consultant-designed website consists of approximately 5000 JSP
pages. None of these pages pull from a backend, the java was merely
used to provide a persistent border.
Are these JSPs precompiled?
-Max heap size is set to 1850 megs, (which from what I understand is
the
max on a 32-bit
Hi,
I do not directly spawn a thread. If you know of an event library for
this
version of the JVM, I would be happy to use that because I think things
run
more efficient and the code looks cleaner.
There are numerous, depending what you're looking to do. JMS might be a
good candidate for this
I am curious why people spent so much time trying to figure out whether
request.getSession(...) returns null or not but didn't bother using
request.getSession().isNew()?
-Original Message-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: December 9, 2004 4:36 PM
To: 'Tomcat Users List'
Software Installed
--
jakarta-tomcat-5.5.2
Windows 98SE
IE6.0SP1
Requirement
---
I have a Tomcat Server
It is running properly.
I mean if it is surfed from the machine where the
Server is running
If I access this website from other machine in the
Internet
If I remember correctly (I toss out older messages) this was already
known because of a null reference to an object bound to the session.
On Fri, 2004-12-10 at 10:21, Phillip Qin wrote:
Yeah, that's my point.
-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent:
I've just hit the same problem (with Tomcat 5.5.4).
antiJARLocking/antiResourceLocking didn't help. I tried to set 1 of
those attributes to context on appplication level (in meta-inf
directory) as well on global level (in context.xml in tomcat/conf
directory).
Does anyone know if there is a
I've developed a webservice running in axis on jboss 3.2.6 / tomcat5.
Everything works fine. Our test server uses apache as the webserver.
When I put the application on the test server I get the following
error:
(400)No client certificate chain in this request
I know that the client
This from David Brown concerning ROOT.WAR
the ROOT application context is
actually a docBase defined in server.xml. and, this is the /examples
webapp that lets u see the tc documentation and other usefull stuff online
w/o directory references. in the long run u r much better off creating u own
Hi
I am running tomcat 5.0.25 and jdk1.4.2 on winxp
On it I have different 3 different connectors, on ports 80, 8443, and 443..
In addition I have 3 contexts or web-apps
My question is this: Can I force all traffic coming through port 80 to
web-app1, 8443 to web-app2 etc
???
I believe the
Hi everyone. Over at the company I work for, Rojo, we've been having a
variety of Out of Memory (OOM) issues. We have found some fixes that might
be useful for other developers; at the same time we are still struggling
with some classes of OOM issues as well.
We've had several different OOM
On Fri, 2004-12-10 at 14:18, Steve Kirk wrote:
You are of course right ;) I was just experiencing temporary blindness.
I had overlooked an underlying grandparent class of my User class which was
in the Session; the grandparent contains a reference to its creator, which
is the culprit
On Friday 10 December 2004 19:11, Robert Harper wrote:
I am not familiar with Doug Lea or any of his opinions.
He's the author of the book Concurrent Programming in
Java (Addison-Wesley) and the concurrency library that has in J2SDK 5
become java.util.concurrent.
I do not have
direct
James,
I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory.
Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to
Yang,
Give us some history. Is this a new build? Did it work before? With another
app? Are the default components working? Can you get to static content?
Doug
- Original Message -
From: Yang Xiao [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 10, 2004
Hi,
yes I already did know what this parameter means (though I only realised
it after reading the source code ;), so the behaviour I described makes
probably sense in this context.
But my concern is the following:
If a cluster completely fails, i.e. all nodes on the cluster crash
(which is not
Are the images served out ok on other pages?
Images are not being served at all in any page.
This makes me think you have a configuration issue that is pointing all
content to your servlet other than *.jsp.
Have you tried running Tomcat without Apache? And is there a reason you need
Apache?
If
Asim Alp [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thanks for the quick reply!
How can I turn off JMX request registration? I tried to find it in the
Tomcat documentation, but all I could find was the MBean Descriptor How
To which wasn't very helpful. I doubt that we need
81 matches
Mail list logo