Hi,
you did not tell us about how you load the war file.
If the extension is correct (mynewwar.ZIP) I think it won't be loaded
automatically.
If it is named mynewwar.war and e.g. available in directory C:\mywebapps this
should work:
Context ctxt = embedded.createContext(/mynewwar ,
Can you post your dummyservlet Code ?
Thanks
Guru
-Original Message-
From: sc [mailto:[EMAIL PROTECTED]
Sent: 29 April 2007 06:21
To: users@tomcat.apache.org
Subject: Context started twice
There was a thread on this
http://www.nabble.com/Context-starts-twice-t1351694.html;.
I specified that parameter in JAVA_OPTS variable, but after the first
java.lang.OutOfMemoryError: Java heap space error, no dump file was created.
Where should that file be created by default? any clue?
Thanks
--
Leggi GRATIS le tue mail con
In the working directory of the process. Of course you need enough free
disk space.
There is also
-XX:HeapDumpPath=DIRECTORY_OR_FILE
(Caution: I don't know, if all JVM versions that implement
-XX:+HeapDumpOnOutOfMemoryError, implement this one too).
You should check in the process table (if
In the working directory of the process. Of course you need enough free
disk space.
working directory means something like:
/TomcatServer/work/Catalina/localhost/webapp_name/ ?
because there is nothing there :( and there is enough free space.
There is also
In the working directory of the process. Of course you need enough free
disk space.
working directory means something like:
/TomcatServer/work/Catalina/localhost/webapp_name/ ?
because there is nothing there :( and there is enough free space.
There is also
Hi all,
I am trying to execute some servlets in the embedded tomcat.
But some of the servlets which have a function getParameter(the function the
the value of parameter from query string) are not getting executed properly
while the same servelts when executed in standalone Tomacat are getting
As i wrote in my previous messages i'm experiencing OutOfMemory heap problems.
I added a Runtime.getRuntime().totalMemory() and
Runtime.getRuntime().freeMemory() at the end of the main client thread that is
created when a client connects to the webapp.
I noticed that when i deply the webapp i
Hi,
I'm currently trying to configure Tomcat to only allow a user to log in
once. If the same user tries to log in when already logged in (from
another machine for example) I want to cancel the login request and
present an explanation to the user. I'm using the FORM based
authentication and
Problem: I have a Tomcat server with only one webapp.
When deploying the server with only the SSL connector defined the webapp
cannot be contacted with the browser (404 in both IE and firefox).
Now: the 1st strange thing is that the webapp has no problems whatsoever
when the non-ssl
On 4/30/07, sc [EMAIL PROTECTED] wrote:
As you suggested, I started from scratch. I downloaded tomcat 6 from
apache.org. changed $catalina_home to point to the new directory. Under
$catalina_home/webapps, I created a new folder, which only has one servlet
TestServlet
Do a global search on
I tested your code, the init is called exactly once, when Tomcat starts.
Try one of these:
1) Change
log.info(TestServlet init);
log.info(TestServlet destroy);
to something else like
log.info(TestServlet init ## );
log.info(TestServlet destroy ##);
You will need to enable GC Stats for your JVM
either on command line or
set in JVM_OPTS env variable or
handcode in %JAVA_HOME%/jre/lib/i386/jvm.cfg
e.g.
java -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails
and then use a GCStatAnalyzer to look at ObjectAllocation and
Hi,
This seems like an obvious question but I'd appreciate any answers. I
have several webapps running under tomcat that need to be able to
include the same sidebar in their .jps. if the sidebar is within the
context, this works fine:
%@ include file=sidebar.html %
However this requires me to
Greetings from across the Pond
I thought this was rather an ingenious solution
http://www.simongbrown.com/blog/2004/11/04/1099588633312.html
Create a Principal object
Authenticate Principal object to Tomcat Realm via 'Role'
then use SSOValve to create Principal from supplied RequestHeaders
Does
Hi all,
I have been testing Tomcat comet support during the last days. I've created
a test application that simulates data streaming to multiple clients.
Clients open a connection to the server and the connection is hold open. In
the server there are several sender threads that leverage comet
Hello
Does application WEB-INF/web.xml override default conf/web.xml setting?
specifically session time out , but want to know if other setting is
overriden.
and can we disable this through server.xml ?
Thanks
Adam
-
To
Hi. I have my session-timeout set to 60 minutes in web.xml. The page in
question is dynamically rendered based on what's currently in the
session and the user adds items one at a time. So they fill out a form,
submit it to a Struts Action which adds it to the Session object and
then forwards
Hi Martin,
On 4/30/07, Martin Jones [EMAIL PROTECTED] wrote:
Hi,
This seems like an obvious question but I'd appreciate any answers. I
have several webapps running under tomcat that need to be able to
include the same sidebar in their .jps. if the sidebar is within the
context, this works
We are upgrading from 5.0 to 5.5. Previously I was using windows env
variables to set the java home and catalina home paths. In version 5.5 do I
still need to use env variables or can I use the Tomcat service
configuration Java options?
Thanks
Will Holmes
Programmer Analyst
Fremont Insurance
On the Connector you can set
connectionTimeout = 0 for indefinite timeout
also a keepAliveTimeout on the Sender which I believe defaults to 60 sec
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
also a tcpSelectorTimeout on the Receiver which I believe defaults to 100
sec
web.xml
On my box if i use the Xms20m and Xmx20m the Runtime.getRuntime().totalMemory()
gives:
Total Memory: 20840448. Free Memory left: 1618328
I see from remote box (where the webapp should work) log that the memory
results, just after the application is started, gives:
Total Memory: 15679488. Free
On 4/30/07, Tomcat [EMAIL PROTECTED] wrote:
Hello
Does application WEB-INF/web.xml override default conf/web.xml setting?
specifically session time out , but want to know if other setting is
overriden.
Specifically the session time out in /WEB-INF/web.xml overrides /conf/web.xml
Don't know
Hello.
I have this error over and over again, but I have no clue about its meaning or
where to start?
Can anyone help me? After the error is my web.xml. I am using Tomcat 5.5.16.
Thanks very much,
Regards,
Lorenzo
ERROR
-
2007-04-30 00:16:26,395 [http-198.64.153.30-80-Processor34] WARN
Hello Martin,
my main question was :
Does application WEB-INF/web.xml override default conf/web.xml setting?
I mean in a container containing several applications, can each of them
set session time out
in their /WEB-INF/web.xml and is that over ride the default setting
which is set in
This generally means that the client aborted the connection before the
server completed its response. Most of the time that means a user
clicking Stop as a page loads, but I have seen it other times due to
resource loading issues. For example, Dojo, at least through 0.3.1, was
notorious for
Ok, thank you all very much.
I'm still too newbie to make my servlet work (some problems with xindice)
but I've changed my java code and now it's really a servlet!
Grazie ancora, bye
- Original Message -
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent:
Hi,
I had the same problems. It was a synchronization issue with me. What I
did was make a synchronized output stream wrapper (see attached file)
which wraps all access to the output stream, and I synchronized on this
output stream whenever I called event.close() on the Comet event
Hi,
I can't understand why Tomcat gives me this error message when I try
to reload my app:
Server redirected too many times (20)
Is my app getting too big ( 400 files) ?
It seems to happen more and more often. Usually a server restart fixes
it. Sometimes I have to restart my machine.
At the
Hi John,
On 4/30/07, John Pedersen [EMAIL PROTECTED] wrote:
Hi,
I can't understand why Tomcat gives me this error message when I try
to reload my app:
Server redirected too many times (20)
Is my app getting too big ( 400 files) ?
The conversation on this
Hi John
in your init() method
System.setProperty( http.maxRedirects,
Integer.toString( DEFAULT_MAX_REDIRECTS ) );
//whereas DEFAULT_MAX_REDIRECTS defaults to 20
M--
This email message and any files transmitted with it contain confidential
information intended only
Hi,
I am trying to configure mod_jk with Apache on Linux machine ( Redhat
Linux 4.0) . The Apache version is 2.0.52. The mod_jk I have picked up is
mod_jk-1.2.21-apache-2.2.x-linux-i686.so.
When I try to start the httpd I get the Error message that the mod_jk.so is
garbled. Could someone let
Charles,
I wanted to thank you for your help as your tips helped me find the
right solution. I was trying to use the .exe instead of the zip and with
the zip I was able to correctly change the environment variables.
Thanks for your time.
Bryan Rood
IT Manager
Quantros Inc.
[EMAIL PROTECTED]
Will,
I run Tomcat as a window's service. My understanding is that when you
run Tomcat as a window's service, setting an env var in the Tomcat
service options that also exists as part of windows will supersede the
windows var.
As long as you have it set somewhere before the service needs the
We (and some of our customers) have firewalls that disconnect inactive
connections, so all requests that take more than some time to complete
get silently disconnected and never return. I think soKeepAlive is
supposed to fix that problem, but I do not see how to configure it. The
only
I got a .hprof file with the -XX:+HeapDumpOnOutOfMemoryError option.
I opened it with jhat but understand how to find the bottleneck is quite
difficult.
Is there any guide or anybody that could help me finding the problem please?
--
Leggi
Microsoft (more specifically the Windows registry) has god rights so any
information entered into Windows registry is considered system wide Of
course you can overwrite the SAME ENVIRONMENT VARIABLE locally (e.g.
%CATALINA_HOME%) in your cmd.exe command shell by SET CATALINA_HOME=new_var
HTH
If the user is clicking a submit button on the form, then the browser
is sending a request to the server, and that should reset the timer
for the session timeout. I haven't used Struts so I don't know if that
changes the session handling somehow. With my own webapp, the session
stays active as
Can anyone tell me is the below possible?
Thanks,
Monica
[EMAIL PROTECTED]
ats.com
How do I limit the amount of messages I receive?
I'd like to be able to turn on and off the reception of messages of the
mailing list without having to unsubscribe. Unfortunately the mailing list
FAQ email is empty.
Thanks a lot :)
i knew how to start jhat, i don't know how to analyze the data i see.
I found this site helpful
http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html
JHat -JOption NameOfHeapDumpFileToRead
M--
This email message and any files transmitted with it contain confidential
information
Thank you. But it looks like in 5.5 the parameter is only in the protocol:
apache-tomcat-5.5.20-src/connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java:
public void setKeepAlive(boolean keepAlive) {
On 4/30/07, orn amental [EMAIL PROTECTED] wrote:
How do I limit the amount of messages I receive?
Please create a new thread instead of hijacking this one
I'd like to be able to turn on and off the reception of messages of the
mailing list without having to unsubscribe. Unfortunately the
Hi Monica,
We are unable to see your message, instead we see a set of pipes |
It could be that your e-mail client is using Rich Text , please change
it to Plain Text and try again.
-Regards
Rashmi
On 4/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello all,
I am new to using Tomcat. I have installed (on Windows XP) Apache 2.2
and Tomcat 5.5. I am using the mod_jk connector.
I have the following Tomcat-related configuration in my httpd.conf:
# Load mod_jk module
LoadModulejk_module modules/mod_jk.so
# Declare the module for
Hello everyone,
I am attempting to create access logs on a per web application basis, using
a single virtual host in my server.xml file. Here is what I have so far:
Host name=www.example.com autoDeploy=false deployOnStartup=false
deployXML=false
aliaswww.example.com/alias
Valve
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Subject: Access logging, multiple web applications, single
virtual host
Everything appears to be working as it should, the logs are all being
created. The problem is that when I hit www.example.com/Web1 or
www.example.com/Web2 the only
differing ValveClasses for same Host works
Same ValveClass for differing Hosts
I dont know if you can use the same AccessValve for same Host
Anyone else?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email
working directory is the bin directory
Filip
[EMAIL PROTECTED] wrote:
In the working directory of the process. Of course you need enough free
disk space.
working directory means something like:
/TomcatServer/work/Catalina/localhost/webapp_name/ ?
because there is nothing there :( and
I have Cruise Control setup to run my machine and am able to access it
through Tomcat using...
http://localhost:8080/cruisecontrol/
I would like to be able to access this same URL using the format...
http://localhost:8080/standard/
Is this possible under Tomcat? And if so how might I go
I'm using Tomcat 5.5 to run a web application. I have the connection pools
set up and working in the context.xml but the password is in plain text.
Does anyone know of a way to encrypt the password and username to the
database?
Martin,
Martin Gainty wrote:
On the Connector you can set
connectionTimeout = 0 for indefinite timeout
also a keepAliveTimeout on the Sender which I believe defaults to 60 sec
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
Once again, irrelevant and incorrect.
The OP is asking
No, you do not need to set those variables. I'm running 5.5, and I
don't set them. I use the Tomcat configuration utility to specify the
location of the JRE and Tomcat.
--
Len
On 4/30/07, Will Holmes [EMAIL PROTECTED] wrote:
We are upgrading from 5.0 to 5.5. Previously I was using windows env
Shaline,
shaline omprakash wrote:
The Apache version is 2.0.52. The mod_jk I have picked up is
mod_jk-1.2.21-apache-2.2.x-linux-i686.so.
You have mismatched versions. Your Apache version is 2.0.x and your
mod_jk is for Apache 2.2.x. You need to pick up a mod_jk version that
has
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Len,
Len Popp wrote:
I haven't used Struts so I don't know if that
changes the session handling somehow.
FYI: Struts doesn't tough session management, so it should act normally.
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7
Kelly J Flowers wrote:
I'm using Tomcat 5.5 to run a web application. I have the connection pools
set up and working in the context.xml but the password is in plain text.
Does anyone know of a way to encrypt the password and username to the
database?
This is nearly always pointless. A couple
I just installed tomat 5.5 on my Fedora http://www.fedoraproject.org/ 5
box it is up and running . I would like to know how to add a user for the
admin page ? and aloso I would like to know where the webapps/ROOT/index.jsp
is ?
Hi William,
On 4/30/07, William Biggs [EMAIL PROTECTED] wrote:
I just installed tomat 5.5 on my Fedora http://www.fedoraproject.org/ 5
box it is up and running . I would like to know how to add a user for the
admin page ?
Under Tomcat's folder /conf/tomcat-users.xml is where the users are
All my mistake. I apologize for my stupidity. It turns out it wasn't invoked
twice. It just prints twice. I had the following in log4j.properties.
log4j.rootLogger=ERROR, TRIP
log4j.logger.org.hibernate=WARN, TRIP
log4j.logger.net.sf.hibernate=INFO, TRIP
log4j.logger.com.cutetrip=DEBUG, TRIP
I
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
Subject: Re: setup
and aloso I would like to know where the webapps/ROOT/index.jsp
is ?
By default, it is under Tomcat's webapps/ROOT/ folder , in my instance
of Tomcat 5.5.x
Well, not really. The source to index.jsp is there, but the
On 4/30/07, sc [EMAIL PROTECTED] wrote:
All my mistake. I apologize for my stupidity. It turns out it wasn't invoked
twice. It just prints twice. I had the following in log4j.properties.
log4j.rootLogger=ERROR, TRIP
log4j.logger.org.hibernate=WARN, TRIP
log4j.logger.net.sf.hibernate=INFO, TRIP
From: sc [mailto:[EMAIL PROTECTED]
Subject: Re: Context started twice
This is my first time using nabble.com and surprised
to see how prompt I can get response.
Nabble has nothing to do with it - it's merely a web-based GUI for
several mailing lists, including Tomcat-user. My personal
Hi Chuck,
On 5/1/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
Subject: Re: setup
and aloso I would like to know where the webapps/ROOT/index.jsp
is ?
By default, it is under Tomcat's webapps/ROOT/ folder , in my instance
of Tomcat
63 matches
Mail list logo