Since you are using Embedded, your class needs to be loaded by the same
ClassLoader that loads Tomcat.
You might want to look at the examples for loading Tomcat from ant in
commons-modeler, as an alternative way of doing what you want.
Alonso Dominguez [EMAIL PROTECTED] wrote in message
On 4/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
After the authetication and login I want to redirect to a Menu Page not
to any page requested earlier.
Using default form authentication tomcat redirects to the page requested
not to the page I want (e.g Menu Page).
That's the
Hi all,
I'd greatly appreciate your thoughts on the following issue (and the proposed
solution ):
When adding a jar file (eg, foo/bar.jar) to the class loader's repository it
treats as a directory and therefore it cannot load any classes from this jar.
The following explains why it happens.
Hi,
I'm running tomcat 4.1.31 on HP-UX 11i with the HotSpot JVM 1.4.2_02.
I'm using a Coyote HTTP/1.1 Connector.
I'm investigating the following memory issue : the heap size grows until
the -Xmx value and then the I have a java.lan.OutOfMemory exception.
Using HPjmeter to profile my appliation,
From: Akoulov, Alexandre [IT] [mailto:[EMAIL PROTECTED]
Subject: Problem with the classloader in
jakarta-tomcat-5.0.28 - cannot add a jar file to class repository
ClassLoaderFactory#createClassLoader(File unpacked[], File
packed[], URL urls[], ClassLoader parent) is the actual
method
Hi guys...
I was trying to run an application, and I've got the following message:
21/04/2005 10:06:33 org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet Auth as unavailable
21/04/2005 10:06:33 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for
On Wed, 20 Apr 2005 19:12:17 +0200
Mladen Turk [EMAIL PROTECTED] wrote:
Lionel Farbos wrote:
Thank you again.
So it means than I can have 1 local JkShmFile on my web1 and other local
JkShmFile on my web2.
But, if, in web1_jkStatus, I disable 1 worker from my cluster
public class Auth extends HttpServlet
-Original Message-
From: Adriano Monteiro [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 9:31 AM
To: tomcat-user@jakarta.apache.org
Subject: Problems with servlets
Hi guys...
I was trying to run an application, and I've got the
Folks,
The closer we could get so far is to define the following JVM Option to the
Tomcat Manager Service:
-Xloggc:path_to_log_file
Which does not explain me why it does not pick up the -verbose:gc . Maybe I
need to wait for another life!
Guillaume
- Original Message -
From:
Hello all,
Here I come again with my digester :))
So, I have my xml file, I have created my digester and all the needed
classes for my xml tags, and do a digester.parse(). Still here all is ok.
I start Tomcat 5.0 and look to the log file. All seems ok, my xml file is
consumed, all the classes
So let me get this straight, LeeAnn is specifying a maximum heap size of
512MB and a minimum size of 128MB. It looks like the heap doesn't get
adjusted up when the servlets are initializing? Thus she needs to increase
her minimum heapsize, so something like -Xms512m should fix it?
-ryan
hi,
I have a fedora core 2 system with the standard tomcat/jakarta/mod_jk2
rpms installed.
I am looking for tips regarding the configuration, specially with
security and virtual hosting practices.
regards.
-
To unsubscribe,
From: J. Ryan Earl [mailto:[EMAIL PROTECTED]
Subject: RE: OutOfMemoryError - 100 thread limit?
So let me get this straight, LeeAnn is specifying a maximum
heap size of 512MB and a minimum size of 128MB. It looks
like the heap doesn't get adjusted up when the servlets are
initializing?
I have the following in a file called ems.xml in my META-INF
directory. After deploying this application, the JNDI resource is
listed for the application in the administration screen, but none of the
ResourceParams are associated with it. Have I got something wrong in
the context file?
Mbneto,
Security is necessary, virtual hosting is neat.
If you were a bit more specific, we could be also.
Fritz
-Original Message-
From: mbneto [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 7:09 AM
To: tomcat-user@jakarta.apache.org
Subject: Tips regarding security and
my 2 bits.
when I tried to replicate the issue LeeAnn saw, it was pretty clearn
the JVM can't resize the heap fast enough to account for the large
number of webapps being loaded. simply increasing the initial heap
should solve the problem.
peter
On 4/21/05, Caldarale, Charles R [EMAIL
Oh man...
I can't believe...
Why the hell those java language developers do that with us? There is
no need of this...
It's sad and painful develop something in JAVA
Regards...
2005/4/21, Molden, Robert (GE Infrastructure) [EMAIL PROTECTED]:
public class Auth extends HttpServlet
Peter Lin reproduced and fixed the problem LeeAnn is seeing, and said If I
set my heap to -Xms256m -Xmx512m I'm able to load the 18 webapps just fine.
the total memory used after all the webapps are loaded is 152Megs. He
didn't mention anything about adjusting the perm gen space.
-ryan
for what it's worth, adjusting the perm gen space rarely helps. I did
a ton of benchmarks back in 2002 using all sorts of -X combinations
and it rarely helped. You have to really know the memory allocation
pattern to effectively tune perm gen space.
adjusting the new eden may help, but again that
From: J. Ryan Earl [mailto:[EMAIL PROTECTED]
Subject: RE: OutOfMemoryError - 100 thread limit?
Peter Lin reproduced and fixed the problem LeeAnn is seeing,
and said If I set my heap to -Xms256m -Xmx512m I'm able to
load the 18 webapps just fine. the total memory used after
all the
I may not be running the same app LeeAnn is running, but my webapp is
fairly heavy and creates several threads per webapp. Even if it's not
an apples-to-apples comparison, it's still a worth while trick to try.
if it doesn't work, then back to square one :)
if it does, then LeeAnn can go back to
From: Peter Lin [mailto:[EMAIL PROTECTED]
Subject: Re: OutOfMemoryError - 100 thread limit?
if it doesn't work, then back to square one :)
It would be even better to get some real data with the
-XX:+PrintGCDetails, so we can stop speculating...
- Chuck
THIS COMMUNICATION MAY CONTAIN
Hi,
I'd like to exclude a few actions from authentication. Is there a
simple way to do this without having to put those actions in a new
namespace.
Here is a sample of my web.xml,
security-constraint
web-resource-collection
Doug,
Finally, you have solved the problem that has vexed me for days. Thanks.
Joe
-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 20, 2005 5:20 PM
To: Tomcat Users List
Subject: Re: localhost Context files and path = /
This is not
I, for one, am awaiting LeeAnn's response with abated breath. =)
-ryan
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 9:53 AM
To: Tomcat Users List
Subject: RE: OutOfMemoryError - 100 thread limit?
From: Peter Lin [mailto:[EMAIL
Hi 'catters. I am having a small but annoying behavior in Tomcat.
Tested on
5.0.28 and 5.5.9. I posted this as bug 34547 but a developer thinks
it's not a bug.
I use Eclipse 3.02 for development, along the Sysdeo Tomcat Plugin and
Freemarker for MVC. My context path is set to be reloadable, and
Good Morning everyone :)
Apparently I'm one of the few on the west coast - sorry for the delay this
morning.
I added the PrintGCDetails line to my CATALINA_OPTS and got a bit more
information - although I'm afraid I'm not sure if this is the information
Chuck was looking for?
My catalina.out
Ok, this time I used -Xms512m -Xmx512m with the same results -
Successfully created a SesameConfig object from FILE:
/usr/local/extraview/stage2/jakarta-tomcat-5.0.28/webapps/site19/WEB-INF/configuration/Configuration.properties
SesameProjectDir:
wow, your webapp must be pretty heavy and have lots of jar and/or
classes. The behavior that I saw was that 16 of the webapps would load
with the default JVM heap settings. When I went to Tomcat's manager
page, and click start, I got a similar OOME and the webapp would not
start. At that point,
It's possible that your User object is not serializing correctly. As I
understand things: when contexts are reloaded, the sessions are serialized
first, the context reloads, and the sessions are restored from their
serialized form. If one of your attributes doesn't make it through this
process,
silly question, does this webapp have like thousands of JSP and
servlets and preload the JSP's?
peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I got the Exception when starting tomcat. What's wrong with it?
Peiyun
---
Realm
className=org.apache.catalina.realm.JDBCRealm
driverName=oracle.jdbc.driver.OracleDriver
Tomcat running stand-alone pretty much out-of-the box.
I have a servlet which initially presents a form to users. When the form
is submitted it runs one of a number of possible queries on an Oracle
database. Some queries return immediately while others take up to 20
minutes to run. The servlet
Put your classes.zip in tomcat\common\lib
Regards
Guru
-Original Message-
From: Jiang, Peiyun [mailto:[EMAIL PROTECTED]
Sent: 21 April 2005 17:16
To: 'Tomcat Users List'
Subject: JDBCRealm Configuration
I got the Exception when starting tomcat. What's wrong with it?
Peiyun
Not a silly question :)
We have 1 servlet that is the main entry point, everything else is done
with standard java classes. We have no jsp's.
At 09:13 AM 4/21/2005, you wrote:
silly question, does this webapp have like thousands of JSP and
servlets and preload the JSP's?
peter
Possible success!
I went back to my weblogic installation which I was successfully able to
open up 25 sites to see what it was doing when starting up.
It had -XX:MaxPermSize=128m in the process description.
I added that to my catalina_opts and I got past the 18 site limitation of
just firing
Hi,
I am trying to use FileUpload but i keep getting an Access denided error
when i try to write things and i was wondering is there anyway around
it...here is the error
Http Satus 404 -
C:\AtrowkOnDemand\jakarta-tomcat-4.1.24\webapps\artworkondemans (Access is
denied)
type Status report
glad I was wrong and you found a solution.
http://java.sun.com/docs/hotspot/VMOptions.html
I'm just guessing here, but by forcing the maxPermSize to 128, it
leaves more space for the eden and prevents classes from getting
promoted to perm. Atleast that's logical explanation I can think of.
On 4/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
If I run a long query, followed by a series of short queries ( different
browsers/pcs ) then the latter all wait for the long query to return
rather than completing first as I expected.
A quick guess would be that your first query starts
Hello there.
I have Tomcat setup with a few different Hosts. Each webapp needs
a new URL so it gets its own Host entry. Not weird. But what
gets difficult is that I cannot reload each of these Hosts.
http://12.34.56.78/manager/reload?path=/myapp
That works if I have:
tomcat-home/webapps/myapp/
This is a really interesting and confusing problem...
Can you tell how much memory the OS is actually committing to Java? ie
Check the resident stable set (RSS) = how much of the virtual memory space
has been physically commited to memory.
# ps axl|grep java
0 501 2623 1 21 0 1264252
From: LeeAnn Pultz [mailto:[EMAIL PROTECTED]
Subject: Re: OutOfMemoryError - 100 thread limit?
It had -XX:MaxPermSize=128m in the process description.
Ahah, as they say.
Can anyone give me any information on what this does? Is
this the perm gen that Chuck mentioned before?
Yes, this
Thanks for the response. However, it still didn't work.
I assume the changes you made were to remove the leading / from the
docBase. I am guessing the problem is that my Host elements have the
same name, and the second one is overriding the first. Unfortunately,
it looks like the Host elements
Check your catalina.policy file or access rights to the user that the Tomcat
apps are running under.
Robert S. Harper
801.265.8800 ext. 255
[EMAIL PROTECTED]
-Original Message-
From: Andrew Paliga [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 10:38 AM
To:
Awesome, I'm glad that was solved as I'm about to do the same thing with our
application: running multiple instances of the application on a single
tomcat instance housing many virtual hosts.
Thanks for the http://java.sun.com/docs/hotspot/VMOptions.html link Peter.
-ryan
-Original
From: Peter Lin [mailto:[EMAIL PROTECTED]
Subject: Re: OutOfMemoryError - 100 thread limit?
I'm just guessing here, but by forcing the maxPermSize to 128, it
leaves more space for the eden and prevents classes from getting
promoted to perm.
I think you're confusing tenured with perm.
Try changing your Engine names to match your Service names.
It will create separate directories underneath tomcat-home/conf/
Service name=RequestsFromPort6000
Connector protocol=HTTP/1.1 port=6000/
Engine debug=0 defaultHost=localhost name=RequestsFromPort6000
Host appBase=c:\projects
glad I can help. it's the little odd edge case problems that I find
most interesting. it was fun to figure why that behavior was occuring.
peter
On 4/21/05, J. Ryan Earl [EMAIL PROTECTED] wrote:
Awesome, I'm glad that was solved as I'm about to do the same thing with our
application: running
yup you're right, silly me. ignore my brain dead remark.
as long as the problem gets solved, I don't mind looking stupid. so it
would appear by setting the PermSize, the jvm is pushing all
java.lang.Class instances to Perm rather than loading them in eden and
then promoting them to tenured. If
Thanks everyone!
I really appreciate all your ideas and input and experience!
I still am not completely clear on eden, gen, etc - obviously I need to go
research how memory allocation is done in java.
But, after setting the maxPermSize, I was able to log in and do work on 18
sites which is more
Depends how you designed your classes that the XML is digested into ;-)
If you're looking for specific kinds of queries, then the class(es)
should be geared to supporting those [aggregation, composition and
keying constructs associated with the semantics of the data need to be
reflected in the
Hello,
Does tomcat just not bind to virtual interfaces, or other IP addresses
in general? If anybody has any suggestions on this issue it would be
very helpful, since i cant seem to get this cluster up and running.
Thank you,
Josef Whiter
Hi,
The normal tomcat has a manager app that lets you go to a particular
URL (e.g. server:8080/manager/) to restart/reload tomcat. This was very
convenient for me b/c it allowed me to automate restarting tomcat...I
could just issue a wget to the restart URL everytime I updated java
class
Do you not have to specify the className in the
service?
className=org.apache.coyote.tomcat4.CoyoteConnector?
Darryl
--- Gary Hirschhorn [EMAIL PROTECTED] wrote:
Thanks for the response. However, it still didn't
work.
I assume the changes you made were to remove the
leading / from the
From: Peter Lin [mailto:[EMAIL PROTECTED]
Subject: Re: OutOfMemoryError - 100 thread limit?
so it would appear by setting the PermSize, the jvm is pushing all
java.lang.Class instances to Perm rather than loading them in eden and
then promoting them to tenured.
Instances of
On 4/21/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:
From: Peter Lin [mailto:[EMAIL PROTECTED]
Subject: Re: OutOfMemoryError - 100 thread limit?
so it would appear by setting the PermSize, the jvm is pushing all
java.lang.Class instances to Perm rather than loading them in eden and
From: Peter Lin [mailto:[EMAIL PROTECTED]
Subject: Re: OutOfMemoryError - 100 thread limit?
the default Perm is 64M. If LeeAnn's webapp have a large number of
classes, maybe there's too many; therefore forcing the VM to resize
the perm.
IIRC (haven't looked at core HotSpot code in detail
We are using Tomcat 5.0.27, which doesn't require the className
attribute. Instead, it determines the class from the protocol. See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
-Original Message-
From: Darryl Wilburn [mailto:[EMAIL PROTECTED]
Sent: Thursday, April
Thank you very much. That did the trick.
-Original Message-
From: Charles Harvey III [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 10:08 AM
To: Tomcat Users List
Subject: Re: Multiple services in single Tomcat instance
Try changing your Engine names to match your Service
Hi. I've got an odd problem that I'm hoping that someone can help to diagnose.
A new application that we're building is losing attributes of a session
between SOME of its pages. This behavior occurs about 85% of the time.
Sometimes all of our session will transmit and most times about half of
It's possible that your User object is not serializing correctly. As I
understand things: when contexts are reloaded, the sessions are
serialized
first, the context reloads, and the sessions are restored from their
serialized form. If one of your attributes doesn't make it through
this
we are using tomcat 5.0.28 on windows server. I have been trying to
install multiple tomcat instances . Our goal is to run multiple
instances on port 80 of virtual IPs. But for testing, i'm using
differnt port numbers instead of ips..
Here r the steps i performed,
(a) installed tomcat on
Thanks Chuck for your reply.
I still think it is a bug!!!
Please try the following: add a jar file (eg, foo/bar.jar) as a class
repository in the catalina.properties and then use one of the classes from this
jar file in one the servlets - will get a ClassNotFoundException.
I've attached
Hi,
Could someone tell how to pass in a user defined system property to
Tomcat at statup?
Hello,
is there any chance, to get mod_jk so configured, that it can handle jsp
files, servlets ( complete webapps ) in the apache mod_userdir
directory?
I want to have ~/pubic_html/*.jsp interpreted by tomcat but it seems
mod_jk isnt able to handle it, am i right or wrong?
Any solutions for this
From: Akoulov, Alexandre [IT] [mailto:[EMAIL PROTECTED]
Sent: 2005 April 21, Thursday 19:48
Subject: RE: Problem with the classloader in
jakarta-tomcat-5.0.28 - cannot add a jar file to class repository
I still think it is a bug!!!
Read the javadoc for the class in question. (The full
The standard catalina.properties already has several jars and several
directories specified for the various class loaders,
standard catalina.properties has refs to *.jar (eg,
${catalina.home}/common/endorsed/*.jar) not to the actual jar file.
Bootstrap.java then checks whether there is *.jar
67 matches
Mail list logo