Hello
I have a problem with my Tomcat and Apache2 with mod_jk2.
I bacame error logs from the Tomcat:
Can anywhere hepl me?
Lennart Mordek
[Thu Nov 04 11:38:54 CET 2004] Nov 4, 2004 11:38:54 AM
org.apache.jk.common.ChannelSocket processConnection
[Thu Nov 04 11:38:54 CET 2004] SEVERE: Error,
Hi
having written an application that ran fine on Tomcat 5 I am having to
regress it to run on Tomcat 4.1 running on Windows. part of the
deployment involves setting up database pooling.
First of all I deployed my application war only and started Tomcat using
catalina start this worked ok, but
When I try running Tomcat from the DOS prompt by typing 'tomcat start', I
see the SEVERE Error message: Address already in use:JVM_BIND:8080. I know
I am running IIS on port 80, but I want to keep the same port it runs on,
and manually start Tomcat when I need it.
Why can't I get it to work?
this means you are running other software on Tomcat's default port 8080. This may
either be another tomcat? or some other process.
Load a command prompt and type
netstat -an
this will show you if anything is listening on 8080. There is also a tool
the address already in use error indicates that the port is already in use
by another service (probably IIS from what you've said). you can't have two
services on the same port. stop IIS and check that IIS does not still have
hold of port 8080. use netstat -a at the dos prompt to check.
Hi,
If there is a memory leak in our application, tomcat or java, what are
the
symptoms I should look for.
Will the heap usage (shown by visual GC, optimizeit etc) keep growing
and
eventually reach the max limit set using -Xmx option to java?
Yes, the heap will keep growing and eventually reach
Hi,
1. How do I stop the window started my Catalina from disappearing so I
can see what the problem is.
Use catalina.bat run instead of startup.bat (which calls catalina.bat
start).
2. In Tomcat 4.0 can I have a config file for my application rather
than
adding it to server.xml
No.
3. I am
I'm working on a virtual learning environment. It's essentially one
huge webapp. We don't want to manage files on the physical filestore;
instead, we want to use our own virtual filestore, for reasons too zany
to go into.
Is there a way of setting eg. an appBase or a docBase so that it points,
Harry Douglass, Jr. wrote:
Hello,
I am trying to install Apache Tomcat to run JSP and servlets for the first
time. When I type in this URL 'http://localhost:8080/' Windows XP prompts
me for a username and password. I typed in both the username 'admin' and
blank password and a custom username
Thanks very much all working, the problem was I had removed docbase
paramter not hinking it was needed because the code was hosted directly
under webapps.
BTW username is correct in TC4.
My context is privileged just because I copied it from somehwere else
without knowing what it meant, no
I believe that if your servlet is /mywebapp/myServlet and your user accesses
/mywebapp/myServlet/iwant/this/file, the iwant/this/file part is available
as the request parameter getPathInfo() and you can do what you like with
that - access a database, access any filesystem to which you have access,
Hi,
this did not have any takers the first time so I am trying to see if I will get a
response this time
I keep getting the following messages popping up in the win2k applications log with
event id 2
- Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error
12
From: Steve Kirk [mailto:[EMAIL PROTECTED]
I believe that if your servlet is /mywebapp/myServlet and
your user accesses
/mywebapp/myServlet/iwant/this/file, the iwant/this/file
part is available
as the request parameter getPathInfo() and you can do what
you like with that - access a
Hi everybody,
I have installed tomcat 4.1.24, apache 2.0.47, jdk 1.4.2 and
mod_jk2-2.0.43 in a Sun Solaris 8 machine. Everything have worked more or
less ok since today that the system crashed !!!. I got the
following
error messages in the apache error_log file:
[Thu Nov 04 08:32:56 2004]
Hi,
Just to get this straight... can I write a servlet that dynamically
takes a request and re-maps the target? I'd expected to be able to do
that with a valve, but hadn't expected to do so with a servlet. A
pointer to the appropriate docs would be much appreciated!
Steve probably had a
Nevermind I figured it out.
Just needed to add this in the Host in conf/server.xml:
Context path= docBase= debug=1/
Doesn't make a lot of sense but it did the trick.
John
Hello Im running tomcat5 with mod_jk2, apache 2 and RH FC01
Im having trouble getting servlets to work under mod_jk2
I kept these messages too although I only installed Tomcat 5. It happened in
Tomcat 4.1 as well.
-Original Message-
From: Clara Ines Pena de Carrillo [mailto:[EMAIL PROTECTED]
Sent: November 4, 2004 9:21 AM
To: Tomcat Users List
Subject: mod_jk error flushing ...
Hi everybody,
I
On Thu, 4 Nov 2004, Phillip Qin wrote:
I kept these messages too although I only installed Tomcat 5. It happened in
Tomcat 4.1 as well.
ok, thank you. I will try to change my tomcat version.
Clara
-Original Message-
From: Clara Ines Pena de Carrillo [mailto:[EMAIL PROTECTED]
Hi,
Is it possible to save sessions info, so when Tomcat restarts all
previously active sessions will be loaded.
I'm trying to prevent user's re-login when Tomcat goes down for short
period (5-15 minutes) of time.
Thanks,
Mark
__
Do you
Sorry, typo. I mean I got these messages too since I started using Tomcat
4.1 and now Tomcat 5.
-Original Message-
From: Clara Ines Pena de Carrillo [mailto:[EMAIL PROTECTED]
Sent: November 4, 2004 9:59 AM
To: Tomcat Users List
Subject: RE: mod_jk error flushing ...
On Thu, 4 Nov
Hi,
Tomcat persists and reloads sessions on restart by default. And the
default session timeout is 30 minutes. So you shouldn't have to do
anything.
Check out the Manager configuration reference (not the Manager webapp)
for more details and settings you can modify in this area.
Yoav Shapira
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Steve probably had a Filter in mind, not a regular Servlet. While
higher in portability (but further down the execution pipeline) than a
Servlet, a Filter can be used to redirect requests and responses as
needed. A Valve is very similar to a
Hi,
Under tomcat 5.0, what is the best way to configure logging
for commons-DBCP? Can this be done using log4j?
Cheers,
Nick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Under tomcat 5.0, what is the best way to configure logging
for commons-DBCP? Can this be done using log4j?
You have to do it programmatically, using BasicDataSource#setLogWriter.
This is the only logging supported by DBCP right now. It's tricky to
mix it with other logging such as that
Thanks Yoav.
-Ursprungliche Nachricht-
Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 4. November 2004 16:39
An: Tomcat Users List
Betreff: RE: DBCP Pooling loggin
Hi,
Under tomcat 5.0, what is the best way to configure logging
for commons-DBCP? Can this be done
I had always thought all sessions were lost when the server restarts. In
fact I just tried it and confirmed that (5.0.28). Are we maybe talking
about 2 different things?
I have nonstandard config (a very sparse server.xml, no explicit Manager
configured in server/web/context xml), and I do not
Whatever it was, it doesn't do it in 4.1.31.
Regards
Roger
-Original Message-
From: Varley, Roger
Sent: 29 October 2004 11:32
To: [EMAIL PROTECTED]
Subject: Tomcat fails - Can't read body, waited #0 Seems size related
I have a servlet that recieves data from a client. All the
Hi,
I had always thought all sessions were lost when the server restarts.
In
fact I just tried it and confirmed that (5.0.28). Are we maybe talking
about 2 different things?
I think we're talking about the same thing. Sessions are supposed to be
persisted by default.
I have nonstandard
Hi All,
1. Can you tell me what impact on performance has using many connectors?
I need to run additional two connectors (for http and https) to allow
some request to be understood as proxied, and others as direct. See the
code below.
2. Do request to different connectors share the same session
Hi,
1. Can you tell me what impact on performance has using many
connectors?
It's largely dwarfed by your app's performance characteristics, unless
you're talking about dozens or more connectors. For three or four, it's
no big deal.
2. Do request to different connectors share the same session
Hi
I've just upgraded to 4.1.31 and I'm getting org.apache.jk.common.ChannelSocket
processConnection INFO: connection Timeout received messages at the console every
second or so. Everything seems to be working OK so do I need to do anything about
these messages? If this is normal behaviour, is
If I have two domains pointing to the same webapp (long story on why two
domains). Do I need to have two Hosts defined inside the container
Engine ...
Host name=localhost ...
or
Host name=www.domain.com ...
Host name=www.domain.us ...
Hi,
Thanks again for your suggestions. I still don't have a good handle on the
problem. So please bear with me If I am asking the same questions again.
1. What I have noticed so far is the heap is not growing too much, but the
process foot print is growing. I used optimizeit memory profiler to
Yoav,
2. Do request to different connectors share the same session scope?
Isn't this so simple to test that it's faster than asking the
list? ;)
You're right. I'm getting lazy... So here's the result of my check: multiple
connectors share session data. In fact, what counts is the
Hi,
80MB
and heap used was 57MB (reported by optimizeit). But the memory sizes
reported by solairs pmap command is
Size RSSShared Private
1173.45 MB608.125 MB 15.125 MB 593 MB
There's a mismatch here. There's no way the OS-level overhead is
hundreds
Hi,
2. Do request to different connectors share the same session scope?
Isn't this so simple to test that it's faster than asking the
list? ;)
You're right. I'm getting lazy... So here's the result of my check:
multiple connectors share session data. In fact, what counts is the
request
Hi,
80MB
and heap used was 57MB (reported by optimizeit). But the
memory sizes
reported by solairs pmap command is
Size RSSShared Private
1173.45 MB608.125 MB 15.125 MB 593 MB
There's a mismatch here. There's no way the OS-level
Hi,
BTW, have you moved from JDK 1.4.1 to 1.4.2 yet, and if so has that made
a difference? IIRC your OP said you're using JDK 1.4.1..
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Anand Narasimhan [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 12:54 PM
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 9:59 AM
To: Tomcat Users List
Subject: RE: Huge tomcat memory footprint
Hi,
BTW, have you moved from JDK 1.4.1 to 1.4.2 yet, and if so
has that made a difference? IIRC your
I have problems stopping Tomcat as a service in Windows. I install the
service using jk_nt_service.exe (version 5.0.25). When I stop service, I
got the following error:
Nov 3, 2004 12:16:17 PM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 13
00 0d 00 01 00
Here some info I found:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html
but...:
--cut -
Persistent Manager Implementation
WARNING - Use of this Manager implementation has not been thoroughly
tested, and should be considered experimental!
end cut --
Can
Hi,
Hmm, I think that note is very old. It was probably copied over from
Tomcat 4. The PersistentManager hasn't had any bugs filed against it
for months at least (and it's been around for years now) so it's
probably in good shape.
Yoav Shapira http://www.yoavshapira.com
-Original
So it's a documentation bug then :-)
--- Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
Hmm, I think that note is very old. It was probably copied over
from
Tomcat 4. The PersistentManager hasn't had any bugs filed against
it
for months at least (and it's been around for years now) so
After installed 5.0.29 TC, I tried to bring up the new application I just start today.
I get the following error message. Can some tell me what is wrong here.
2004-11-04 10:42:39 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
org.apache.jasper.JasperException:
Hi,
If you compile your classes with J2SE 5.0 (class version 49.0), you
can't run them on JDK 1.4.2 (class version 48.0). Either match up the
compile- and run-time JDK version, or compile with a -target switch to
match the older JDK.
Yoav Shapira http://www.yoavshapira.com
-Original
Hi Everyone,
I'm having some JSP performance problems using the JK2 Connector between
Tomcat 5 and IIS6 in Windows Server 2003.
If I hit my site as mySite:8080, everything works fine. However, if i
just hit mySite, thus going through the JK2 connector, the performance of
the JSP pages greatly
Thanks Yoav. That is what I guess. I, however, can't find what I can change the JVM
version in the TC configuration.
If you compile your classes with J2SE 5.0 (class version 49.0), you
can't run them on JDK 1.4.2 (class version 48.0). Either match up the
compile- and run-time JDK version,
This seems a little bizaar. I have the /webdav context running without any problems. I
have apache sitting infront of tomcat and am using namebased virtual hosts. I can open
the site as a Web Folder (IE6) connecting to port 8080 (tomcat) and it works
perfectly. If I connect to port 80 (apache),
Harry Douglass, Jr. wrote:
Hello,
I am trying to install Apache Tomcat to run JSP and servlets for the first
time. When I type in this URL 'http://localhost:8080/' Windows XP prompts
me for a username and password. I typed in both the username 'admin' and
blank password and a custom username
Hello all, I have the following configuration:
Inet client (HTTPS) - proxy/firewall surrogate server
(squid-2.5.STABLE5) openbsd - HTTP - origin server (Apache/1.3.29 -
jakarta-tomcat-4.1.30) openbsd
We have our SSL certs on the squid server and to keep data secure over
the internet, squid
Hey Folks,
This may be a stupid question, but is the %CATALINA_HOME%\temp
directory, really a temp directory in that it will clean itself out
after a certain amount of time. If yes, how often does it perform
clean-up and can this be configured.
I just want to make sure that when I install
Brett,
I have a similar problem. But what is interesting is that it only seem
slow when I test using a Windows 2000 pro box using IE 6 against a
Windows 2003 Server. Try using an XP pro box to test the same
functionality.
Also, here are diagrams that explain the situation I am having. I have
Hi Matt,
Thanks I'll try.
Best Regards,
Luc
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 11:29 PM
Subject: Re: Config behing a broadband router...
Hi Luc,
Depends on your router I suppose however I am in the
Following Yoav's earlier comments I've implemented a basic class
SessionLogger that implements HttpSessionListener,
HttpSessionActivationListener, HttpSessionAttributeListener,
ServletContextListener. It just writes amessages to stdout using
System.out.println() to log when each event fires,
I'm just a beginner and I have installed Tomcat5.0 and
try to run a simple servlet. I have copied the
compiled servlet on the webapps/root/WEB-INF/classes
and added the servlet name and servlet mapping in the
web.xml file. I'm trying to call my HelloClientServlet
from
SessionDestroyed shouldn't be called when tomcat shuts down. Otherwise,
the session wouldn't be valid when it starts up. I just tested with a
clean install of 5.0.29 with a similar listener to the one you describe.
SessionDestroyed was not called when I stopped TC but the sessions were
still
First, is your servlet in a package?
Non-packaged servlets will not work.
Did you map your servlet in web.xml?
What is the URL you are using to call the servlet?
You don't need to set a classpath environment variable
Tomcat sets it's own.
Did you install a full j2sdk or just a jre?
Tomcat 5.0
http://localhost:3030/servlet/HelloClientServlet
Looks like you are depending on the invoker servlet to instanciate your
servlet. The invoker servlet is no longer active by default.
You will need to map your servlet in web.xml.
Again, your servlets need to be packaged.
On Thu, 2004-11-04
Hello Ben many thanks for your reply,
well, My servlet is a non-packaged one, I will change
it. I'm worried, if it is a packeged one how to call
it from the url? and how to configure the the web.xml?
Yes I have mapped my servlet in the web.xml file. this
is the bit I have added in the web.xml
Hello Ben many thanks for your reply,
well, My servlet is a non-packaged one, I will change
it. I'm worried, if it is a packeged one how to call
it from the url? and how to configure the the web.xml?
In the servlet class node, fully qualify your servlet class
Example:
Hi all, I'm returning to a problem I couldn't solve the first time,
about two months ago, and still can't seem to figure out. I can't get
a db connection using connection pools. I get the exception listed
below, same as so many have previously, but nothing I've found seems
to works. Below are
Hello Ben I have not packaged the servlet but just
changed the servlet mapping node, to
servlet
servlet-nameHelloClientServlet/servlet-name
servlet-classHelloClientServlet/servlet-class
/servlet
servlet-mapping
servlet-nameHelloClientServlet/servlet-name
Hello Ben I have not packaged the servlet but just
changed the servlet mapping node, to
servlet
servlet-nameHelloClientServlet/servlet-name
servlet-classHelloClientServlet/servlet-class
/servlet
servlet-mapping
servlet-nameHelloClientServlet/servlet-name
Thanks, Allistair, you suggestion worked. Port 8080 was being used by
Oracle and switching to 9090 was the solution.
-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 7:46 AM
To: Tomcat Users List
Subject: RE: Address already in
On Thu, 2004-11-04 at 22:53, Raasi Potluri wrote:
Hello Ben I have not packaged the servlet but just
changed the servlet mapping node, to
servlet
servlet-nameHelloClientServlet/servlet-name
servlet-classHelloClientServlet/servlet-class
/servlet
servlet-mapping
Anand
The pmap command itself gives some good info on this huge memory
footrpint. There will be
jars, some libraries (JVM specifc) are loaded into the memory that
can cause this footprint. You
can find the list of jars/files loaded by using the inode number.
In
Hello Ben, I know why all my working servlets have
stopped working all of a sudden, something is wrong,
could be I have mis placed some of the files in Tomcat
installation directory, because when I type
http://localhost:3030
it is use to give me a congratulations page, now it
says following
Pls do the following change after context.. and u are on!!
cheers
On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff [EMAIL PROTECTED] wrote:
Hi all, I'm returning to a problem I couldn't solve the first time,
about two months ago, and still can't seem to figure out. I can't get
a db connection
If adding Resouce name .../ did not work..then try following
On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff [EMAIL PROTECTED] wrote:
Hi all, I'm returning to a problem I couldn't solve the first time,
about two months ago, and still can't seem to figure out. I can't get
a db connection
Thx for your input but, as mentioned in my previous message, I've
tried this and it does not work. Also, considering my web.xml I
shouldn't need this, correct? I have a resource-ref in my web.xml.
Eric
On Fri, 5 Nov 2004 11:01:05 +0530, Atishay Kumar
[EMAIL PROTECTED] wrote:
Pls do the
This did not work. In looking for the Engine element you speak of I
didn't find it exactly. I did find it with it with an extra attribute
Engine name=Standalone... jvmRoute=jvm1. Furthermore, this
element was nested within the Service element and there is another
Engine name=Catalina...
Atishay, the DefaultContext does work once I comment out the other
Engine element. You mentioned that means something is wrong with my
Context? So what next?
many thx
Eric
On Thu, 4 Nov 2004 22:21:57 -0800, Eric Wulff [EMAIL PROTECTED] wrote:
This did not work. In looking for the Engine
mod_jk works fine as long as the JkLogLevel is
info but as soon as i change it to something like
debug,Apache fails to serve any page and I get the
following error in httpd log though mod_jk.log doesnt
show any error.
[Fri Nov 05 11:40:40 2004] [notice] Apache/2.0.52
(Unix) mod_jk/1.2.6
Hi, I'm experiencing 2 interesting problems that may be related to my
session timeout.
1. It seems that when my session times out I need to restart tomcat,
often just the application via reload in the manager, in order to gain
access to my db again. Could this be because I've been accessing the
Hi List!
My problem with the appended charset is resolved, thanks to Mark Sutton who
sent me his solution and told me to share it with the list if it worked out!
So after I deinstalled Tomcat 4.1.30 and turned to the new production release
5.0 everyhting worked fine!
And I can definitly say
HI Eric,
I have seen the same error your are getting. I am using tomcat 5.0.28.
Make sure that you have removed the expanded war directories, from
webapps and ${CATALINA_HOME}/work before restarting.
Also look inside
those other context.xmls inside ${CATALINA_HOME}/conf/Catalina/localhost
and
76 matches
Mail list logo