Re: How do I force getContextPath to return ""

2005-11-18 Thread Martin Gainty

Your answer
For servlets in the default (root) context, getContextPath method returns 
""...


Sorry for the thread hike!
Martin- 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I force getContextPath to return ""

2005-11-18 Thread Martin Gainty

Good Evening Gentlemen:
How do I load admin.war in Tomcat 5.5.7?
Many Thanks,
Martin-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat has 2 webapps - confused which classes to load

2005-11-18 Thread Shankar Unni

John MccLain wrote:


OK...So, correct me if I am wrong, but is this because the JVM can't load 2
classes with the same package/class name? 


The JVM *can* (and in this case, *does*) load classes with the same 
name, as long as they are in different classloaders (which they are, for 
the two different webapps).


The problem is with the Java debugging interface - it merely notifies 
the listener (Eclipse) that "a class named  has been loaded".


There is no other usable context to tell eclipse whether the  was 
loaded in package1 or package2, so it'll insert a breakpoint for each of 
them, and stop at each of them.


If *you* have a way of telling them apart, you can put that condition in 
the breakpoint, to only stop if that condition is true..



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat has 2 webapps - confused which classes to load

2005-11-18 Thread John MccLain
I have 2 web applications underneath Tomcat/webapps. some of the classes,
such as the lifecycle listeners for both projects, have exactly the same
package/class names. I kick off Tomcat from eclipse, and put a breakpoint in
the lifecycle listener for project2. Project1 loads first, and eclipse
breaks  at the breakpoint I set for the lifecycle listener -BUT, it breaks
at that brekpoint in project1's listener, not project2 where I set it?!?
When I continue execution, and project2's context loads, it breaks at
project1's listener again?!? - it never breaks at the breakpoint I set in
project2, it only breaks at project1's
so my first question is why is the above happening?

OK...So, correct me if I am wrong, but is this because the JVM can't load 2
classes with the same package/class name? If this is so, then why does
Tomcat not add the application context name to the package name so there is
not a naming conflict?

so my second question is, is there a way to have a class called "aaa.bbb" in
WEB-INF/classes of both project1 and project2 unerneath Tomcat/webapps, and
have Tomcat (and Eclipse) recognize them as separate classes?

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
"Skepticism is the first step toward truth"


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Grabbing JNDIRealm Authentication Roles

2005-11-18 Thread PHIL CAVAZOS
Thanks, you're right. I tried this earlier, but it didn't work because I hadn't 
provided the complete LDAP role name. It needs to match exactly what the role 
name is in the context.xml file. 

Confidentiality Notice: The information contained in this email and any 
attachments may be legally privileged and confidential. If you are not an 
intended recipient, you are hereby notified that any dissemination, 
distribution, or copying of this email is strictly prohibited. If you have 
received this email in error, please notify the sender and permanently delete 
the email and any attachments immediately. You should not retain, copy, or use 
this email or any attachment for any purpose; nor disclose all or any part of 
the contents to any other person. 

>>> [EMAIL PROTECTED] 11/18/2005 1:16:35 pm >>>
I think the standard way for including role in your programming logic
(e.g. if user is of role manager, dispatch the manager.jsp; if user is
an employee, dispatch the employee.jsp, etc), is to use the isUserInRole
method of HttpServletRequest.  This solution doesn't depend on which
realm you are using in your server.

ND

-Original Message-
From: PHIL CAVAZOS [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 18, 2005 3:54 PM
To: users@tomcat.apache.org 
Subject: Grabbing JNDIRealm Authentication Roles

Does anyone know how to grab user roles from the JNDIRealm
authentication classes once a user logs in to a servlet context? I'm
attempting to dynamically present content based on the user roles the
user authenticates with. Another way to put my question is if there is a
way to grab the LDAP authentication instance and make use of it to read
the user roles without having to create a new LDAP instance?

Thanks,
Phil

Confidentiality Notice: The information contained in this email and any
attachments may be legally privileged and confidential. If you are not
an intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this email is strictly prohibited. If you
have received this email in error, please notify the sender and
permanently delete the email and any attachments immediately. You should
not retain, copy, or use this email or any attachment for any purpose;
nor disclose all or any part of the contents to any other person. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL w/Tomcat

2005-11-18 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a 
new topic) please do not reply to an existing message and change the 
subject line. To many of the list archiving services and mail clients 
used by list subscribers this  makes your new message appear as part 
of the old thread. This makes it harder for other users to find 
relevant information when searching the lists.


This is known as thread hijacking and is behaviour that is frowned 
upon on this list. Frequent offenders will be removed from the list. 
It should also be noted that many list subscribers automatically 
ignore any messages that hijack another thread.


The correct procedure is to create a new message with a new subject. 
This will start a new thread.


Mark
tomcat-user-owner



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I force getContextPath to return ""

2005-11-18 Thread Hassan Schroeder
hv @ Fashion Content wrote:
> Is there a way have getContextPath return "" other than setting it up as 
> ROOT context

Not that I know of -- why is the obvious "fix" undesirable?

> I have that old problem of rewriting URLs to get rid of the pesky context 
> path.

OK, I'll bite:

What "old problem" is that? When does a context path become "pesky"?

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Bob Grabbe
I see it, and it looks like the right answer, I'll try it on Monda.y 
Thanks 
- Original Message - 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, November 18, 2005 4:49 PM
Subject: RE: How to see a Word or WordPerfect document in Tomcat?


> From: Bob Grabbe [mailto:[EMAIL PROTECTED] 
> Subject: Re: How to see a Word or WordPerfect document in Tomcat?
> 
> Being new to the list, though, could you point me toward the 
> mail archives ? 

Read the FAQ and look at the information on this page:
http://tomcat.apache.org/lists.html

I prefer the MARC list for searching.  However, the link to that from
the Tomcat lists page is incorrect; it should be:
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

Try searching on https cache download.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Caldarale, Charles R
> From: Bob Grabbe [mailto:[EMAIL PROTECTED] 
> Subject: Re: How to see a Word or WordPerfect document in Tomcat?
> 
> Being new to the list, though, could you point me toward the 
> mail archives ? 

Read the FAQ and look at the information on this page:
http://tomcat.apache.org/lists.html

I prefer the MARC list for searching.  However, the link to that from
the Tomcat lists page is incorrect; it should be:
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

Try searching on https cache download.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Bob Grabbe

Actually, you're right, it is IE.
Being new to the list, though, could you point me toward the mail archives ? 
Ie, how to access them ?

Thanks
Bob Grabbe
[EMAIL PROTECTED]

- Original Message - 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Friday, November 18, 2005 4:17 PM
Subject: RE: How to see a Word or WordPerfect document in Tomcat?



From: Bob Grabbe [mailto:[EMAIL PROTECTED]
Subject: Re: How to see a Word or WordPerfect document in Tomcat?

The mime mapping is in the web.xml, but if I have the
security-constraint section in web.xml to force everything to
use https I get the same "resource not available" error.


Does this fail with Firefox, or just IE?  There's a known "feature" of
IE that prevents it from properly handling application data files
delivered via https.  I believe the mail archives contain some
workarounds.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Caldarale, Charles R
> From: Bob Grabbe [mailto:[EMAIL PROTECTED] 
> Subject: Re: How to see a Word or WordPerfect document in Tomcat?
> 
> The mime mapping is in the web.xml, but if I have the 
> security-constraint section in web.xml to force everything to 
> use https I get the same "resource not available" error.

Does this fail with Firefox, or just IE?  There's a known "feature" of
IE that prevents it from properly handling application data files
delivered via https.  I believe the mail archives contain some
workarounds.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Grabbing JNDIRealm Authentication Roles

2005-11-18 Thread Duan, Nick
I think the standard way for including role in your programming logic
(e.g. if user is of role manager, dispatch the manager.jsp; if user is
an employee, dispatch the employee.jsp, etc), is to use the isUserInRole
method of HttpServletRequest.  This solution doesn't depend on which
realm you are using in your server.

ND

-Original Message-
From: PHIL CAVAZOS [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 18, 2005 3:54 PM
To: users@tomcat.apache.org
Subject: Grabbing JNDIRealm Authentication Roles

Does anyone know how to grab user roles from the JNDIRealm
authentication classes once a user logs in to a servlet context? I'm
attempting to dynamically present content based on the user roles the
user authenticates with. Another way to put my question is if there is a
way to grab the LDAP authentication instance and make use of it to read
the user roles without having to create a new LDAP instance?

Thanks,
Phil

Confidentiality Notice: The information contained in this email and any
attachments may be legally privileged and confidential. If you are not
an intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this email is strictly prohibited. If you
have received this email in error, please notify the sender and
permanently delete the email and any attachments immediately. You should
not retain, copy, or use this email or any attachment for any purpose;
nor disclose all or any part of the contents to any other person. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Bob Grabbe
On a related question, I have a problem with viewing .csv files with 
msexcel. The mime mapping is in the web.xml, but if I have the 
security-constraint section in web.xml to force everything to use https I 
get the same "resource not available" error. It works fine without the 
security constraints, though.

Would you have any suggestions for this ?
Bob Grabbe
[EMAIL PROTECTED]

- Original Message - 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Friday, November 18, 2005 2:55 PM
Subject: RE: How to see a Word or WordPerfect document in Tomcat?



From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Subject: How to see a Word or WordPerfect document in Tomcat?

If I try to do this specifying a application path, for example,
http://localhost:8084/Documents/test.wpd I get a
"...resource it not available error".   Can this be
accomplished using Tomcat?


Have you set the appropriate  in conf/web.xml?

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Grabbing JNDIRealm Authentication Roles

2005-11-18 Thread PHIL CAVAZOS
Does anyone know how to grab user roles from the JNDIRealm authentication 
classes once a user logs in to a servlet context? I'm attempting to dynamically 
present content based on the user roles the user authenticates with. Another 
way to put my question is if there is a way to grab the LDAP authentication 
instance and make use of it to read the user roles without having to create a 
new LDAP instance?

Thanks,
Phil

Confidentiality Notice: The information contained in this email and any 
attachments may be legally privileged and confidential. If you are not an 
intended recipient, you are hereby notified that any dissemination, 
distribution, or copying of this email is strictly prohibited. If you have 
received this email in error, please notify the sender and permanently delete 
the email and any attachments immediately. You should not retain, copy, or use 
this email or any attachment for any purpose; nor disclose all or any part of 
the contents to any other person. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat on gnu gij

2005-11-18 Thread Tom A
On 11/18/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> > From: Tom A [mailto:[EMAIL PROTECTED]
> > Subject: Re: tomcat on gnu gij
> >
> > The GNU Classpath implementation only supports Java 1.4 so you'll have
> > to stick with Tomcat 5.0.x for the time being.
>
> Why do people keep perpetuating this myth?  Too lazy to read the
> documentation?  Tomcat 5.5 runs perfectly fine on a 1.4 JRE - just
> install the small compatibility package from the Tomcat download page
> and have at it.  Whether or not it will run at all with the GNU runtime
> is a different question.
>
>  - Chuck

Easy tiger! I forgot. :*)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat on gnu gij

2005-11-18 Thread Caldarale, Charles R
> From: Tom A [mailto:[EMAIL PROTECTED] 
> Subject: Re: tomcat on gnu gij
> 
> The GNU Classpath implementation only supports Java 1.4 so you'll have
> to stick with Tomcat 5.0.x for the time being.

Why do people keep perpetuating this myth?  Too lazy to read the
documentation?  Tomcat 5.5 runs perfectly fine on a 1.4 JRE - just
install the small compatibility package from the Tomcat download page
and have at it.  Whether or not it will run at all with the GNU runtime
is a different question.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat on gnu gij

2005-11-18 Thread Tom A
On 11/17/05, Randall Smith <[EMAIL PROTECTED]> wrote:
> Can anyone point me to resources on running Tomcat on the GNU gij runtime?
>
> Thanks.

Thanks, you prompted me to give it a try :-)

The GNU Classpath implementation only supports Java 1.4 so you'll have
to stick with Tomcat 5.0.x for the time being.

The quick way to get going is to modify the _RUNJAVA variable in setclasspath.sh

_RUNJAVA="/usr/bin/gij "


If you want natively compiled classes you could try using the GCJ JIT
functionality described here (compiles the classes on the fly):

http://gcc.gnu.org/ml/java/2005-06/msg00045.html

Just extend your gij setting in setclasspath. If it works it will take
a _long_ time to start as it compiles all the classes (but they will
then be in your cache for the next restart). When doing this I got a
"too many root sets" error. YMMV

To natively compile the classes first and then run Tomcat use the
script from here -
http://developer.classpath.org/mediation/ClasspathShowcase#head-7d9a556e8485fc84fd5ce0e52be6104d85e24316
- and wait ;-)

Finally change you gij arguments in setclasspath to include
-Dgnu.gcj.precompiled.db.path

This worked for me (at least I assume it did!).

If you get it going and have any opinions on performance I'd love to hear.

Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Caldarale, Charles R
> From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
> Subject: How to see a Word or WordPerfect document in Tomcat?
> 
> If I try to do this specifying a application path, for example, 
> http://localhost:8084/Documents/test.wpd I get a 
> "...resource it not available error".   Can this be 
> accomplished using Tomcat?

Have you set the appropriate  in conf/web.xml?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Ritchie Gillam
I have an application that has a few WordPerfect documents associated with it.  
 If I run this directly in a Browser without using Tomcat, IE opens WordPerfect 
and displays the document perfectly.  If I try to do this specifying a 
application path, for example, http://localhost:8084/Documents/test.wpd I get a 
"...resource it not available error".   Can this be accomplished using Tomcat?  
I know I could use the Apache Server but I don't want to do that.

JVM 1.5.0_02
Tomcat 5.5.7

Any help is greatly appreciated.

Thanks in advance

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to set restrictions on the retreival of files from some directories

2005-11-18 Thread Tim Funk
Something is fishy with your server (or configuration) I cannot reproduce 
that issue with 5.0.28 on windows.


-Tim

Brian Buchanan wrote:


Upgrade.  In a short test on two of my servers, 5.0.28 on windows has this
WEB-INF. vulnerability, but 5.5.7 did not.

-Original Message-
From: "Alla Winter" <[EMAIL PROTECTED]>
To: 
Date: Thu, 17 Nov 2005 14:19:13 -0600
Subject: How to set restrictions on the retreival of files from some
directories



BY default it is possible to retrieve files located under the 'WEB-INF'
directory. For example: www.someserver.com/WEB-INF./web.xml or
www.someserver.com/WEB-INF./classes/MySer
 
vlet.class


What needs to be done to prevent it ?   Why such restrictions are not
set by
default?  This vulnerability prevents us to pass the security
certification
test



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to set restrictions on the retreival of files from some directories

2005-11-18 Thread Ben Souther
I just tested on 5.0.28 and can't see anything under WEB-INF.
Are you using Tomcat as a standalone or with a connector?

On Fri, 2005-11-18 at 14:15, Brian Buchanan wrote:
> Upgrade.  In a short test on two of my servers, 5.0.28 on windows has this
> WEB-INF. vulnerability, but 5.5.7 did not.
> 
> -Original Message-
> From: "Alla Winter" <[EMAIL PROTECTED]>
> To: 
> Date: Thu, 17 Nov 2005 14:19:13 -0600
> Subject: How to set restrictions on the retreival of files from some
> directories
> 
> > BY default it is possible to retrieve files located under the 'WEB-INF'
> > directory. For example: www.someserver.com/WEB-INF./web.xml or
> > www.someserver.com/WEB-INF./classes/MySer
> >  
> > vlet.class
> > 
> > What needs to be done to prevent it ?   Why such restrictions are not
> > set by
> > default?  This vulnerability prevents us to pass the security
> > certification
> > test
> > 
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to set restrictions on the retreival of files from some directories

2005-11-18 Thread Brian Buchanan

Upgrade.  In a short test on two of my servers, 5.0.28 on windows has this
WEB-INF. vulnerability, but 5.5.7 did not.

-Original Message-
From: "Alla Winter" <[EMAIL PROTECTED]>
To: 
Date: Thu, 17 Nov 2005 14:19:13 -0600
Subject: How to set restrictions on the retreival of files from some
directories

> BY default it is possible to retrieve files located under the 'WEB-INF'
> directory. For example: www.someserver.com/WEB-INF./web.xml or
> www.someserver.com/WEB-INF./classes/MySer
>  
> vlet.class
> 
> What needs to be done to prevent it ?   Why such restrictions are not
> set by
> default?  This vulnerability prevents us to pass the security
> certification
> test
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Managing concurrent high memory processes

2005-11-18 Thread Wade Chandler
> -Original Message-
> From: BB Commish [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 18, 2005 12:50 PM
> To: users@tomcat.apache.org
> Subject: Managing concurrent high memory processes
> 
> We have a Struts application running on Tomcat where
> a few actions
> within 
> the app can invoke processing that consumes 300+ MB
> of RAM and can run
> for 
> several hours. The issue is how to make the
> application more scalable to
> 
> accommodate multiple concurrent 'high load'
> processes and also make
> better 
> use of servers with available RAM beyond the jvm
> limits (we have used
> both 
> Sun and JRockit jvms - typically on Win2k3 as per
> customer
> requirements).
> 
> Would Tomcat clustering/load balancing be suited to
> this problem? Or is
> it 
> more geared to managing high volumes of requests
> rather than just
> dealing 
> with certain high load requests that need special
> attention?
> 
> We have also considered spawning a separate jvm
> instance (or retrieving
> from 
> a pool more likely) to handle each high load request
> with the 'normal' 
> requests being handled within the jvm running
> Tomcat. Is this a feasible
> 
> option?
> 
> I will appreciate any comments. Thanks.
> 

Sure you can pawn off the processing to other
processes.  It's still going to use memory and the
processor regardless however.  This would at least
leave your main process memory for handling requests. 
You could also look at your long running memory
intensive operations and see if you can move this out
to some type of a stream operation or something and
move the data holding and manipulation to random
access files or a database.  Unless you are really
doing something that "really" requires heavy lifting
you should be able to refactor your code to handle the
load better (300+MB of RAM is a lot if this is per
thread/actionnot so much if you are talking about
the server process using more than 300 MB of RAM).  If
not then your processing requires resources and it's
time to up to a real multi-processor system and throw
gigs of ram on to it or cluster and make sure you have
enough RAM on each machine to handle the memory usage.
 No matter what software you're using the hardware has
to support the work load.

Wade

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Managing concurrent high memory processes

2005-11-18 Thread Duan, Nick
You may want to find out where the bottlenecks are before deciding on
clustering or lb tomcat.  For instance, if the bottleneck is your
backend database, clustering tomcat won't help at all.  One easy way to
find out the bottleneck is to turn on the debugging or just use the
operating system monitor to monitor the CPU utilization (assuming tomcat
and the backend database are on different machines).

ND
-Original Message-
From: BB Commish [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 18, 2005 12:50 PM
To: users@tomcat.apache.org
Subject: Managing concurrent high memory processes

We have a Struts application running on Tomcat where a few actions
within 
the app can invoke processing that consumes 300+ MB of RAM and can run
for 
several hours. The issue is how to make the application more scalable to

accommodate multiple concurrent 'high load' processes and also make
better 
use of servers with available RAM beyond the jvm limits (we have used
both 
Sun and JRockit jvms - typically on Win2k3 as per customer
requirements).

Would Tomcat clustering/load balancing be suited to this problem? Or is
it 
more geared to managing high volumes of requests rather than just
dealing 
with certain high load requests that need special attention?

We have also considered spawning a separate jvm instance (or retrieving
from 
a pool more likely) to handle each high load request with the 'normal' 
requests being handled within the jvm running Tomcat. Is this a feasible

option?

I will appreciate any comments. Thanks.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Managing concurrent high memory processes

2005-11-18 Thread Richard Mixon
BB,

It sounds like you are talking about what used to be called "batch
processing". The workload is simply kicked off from a web request. Does it
(attempt) to return a request to the user? Are timeouts and issue?

As far as available RAM - the obvious solution here is to move to a 64-bit
OS. We've been using AMD Opterons and SuSE Linux for high-memory Tomcat (JVM
heap > 2GB) for a couple of years now. But I'm also running Windows XP _64
on my desktop and its JVM seems able to take more than 2GB also.  We have a
somewhat similar problem, in that we have to dynamically build an in-memory
"cube" of analytical data for charting and what-if exploration of
results.But our reponses typically come back in between 15 seconds and a
couple of minutes.

Depending on how large your session is, you may not really want to use
clustering - because your sessions are replicated across all or a subset of
machines. 

However simple load balancing with session affinity might help you scale
your solution - either with multiple Tomcat's on a single machine or on
separate machines.

But ultimately, I think you are going down the correct path to consider
spawning a separate JVM to handle this if it is a true "batch request". From
what I know (please correct me if I'm wrong here) Tomcat is definitely
optimized for handling larger numbers of "relatively" small requests. Its
also much easier to tune Tomcat if you have a larger numbers of similarly
sized workloads (requests). On mainframe transaction processing the analogy
was to an hour glass - if you mixed a few pebbles in with all of the grains
of sand, you ended up clogging up the works for everyone - not just
yourself.

This also lets you allocate CPU resources to these separate JVM as you wish
- if its all in Tomcat, you have much less control.

Also, if communication has to occur back to a Tomcat user, you might
consider using Java Messaging Service for this - at which point you should
look at Jboss or similar application server that has Tomcat and a JMS
bundled together.

Hope these thoughts are useful.

 - Richard


> -Original Message-
> From: BB Commish [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 18, 2005 10:50 AM
> To: users@tomcat.apache.org
> Subject: Managing concurrent high memory processes
> 
> We have a Struts application running on Tomcat where a few 
> actions within the app can invoke processing that consumes 
> 300+ MB of RAM and can run for several hours. The issue is 
> how to make the application more scalable to accommodate 
> multiple concurrent 'high load' processes and also make 
> better use of servers with available RAM beyond the jvm 
> limits (we have used both Sun and JRockit jvms - typically on 
> Win2k3 as per customer requirements).
> 
> Would Tomcat clustering/load balancing be suited to this 
> problem? Or is it more geared to managing high volumes of 
> requests rather than just dealing with certain high load 
> requests that need special attention?
> 
> We have also considered spawning a separate jvm instance (or 
> retrieving from a pool more likely) to handle each high load 
> request with the 'normal' 
> requests being handled within the jvm running Tomcat. Is this 
> a feasible option?
> 
> I will appreciate any comments. Thanks.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Managing concurrent high memory processes

2005-11-18 Thread Peter Lin
sounds like you have a heafty reporting process, which loads a ton of data
and generates a large report. I definitely wouldn't recommend running these
processes within a single instance of Tomcat. You'll easily eat all the
available RAM and get OOME.

A better approach would be to off-load the process and use something like
JMS to route the message. If the process is generating a report, I would
recommend revisiting the design and implementation of that component. More
specifically, if you're running all sorts of multi-dimensional reports on a
large dataset that's 500K+ records, consider using an OLAP product. In many
cases, using MOLAP approach can reduce the processing time by 10x.

good luck

peter



On 11/18/05, BB Commish <[EMAIL PROTECTED]> wrote:
>
> We have a Struts application running on Tomcat where a few actions within
> the app can invoke processing that consumes 300+ MB of RAM and can run for
> several hours. The issue is how to make the application more scalable to
> accommodate multiple concurrent 'high load' processes and also make better
> use of servers with available RAM beyond the jvm limits (we have used both
> Sun and JRockit jvms - typically on Win2k3 as per customer requirements).
>
> Would Tomcat clustering/load balancing be suited to this problem? Or is it
> more geared to managing high volumes of requests rather than just dealing
> with certain high load requests that need special attention?
>
> We have also considered spawning a separate jvm instance (or retrieving
> from
> a pool more likely) to handle each high load request with the 'normal'
> requests being handled within the jvm running Tomcat. Is this a feasible
> option?
>
> I will appreciate any comments. Thanks.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Managing concurrent high memory processes

2005-11-18 Thread BB Commish
We have a Struts application running on Tomcat where a few actions within 
the app can invoke processing that consumes 300+ MB of RAM and can run for 
several hours. The issue is how to make the application more scalable to 
accommodate multiple concurrent 'high load' processes and also make better 
use of servers with available RAM beyond the jvm limits (we have used both 
Sun and JRockit jvms - typically on Win2k3 as per customer requirements).


Would Tomcat clustering/load balancing be suited to this problem? Or is it 
more geared to managing high volumes of requests rather than just dealing 
with certain high load requests that need special attention?


We have also considered spawning a separate jvm instance (or retrieving from 
a pool more likely) to handle each high load request with the 'normal' 
requests being handled within the jvm running Tomcat. Is this a feasible 
option?


I will appreciate any comments. Thanks.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do I force getContextPath to return ""

2005-11-18 Thread hv @ Fashion Content
Is there a way have getContextPath return "" other than setting it up as 
ROOT context

I seem to remember  working, but it 
doesn't seem to have any effect in 5.5.9

I have that old problem of rewriting URLs to get rid of the pesky context 
path.

Cheers,

Henrik 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Security not on, so why do I get an AccessControlException?

2005-11-18 Thread JBorn

Can anyone help me with this?

If not what other information is needed to understand what is going on?

Thanks,

jb
[EMAIL PROTECTED]








[EMAIL PROTECTED] 
11/15/2005 10:11 AM

Please respond to
"Tomcat Users List" 








To
users@tomcat.apache.org


cc



Subject
Security not on, so why do I get an AccessControlException?










It is my understanding that when you start Tomcat (version 5.0.28
customized for Liferay portal) from the command line (Windows XP Pro) via
the startup.bat with no parameters you do not have security turned on.  In
order to use catalina.policy I would have to run "startup -security"  Since
I'm not doing that I'm confused on why the following message is showing up:

15:04:16,180 ERROR [org.apache.coyote.tomcat5.CoyoteConnector] Protocol JMX
registration failed
java.security.AccessControlException: Access denied
(mx4j.server.MBeanTrustPermission register): MBean class
org.apache.commons.modeler.BaseModelMBean is not trusted for registration
        at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.checkTrustRegistration(SecurityMBeanServerInterceptor.java:156)
        at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.registration(SecurityMBeanServerInterceptor.java:116)
        at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMBeanServerInterceptor.java:113)
        at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMBeanServerInterceptor.java:113)
        at
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.registration(ContextClassLoaderMBeanServerInterceptor.java:108)
        at
mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1051)
        at
mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)
        at
mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978)
        at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
        at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
        at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1539)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:489)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
15:04:16,180 INFO  [org.apache.catalina.startup.Catalina] Server startup in
22094 ms

This happens when I attempt to add a portlet that requires an EJB from
WebLogic.  I can add and run other portlets without causing the error.

I have tried running with security and received the same error.

Also tried to create a policy called wideopen.policy that contains the
following:

grant {
      // Allow everything for now
      permission java.security.AllPermission;
};

Then changed the catalina.bat to use wideopen.policy instead of
catalina.policy.  Still I end up with the same error.

Please help me understand what is happening

Thanks,

jb
The information contained in this electronic mail transmission is intended only for the use of the individual or entity named above and is privileged and confidential.  If you are not the intended recipient, please do not read, copy, use or disclose this communication to others.  Any dissemination, distribution or copying of this communication other than to the person or entity named above is strictly prohibited.  If you have received this communication in error, please immediately delete it from your system.

The information contained in this electronic mail transmission is intended only for the use of the individual or entity named above and is privileged and confidential.  If you are not the intended recipient, please do not read, copy, use or disclose this communication to others.  Any dissemination, distribution or copying of this communication other than to the person or entity named above is strictly prohibited.  If you have received this communication in error, please immediately delete it from your system.



Re: jsp pages do not run in tomcat

2005-11-18 Thread Aparna Ramakrishnan
Hello,
  thnx for ur reply.
   
  Now the jsp pages work fine. i deployed them as a .war file.
  but now, the problem is with the compiler. 
  when i type javac -help, i get Jikes Compiler . (I use Debian LINUX in which 
jikes comes bundled with kaffe VM.)
   
  But earlier when i was not using Tomcat, i worked in Netbeans using J2SDK 1.4.
  then the java files could be compiled. but now, after installing tomcat with 
kaffe and jikes, both compilers (jikes as well as javac) do not work.
   
  jikes filename.java givs errors.
   
  Error:
  Found 1 System error
  ***Semantic Error: You need to modify your classpath, sourcepath, 
bootclasspath and/or extdirs setup.Jikes could not find package java.lang in:
.
   
javac filename.java also givs errors.
   
  Error:
  found 20 Semantic errors
  similar to the 1 stated above. servlet.http, variable names, method names 
nothing found!
   
  how should i correct this? im unable to proceed now. kindly guide me.
   
  thnx in advance
  regards
  aparna

  

Santosh Asbe <[EMAIL PROTECTED]> wrote:
   

  check whether .java & .class files for the JSP are being created in the work 
folder. Work folrder is located at /work/Standalone/localhost/.
  If class files are not being created here for the JSP then check ur JSP for 
extra semi colons which sometime creates problems for compilation.
   
   
  

 
  On 11/18/05, Aparna Ramakrishnan <[EMAIL PROTECTED]> wrote:   Hello,
I am running tomcat4. when i start Tomcat using /etc/init.d/tomcat4 start using 
JAVA_HOME=/usr/lib/kaffe, tomcat stops to run almost immediately but says the 
pid file still exists. 

Now if i export JAVA_HOME=/usr/j2sdk1.4.2_09, and start tomcat again, it runs 
comfortably.

But when i run jsp pages, on the browser, i get the following error.

type: Exception report


message: 


description: The server encountered an internal error () that prevented it from 
fulfilling this request.


exception:

org.apache.jasper.JasperException: Unable to compile class for JSP


An error occurred at line: -1 in the jsp file: null


Generated servlet error:
[javac] Compiling 1 source file

[javac] Issued 1 system warning:

[javac] *** Semantic Warning: I/O warning: "No such file or directory" while 
trying to open /usr/lib/kaffe/pthreads/lib/*.jar. 

[javac] Found 1 semantic error and issued 1 warning compiling 
"/usr/share/tomcat4/work/Standalone/localhost/_/SeamlessMobility1/centerframe_jsp.java":


[javac] 8. import servlet_classes.Database;; 
[javac] ^--^
[javac] *** Semantic Error: The import "servlet_classes/Database" is not valid, 
since it does not name a type in a package.


[javac] 23. javax.servlet.jsp.PageContext pageContext = null;
[javac] ^-^
[javac] *** Semantic Warning: Local "pageContext" shadows a field of the same 
name in "org.apache.jasper.runtime.HttpJspBase".



at org.apache.jasper.compiler.DefaultErrorHandler.javacError 
(DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError 
(ErrorDispatcher.java:248)
at org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile (Compiler.java:328)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service 
(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:187)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:200)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke 
(StandardContextValve.java:144)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java :596)
at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke ( StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke 
(StandardHostValve.java:133)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java :596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke 
(ErrorDispatcherValve.java:118)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java:594)
at org.apache.catalina.valve

Re: Package naming

2005-11-18 Thread Ajay Arjandas Daryanani
Thanks a lot, Peter (again).

Regards,

Ajay

Peter Crowther wrote:
>>From: Ajay Arjandas Daryanani [mailto:[EMAIL PROTECTED] 
>>i've written a authorization filter for Tomcat. The question is: is
>>there any convention about package naming? Can I use, for example,
>>'package es.mydomain.myname;'? Or it's better to use 'package 
>>filters;'?
> 
> 
> The conventional Java approach of using your domain name to ensure the
> uniqueness of package names applies just as much in Tomcat as everywhere
> else.  I've only needed to break that once, when I was hacking at some
> Tomcat internals and needed access to some classes that only had package
> access.
> 
>   - Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
=
Ajay Arjandas Daryanani
Area de Middleware
RedIRIS / Red.es

Edificio Bronce
Plaza de Manuel Gómez Moreno, s/n - 2ª planta
28020 Madrid

Tel.: 91 212 76 20 (Ext. 5541)
Fax : 91 556 88 64
e-mail: [EMAIL PROTECTED]
jid: [EMAIL PROTECTED]

http://www.rediris.es
=


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Shared/WebApp ClassLoaders

2005-11-18 Thread Andrés Glez .
OK, the problem was exatly the reverse, the classes (jars) of shared/lib 
didn't find log4j and the ClassNotFoundExcepcion was caused by that.



- Original Message - 
From: "Andrés Glez." <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Friday, November 18, 2005 11:04 AM
Subject: Shared/WebApp ClassLoaders



Something strange happened to my tomcat yesterday:

I have two webApps which use some shared jars that i put in 
$TOMCAT_HOME/shared/lib


Yesterday i decided to remove the log4j.jar from shared/lib and put it on 
each webApp WEB-INF/lib dir.


Log4j works great now, and one of the WebApps also runs fine. But the 
other can not find any of the classes of the jars that remain in 
$TOMCAT_HOME/shared/lib


I had to put ALL the jars of shared/lib in this WebApp WEB-INF/lib/ dir to 
make it work.


Any suggestions to try to find why this is happening?

OS: Debian 3.0
Tomcat: 5.0.28
JDK: 1.4.2_09

Thanks

--
Andrés González Rodríguez
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Package naming

2005-11-18 Thread Peter Crowther
> From: Ajay Arjandas Daryanani [mailto:[EMAIL PROTECTED] 
> i've written a authorization filter for Tomcat. The question is: is
> there any convention about package naming? Can I use, for example,
> 'package es.mydomain.myname;'? Or it's better to use 'package 
> filters;'?

The conventional Java approach of using your domain name to ensure the
uniqueness of package names applies just as much in Tomcat as everywhere
else.  I've only needed to break that once, when I was hacking at some
Tomcat internals and needed access to some classes that only had package
access.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Package naming

2005-11-18 Thread Ajay Arjandas Daryanani
Hi all,

i've written a authorization filter for Tomcat. The question is: is
there any convention about package naming? Can I use, for example,
'package es.mydomain.myname;'? Or it's better to use 'package filters;'?

Regards,

Ajay


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jsp pages do not run in tomcat

2005-11-18 Thread Santosh Asbe
check whether .java & .class files for the JSP are being created in the work
folder. Work folrder is located at /work/Standalone/localhost/.
If class files are not being created here for the JSP then check ur JSP for
extra semi colons which sometime creates problems for compilation.


 On 11/18/05, Aparna Ramakrishnan <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I am running tomcat4. when i start Tomcat using /etc/init.d/tomcat4 start
> using JAVA_HOME=/usr/lib/kaffe, tomcat stops to run almost immediately but
> says the pid file still exists.
>
> Now if i export JAVA_HOME=/usr/j2sdk1.4.2_09, and start tomcat again, it
> runs comfortably.
>
> But when i run jsp pages, on the browser, i get the following error.
>
> type: Exception report
>
>
> message:
>
>
> description: The server encountered an internal error () that prevented it
> from fulfilling this request.
>
>
> exception:
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
>
> An error occurred at line: -1 in the jsp file: null
>
>
> Generated servlet error:
> [javac] Compiling 1 source file
>
> [javac] Issued 1 system warning:
>
> [javac] *** Semantic Warning: I/O warning: "No such file or directory"
> while trying to open /usr/lib/kaffe/pthreads/lib/*.jar.
>
> [javac] Found 1 semantic error and issued 1 warning compiling
> "/usr/share/tomcat4/work/Standalone/localhost/_/SeamlessMobility1/centerframe_jsp.java":
>
>
> [javac] 8. import servlet_classes.Database;;
> [javac] ^--^
> [javac] *** Semantic Error: The import "servlet_classes/Database" is not
> valid, since it does not name a type in a package.
>
>
> [javac] 23. javax.servlet.jsp.PageContext pageContext = null;
> [javac] ^-^
> [javac] *** Semantic Warning: Local "pageContext" shadows a field of the
> same name in "org.apache.jasper.runtime.HttpJspBase".
>
>
>
> at org.apache.jasper.compiler.DefaultErrorHandler.javacError (
> DefaultErrorHandler.java:85)
> at org.apache.jasper.compiler.ErrorDispatcher.javacError (
> ErrorDispatcher.java:248)
> at org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:315)
> at org.apache.jasper.compiler.Compiler.compile (Compiler.java:328)
> at org.apache.jasper.JspCompilationContext.compile(
> JspCompilationContext.java:427)
> at org.apache.jasper.servlet.JspServletWrapper.service (
> JspServletWrapper.java:142)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java
> :240)
> at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:187)
> at javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
> ApplicationFilterChain.java:200)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:146)
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:209)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
> StandardPipeline.java:596)
> at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java
> :433)
> at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
> at org.apache.catalina.core.StandardContextValve.invoke (
> StandardContextValve.java:144)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
> StandardPipeline.java:596)
> at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java
> :433)
> at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
> at org.apache.catalina.core.StandardContext.invoke (StandardContext.java
> :2358)
> at org.apache.catalina.core.StandardHostValve.invoke (
> StandardHostValve.java:133)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
> StandardPipeline.java:596)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke (
> ErrorDispatcherValve.java:118)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
> StandardPipeline.java:594)
> at org.apache.catalina.valves.ErrorReportValve.invoke (
> ErrorReportValve.java:116)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
> StandardPipeline.java:594)
> at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java
> :433)
> at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
> at org.apache.catalina.core.StandardEngineValve.invoke (
> StandardEngineValve.java:127)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
> StandardPipeline.java:596)
> at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java
> :433)
> at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service (CoyoteAdapter.java
> :152)
> at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java
> :799)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHan

Tomcat and Lomboz: access to SQL drivers?

2005-11-18 Thread Thomas Nybro Bolding
I am building a project using eclipse and Lomboz for Tomcat 5.5 in which I 
need to access a SQL server.
In the project web.xml I have added resource-ref as I would on the Tomcat 
server. On Tomcat I would then modify the context xml file in 
conf/Catalina/localhost and add Context and Resource parameters. But where 
does this information go in Lomboz?
I have added the Tomcat server to my Lomboz project and thus have a 
directory containing a server, tomcat-users and web.xml files. From this 
directory I am able to launch my project locally but can not gain access 
to the SQL server as Tomcat reports "Cannot create JDBC driver of class '' for 
connect URL 'null'". I have tried to add the resource parameters to the context 
element in 
server.xml as well as add a global naming resource but in either case 
Tomcat refuses to start locally?

Any help is highly appreciated as I'm pretty noob when it comes 
Lomboz/Tomcat integration...

Best regards Thomas

___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. 
Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere 
afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette 
e-mailen i dit system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri 
for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori 
den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os 
ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at 
modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by 
sending a reply, then delete the message from your system without making, 
distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from viruses 
and other errors that might affect the computer or IT system where it is 
received and read, the recipient opens the message at his or her own risk. We 
assume no responsibility for any loss or damage arising from the receipt or use 
of this message.




jsp pages do not run in tomcat

2005-11-18 Thread Aparna Ramakrishnan
  Hello,
  I am running tomcat4. when i start Tomcat using /etc/init.d/tomcat4 start 
using JAVA_HOME=/usr/lib/kaffe, tomcat stops to run almost immediately but says 
the pid file still exists.
   
  Now if i export JAVA_HOME=/usr/j2sdk1.4.2_09, and start tomcat again, it runs 
comfortably.
   
  But when i run jsp pages, on the browser, i get the following error.
   
  type: Exception report
  
   
  message:
   
  
  description: The server encountered an internal error () that prevented it 
from fulfilling this request.
  
   
  exception:
  
  org.apache.jasper.JasperException: Unable to compile class for JSP
  
   
  An error occurred at line: -1 in the jsp file: null
  
   
  Generated servlet error:
  [javac] Compiling 1 source file
  
  [javac] Issued 1 system warning:
  
  [javac] *** Semantic Warning: I/O warning: "No such file or directory" while 
trying to open /usr/lib/kaffe/pthreads/lib/*.jar.
  
  [javac] Found 1 semantic error and issued 1 warning compiling 
"/usr/share/tomcat4/work/Standalone/localhost/_/SeamlessMobility1/centerframe_jsp.java":
  
   
  [javac] 8. import servlet_classes.Database;;
  [javac] ^--^
  [javac] *** Semantic Error: The import "servlet_classes/Database" is not 
valid, since it does not name a type in a package.
  
   
  [javac] 23. javax.servlet.jsp.PageContext pageContext = null;
  [javac] ^-^
  [javac] *** Semantic Warning: Local "pageContext" shadows a field of the same 
name in "org.apache.jasper.runtime.HttpJspBase".
  
   
   
  at org.apache.jasper.compiler.DefaultErrorHandler.javacError 
(DefaultErrorHandler.java:85)
  at org.apache.jasper.compiler.ErrorDispatcher.javacError 
(ErrorDispatcher.java:248)
  at org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:315)
  at org.apache.jasper.compiler.Compiler.compile (Compiler.java:328)
  at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
  at org.apache.jasper.servlet.JspServletWrapper.service 
(JspServletWrapper.java:142)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:240)
  at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:187)
  at javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:200)
  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
  at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke 
(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
  at org.apache.catalina.core.StandardContextValve.invoke 
(StandardContextValve.java:144)
  at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke 
(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
  at org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2358)
  at org.apache.catalina.core.StandardHostValve.invoke 
(StandardHostValve.java:133)
  at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java:596)
  at org.apache.catalina.valves.ErrorDispatcherValve.invoke 
(ErrorDispatcherValve.java:118)
  at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java:594)
  at org.apache.catalina.valves.ErrorReportValve.invoke 
(ErrorReportValve.java:116)
  at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java:594)
  at org.apache.catalina.core.StandardPipeline.invoke 
(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
  at org.apache.catalina.core.StandardEngineValve.invoke 
(StandardEngineValve.java:127)
  at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
 (StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke 
(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
  at org.apache.coyote.tomcat4.CoyoteAdapter.service (CoyoteAdapter.java:152)
  at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:799)
  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
 (Http11Protocol.java:705)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt (PoolTcpEndpoint.java:577)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run 
(ThreadPool.java:683)
  at java.lang.Thread.run (Thread.java:673)
  at java.lang.VMThread.run (VMThread.java:123)
   
  Kindly plz guide me, since am a newbie to Tomcat and java. 

cross context failing on Tomcat 5.5.9

2005-11-18 Thread irene_hall




Cross context failing on moving from Tomcat 4.1.27 to 5.5.9
I have an application which consists of several application wars all within
the same virtual host. Each application is configured with the same servlet
filter which gets the context for the main part of the application.
I have crossContext="true" on all the context elements. The context
elements are each in a .xml where  is their app name and the
root context is in ROOT.xml. They are all under
Catalina_Home/conf/engine_name/host_name/*.xml
This application works fine on Tomcat 4.1.27 and fails on Tomcat 5.5.9. It
is failing at the point where the filter attempts, from within its own
servlet context to getContext(name) - that call returns null every time.

What am I doing wrong ? Am I missing some configuration element ?

Irene






For more information on Standard Life, visit our website
http://www.standardlife.co.uk/

The Standard Life Assurance Company, Standard Life House, 30 Lothian Road,
Edinburgh EH1 2DH, is registered in Scotland (No. SZ4) and is authorised
and regulated by the Financial Services Authority. Tel: 0131 225 2552 -
calls may be recorded or monitored. This confidential e-mail is for the
addressee only. If received in error, do not retain/copy/disclose it
without our consent and please return it to us. We virus scan and monitor
all e-mails but are not responsible for any damage caused by a virus or
alteration by a third party after it is sent.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Shared/WebApp ClassLoaders

2005-11-18 Thread Andrés Glez .

Something strange happened to my tomcat yesterday:

I have two webApps which use some shared jars that i put in 
$TOMCAT_HOME/shared/lib


Yesterday i decided to remove the log4j.jar from shared/lib and put it on 
each webApp WEB-INF/lib dir.


Log4j works great now, and one of the WebApps also runs fine. But the other 
can not find any of the classes of the jars that remain in 
$TOMCAT_HOME/shared/lib


I had to put ALL the jars of shared/lib in this WebApp WEB-INF/lib/ dir to 
make it work.


Any suggestions to try to find why this is happening?

OS: Debian 3.0
Tomcat: 5.0.28
JDK: 1.4.2_09

Thanks

--
Andrés González Rodríguez
[EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: session replication errors

2005-11-18 Thread Richard Mixon
And does this have to do with "session replication errors"?

At least when hijacking a thread remember to change the Subject line. But
better still create an entirely new email and address it to the list. This
will make it easier on those of us that use threaded mail readers.

Concerning your question. Are you using the Sysdeo Tomcat plugin or WTP? If
using Sysdeo, I am using Eclipse 3.1 and Sysdeo and its works fine either
way.

Please also tell the operating system and version and Java version - it
might help.

HTH - Richard

> -Original Message-
> From: Kanin Chen [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 17, 2005 3:33 AM
> To: Tomcat Users List
> Subject: Re: session replication errors
> 
> Howdy,
>  I am using Eclipse 3.1 and TC 5.5.12, when starting TC 
> 5.5.12 in Eclipse, the manage webapp is disabled while 
> starting outside Eclipse is valid.
>  The server.xml in eclipse is all the same to server.xml in TC.
> any hint?
>  Thanks in advance.
> Best Regards.
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 problem - container not serving up web content

2005-11-18 Thread Michael Niemaz

I have the same message when I try to deploy a war file that already exists.
I have to shutdown, remove the old war file and its deployed dir, copy 
the new war file and then re-start Linux Tomcat.

This probably has nothing to do with your problem but ... we never know ;-)

--mike

Jorge Rodriguez wrote:

I believe this to be a config issue, but have had no success resolving it 
for the past two days, so any help would be greatly appreciated.


When I access a JSP page directly on my localhost, it loads properly with 
images and the stylesheet.
However, when I access the JSP (or any other JSP for that matter) using a 
filter, servlet or the struts action forward, the JSP content loads up, 
but anything else (images, linked CSS files) do not get served up. 

I've tried every single variation of the  and  tags (relative, 
hardcoded, with a /) but that didn't work. My guess is that there is some 
additional configuration that I haven't completed, yet I don't see if 
anywhere in the docs. I tried adding MIME mapping info to my web.xml, but 
that didn't help either.


The only possible relevant info that shows up related to errors/warnings 
is the following log:
   "Nov 17, 2005 1:50:23 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
   INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[]"
My web.xml is located in \Web Content\WEB-INF\web.xml, which sounds like 
it should be ok.



Using Tomcat 5.5 on jdk1.5.0_05 and developing on Eclipse 3.1 with the Web 
tools project 0.7 and no other plugins. 


Please help me out if you know what's up.

TIA!
JR
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Session not sticky in 5.5 with load balancer

2005-11-18 Thread Dominik Drzewiecki
"Duan, Nick" <[EMAIL PROTECTED]> wrote"
> I am running an Apache httpd server as the load balancer with two tomcat
> instances.  All servers are on the same windows XP machine.  The load
> balancing works fine, but I am not able to make user sessions sticky
> with either one of the tomcat instances.  The test was done using is the
> session example application bundled with the tomcat distribution.

Did you set jvmRoute on both tomcats to distinct values? By default it is 
not specified on the Engine element in the server.xml.

cheers,
/dd 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]