Re: Launching an embedded Tomcat from Maven 1.x

2005-04-21 Thread Bill Barker
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

Re: SingleSignOn and Form Authentication

2005-04-21 Thread Guillaume Lederrey
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

Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-21 Thread Akoulov, Alexandre [IT]
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.

Pb with thread and http-connector

2005-04-21 Thread Xavier AMBROSIONI
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,

RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-21 Thread Caldarale, Charles R
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

Problems with servlets

2005-04-21 Thread Adriano Monteiro
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

Re: Apache_MaxClients, AJP_maxThreads and jkWorker.cachesize

2005-04-21 Thread Lionel Farbos
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

RE: Problems with servlets

2005-04-21 Thread Molden, Robert \(GE Infrastructure\)
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

Re: How to enable GC with Tomcat Service Manager

2005-04-21 Thread Guillaume Lahitette
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:

digester understanding again...

2005-04-21 Thread Henrique, Manuel
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread J. Ryan Earl
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

Tips regarding security and configuration

2005-04-21 Thread mbneto
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,

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
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?

Missing JNDI resource params after deployment.

2005-04-21 Thread David C. Hicks
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?

RE: Tips regarding security and configuration

2005-04-21 Thread Fritz Schneider
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Peter Lin
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

Re: Problems with servlets

2005-04-21 Thread Adriano Monteiro
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread J. Ryan Earl
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Peter Lin
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Peter Lin
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
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

authentication

2005-04-21 Thread Kanda Upendra
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

RE: localhost Context files and path = /

2005-04-21 Thread Joe Bautista
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread J. Ryan Earl
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

Tomcat forgets a session attribute when reloading context

2005-04-21 Thread Francisco J. León
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread LeeAnn Pultz
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread LeeAnn Pultz
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:

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Peter Lin
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,

RE: Tomcat forgets a session attribute when reloading context

2005-04-21 Thread Mike Curwen
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,

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Peter Lin
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]

JDBCRealm Configuration

2005-04-21 Thread Jiang, Peiyun
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

Consecutive threads

2005-04-21 Thread neil.shadrach
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

RE: JDBCRealm Configuration

2005-04-21 Thread Raghupathy,Gurumoorthy
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread LeeAnn Pultz
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread LeeAnn Pultz
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

FileUpload

2005-04-21 Thread Andrew Paliga
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Peter Lin
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.

Re: Consecutive threads

2005-04-21 Thread Kenneth Jensen
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

reloading a host from the IP address manager

2005-04-21 Thread Charles Harvey III
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/

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread J. Ryan Earl
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
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

RE: Multiple services in single Tomcat instance

2005-04-21 Thread Gary Hirschhorn
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

RE: FileUpload

2005-04-21 Thread Robert Harper
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:

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread J. Ryan Earl
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
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.

Re: Multiple services in single Tomcat instance

2005-04-21 Thread Charles Harvey III
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Peter Lin
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Peter Lin
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread LeeAnn Pultz
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

Re: digester understanding again...

2005-04-21 Thread Rahul Akolkar
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

Re: Tomcat in a clustered Enviroment

2005-04-21 Thread Josef Whiter
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

Manager app for embedded tomcat?

2005-04-21 Thread Ted Weatherly
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

RE: Multiple services in single Tomcat instance

2005-04-21 Thread Darryl Wilburn
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
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

Re: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Peter Lin
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

RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
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

RE: Multiple services in single Tomcat instance

2005-04-21 Thread Gary Hirschhorn
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

RE: Multiple services in single Tomcat instance

2005-04-21 Thread Gary Hirschhorn
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

Session attributes disappear between .jsp pages

2005-04-21 Thread Greg Vilardi
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

Re: Tomcat forgets a session attribute when reloading context

2005-04-21 Thread Francisco J. León
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

running multiple tomcat instances as windows service

2005-04-21 Thread Jaynika Barot
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

RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-21 Thread Akoulov, Alexandre [IT]
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

System property on Tomcat

2005-04-21 Thread Kanda Upendra
Hi, Could someone tell how to pass in a user defined system property to Tomcat at statup?

mod_jk working together with mod_userdir - possible or not?

2005-04-21 Thread Torsten Krah
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

RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-21 Thread Caldarale, Charles R
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

RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-21 Thread Akoulov, Alexandre [IT]
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