RE: is there a free ide that gets along well with tomcat?

2002-11-22 Thread Bodycombe, Andrew
You could try jedit http://www.jedit.org

There is a plug-in for tomcat.

Andy. 

-Original Message-
From: jennifer lindner
To: [EMAIL PROTECTED]
Sent: 21/11/2002 19:47
Subject: is there a free ide that gets along well with tomcat?

hello, i'm a newbie so i apologize if this topic came
up last week or something. can anyone recommend a
lightweight, free development environment that will be
easy to use with tomcat 4.1.1? i just uninstalled sun
one studio (aka forte) due to irritation. 

thanks,
jen

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Taglib help. FunkNewbiest

2002-11-22 Thread Qmail List
Hello,

I'm trying to implement TagLib functionality into a webapp for the first
time. Everything seems correct, and I've been through a million sites and
tutorials. Yet I always get the following error upon loading the page (TC
4.1.12 / JDK 1.4.0_01):

org.apache.jasper.JasperException: /en/archiver.jsp(259,18) Unable to load
class ArchivePanel

Here are my files and setup. Can anyone see the problem? (I've seen some
archive responses related to v1.1 or v1.2 of the tld dtd. also, the machine
doesn't need internet connectivity does it? - to get those dtd's?). Finally
how can I enable jasper logging in TC4. That may help, but I don't see the
option in server.xml

 TIA - Eric


archiver.jsp

<%@ taglib uri="/WEB-INF/display.tld" prefix="display" %>

some html and later in page..




web.xml
===

  
/WEB-INF/display.tld
  
  
/WEB-INF/display.tld
  



display.tld
===

http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>

 1.0
 1.1
 display
 This tag library contains display components
 
  ArchivePanel
  com.msg.display.ArchvePanel
  empty
 



ArchivePanel.java
=
package com.msg.display;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.TagSupport;

public class ArchivePanel extends TagSupport {

 public int doStartTag() throws JspException {
  try {
   pageContext.getOut().print("Hello.");
  } catch (Exception ex) {
   throw new JspTagException("SimpleTag: " + ex.getMessage());
  }
  return SKIP_BODY;
 }

 public int doEndTag() {
  return EVAL_PAGE;
 }

}


If I try to troubleshoot myself I still get no where. For example, If I
change the jsp page to read



I get the following error: No such tag ArchivePannn in the tag library
imported with prefix display.

So things are working to some extent. Everything compiles, everything is in
the correct location. No typos I can see. Heh. I'm at a loss.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Cookies translation problem on isapi connector using IIS5 + TOMCAT 4.0.1

2002-11-22 Thread Zaragoza, Carles
Dear all,

Look like that when I use IIS with AJP3 and TomCat 4.0.1 with the
isapi_redirect.dll cookies can become HTTP translated and/or truncated. 

This ugly HTTP translation occurs during request communication between the
isapi_redirect.dll and Tomcat.

Cookie truncation occurs when multiple cookies are used. I think that this
is a side-effect of the HTTP/1.1 extended cookie definition. 

So for example "MY_KEY_VALUE=815" on TomCat working alone becomes
"MY%5fKEY%5fVALUE%3d815" on IIS + Tomcat. WHY ?

I believe, that the connector architecture between IIS and Tomcat is the
cause.  It is sending the raw HTTP to Tomcat.  This is not "automatically"
reversing the escaping of the special characters (ie. Multiple cookies
separation character's)).

Could any connector-guru help me in order to understand what is going on ?

Any help will be much appreciated.
Carles.


Carles Zaragoza Roig 
Uniface/Optimal PreSales 
Compuware Spain 
R Poniente, 15-2 Dcha 
28760 Tres Cantos 
Madrid - SPAIN 
Tel. : 91.806.49.30 
Fax : 91.803.64.60 
E-mail : [EMAIL PROTECTED] 
Web :  
DISCLAIMER: 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.





-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




storing passwords

2002-11-22 Thread RXZ JLo
I want to introduce the concept of users in my web
application. I want to know how to store passwords
securily on the server side. How do people deal with
passwords usually? Any documentation/guides on this
would also do.

thanks
rf.

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: storing passwords

2002-11-22 Thread Joe Tomcat
On Fri, 2002-11-22 at 01:05, RXZ JLo wrote:
> I want to introduce the concept of users in my web
> application. I want to know how to store passwords
> securily on the server side. How do people deal with
> passwords usually? Any documentation/guides on this
> would also do.

It all depends on what kind of access you are trying to protect.  If
this is a low-security thing, it might be useful to be able to mail
users their passwords if they forget them.  In that case you would store
them in plain text.  If it's higher security, you might store them as a
SHA1 hash, so that if they lose a password, they have to have a new one
generated.  If it's even higher security, maybe you shouldn't be using
passwords at all.  As in ALL areas related to security, how you do it
depends on the value of what you are trying to protect.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: storing passwords

2002-11-22 Thread Steven Sporen
Normally you generate a hash of the password and store that. Thus the
actual password is not stored, then when a user logs in you generate a
hash and compare the two.

-Original Message-
From: RXZ JLo [mailto:[EMAIL PROTECTED]] 
Sent: 22 November 2002 11:06
To: [EMAIL PROTECTED]
Subject: storing passwords


I want to introduce the concept of users in my web
application. I want to know how to store passwords
securily on the server side. How do people deal with
passwords usually? Any documentation/guides on this
would also do.

thanks
rf.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: storing passwords

2002-11-22 Thread Richard Johnstone
You could just store them in your database.
All you need to do is encrypt them using a simple encryption method

  public static byte[] encrypt(String x) throws Exception
  {
 java.security.MessageDigest d =null;
 d = java.security.MessageDigest.getInstance("SHA-1");
 d.reset();
 d.update(x.getBytes());
 return  d.digest();
  }



>>> [EMAIL PROTECTED] 11/22/02 09:05am >>>
I want to introduce the concept of users in my web
application. I want to know how to store passwords
securily on the server side. How do people deal with
passwords usually? Any documentation/guides on this
would also do.

thanks
rf.

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Received: from APC_DOM-MTA by 
AVCMAIL.appleyard-contracts.co.uk
Affordable. Sign up now.
http://mailplus.yahoo.com 

--
To unsubscribe, e-mail:  

For additional commands, e-mail:



The information contained in this communication is intended solely for the use of the 
individual or entity to whom it is addressed and others authorized to receive it.  It 
may contain confidential or legally privileged information.  If you are not the 
intended recipient you are hereby notified that any disclosure, copying, distribution 
or taking any action in reliance on the contents of this information is strictly 
prohibited and may be unlawful. If you received this communication in error, please 
notify us immediately by responding to this email and then delete it from your system.
Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper 
and complete transmission of the information contained in this communication nor for 
any delay in its receipt.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


MIME-TYPE for .SIS file ? please help !!

2002-11-22 Thread Daniel.T.Hellstrand
I have asked this before but didn´t get any response so I´ll try again ;)

I´m using Tomcat 4.1.12, how can I find out what MIME-TYPE to set for Symbian OS files 
(with .SIS as extension). 
I know it´s possible since you can download .sis files from 
http://www.wildpalm.co.uk/wap.wml 
Is there any way of extracting the mime-type from that link ?

/Daniel


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




can a Tomcat Filter rewrite the URL ?

2002-11-22 Thread Stephen Riek

I'd like for a request to "/en/Folder/File" to be mapped to 
"/Folder/File" but with a parameter 'lang' set to 'en'. 
Likewise, a request to "/fr/Folder/File" to be mapped to 
"/Folder/File" but with a parameter 'lang' set to 'fr'.
Is this possible with Filters?
If not, is there any way to accomplish this within Tomcat so that it works for any 
number of directories and subdirectories. The reason I want to do this is to avoid 
copying/pasting an entire sitemap to support a second language - I know that some 
people create a site in English then copy/paste the directory tree to support a second 
language but this is not scalable and difficult to maintain.  
Other mechanisms I've looked at are Apache rewrite rules but they're very complicated. 
 
Any and all help much appreciated. Thank you.
Stephen.




-
Get a bigger mailbox -- choose a size that fits your needs.



Session already invalidated error

2002-11-22 Thread Tejas Bavishi
Hi,

I am using Tomcat 404 and OC4J on Windows .

When I send approximately 25 requests, very often tomcat returns the
following error :

HTTP/1.1 500 Internal Server Error
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Connection: close

Apache Tomcat/4.0.4 - Error
report
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server
Errortype Exception
reportmessage Internal Server
Errordescription The server encountered an internal
error (Internal Server Error) that prevented it from fulfilling this
request.exception java.lang.IllegalStateException:
getAttribute: Session already invalidated   at
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.jav
a:900)  at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessi
onFacade.java:171)  at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessi
onFacade.java:17


Now the HTTP request is very simple, the requests call a single JSP page
which in turn calls taglibs, which in turn calls EJBs to retrieve data from
database and then return the HTML to the client. I have narrowed down the
problem on to Tomcat / my code running on Tomcat. However, my problem I am
not able to figure out, where the problem is ? I have checked mail archives
on this list, but haven't really found out any real pointers yet 

Any help/pointers on this highly appreciated

Many Thanks,
Tejas



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: I cannot make working SSL if I run tomcat as a service (NT)

2002-11-22 Thread Pae Choi
J2SDK 1.4.0_x has a bug in handling the security. Try
it with J2SDK 1.4.1_x.

Pae


- Original Message -
From: "Aurelio D'Amico" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 11:23 PM
Subject: I cannot make working SSL if I run tomcat as a service (NT)


> I have the following problem:
> If I run tomcat using the provided batches I have no problem with SSL but
> when I run it as a service (what I need) I receive the 404 error.
> There is someone that could help me?
> I'm running tomcat 4.0.4 (standalone) in a window NT environment (SP6) and
> with java SDK 1.4.0_03
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: storing passwords

2002-11-22 Thread RXZ JLo
Thanks to all of you for the responses. 

apart from this password I will be storing some other
things too(they too are passwords but for some other
things in the application). I cant use one way hash as
I cant use them further. what mechanism should I
follow in this case?

Also, for the login case should I bother about
encryption in the login form? Can I just use
 and rely on the brower?
What are the pros and cons for this? If you see yahoo
login, they generate md5 using javascript on the
client side itself - is this really necessary?


Thanks again.
rf



__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




multiple jservs with one apache web server

2002-11-22 Thread ranjit
Hello Group,

I want to mount multiple JServ engines on a single Apache Web Server, on 
the same server. To do this I have installed Apache web server (WITHOUT 
DSO support) and five JServ engines (jserv1,2,3,4,5). 
  
The reason why I want to do this is, we have a java-servlet based intranet 
mailing system, which very often goes down as the number of users using 
it is increasing rapidly... it was till now working on one apache and one 
jserv engine. 

Now can anybody help me as how to mount these five jservs on different 
ports on apache web server with a single IP. Any sample code/configuration 
clues/details will help me alot... 

The apache webserver version I am using is apache_1.3.27 and jserv1.1.2 
and jsdk 2.0 

 many thanks,
 Ranjit.
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Ranjit Kumar Gundu
 Center for DNA Finger Printing and Diagnostics (CDFD)
 Nacharam, Hyderabad - 500076
 I N D I A
 Other email:[EMAIL PROTECTED]
 Hello:+91-40-7151344 Ext1207
 FAX: +91-40-7155479
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

-


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Ajp 12 Error Logs

2002-11-22 Thread Gaurav Arya
Hi all,
In the tomcat logs I am getting the following error traces regularly :

Ajp12Interceptor: HANDLER THREAD PROBLEM - java.io.IOException: Stream closed 
prematurely
at org.apache.tomcat.modules.server.Ajp12.readNextRequest(Ajp12.java:316)
at 
org.apache.tomcat.modules.server.AJP12Request.readNextRequest(Ajp12Interceptor.java:253)
at 
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Interceptor.java:216)

Is this some fatal error or is it only mentioning the fact that the request was 
cancelled midway by the client (browser) ?

-Gaurav




Re: storing passwords

2002-11-22 Thread Andoni
It's all  qualified.  As the first response to your question said, it
completely depends on what you want to do and how secure you want things to
be.  If you just use the   then your password will be
sent over the web in plain text.  That is only of any use for people looking
over the user's shoulder, but if that's all you think you need then go
ahead.  I would put it something like this:

Weak:


To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 9:50 AM
Subject: Re: storing passwords


> Thanks to all of you for the responses.
>
> apart from this password I will be storing some other
> things too(they too are passwords but for some other
> things in the application). I cant use one way hash as
> I cant use them further. what mechanism should I
> follow in this case?
>
> Also, for the login case should I bother about
> encryption in the login form? Can I just use
>  and rely on the brower?
> What are the pros and cons for this? If you see yahoo
> login, they generate md5 using javascript on the
> client side itself - is this really necessary?
>
>
> Thanks again.
> rf
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




SSL, redirectPort, and transport-guarantee, oh my!

2002-11-22 Thread Shatzer, Larry
I'm trying to set up redirection to SSL. Below are the appropriate sections
of web.xml and server.xml

When I go to https://localhost:8443/app, I get directed to my login page,
with the addition of a jsessionid to the url.

If I go to http://localhost:8080/app, it warns me I am going to a secure
page (I have this turned on to know when I am going in and out of ssl).

I then get the security alert about the SSL certificate, I click YES to
proceed, it sits there for a while. In my status bar, I see it's trying to
connect to 127.0.0.1, which is no big deal, since it's localhost.

When it eventually times out, my url is now
https://localhost:8080/app/security/login/jsp/login.jsp;jesssionid=sessionid
here

Now, if I change it back to http in the url, and leave the rest, (mainly the
jsessionid), it will redirect fine.

I am running Tomcat 4.0.6.

Also, ran across this in the archives:
http://archives.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]
ache.org&msgId=285554 which had no answer that I could find. His situation
seems close to mine, expect the fact, if I remove auth-constraint, it breaks
the application.

Any thoughts or help on this would be appreciated.


web.xml section:

  

  All Struts Actions
  *.do
  *.jsp


  Must at least have access to the USER role to gain
access
  User


  CONFIDENTIAL

  

  
  
FORM

  /security/logon/jsp/logon.jsp
  /security/logon/jsp/logonFailed.jsp

  

server.xml section:



  


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: storing passwords

2002-11-22 Thread Joe Tomcat
On Fri, 2002-11-22 at 02:09, Andoni wrote:
> It's all  qualified.  As the first response to your question said, it
> completely depends on what you want to do and how secure you want things to
> be.  If you just use the   then your password will be
> sent over the web in plain text.  That is only of any use for people looking
> over the user's shoulder, but if that's all you think you need then go
> ahead.  I would put it something like this:
> 
> Weak:
> 
> mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Re: SOAP: Unable to resolve target object

2002-11-22 Thread Philippe Burger
Strange but it doesn't work anymore!!!
When I run the client, I have the following  (basic!) Exception:

Exception in thread "main" java.lang.NoClassDefFoundError: 

this class is in /webapps/soap/WEB-INF/classes/
The compilation is OK.

I put this /webapps/soap/WEB-INF/classes in the CLASSPATH (in
case).

I don't understand

Phil

>
> Hi John,
>
> I think I get it!
>
> When i unpacked the soap.war file to put my classes in
> /webapps/soap/WEB-INF/classes/packagename/, I forgot to set
the
> WebAppDeploy to 'soap' in my Apache configuration file ( it was set on
> soap.war, so the classes could'nt be seen)
>
> >
> > 
> > ConfigFile
> > /WEB-INF/soap.xml
> > 
> >
> > This only worked as a context-param, I couldn't make it an init-param in
> > the rpcrouter servlet.
> >
> My server is not standalone, so I didn't had to do this.
>
>
> > Then in /WEB-INF/soap.xml I have:-
> >
> > 
> > 
> > 
> > 
> > 
> I put this code in the web.xml file under soap/WEB-INF
> (little mistake:  forgoten)
>
> When I restart Tomcat (v4.1), the service is keep deployed.
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: does tomcat automatically revert to url rewriting...

2002-11-22 Thread jfc
Craig R. McClanahan wrote:


On Fri, 22 Nov 2002, jfc wrote:

 

Will tomcat *automatically* go through the effort of rewriting the URL
if the session *cannot* be persisted via the cookie?(i.e. do I need to
watch for clients that don't support cookies or can I rest assured that
tomcat knows whether or not a request has a cookie and so when cookies
are not there then it encodes each request for me?)

   


Tomcat does indeed know if a session id cookie was received (and you can
find out as well, by calling request.isSessionIdFromCookie()).  If that is
the case, response.encodeURL() and response.encodeRedirectURL() will
return the argument unmodified.
 

OK. So that means I don't need to be concerned with when I should use 
the call(s) and when I should not - I should always wrap my links and 
redirects in these calls. (assuming my application uses sessions)

One subtlety should be pointed out, though -- consider what happens on the
very first response for a new session.  At that point in time, Tomcat has
no idea whether the client supports cookies or not.  Therefore, it sends
the session id both ways (rewriting and a cookie).  On subsequent
requests, if the cookie has been returned, Tomcat will stop rewriting.
 

ok.


We also need to remember that Tomcat does *not* scan the output your
servlet or JSP page creates, and modifies the hyperlinks.  If you do not
call encodeURL() or encodeRedirectURL() yourself when creating the output,
URL rewriting will never occur (and your app will require the client to
support cookies if it uses sessions).
 

ok. I've got that.

Now, I am using struts 1.1b2 so if I have  tags (and the 
others tags which render urls) embedded in my jsps, should I wrap these 
tags manually or does struts do the wrapping? If struts automatically 
does it for me (as the docs suggest) then the above answer for me (using 
struts) is not relevent.

Correct?

Craig

 

jfc


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




SV: MIME-TYPE for .SIS file ? please help !!

2002-11-22 Thread Daniel.T.Hellstrand
I found the answer: "application/vnd.symbian.install"

/Dan



-Ursprungligt meddelande-
Från: Hellstrand, Daniel T. /Telia Mobile Sverige /060-14 53 75, 070-682
13 85 
Skickat: den 22 november 2002 10:31
Till: [EMAIL PROTECTED]
Ämne: MIME-TYPE for .SIS file ? please help !!


I have asked this before but didn´t get any response so I´ll try again ;)

I´m using Tomcat 4.1.12, how can I find out what MIME-TYPE to set for Symbian OS files 
(with .SIS as extension). 
I know it´s possible since you can download .sis files from 
http://www.wildpalm.co.uk/wap.wml 
Is there any way of extracting the mime-type from that link ?

/Daniel


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat not processing JSP

2002-11-22 Thread Andoni
I have just got my tomcat server working at last.  I get an answer on the
port 8080 when I look that up.  I can also bring up /examples but I can only
see .html files in this.

I cannot get tomcat to unpack any .war files I give.
I cannot get tomcat to process any .jsp files it has.

I am running Tomcat 4.0.4 for OpenVMS!  I'm hoping it's not an
OpenVMS-specific problem.

Thanks in advance,
Andoni.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: SSL, redirectPort, and transport-guarantee, oh my!

2002-11-22 Thread mech
Welcome to the land of Internet Explorer. I bet you use Internet
Explorer, don't you? 
Try Mozilla/Opera and you will see that I works fine.
Some people didn't trust me yet that this problem you describe is a
bug...

Follow these links to find out more:

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg74000.html
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg74194.html
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg73632.html

Your after-timeout url with https:/host:8080 confirms me in my opinion
that IE only changes the protocol from http to https instead of changing
the port numbers, too. Don't know if it has something to do with the
sessionids, too.

That's the reason why the workaround works. If you change Tomcat to
protocol standard ports 80/443 you will see that your problem disappears
because the port numbers won't matter when changing the url for the ssl
redirection.


You may consider adding your experiences to the bug database. Maybe
something could be done from Tomcat side, too:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13861

(Especially the issue after timing out is new and confirms the IE
problem, but it might have something to do with the session, too...)

mech


> -Original Message-
> From: Shatzer, Larry [mailto:[EMAIL PROTECTED]] 
> Sent: Freitag, 22. November 2002 02:51
> To: '[EMAIL PROTECTED]'
> Subject: SSL, redirectPort, and transport-guarantee, oh my!
> 
> 
> I'm trying to set up redirection to SSL. Below are the 
> appropriate sections of web.xml and server.xml
> 
> When I go to https://localhost:8443/app, I get directed to my 
> login page, with the addition of a jsessionid to the url.
> 
> If I go to http://localhost:8080/app, it warns me I am going 
> to a secure page (I have this turned on to know when I am 
> going in and out of ssl).
> 
> I then get the security alert about the SSL certificate, I 
> click YES to proceed, it sits there for a while. In my status 
> bar, I see it's trying to connect to 127.0.0.1, which is no 
> big deal, since it's localhost.
> 
> When it eventually times out, my url is now 
> https://localhost:8080/app/security/login/jsp/login.jsp;jesssi
> onid=sessionid
> here
> 
> Now, if I change it back to http in the url, and leave the 
> rest, (mainly the jsessionid), it will redirect fine.
> 
> I am running Tomcat 4.0.6.
> 
> Also, ran across this in the archives: 
> http://archives.apache.org/eyebrowse/ReadMsg?listName=tomcat-u
> [EMAIL PROTECTED]
> ache.org&msgId=285554 which had no answer that I could find. 
> His situation seems close to mine, expect the fact, if I 
> remove auth-constraint, it breaks the application.
> 
> Any thoughts or help on this would be appreciated.
> 
> 
> web.xml section:
> 
>   
> 
>   All Struts Actions
>   *.do
>   *.jsp
> 
> 
>   Must at least have access to the USER role 
> to gain access
>   User
> 
> 
>   CONFIDENTIAL
> 
>   
> 
>   
>   
> FORM
> 
>   /security/logon/jsp/logon.jsp
>   
> /security/logon/jsp/logonFailed.jsp
> 
>   
> 
> server.xml section:
> 
>className = 
> "org.apache.catalina.connector.http.HttpConnector"
>   port  = "8080"
>   scheme= "http"
>   secure= "false"
>   minProcessors = "5"
>   maxProcessors = "75"
>   enableLookups = "true"
>   acceptCount   = "10"
>   debug = "0"
>   connectionTimeout = "6"
>   redirectPort  = "8443"
> />
>className = 
> "org.apache.catalina.connector.http.HttpConnector"
>   port  = "8443"
>   scheme= "https"
>   secure= "true"
>   minProcessors = "5"
>   maxProcessors = "75"
>   enableLookups = "true"
>   acceptCount   = "10"
>   debug = "0"
>   connectionTimeout = "6"
> >
>className= 
> "org.apache.catalina.net.SSLServerSocketFactory"
> clientAuth   = "false"
> protocol = "TLS"
> keystoreFile = "keystore.jks"
> keystorePass = "password"
>   />
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Apache 2.0.43 with SSL and Tomcat 4.1.12 problems

2002-11-22 Thread SAG - Jose Antonio Tarifa
I'm not able to configure Apache + SSL with Tomcat to make available to servlets the 
SSL data, such like are returned by request.getRemoteUser() function (always return 
NULL).
 
Apache runs correctly with HTTPS, but Tomcat no.
 
Apache ssl.conf file is like this:
--
Listen 443
 
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl.crl
 
SSLPassPhraseDialog  builtin
 
SSLSessionCache dbm:logs/ssl_scache
SSLSessionCacheTimeout  300
SSLMutex  file:logs/ssl_mutex
 
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
 

 
DocumentRoot "C:/apache2/paginas"
ServerName localhost:443
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/ssl_error.log
TransferLog logs/ssl_access.log
 
SSLEngine on
SSLProtocol all
SSLCipherSuite HIGH:MEDIUM
 
SSLCertificateFile C:/apache2/conf/ssl.crt/apache.crt
SSLCertificateKeyFile C:/apache2/conf/ssl.key/apache.key
SSLCACertificateFile C:/apache2/conf/ssl.ca/ca.cer
 
SSLVerifyClient require
SSLVerifyDepth 1
 

SSLOptions +StdEnvVars +ExportCertData


SSLOptions +StdEnvVars +ExportCertData


SSLOptions +StdEnvVars +ExportCertData

 
SetEnvIf User-Agent ".*MSIE.*" \
 nokeepalive ssl-unclean-shutdown \
 downgrade-1.0 force-response-1.0
 
JkMount /examples ajp13
JkMount /examples/* ajp13
 
  
-
José Antonio Tarifa Lorenzo
Departamento de Desarrollo
Compañía Operadora del Mercado Español de Electricidad, S.A.
c/Alfonso XI, 6 4ª Planta. 28014 Madrid
email: [EMAIL PROTECTED]  
-
 



RE: Integrating / Connecting HTTPD 2.0.43 with TOMCAT 4.1.12

2002-11-22 Thread Turner, John
 

No problem, glad to help.  Glad you got it working.

John

-Original Message-
From: Mike Young
To: Tomcat Users List
Sent: 11/21/02 8:31 PM
Subject: RE: Integrating / Connecting HTTPD 2.0.43 with TOMCAT 4.1.12

John,

Thanks for your help, I have re-installed and configured all my apache 
software under e:\apache, and everything now works (after 38 hours of
hard 
graft!) HOWEVER I had to remove the full path for mod_jk i.e.

It was ... LoadModule jk_module e:/apache/apache2/modules/mod_jk.dll

I changed it to ... LoadModule jk_module  modules/mod_jk.dll

I had only bothered pathing it cos in 70% of the HOTO's that I have read

said that it was a bit temperamental on the pathing!

kind regards

At 08:37 AM 21/11/2002 -0500, you wrote:

>I don't use Windows, but two things:
>
>1) pathnames with spaces can cause problems...people seem to have more
luck
>using pathnames without spaces, such as "apache" instead of "Apache
Group".
>Yes, the Apache installer puts things in "Apache Group", but the Apache
team
>has no idea that you're going to be running Tomcat as well.
>
>2) in workers.properties, you can remove all references to ajp14, as
well as
>all of the worker.inprocess.* and worker.loadbalance.* lines.  In a
>one-to-one configuration, those lines do nothing.
>
>John
>
>
> > -Original Message-
> > From: Mike Young [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, November 20, 2002 8:25 PM
> > To: [EMAIL PROTECTED]
> > Subject: Integrating / Connecting HTTPD 2.0.43 with TOMCAT 4.1.12
> >
> >
> > First of all is this version combination possible?
> >
> > I can get Tomcat (4.1.12) installed and working on its own
> > and I can get
> > HTTPD (2.0.43) working on its own, but as soon as I load the
> > mod_jk module
> > in my httpd.conf file I get "The requested operation has
> > failed" and no
> > obvious error logs to help problem solve the issue.
> >
> > My configuration / Install process was as follows (Win 2K Server):
> >
> > 1) Installed Apache HTTPD 2.0.43
> > 2) Installed Java 2 System Developers Kit (j2sdk1.4.1_01)
> > 3) Installed Tomcat 4.1.12
> > 4) Created a Service for Tomcat
> >  -  Can now see tomcat pages at http://hostname:8080
> >  -  Can now see httpd pages at http://hostname:80
> > 5) Downloaded mod_jk-2.0.42.dll from
> > (http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk
> > /release/v1.2.0/bin/win32/)
> > 6) Edited the server.xml file in the conf subdirectory of the Tomcat
> > directory as follows:
> > Immediately following the
> >  tag near the top of the file, I added the
> > following tag:
> >
> >  > className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > modJk="e:/Program
> > files/Apache Group/Apache2/modules/mod_jk.dll"
> > jkDebug="info"
> > workersConfig="E:/jakarta-tomcat-4.1.12/conf/jk/workers.properties"
> > jkLog="E:/jakarta-tomcat-4.1.12/logs/mod_jk.log" />
> >
> >
> > About halfway down the file, following the  > name="localhost" ...> tag
> > I added the following tag:
> >
> >  > className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > append="true" />
> > 7) Created a new directories called /jk in the Tomcat conf directory
.
> > 8) Created a workers.properties file in the new jk folder
> > with the following:
> > workers.tomcat_home=d:/Apache/Tomcat
> > workers.java_home=$(JAVA_HOME)
> > ps=\
> > worker.list=ajp13, ajp14
> > worker.ajp13.port=8009
> > worker.ajp13.host=localhost
> > worker.ajp13.type=ajp13
> > worker.ajp13.lbfactor=1
> > worker.ajp14.port=8010
> > worker.ajp14.host=localhost
> > worker.ajp14.type=ajp14
> > worker.ajp14.secretkey=secret
> > worker.ajp14.credentials=myveryrandomentropy
> > worker.ajp14.lbfactor=1
> > worker.loadbalancer.type=lb
> > worker.loadbalancer.balanced_workers=ajp13
> > worker.inprocess.type=jni
> > worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
> > )tomcat.jar
> > worker.inprocess.cmd_line=start
> > worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$
> > (ps)classic$(ps)jvm.dll
> > worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)in
> > process.stdout
> > worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)in
> > process.stderr
> > 9) Restarted the Tomcat server and it automatically created another
> > directory in its conf directory called auto with a file
> > called mod_jk.conf.
> > 10 Copied the contents of the newly created mod_jk.conf file into
the
> > Apache HTTPD httpd.conf file directly after the last load
> > module  > Module #LoadModule ssl_module modules/mod_ssl.so >
> > They were:
> > # Tomcat Mod_jk Connector
> >
> > 
> >LoadModule jk_module e:/Program files/Apache
> > Group/Apache2/modules/mod_jk.dll
> > 
> >
> > JkWorkersFile "E:/jakarta-tomcat-4.1.12/conf/jk/workers.properties"
> > JkLogFile "E:/jakarta-tomcat-4.1.12/logs/mod_jk.log"
> > JkLogLevel info
> >
> > 
> >  ServerName localhost
> >  JkMount /admin ajp13
> >  JkMount /admin/* ajp13
> >  JkMount /webdav ajp13
> >  JkMount /webdav/* ajp13
> >  JkMount

RE: mod_jk : worker not found

2002-11-22 Thread Turner, John
 
No, that's not correct, unless mod_jk can only use "ajp13" for some reason.
As long as the worker on the JkMount line equals the worker defined in
workers.properties, it should be good to go.  

If mod_jk was restricted to only using "ajp13" you'd never be able to do
load balancing, because you'd never be able to define more than one worker.

For example:  http://www.ubeans.com/tomcat

John


-Original Message-
From: Paul Yunusov
To: Tomcat Users List
Sent: 11/21/02 10:02 PM
Subject: Re: mod_jk : worker not found

In workers.properties:
  You have:
worker.list=vhost1
  Should be:
worker.list=ajp13

Paul

On Thursday 21 November 2002 02:59 pm, max wrote:
> Hi
>
> I attempt to use mod_jk between tomcat 4.1.12 & apache 2.0.43 with
virtual
> host
>
> but every time i request a .jsp, apache return an internal server
error
>
> in mod_jk.log we can read  :
>
> [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (477)]: Attempting to map URI
'/jsp/num/numguess.jsp'
> [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker,
Found
> a suffix match vhost1 -> *.jsp [mod_jk.c (1277)]: Into handler
> r->proxyreq=0 r->handler=jakarta-servlet r->notes=135764112
worker=vhost1
> [jk_worker.c (132)]: Into wc_get_worker_for_name vhost1
> [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a
worker
>
> The only host in my server.xml is www.vhost1.com
>
> in httpd.conf i have this :
>
> 
>   LoadModule jk_module /usr/local/apache/modules/mod_jk.so
> 
> JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> JkLogLevel warn
>
> NameVirtualHost *
>
> 
> ServerName www.vhost1.com
> DocumentRoot /usr/local/tomcat/webapps/examples
> 
> Options Indexes FollowSymLinks
> DirectoryIndex index.html index.htm index.jsp
> 
>
> 
> AllowOverride None
> deny from all
> 
>
> 
> AllowOverride None
> deny from all
> 
>
> JkMount /*.jsp  vhost1
> 
>
> my worker.properties :
>
> workers.tomcat_home=/usr/local/tomcat
> workers.java_home=/usr/local/java
> ps=/
> worker.list=vhost1
> worker.vhost1.port=8009
> worker.vhost1.host=www.vhost1.com
> worker.vhost1.type=ajp13
>
>
> Can you help me ?
>
> Tks
>
> __


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 3.3.1 in Windows occupies 100 % CPU

2002-11-22 Thread Surendra Kumar
Hi all
  We are using Apache 1.3.26 + Tomcat 3.3.1 in W2K  Professional platform.
  During some servlet operations the CPU usage of Tomcat process becomes 100 % and it 
stays there for  long (even days).

  Did anyone face this kind of problems ? Please let me know how to debug this.

  I also like to know, how to take thread dump of tomcat process. Since tomcat is 
running as windows service i could not use
  the normal sequence ( ctrl + break).

  Thanks for any help on this regard.


-Surendra
 
 



please help me

2002-11-22 Thread Shabeer Miah
Hi There,
   I'm very new to java technology and I
started loving java, and now a days I'm learning
servlets, I have written a servlet example, and trying
to compile it but couldn't able to do that, do I need
to have different software to compile the servlets
apart from jdk1.4 please hel me!! I'm getting errors
saying that Servlet calsses not found, so please tell
me do I need to set the path or ?? please reply me,
shabeer

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: please help me

2002-11-22 Thread Michael Echerer
To use servlets you will need a servlet container/webserver like Tomcat. To compile 
servlets some .jar files from Tomcat are necessary. You have to add this to your 
classpath or use ant scripts whatever.

In your case I guess that servlet.jar from /tomcat/common/lib/ is missing in your 
classpath when your try to compile your servlet classes. 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: please help me

2002-11-22 Thread Carsten Ziegert
You'll have to include servlet.jar in your CLASSPATH.
servlet.jar is part of your tomcat distribution. When using
Tomcat 4.1 you can find it in $CATALINA_HOME/common/libs

Carsten

Am Freitag, 22.11.02, um 12:40 Uhr (Europe/Berlin) schrieb Shabeer Miah:


Hi There,
   I'm very new to java technology and I
started loving java, and now a days I'm learning
servlets, I have written a servlet example, and trying
to compile it but couldn't able to do that, do I need
to have different software to compile the servlets
apart from jdk1.4 please hel me!! I'm getting errors
saying that Servlet calsses not found, so please tell
me do I need to set the path or ?? please reply me,
shabeer

__
Do you Yahoo!?
Yahoo! Mail Plus ñ Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 30459 Hannover

http://summit-bmt.fh-hannover.de



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




SV: please help me

2002-11-22 Thread Daniel.T.Hellstrand
You can download the .class files from SUN:
http://java.sun.com/products/servlet/download.html

/Dan

-Ursprungligt meddelande-
Från: Shabeer Miah [mailto:[EMAIL PROTECTED]]
Skickat: den 22 november 2002 12:41
Till: [EMAIL PROTECTED]
Ämne: please help me


Hi There,
   I'm very new to java technology and I
started loving java, and now a days I'm learning
servlets, I have written a servlet example, and trying
to compile it but couldn't able to do that, do I need
to have different software to compile the servlets
apart from jdk1.4 please hel me!! I'm getting errors
saying that Servlet calsses not found, so please tell
me do I need to set the path or ?? please reply me,
shabeer

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Andrzej Jan Taramina
I've got Tomcat 4.1.12 and JBoss 3.0.4 running on separate machines/VMs.

I've put a jndi.properties file pointing to the JBoss JNDI server in my WEB-
INF/classes directorybut my servlet does not pick it up for some 
reasonand just grabs Tomcats JNDI instance instead.

Anyone know how to set this up so my servlet can get an IntialContext that 
points to the JBoss server (that is, so that it finds the jndi.properties file)?

Thanks!


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: SOAP: Unable to resolve target object

2002-11-22 Thread jattwood
Hi Phil,

>Exception in thread "main" java.lang.NoClassDefFoundError: 
>
>I put this /webapps/soap/WEB-INF/classes in the CLASSPATH (in
>case).

Your client will rely on the CLASSPATH to find its classes (unlike the
server which uses TomCat's class loader hierarchy). Whenever I've had problems
like this they've always turned out to be typos in my CLASSPATH (missing
semicolon or colon instead of semicolon) which invalidate the part which points
to the class which can't be found. These can be very hard to spot, and even
harder for the person who "knows" what should be there. I have a Perl script
which breaks my classpath into pieces on semicolons and display each on a 
separate line. This helps to show up errors, but still doesn't help when the
problem is a typo inside one of the path components rather than the 
separators.

Hopefully a second pair of eyes will resolve your problem,
Regards,

John.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Oracle Connection Pool - Global Naming Resource - HOW TO

2002-11-22 Thread Isabel Lameda
Hi!!! i did the same but now i'm facing with this problem

19/11/2002 02:20:21 PM org.apache.jk.common.ChannelSocket processConnection
GRAVE: Error, closing connection
java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:471)
at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:409)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:524)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)

I usually do this,

Context ctx = null;
ctx = new InitialContext();
Context envCtx = (Context) ctx.lookup("java:/comp/env/");
DataSource ds = (DataSource) envCtx.lookup("/test");
Connection conn = ds.getConnection();

Statement s = conn.createStatement();
ResultSet r = s.executeQuery("SELECT * FROM TABLE");
while (r.next())
out.println(r.getString(1));
r.close();
s.close();
conn.close();

The problem is that i cannot manage the exception because it happens
sometimes
and i don´t know why, when it happens Tomcat crashes and i´ve to restrat it.

I wonder if you´re doing the same as me, or i´m i doning something wrong?

thanks in advance

-Mensaje original-
De: Roberts, Eric [mailto:[EMAIL PROTECTED]]
Enviado el: Jueves, 21 de Noviembre de 2002 10:27 a.m.
Para: Tomcat Users List
Asunto: Oracle Connection Pool - Global Naming Resource - HOW TO


I had problems earlier getting a Global Naming Resource database connection
pool to work with my Oracle db. The only reply I got was that someone else
had the same problem!

I now have it working, so for those interested, here is the HOW TO:

When defining the parameters for the db pool (say TESTdb) ensure that the
maxActive parameter is not set too high, i.e. that Oracle has enough
connections available for the pool (Oracle config parameter
max_connections). Mine was set to 100 in server.xml, and when the pool tried
to establish itself, it just sat and waited for 100 connections to become
available!

Every app that wants to use the connection pool should have a Context entry
in server.xml containing a ResourceLink to the name of the pool.



The application can then connect using:
  
Context ctx = null;
ctx = new InitialContext();
  Context envCtx = (Context) ctx.lookup("java:/comp/env/");
DataSource ds = (DataSource) envCtx.lookup("/testDb");
Connection conn = ds.getConnection();

No entries are required in the application web.xml to reference the
resource.

Have Fun!


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Displaying servlets and its memory usage

2002-11-22 Thread Sriraman.R
hi all,
I have tomcat 3.2.4 and few servlets running. I want to see the memory
usage of each serlvet
 running. However I get memory hogging often. I would like to find which
servlet is causing this problem.
Is there a tool/java program to dump each servlet and its memory usage
periodically,say every 10 secs
 like NT's Task Manager.

  Appreciate any help asap!

  thanks,
  -Sriram




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: multiple jservs with one apache web server

2002-11-22 Thread Turner, John

ApJServMount /servlet ajpv12://some.server.com:8010/servlet
AddHandler jserv-servlet .jsp

Add ApJServMount commands as necessary, changing the port number on the
ajp12 URL.

If you are talking about trying to load balance, where you have multiple
ApJServMount commands for one Apache Virtual Host, then I think you may be
out of luck.

John

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 6:27 PM
> To: Tomcat Users List
> Subject: multiple jservs with one apache web server
> 
> 
> Hello Group,
> 
> I want to mount multiple JServ engines on a single Apache Web 
> Server, on 
> the same server. To do this I have installed Apache web 
> server (WITHOUT 
> DSO support) and five JServ engines (jserv1,2,3,4,5). 
>   
> The reason why I want to do this is, we have a java-servlet 
> based intranet 
> mailing system, which very often goes down as the number of 
> users using 
> it is increasing rapidly... it was till now working on one 
> apache and one 
> jserv engine. 
> 
> Now can anybody help me as how to mount these five jservs on 
> different 
> ports on apache web server with a single IP. Any sample 
> code/configuration 
> clues/details will help me alot... 
> 
> The apache webserver version I am using is apache_1.3.27 and 
> jserv1.1.2 
> and jsdk 2.0 
> 
>  many thanks,
>  Ranjit.
>  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Ranjit Kumar Gundu
>  Center for DNA Finger Printing and Diagnostics (CDFD)
>  Nacharam, Hyderabad - 500076
>  I N D I A
>  Other email:[EMAIL PROTECTED]
>  Hello:+91-40-7151344 Ext1207
>  FAX: +91-40-7155479
>  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> -
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




HttpSessionContext deprecation question

2002-11-22 Thread jfc
Hi,

I see that this class is now deprecated with the 2.1 servlet api.

Can someone please explain to me briefly why this is? I know its down to 
security but a little more of the theory behind the decision would be 
interesting.

I am trying to provide the functionality to admin users of our site and 
have found that its easy to achieve(storing user objects in the app 
scope as users enter the site or login) but before I go ahead and make 
it available, I thought I'd better check.

thanks
jfc


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Becker, Michael
This works for me:

// Try to find each of these individual parameters 
// and construct the properties
// object appropriately
java.util.Properties p = new java.util.Properties();

p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
p.put(InitialContext.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
p.put(InitialContext.PROVIDER_URL,"yourservername");
InitialContext context = new InitialContext(p);


After that you can do your EJB lookup's with that context.


-Original Message-
From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 22, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: Tomcat with external JBoss (JNDI problems)...

I've got Tomcat 4.1.12 and JBoss 3.0.4 running on separate machines/VMs.

I've put a jndi.properties file pointing to the JBoss JNDI server in my
WEB-
INF/classes directorybut my servlet does not pick it up for some 
reasonand just grabs Tomcats JNDI instance instead.

Anyone know how to set this up so my servlet can get an IntialContext
that 
points to the JBoss server (that is, so that it finds the
jndi.properties file)?

Thanks!


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Shapira, Yoav
Hi,
Where do the org.jnp classes come from?

Thanks,

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Becker, Michael [mailto:[EMAIL PROTECTED]]
>Sent: Friday, November 22, 2002 9:35 AM
>To: Tomcat Users List
>Subject: RE: Tomcat with external JBoss (JNDI problems)...
>
>This works for me:
>
>// Try to find each of these individual parameters
>// and construct the properties
>// object appropriately
>java.util.Properties p = new java.util.Properties();
>
>p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
>   "org.jnp.interfaces.NamingContextFactory");
>p.put(InitialContext.URL_PKG_PREFIXES,
>"org.jboss.naming:org.jnp.interfaces");
>p.put(InitialContext.PROVIDER_URL,"yourservername");
>InitialContext context = new InitialContext(p);
>
>
>After that you can do your EJB lookup's with that context.
>
>
>-Original Message-
>From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED]]
>Sent: Friday, November 22, 2002 7:05 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat with external JBoss (JNDI problems)...
>
>I've got Tomcat 4.1.12 and JBoss 3.0.4 running on separate
machines/VMs.
>
>I've put a jndi.properties file pointing to the JBoss JNDI server in my
>WEB-
>INF/classes directorybut my servlet does not pick it up for some
>reasonand just grabs Tomcats JNDI instance instead.
>
>Anyone know how to set this up so my servlet can get an IntialContext
>that
>points to the JBoss server (that is, so that it finds the
>jndi.properties file)?
>
>Thanks!
>
>
>Andrzej Jan Taramina
>Chaeron Corporation: Enterprise System Solutions
>http://www.chaeron.com
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat Configuration

2002-11-22 Thread Martin Klebermaß
Hi everyone, im quite a new Tomcat user, so not realy fitt in everything.
Because i have to set up Tomcat for a new customer in a shared hosting environment, i 
dont want to waste ports ( as it is generated automaticly) so i tryed to close 
the Shutdown Port of the Tomcat Server which is definied in the  Statement.   
I had a look at google and quite a lot other resources but couldnt find out how to 
close the port ( or better how to not open the port on startup ;)  )


Perhaps anyone here can help me with a simple sollution.

cya Martin


p.s.: beside this if anyone knows good solutions for tomcat in shared hosting 
environments ( with running a tomcat for each user under his own user_id for the most 
security) perhaps he can give me a hint ;)


RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Becker, Michael
Copy %JBOSS_HOME%/client/[jboss-client.jar,jboss-common-client.jar,
jbosssx-client.jar, jnp-client.jar, jboss-j2ee.jar, and log4j.jar] to
%CATALINA_HOME%/shared/lib.  

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
 
Hi,
Where do the org.jnp classes come from?

Thanks,


>-Original Message-
>From: Becker, Michael [mailto:[EMAIL PROTECTED]]
>
>This works for me:
>
>// Try to find each of these individual parameters
>// and construct the properties
>// object appropriately
>java.util.Properties p = new java.util.Properties();
>
>p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
>   "org.jnp.interfaces.NamingContextFactory");
>p.put(InitialContext.URL_PKG_PREFIXES,
>"org.jboss.naming:org.jnp.interfaces");
>p.put(InitialContext.PROVIDER_URL,"yourservername");
>InitialContext context = new InitialContext(p);
>
>
>After that you can do your EJB lookup's with that context.
>
>
>-Original Message-
>From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED]]
>Sent: Friday, November 22, 2002 7:05 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat with external JBoss (JNDI problems)...
>
>I've got Tomcat 4.1.12 and JBoss 3.0.4 running on separate
machines/VMs.
>
>I've put a jndi.properties file pointing to the JBoss JNDI server in my
>WEB-
>INF/classes directorybut my servlet does not pick it up for some
>reasonand just grabs Tomcats JNDI instance instead.
>
>Anyone know how to set this up so my servlet can get an IntialContext
>that
>points to the JBoss server (that is, so that it finds the
>jndi.properties file)?
>
>Thanks!
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: does tomcat automatically revert to url rewriting...

2002-11-22 Thread Price, Erik


> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 21, 2002 8:05 PM
> To: Tomcat Users List
> Subject: Re: does tomcat automatically revert to url rewriting...
> 
> 
> 
> 
> We also need to remember that Tomcat does *not* scan the output your
> servlet or JSP page creates, and modifies the hyperlinks.  If 
> you do not
> call encodeURL() or encodeRedirectURL() yourself when 
> creating the output,
> URL rewriting will never occur (and your app will require the 
> client to
> support cookies if it uses sessions).


A style question in this regard -- is the general practice for this:

1. To use a unique variable for each URL that needs to be encoded
2. To put all URLs into a list/array, then refer to them by their key in the page
3. To use a single variable name and just call encodeURL immediately before the point 
where the name is used, then echo the variable name to the browser
4. Not to use a variable name at all but rather just call echo encodeURL's output 
directly to the page



Just curious,

Erik

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




MOD_JK

2002-11-22 Thread José Moreira
hello im trying to use mod_jk in apache 2 for winXP Pro...
 
i placed mod_jk.dll in the {apache}/modules
 
then configured it : "LoadModule jk_module modules/mod_jk.dll"
 
but apache gave this error starting
 
"cant find module : d:/Javawork/Apache/modules/mod_jk.dll"
 
???
 
thank you

<>--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: storing passwords

2002-11-22 Thread Price, Erik


> -Original Message-
> From: RXZ JLo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 4:51 AM
> To: Tomcat Users List
> Subject: Re: storing passwords
> 
> 
> Thanks to all of you for the responses. 
> 
> apart from this password I will be storing some other
> things too(they too are passwords but for some other
> things in the application). I cant use one way hash as
> I cant use them further. what mechanism should I
> follow in this case?

Have you considered LDAP?  I haven't used it myself but it might be a better solution 
if you have to store a variety of user information that will be used in more than one 
context.

> Also, for the login case should I bother about
> encryption in the login form? Can I just use
>  and rely on the brower?
> What are the pros and cons for this? If you see yahoo
> login, they generate md5 using javascript on the
> client side itself - is this really necessary?

Generating the md5 on the client side doesn't really do too much, since if I know the 
MD5 then basically I know the password.  I just can't type it into Yahoo's UI since 
then *that* will get MD5'd and it will change the value sent.  (Of course, I could use 
Mozilla and disable the JavaScript that does this... or write my own page... etc.)

If you use SSL then you don't need to do the JavaScript trick -- the passwords will be 
sent over the wire encrypted.  But if you can't or don't want to use SSL, then just 
remember that it is SUPER easy to listen in on HTTP connections and watch the data go 
back and forth.  There's dozens of scripts that basically do this and hunt down likely 
passwords.  So you want to implement *some* level of encryption unless everything 
you're doing is within a "secure" environment like behind a corporate firewall (note 
the quotes, that indicates a level of facetiousness).

Erik

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: MacOS

2002-11-22 Thread Price, Erik


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 21, 2002 4:18 PM
> To: Tomcat Users List
> Subject: Re: MacOS
> 
> 
> In regards to dev tools. I basically use a my favorite text editor,  
> usual shell scripting, Jarkata Ant and will occasionally 
> wonder into C 
> and Objective-C and for that I used the Apple Dev Tools which are a 
> free download. Be as it may, my understanding is that there a quite a 
> few IDEs that MacOSX friendly i.e., JBuilder, Forte, NetBeans, 
> CodeWarrior, TogetherJ and some others. Here's a link that 


I really like NetBeans 3.4 and I use it at work on the Win2k box (yes, it has the 
memory).  But on my Mac it is very sluggish, as most Pure Java apps are.  I only have 
a G3 w/384 MB RAM.  I assume it performs better on the G4?  (If NetBeans ran as fast 
on MacOSX as it does on Windows I'd be really happy.)


Erik

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: MacOS

2002-11-22 Thread Price, Erik


> -Original Message-
> From: peter lin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 21, 2002 3:49 PM
> To: Tomcat Users List
> Subject: Re: MacOS
> 
> 
> 
> actually eclipse support Mac in the latest build.

SWT has been ported to Aqua, or do you mean using an Xserver?


Erik

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: MacOS

2002-11-22 Thread Felipe Schnack
  I think netbeans is too damn slow and memory hungry (in any platform)
  I couldn't find eclipse for mac in eclipse.org, it's avaliable only in
sources distro?

On Fri, 2002-11-22 at 13:43, Price, Erik wrote:
> 
> 
> > -Original Message-
> > From: peter lin [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 21, 2002 3:49 PM
> > To: Tomcat Users List
> > Subject: Re: MacOS
> > 
> > 
> > 
> > actually eclipse support Mac in the latest build.
> 
> SWT has been ported to Aqua, or do you mean using an Xserver?
> 
> 
> Erik
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 4.1.12 and web_modeapp.so

2002-11-22 Thread David . Chades

Hi,
Does anyone have a binary of mod_webapp  (apache integration) for Tomcat
4.1.12 running with Linux (RedHat V7.x).
I've looked on the Apache website with no success...

Thanks,

David CHADES



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Error message meaning?

2002-11-22 Thread Ben Ricker
I am using mod_jk 1.2 with Apache 1.2.27 talking with 4 Tomcat 4.0.6
instances.

Every once in while, I get tthe following error logged to mod_jk:

[jk_ajp_common.c (961)]: Error ajp_process_callback - write failed

What exactly does this mean? Is it that mod_jk had an error writing to
the stream to Tomcat? If so, does it retry the request it sent? How does
one know it was successful? Also, this occurs fairly rarely and
intermittently. Out of 26,000 requests, I see it 70 times on one day.

Thanks,

Ben Ricker
Wellinx.com




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




dynamically built "server.xml"

2002-11-22 Thread PERRIN GOURON Olivier
Hello,
I'm trying tomcat4.1 to run my application, and I need to define contexts
dynamically. I know this is done in server.xml, but the point is that my
/conf directory, where server.xml remains is read-only...  So, I think of 2
possibilities:
+tell tomcat not to look in /conf dir, but in another one I could
write in
+Inside server.xml, reference external documents that would be
replaced when tomcat reads server.xml Are these two solutions possible with
tomcat - and how ?
any third idea?

thanks
Olivier

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Error message meaning?

2002-11-22 Thread Turner, John

As far as I know, that error shows up when the user has closed their browser
or browsed to another page before the request was completed.

Someone please correct me if I am wrong, as I get the same error message,
but have always ignored it due to the reason above.

John

> -Original Message-
> From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 11:03 AM
> To: Tomcat Users List
> Subject: Error message meaning?
> 
> 
> I am using mod_jk 1.2 with Apache 1.2.27 talking with 4 Tomcat 4.0.6
> instances.
> 
> Every once in while, I get tthe following error logged to mod_jk:
> 
> [jk_ajp_common.c (961)]: Error ajp_process_callback - write failed
> 
> What exactly does this mean? Is it that mod_jk had an error writing to
> the stream to Tomcat? If so, does it retry the request it 
> sent? How does
> one know it was successful? Also, this occurs fairly rarely and
> intermittently. Out of 26,000 requests, I see it 70 times on one day.
> 
> Thanks,
> 
> Ben Ricker
> Wellinx.com
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: apache DSO installation

2002-11-22 Thread p niemandt
have a look at the apache toolbox, www.apachetoolbox.com

hth

On Fri, 2002-11-22 at 20:29, [EMAIL PROTECTED] wrote:
> Hi,
> 
>  I have problem in installing apache on my Origin 2000 (ver 6.5.16m).
>  The following errors thrown while doing 'make'
>   
>  _
>  I tried both these options:
> % ./configure --prefix=/usr/apache --enable-module=most -enable-shared=max 
>  or
> % ./configure --prefix=/usr/apache --enable-shared=max --enable-rule=SHARED_CORE... 
>  ...
>  % make
>  ===> src/modules
>  ===> src/modules/standard
> gcc -c -I../../os/unix -I../../include -DIRIX -DUSE_HSREGEX -DUSE_EXPAT 
>  -I../../lib/expat-lite `../../apaci` mod_so.c 
>  rm -f libstandard.a
>  ar cr libstandard.a mod_so.o
>  true libstandard.a
> gcc -c -I../../os/unix -I../../include -DIRIX -DUSE_HSREGEX -DUSE_EXPAT 
> -I../../lib/expat-lite `../../apaci` -fpic -DSHARED_MODULE mod_cgi.c && 
>  mv mod_cgi.o mod_cgi.lo 
>  ld -shared -o mod_cgi.so mod_cgi.lo
>  ld32: FATAL 12: Expecting n32 objects: mod_cgi.lo is o32.
>  ___
>   
> This ld32 message is occuring for almost all the modules in apache, but 
>  I could 
>  compile it out of box for apache static installation.
>   
> Can anyone help me as how to solve this problem of 'ld32: FATAL 12: Expecting 
>  n32 objects: mod_cgi.lo is o32.' 
>   
>  The apache version I am using is apache_1.3.27. and gcc version is
>   gcc - GNU project C and Ada95 Compiler (v2.8.1)
> 
>  thanks, 
>  Ranjit.
>  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Ranjit Kumar Gundu
>  Center for DNA Finger Printing and Diagnostics (CDFD)
>  Nacharam, Hyderabad - 500076
>  I N D I A
>  Other email:[EMAIL PROTECTED]
>  Hello:+91-40-7151344 Ext1207
>  FAX: +91-40-7155479
>  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Have fun... :)
> -
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
p niemandt <[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: dynamically built "server.xml"

2002-11-22 Thread Turner, John

Check the docs, specifically the Automatic Application Deployment section:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html#Automatic%2
0Application%20Deployment

John

> -Original Message-
> From: PERRIN GOURON Olivier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 11:01 AM
> To: '[EMAIL PROTECTED]'
> Subject: dynamically built "server.xml"
> 
> 
> Hello,
> I'm trying tomcat4.1 to run my application, and I need to 
> define contexts
> dynamically. I know this is done in server.xml, but the point 
> is that my
> /conf directory, where server.xml remains is read-only...  
> So, I think of 2
> possibilities:
>   +tell tomcat not to look in /conf dir, but in another 
> one I could
> write in
>   +Inside server.xml, reference external documents that would be
> replaced when tomcat reads server.xml Are these two solutions 
> possible with
> tomcat - and how ?
> any third idea?
> 
> thanks
> Olivier
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Global Resource Def & JDBC Pool

2002-11-22 Thread Jason Jonas
Hey All,

I'm having some difficulty getting Tomcat to establish a connection to
a database and I need a second pair of eyes on this...

Environment:
  Windoze XP
  Tomcat 4.1
  MySQL 3.23.53
  MM JDBC Drivers 2.0.14

Global Resource Def (created through /admin):
  JNDI Name: jforumdb
  URL: jdbc:mysql://localhost/jforum
  Driver: com.mysql.jdbc.Driver

web.xml:
  
jdbc/jforumdb
javax.sql.DataSource
Container
  

context.xml: (passed in to Tomcat via ant install/reload)
  

  

Code to get a connection:
  InitialContext ic = new InitialContext();
  DataSource ds = (DataSource)
ic.lookup("java:comp/env/jdbc/jforumdb");
  con = ds.getConnection();

Result of getting a connection:
java.sql.SQLException: Cannot connect to MySQL server on
localhost:3306. Is there a MySQL server running on the
machine/port you are trying to connect to?
(java.net.BindException)


I've tried connecting to a Pointbase DB with the same results. I am
able to make a direct connection to any database without any problems
whatsoever. I don't think it's a web-app/Tomcat config issue because
I'm able to get as far as Tomcat *trying* to connect to the DB. So I'm
thinking it's some other config issue. Maybe it's an XP-thing?

Any and all info is appreciated. Thanks!

Jason



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: dynamically built "server.xml"

2002-11-22 Thread PERRIN GOURON Olivier


I read the docs, but couldn't find any solution but those I mentioned
My problem is that I run Tomcat from a CD-ROM...
I actually need to use "virtual" directories, which I want to define each
time I run Tomcat ("virtual" directory : I mean directories that can be
accessed with http://localhost:8080/myVirtualDir but that are not truly on
the appBase directory). 
I build these directories defining contexts in server.xml (the only way I
found to do that)
In the same way, I want to define the  dynamically... 


-Message d'origine-
De : Turner, John [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 22 novembre 2002 17:15
À : 'Tomcat Users List'
Objet : RE: dynamically built "server.xml"



Check the docs, specifically the Automatic Application Deployment section:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html#Automatic%2
0Application%20Deployment

John

> -Original Message-
> From: PERRIN GOURON Olivier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 11:01 AM
> To: '[EMAIL PROTECTED]'
> Subject: dynamically built "server.xml"
> 
> 
> Hello,
> I'm trying tomcat4.1 to run my application, and I need to 
> define contexts
> dynamically. I know this is done in server.xml, but the point 
> is that my
> /conf directory, where server.xml remains is read-only...  
> So, I think of 2
> possibilities:
>   +tell tomcat not to look in /conf dir, but in another 
> one I could
> write in
>   +Inside server.xml, reference external documents that would be
> replaced when tomcat reads server.xml Are these two solutions 
> possible with
> tomcat - and how ?
> any third idea?
> 
> thanks
> Olivier
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Global Resource Def & JDBC Pool

2002-11-22 Thread Oliver Meyn
Hi Jason,

I think you're right that this isn't tomcat - this error has only appeared
for me when either the dbase really isn't there (yes, I've forgotten to
start it, *sigh*), or more often, port 3306 is closed/filtered.  With XP you
might be having firewall issues (dunno how configurable it is, although on
Home I think it's on/off, *sigh*), or maybe the user tomcat is running as
isn't authorized?

I'd try running nmap first and if 3306 is closed then you know the problem,
and can start figuring out a solution.

Cheers,
Oliver

> -Original Message-
> From: Jason Jonas [mailto:[EMAIL PROTECTED]]
> Sent: November 22, 2002 12:03
> To: [EMAIL PROTECTED]
> Subject: Global Resource Def & JDBC Pool
>

> Result of getting a connection:
> java.sql.SQLException: Cannot connect to MySQL server on
> localhost:3306. Is there a MySQL server running on the
> machine/port you are trying to connect to?
> (java.net.BindException)
>
>
> I've tried connecting to a Pointbase DB with the same results. I am
> able to make a direct connection to any database without any problems
> whatsoever. I don't think it's a web-app/Tomcat config issue because
> I'm able to get as far as Tomcat *trying* to connect to the DB. So I'm
> thinking it's some other config issue. Maybe it's an XP-thing?
>
> Any and all info is appreciated. Thanks!
>
> Jason
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




i am having trouble using Java Beans with Tomcat 4.1

2002-11-22 Thread runu rathi
Hi,
I am a beginner to Java beans.
i am having trouble using Java Beans with Tomcat 4.1
I am attatching the beans file and am copying the
exact errors that I get..
Please help me..

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:
/student_survey.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:7:
'.' expected
import SurveyBean;
 ^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:43:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
  SurveyBean student = null;
  ^



An error occurred at line: 1 in the jsp file:
/student_survey.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:45:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
student = (SurveyBean)
pageContext.getAttribute("student",
PageContext.SESSION_SCOPE);
   ^



An error occurred at line: 1 in the jsp file:
/student_survey.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:48:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
student = (SurveyBean)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"SurveyBean");
   ^
4 errors


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11Connect

Sun JDK 1.4 production quality?

2002-11-22 Thread Ben Ricker
I have heard a number of differing opinions about the stability of 1.4.x
version of Sun's JDK. I wanted to see if anyone runs Tomcat using 1.4.x
and how they have found its stability, speed, etc. 

I know there have been a number of enhancements in 1.4 which sound
intriguing; additionally, its jdbc driver fixes a bug that is curretnly
vexing us. Our Tomcat installation gets roughly 25,000 hits a day; if
you can include an approximate idea of how many hits your app takes,
this information would be helpful.

I would, of course, test this with load testing, but the management here
seems to think we do not need it*sigh*

Thanks,

Ben Ricker




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Sun JDK 1.4 production quality?

2002-11-22 Thread Shapira, Yoav
Hi,
It's good.  Stability is the same as before, it seems.  Speed has
improved.  GC has markedly improved, although we did have to experiment
a bit with the new GC options.

Our busiest system takes roughly 7000 hits a day, so not as busy as you,
but not idle either ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Ben Ricker [mailto:[EMAIL PROTECTED]]
>Sent: Friday, November 22, 2002 12:29 PM
>To: Tomcat Users List
>Subject: Sun JDK 1.4 production quality?
>
>I have heard a number of differing opinions about the stability of
1.4.x
>version of Sun's JDK. I wanted to see if anyone runs Tomcat using 1.4.x
>and how they have found its stability, speed, etc.
>
>I know there have been a number of enhancements in 1.4 which sound
>intriguing; additionally, its jdbc driver fixes a bug that is curretnly
>vexing us. Our Tomcat installation gets roughly 25,000 hits a day; if
>you can include an approximate idea of how many hits your app takes,
>this information would be helpful.
>
>I would, of course, test this with load testing, but the management
here
>seems to think we do not need it*sigh*
>
>Thanks,
>
>Ben Ricker
>
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tomcat n IIS plz.....help

2002-11-22 Thread puneet sachar
thanx a lot johon again

it was nice help buddy

well if u got some time..plz send me the detail
instruction and step by step guide to install tomcat
with iis...

i hope i'm not troubling u

thanx a gain

Puneet sachar

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 4.1.12 Admin Application Functions without using the admin interface...

2002-11-22 Thread Brandon Cruz
Hi,
Is there a servlet or some internal tomcat class available that will tomcat
to see changes made to server.xml?  I would like to be able to add new
virtual hosts and contexts those hosts without having to use the admin
application.

Is this possible?


Brandon


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: i am having trouble using Java Beans with Tomcat 4.1

2002-11-22 Thread Jeff Tulley
If you are using JVM 1.4.1, this might be a FAQ - that you need to have a package name 
on the bean.
At least it appears that your bean is in the default package.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 11/22/02 9:36:31 AM >>>
Hi,
I am a beginner to Java beans.
i am having trouble using Java Beans with Tomcat 4.1
I am attatching the beans file and am copying the
exact errors that I get..
Please help me..

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:
/student_survey.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:7:
'.' expected
import SurveyBean;
 ^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:43:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
  SurveyBean student = null;
  ^



An error occurred at line: 1 in the jsp file:
/student_survey.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:45:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
student = (SurveyBean)
pageContext.getAttribute("student",
PageContext.SESSION_SCOPE);
   ^



An error occurred at line: 1 in the jsp file:
/student_survey.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:48:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
student = (SurveyBean)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"SurveyBean");
   ^
4 errors


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(

RE: tomcat n IIS plz.....help

2002-11-22 Thread srinath narasimhan
Check this out
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.
0/doc/jk/iishowto.html

hope that helps.

-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 12:39
To: Tomcat Users List
Subject: tomcat n IIS plz.help


thanx a lot johon again

it was nice help buddy

well if u got some time..plz send me the detail
instruction and step by step guide to install tomcat
with iis...

i hope i'm not troubling u

thanx a gain

Puneet sachar

__
Do you Yahoo!?
Yahoo! Mail Plus  Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




A little of topic - Global e-mail sending facility inside oftomcat?

2002-11-22 Thread Ryan Cornia
This is a little of topic, but I'm sure someone on this list has
implemented something similar with tomcat.
-->
I have several applications running on Tomcat 4.1.12 that I need to add
the capability to send e-mail via a SMTP server. There are two problems
-

1.) Are there any products or open source projects available that will
que the mail in case the SMTP server is down and re-send it later,
including the possibility of a tomcat re-start before the SMTP server
comes back up? Basically I want a way to insure an automated e-mail is
sent when a person registers, and is not "lost" when the e-mail server
is down.

2.) Is there a way to configure this service as a global JNDI resource
available to all applications running inside of tomcat?

Thanks,
Ryan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




uri mapping question

2002-11-22 Thread David Boyer
I'm using the isapi_redirector2.dll (v2.01) and I've got it working, with one 
exception:
 
I want to map a uri such as "[uri:/students/*/servlet/*]" so that it includes all 
subfolders in the "/students" directory. Is this possible?
 
I know I could create a separate mapping for each student, but we have 1,300 students 
for whom I'd need to do this.
 
Any thoughts?




JNDI name space conventions

2002-11-22 Thread Jonathan Williamson
I'm trying to write some code that uses JNDI to look
up a JDBC DataSource to get a Connection.

My code works fine in Tomcat 4.1 if I use the
java:comp/env naming context, as in the following
code:

  Context initContext = new InitialContext();
  DataSource ds =
(DataSource)initContext.lookup("java:comp/env/jdbc/myoracledb");

If I try to run this in JRun 4 or Oracle 9iAS, I get a
NamingException.  Instead I have to do it like this
(doesn't work in Tomcat):

  Context initContext = new InitialContext();
  DataSource ds =
(DataSource)initContext.lookup("jdbc/myoracledb");

I found this article on Macromedia's web site that
sort of describes the problem I'm having:
http://www.macromedia.com/v1/Handlers/index.cfm?ID=22927&Method=Full

They say there that according to the Servlet 2.3
specification, JNDI lookups should be relative to
java:comp/env anyway.  I have a printed copy of the
Servlet 2.3 specification, and from what I've seen by
skimming through it, jndi naming contexts aren't
mentioned at all (I could be wrong there though).

Is this configured by some sort of setting in Tomcat? 
I can't seem to find one, or anything in the manuals
for that matter.

Thanks,
Jonathan

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: A little of topic - Global e-mail sending facility inside of tomcat?

2002-11-22 Thread Turner, John

Any SMTP server will queue the mail for you automatically.  That's built-in
to the protocol.

I'm not sure I understand what you're looking for...it sounds like you are
looking for a SMTP server written in Java. There are plenty of free, open
source SMTP mailers out there, but if you need it in Java, that would be the
JavaMail API: http://java.sun.com/products/javamail/, most likely
com.sun.mail.SMTPTransport.sendMessage(Message message, Address[]
addresses).

I don't think JavaMail offers any queueing or redundancy, but you can use a
simple database operation...insert a record just before the message is sent,
send the message, and trap any exceptions.  If no exceptions, mark the new
record as "sent".  Periodically, have a process look in the database for
records that have an exception, then attempt to resend them, assuming the
logged exception is "server down" and not "user unknown" or something else
that would prohibit the email from being sent.

John


> -Original Message-
> From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 12:58 PM
> To: [EMAIL PROTECTED]
> Subject: A little of topic - Global e-mail sending facility inside of
> tomcat?
> 
> 
> This is a little of topic, but I'm sure someone on this list has
> implemented something similar with tomcat.
> -->
> I have several applications running on Tomcat 4.1.12 that I 
> need to add
> the capability to send e-mail via a SMTP server. There are 
> two problems
> -
> 
> 1.) Are there any products or open source projects available that will
> que the mail in case the SMTP server is down and re-send it later,
> including the possibility of a tomcat re-start before the SMTP server
> comes back up? Basically I want a way to insure an automated e-mail is
> sent when a person registers, and is not "lost" when the e-mail server
> is down.
> 
> 2.) Is there a way to configure this service as a global JNDI resource
> available to all applications running inside of tomcat?
> 
> Thanks,
> Ryan
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Andrzej Jan Taramina
> Copy %JBOSS_HOME%/client/[jboss-client.jar,jboss-common-client.jar,
> jbosssx-client.jar, jnp-client.jar, jboss-j2ee.jar, and log4j.jar] to
> %CATALINA_HOME%/shared/lib.  

Doesn't work.it still does not pick up my JBoss-specific jndi.properties file.  
I've got that file in the WEB-INF/classes and the shared/classes directories...to 
no avail.

> This works for me:
> 
> // Try to find each of these individual parameters 
> // and construct the properties
> // object appropriately
> java.util.Properties p = new java.util.Properties();
> 
> p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
>   "org.jnp.interfaces.NamingContextFactory");
> p.put(InitialContext.URL_PKG_PREFIXES,
> "org.jboss.naming:org.jnp.interfaces");
> p.put(InitialContext.PROVIDER_URL,"yourservername");
> InitialContext context = new InitialContext(p);
> 
> 
> After that you can do your EJB lookup's with that context.

That works for me too Michaelhas for some time now.  The issue I have with 
it is that I don't want to hard-code the JBoss server URL's and such into my 
code, since then the servlet can't be deployed by others with different setups 
without a code change and a recompile.

What I am trying to figure out is how to just do a:

   InitialContext context = new InitialContext();

call...without the hardcoded properties objectand have it pick up the 
properties from the jndi.properties file...like it's supposed to.

Thanks!


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Becker, Michael
> 
> > Copy %JBOSS_HOME%/client/[jboss-client.jar,jboss-common-client.jar,
> > jbosssx-client.jar, jnp-client.jar, jboss-j2ee.jar, and log4j.jar]
to
> > %CATALINA_HOME%/shared/lib.  
>
> Doesn't work.it still does not pick up my JBoss-specific 
> jndi.properties file.  
> I've got that file in the WEB-INF/classes and the shared/classes 
> directories...to 
> no avail.
>

I use this method instead of using the jndi.properties file.  See my
comments below...

> > This works for me:
> > 
> > // Try to find each of these individual parameters 
> > // and construct the properties
> > // object appropriately
> > java.util.Properties p = new java.util.Properties();
> > 
> > p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
> >   "org.jnp.interfaces.NamingContextFactory");
> > p.put(InitialContext.URL_PKG_PREFIXES,
> > "org.jboss.naming:org.jnp.interfaces");
> > p.put(InitialContext.PROVIDER_URL,"yourservername");
> > InitialContext context = new InitialContext(p);
> > 
> > 
> > After that you can do your EJB lookup's with that context.
>
> That works for me too Michaelhas for some time now.  The issue I
have > with 
> it is that I don't want to hard-code the JBoss server URL's and such
into > my 
> code, since then the servlet can't be deployed by others with
different 
> setups 
> without a code change and a recompile.
>
> What I am trying to figure out is how to just do a:
>
>InitialContext context = new InitialContext();
>
> call...without the hardcoded properties objectand have it pick up
the 
> properties from the jndi.properties file...like it's supposed to.
>
>

I ran into the same problem and decided to address this by making all of
the parameters JNDI environment variables and configuring those params
in my web.xml file.  I can easily change the configuration by commenting
out or changing the environment entries in my web.xml file.  Eventually,
I want to run with the integrated JBoss and Tomcat solution, but I had
some problems with them running together and decided to run them
separately and use this configuration until I can get the integrated
solution running correctly.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: can a Tomcat Filter rewrite the URL ?

2002-11-22 Thread Craig R. McClanahan


On Fri, 22 Nov 2002, Stephen Riek wrote:

> Date: Fri, 22 Nov 2002 09:40:11 + (GMT)
> From: Stephen Riek <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: can a Tomcat Filter rewrite the URL ?
>
>
> I'd like for a request to "/en/Folder/File" to be mapped to
> "/Folder/File" but with a parameter 'lang' set to 'en'.
> Likewise, a request to "/fr/Folder/File" to be mapped to
> "/Folder/File" but with a parameter 'lang' set to 'fr'. Is this
> possible with Filters?

One approach would be to map your Filter to URL pattern "/*" so that it
sees every request.  On each request, you would look at the request URI to
see if this is one that should be remapped.  If not, just call
chain.doFilter() in the usual way.

If you see that this one should be overwritten, you'll want to create a
custom HttpServletRequestWrapper class that overrides all the path related
methods (getRequestURI(), getServletPath(), getPathInfo(), and so on) to
return the adjusted values.  Finally, grab a RequestDispatcher to the
modified path (such as "/Folder/File" and call its forward() method,
instead of calling chain.doFilter().

> If not, is there any way to accomplish this within Tomcat so that it works for any 
>number of directories and subdirectories. The reason I want to do this is to avoid 
>copying/pasting an entire sitemap to support a second language - I know that some 
>people create a site in English then copy/paste the directory tree to support a 
>second language but this is not scalable and difficult to maintain.
> Other mechanisms I've looked at are Apache rewrite rules but they're very 
>complicated.
> Any and all help much appreciated. Thank you.
> Stephen.
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: does tomcat automatically revert to url rewriting...

2002-11-22 Thread Craig R. McClanahan


On Fri, 22 Nov 2002, jfc wrote:

> Date: Fri, 22 Nov 2002 11:11:28 +
> From: jfc <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: does tomcat automatically revert to url rewriting...
>
> Craig R. McClanahan wrote:
>
> >On Fri, 22 Nov 2002, jfc wrote:
> >
> >
> >
> >>Will tomcat *automatically* go through the effort of rewriting the URL
> >>if the session *cannot* be persisted via the cookie?(i.e. do I need to
> >>watch for clients that don't support cookies or can I rest assured that
> >>tomcat knows whether or not a request has a cookie and so when cookies
> >>are not there then it encodes each request for me?)
> >>
> >>
> >>
> >
> >Tomcat does indeed know if a session id cookie was received (and you can
> >find out as well, by calling request.isSessionIdFromCookie()).  If that is
> >the case, response.encodeURL() and response.encodeRedirectURL() will
> >return the argument unmodified.
> >
> >
> OK. So that means I don't need to be concerned with when I should use
> the call(s) and when I should not - I should always wrap my links and
> redirects in these calls. (assuming my application uses sessions)
>

Yes.

> >One subtlety should be pointed out, though -- consider what happens on the
> >very first response for a new session.  At that point in time, Tomcat has
> >no idea whether the client supports cookies or not.  Therefore, it sends
> >the session id both ways (rewriting and a cookie).  On subsequent
> >requests, if the cookie has been returned, Tomcat will stop rewriting.
> >
> >
> ok.
>
> >We also need to remember that Tomcat does *not* scan the output your
> >servlet or JSP page creates, and modifies the hyperlinks.  If you do not
> >call encodeURL() or encodeRedirectURL() yourself when creating the output,
> >URL rewriting will never occur (and your app will require the client to
> >support cookies if it uses sessions).
> >
> >
> ok. I've got that.
>
> Now, I am using struts 1.1b2 so if I have  tags (and the
> others tags which render urls) embedded in my jsps, should I wrap these
> tags manually or does struts do the wrapping? If struts automatically
> does it for me (as the docs suggest) then the above answer for me (using
> struts) is not relevent.
>
> Correct?
>

Yes.  The Struts tags that generate URLs all do the encodeURL() calls for
you, so you don't have to think about it.

> >Craig
> >
> >
> >
> jfc

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Anthony Geoghegan
Since the local TOMCAT JNDI server is not compatible with the JBOSS JNDI
server you probably have the -nonaming switch activated.
Since this deactivates the TOMCAT JNDI server you can access the local JNDI
properties that way.
Best Regards,
Anthony Geoghegan.
J2EE Developer
CPS Ireland Ltd.
- Original Message -
From: "Andrzej Jan Taramina" <[EMAIL PROTECTED]>
To: "Becker, Michael" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 6:39 PM
Subject: RE: Tomcat with external JBoss (JNDI problems)...


> > Copy %JBOSS_HOME%/client/[jboss-client.jar,jboss-common-client.jar,
> > jbosssx-client.jar, jnp-client.jar, jboss-j2ee.jar, and log4j.jar] to
> > %CATALINA_HOME%/shared/lib.
>
> Doesn't work.it still does not pick up my JBoss-specific
jndi.properties file.
> I've got that file in the WEB-INF/classes and the shared/classes
directories...to
> no avail.
>
> > This works for me:
> >
> > // Try to find each of these individual parameters
> > // and construct the properties
> > // object appropriately
> > java.util.Properties p = new java.util.Properties();
> >
> > p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
> >   "org.jnp.interfaces.NamingContextFactory");
> > p.put(InitialContext.URL_PKG_PREFIXES,
> > "org.jboss.naming:org.jnp.interfaces");
> > p.put(InitialContext.PROVIDER_URL,"yourservername");
> > InitialContext context = new InitialContext(p);
> >
> >
> > After that you can do your EJB lookup's with that context.
>
> That works for me too Michaelhas for some time now.  The issue I have
with
> it is that I don't want to hard-code the JBoss server URL's and such into
my
> code, since then the servlet can't be deployed by others with different
setups
> without a code change and a recompile.
>
> What I am trying to figure out is how to just do a:
>
>InitialContext context = new InitialContext();
>
> call...without the hardcoded properties objectand have it pick up the
> properties from the jndi.properties file...like it's supposed to.
>
> Thanks!
>
>
> Andrzej Jan Taramina
> Chaeron Corporation: Enterprise System Solutions
> http://www.chaeron.com
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.12 Admin Application Functions without using theadmin interface...

2002-11-22 Thread Craig R. McClanahan


On Fri, 22 Nov 2002, Brandon Cruz wrote:

> Date: Fri, 22 Nov 2002 11:56:06 -0600
> From: Brandon Cruz <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Tomcat 4.1.12 Admin Application Functions without using the
> admin interface...
>
> Hi,
> Is there a servlet or some internal tomcat class available that will tomcat
> to see changes made to server.xml?  I would like to be able to add new
> virtual hosts and contexts those hosts without having to use the admin
> application.
>
> Is this possible?
>

You'd need to write a servlet that makes the same kinds of internal calls
that the admin webapp does (via JMX MBeans) to accomplish those kinds of
things.  Don't forget to declare the webapp as privileged (and spell it
correctly :-).

>
> Brandon

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JNDI name space conventions

2002-11-22 Thread Craig R. McClanahan
On Fri, 22 Nov 2002, Jonathan Williamson wrote:

> Date: Fri, 22 Nov 2002 18:03:21 + (GMT)
> From: Jonathan Williamson <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: JNDI name space conventions
>
> I'm trying to write some code that uses JNDI to look
> up a JDBC DataSource to get a Connection.
>
> My code works fine in Tomcat 4.1 if I use the
> java:comp/env naming context, as in the following
> code:
>
>   Context initContext = new InitialContext();
>   DataSource ds =
> (DataSource)initContext.lookup("java:comp/env/jdbc/myoracledb");
>
> If I try to run this in JRun 4 or Oracle 9iAS, I get a
> NamingException.  Instead I have to do it like this
> (doesn't work in Tomcat):
>
>   Context initContext = new InitialContext();
>   DataSource ds =
> (DataSource)initContext.lookup("jdbc/myoracledb");
>
> I found this article on Macromedia's web site that
> sort of describes the problem I'm having:
> http://www.macromedia.com/v1/Handlers/index.cfm?ID=22927&Method=Full
>
> They say there that according to the Servlet 2.3
> specification, JNDI lookups should be relative to
> java:comp/env anyway.  I have a printed copy of the
> Servlet 2.3 specification, and from what I've seen by
> skimming through it, jndi naming contexts aren't
> mentioned at all (I could be wrong there though).
>
> Is this configured by some sort of setting in Tomcat?
> I can't seem to find one, or anything in the manuals
> for that matter.
>

The reason you're not finding this in the servlet spec is because it's in
the J2EE Platform Spec, in the chapter on Naming.  Tomcat implements its
JNDI naming context in a manner that is consistent with this.

Go about halfway down the following page for links to the specs, and grab
the one for J2EE 1.3 (corresponds to Servlet 2.3 and JSP 1.2, which is
what Tomcat 4.x implements):

  http://java.sun.com/j2ee/download.html

> Thanks,
> Jonathan
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Andrzej Jan Taramina
> I ran into the same problem and decided to address this by making all of
> the parameters JNDI environment variables and configuring those params in
> my web.xml file.  I can easily change the configuration by commenting out
> or changing the environment entries in my web.xml file.  Eventually, I
> want to run with the integrated JBoss and Tomcat solution, but I had some
> problems with them running together and decided to run them separately and
> use this configuration until I can get the integrated solution running
> correctly.

I'm looking at a similar approach...but instead I want to manually read the 
jndi.properties file and then use it to build the properties object passed to the 
InitialContext constructor.
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: A little of topic - Global e-mail sending facility inside of tomcat?

2002-11-22 Thread Cees van de Griend
On Friday 22 November 2002 18:58, Ryan Cornia wrote:
> 1.) Are there any products or open source projects available that will
> que the mail in case the SMTP server is down and re-send it later,
> including the possibility of a tomcat re-start before the SMTP server
> comes back up? Basically I want a way to insure an automated e-mail is
> sent when a person registers, and is not "lost" when the e-mail server
> is down.

When a SMTP server accepts an email, it  should never loose it. If yours does, 
replace it . There are a lot of good quality Open Source SMTP servers.

Your program should not duplicate a SMTP server. If the SMTP server is down, 
you should get an exception (I don't know the JavaMail API) and maybe try to 
connect to a backup mailer.

You can never garantee that an email will reach its destination. Maybe the 
SMTP server of the receipient stores all email in /dev/null, you have no way 
of knowing and can't do anything about it.
If there is an error, the destination SMTP server will normally report an 
error back to you - for example: the user is unknown - and maybe your 
application should handle these bounce messages.

Welcome to the internet. Sometimes it's a disadvantage that nobody controls 
it, mostly it's a blessing.

Regards,
Cees.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




subdirs under WEB-INF/lib????

2002-11-22 Thread Jürgen Schlierf
Hello,
is it possible to take some jars in subirs under WEB-INF/lib? e.g.

WEB-INF/lib/xml/xerces.jar
WEB-INF/lib/log/log4j.jar

I'm using Tomcat 4.1.12.


thanks
Juergen


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JkMount question

2002-11-22 Thread Rafael Angarita
   Hi,

   Does anybody knows if it's important the order of JkMount 
directives?, for example:

   I have two tomcat instances T1 and T2,  
   - The loadbalancer should handle all the requests to the entire site 
(and do a load balance between  T1 and T2) except for /app1 context
   - T2 should handle all the requests to /app1 context

   What's the right order of JkMount directives in my .conf file? does 
it matters?

   Thanks in advance,

--

Rafael Angarita



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Tomcat with external JBoss (JNDI problems)...Workaround...

2002-11-22 Thread Andrzej Jan Taramina
I've come up with a workaround to the problem that Tomcat servlets can't seem to find 
the jndi.properties file and 
thus connect to an external JBoss server.

Hardcoding the properties works, but is ugly since then your code is tied to the 
specific location of the JBoss 
server.and thus requries code changes and a recompile to deploy elsewhere.

Michael's suggestion of putting the jndi info into the web.xml file would work, but 
has the disadvantage of being yet 
another detail that is not standard that deployers would have to look into.

My workaround let's you put your jndi.properties file into /WEB-INF/classes as you 
would expectand that's all you 
need do.  The code is quite simple:

Properties props = new Properties();
props.load( servlet.getServletContext().getResourceAsStream( 
"/WEB-INF/classes/jndi.properties" ) );
InitialContext  ctx = new InitialContext( props );

All it requires is that you have a reference to the servlet so you can do the 
getServletContext() call.  That was a bit of 
a PITA for me...since the jmx-console code did not pass this into the class that 
needed the JNDI context...but that 
was pretty easily fixed.

I still think it should read the jndi.properties file without this workaround!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




keystore alias and Tomcat

2002-11-22 Thread Naveen Pasumarthi
Hi All,

If my keystore has two valid SSL certificates
how does Tomcat figure out which one to use?

I am still using Tomcat 3.x. Can I use
an extra element in the Connector something like...
  
along with the other elements keystore, keypass
etc


thanks,
naveen




_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Note: recent Xerces and Tomcat compatibility issues fixed....

2002-11-22 Thread Jacob Kjome

Just thought I'd mention that the Xerces bug that has been plaguing Tomcat 
users for a while has been fixed.  Maybe the Tomcat developer want to hold 
off on Tomcat-4.1.15 and release Tomcat-4.1.16 with a bug-fixed Xerces?

See the following for details:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13282


Jake

Re: subdirs under WEB-INF/lib????

2002-11-22 Thread Craig R. McClanahan


On Fri, 22 Nov 2002, Jürgen Schlierf wrote:

> Date: Fri, 22 Nov 2002 20:43:01 +0100
> From: Jürgen Schlierf <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: subdirs under WEB-INF/lib
>
> Hello,
> is it possible to take some jars in subirs under WEB-INF/lib? e.g.
>
> WEB-INF/lib/xml/xerces.jar
> WEB-INF/lib/log/log4j.jar
>
> I'm using Tomcat 4.1.12.
>

No.  Tomcat (and every other servlet container) will only look for JAR
files under "/WEB-INF/lib".

>
> thanks
> Juergen

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Meaning of mod_jk.log times

2002-11-22 Thread Ben Ricker
I see a lot of msgs logged to mod_jk.log on the Apache servers we have
setup using mod_jk 1.2 (with Apache 1.3.27). It is talking to 4 Tomcat
instances running Tomcat 4.0.6.

I am wondering what exactly the time stamped at the end of the line says
exactly:

[Fri Nov 22 14:42:36 2002] loadbalancer web2.wellinx.com 0.018557

Namely, the "0.18557".I am assuming it is the amount of time it takes
the transaction from when mod_jk makes the request to Tomcat to when it
gets that info back.

Also, notice the "web2.wellinx.com"; that is the ServerName from the
Apache server. Is there a way to actually log the Tomcat instance the
request is going to? I know what Apache server I am looking at when I am
reading the lod, so the information there seems rather trivial.

Thanks,

Ben Ricker
Wellinx.com




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Sun JDK 1.4 production quality?

2002-11-22 Thread Nick Wesselman
On Friday, November 22, 2002, at 11:33 AM, Shapira, Yoav wrote:


GC has markedly improved, although we did have to experiment
a bit with the new GC options.


What conclusions did you come to? My understanding is that 
ConcMarkSweepGC might be helpful for Tomcat, since you could avoid the 
problem of the OS gathering too many network connections for Tomcat 
while it's garbage collecting.

Nick


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Prblm: Tomcat doesn't start on boot, JAVA_HOME not defined. Manually works fine.

2002-11-22 Thread Ola Theander
Dear subscribers.

I have a problem that my Tomcat 4.0.4 installation doesn't start on
boot. In the boot.msg file I get a record stating that the JAVA_HOME
environment variable is not defined and therefore Tomcat can't start.
The strange thing is that the JAVA_HOME is defined in the profile.local
file. If I log on directly after the boot and run the tomcat startup
script from /etc/rc.d manually the Tomcat server starts as expected.
Therefore I suspect that the problem is either that profile.local is
evaluated after the Tomcat startup script when booting or the
profile.local environment variables aren't available during boot for
some reason.

Any help on this matter would be greatly appreciated.

Kind regards, Ola Theander



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat Windows installer reports wrong JAVA_HOME variable

2002-11-22 Thread john delby

My Java environment variable, JAVA_HOME, on my Windows XP is 
k:\j2sdk14;%JAVA_HOME%\bin

Yet Tomcat 4.1.12 Windows installer displays "Using Java Development Kit 
found in k:\k2sdk14;k:\k2sdk14;k:\k2sdk14;%JAVA_HOME%\bin\bin\bin"

Why is it doing this? Where are the three bin's in "%JAVA_HOME% 
\bin\bin\bin" coming from?

John






_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Tomcat Windows installer reports wrong JAVA_HOME variable

2002-11-22 Thread srinath narasimhan

Not sure but its enough if you set your JAVA_HOME TO k:\j2sdk14


-Original Message-
From: john delby [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 16:56
To: [EMAIL PROTECTED]
Subject: Tomcat Windows installer reports wrong JAVA_HOME variable



My Java environment variable, JAVA_HOME, on my Windows XP is
k:\j2sdk14;%JAVA_HOME%\bin

Yet Tomcat 4.1.12 Windows installer displays "Using Java Development Kit
found in k:\k2sdk14;k:\k2sdk14;k:\k2sdk14;%JAVA_HOME%\bin\bin\bin"

Why is it doing this? Where are the three bin's in "%JAVA_HOME%
\bin\bin\bin" coming from?

John






_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat Windows installer reports wrong JAVA_HOME variable

2002-11-22 Thread Klein, Scott @ TW
yep. I had an issue like this also - your JAVA_HOME should point to the
J2SDK/JRE directory, not inside to the bin directory. 

Also (and someone correct me if I am wrong) your JAVA_HOME should only have
a single path on it.




-Original Message-
From: srinath narasimhan [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 2:01 PM
To: Tomcat Users List
Subject: RE: Tomcat Windows installer reports wrong JAVA_HOME variable



Not sure but its enough if you set your JAVA_HOME TO k:\j2sdk14


-Original Message-
From: john delby [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 16:56
To: [EMAIL PROTECTED]
Subject: Tomcat Windows installer reports wrong JAVA_HOME variable



My Java environment variable, JAVA_HOME, on my Windows XP is
k:\j2sdk14;%JAVA_HOME%\bin

Yet Tomcat 4.1.12 Windows installer displays "Using Java Development Kit
found in k:\k2sdk14;k:\k2sdk14;k:\k2sdk14;%JAVA_HOME%\bin\bin\bin"

Why is it doing this? Where are the three bin's in "%JAVA_HOME%
\bin\bin\bin" coming from?

John






_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Prblm: Tomcat doesn't start on boot, JAVA_HOME not defined.Manually works fine.

2002-11-22 Thread p niemandt
Set your JAVA_HOME in /etc/profile and not profile.local 

profile.local will probably only be executed when a user logs in, as
it's local to whatever user is logging in.

On Fri, 2002-11-22 at 21:26, Ola Theander wrote:
> Dear subscribers.
> 
> I have a problem that my Tomcat 4.0.4 installation doesn't start on
> boot. In the boot.msg file I get a record stating that the JAVA_HOME
> environment variable is not defined and therefore Tomcat can't start.
> The strange thing is that the JAVA_HOME is defined in the profile.local
> file. If I log on directly after the boot and run the tomcat startup
> script from /etc/rc.d manually the Tomcat server starts as expected.
> Therefore I suspect that the problem is either that profile.local is
> evaluated after the Tomcat startup script when booting or the
> profile.local environment variables aren't available during boot for
> some reason.
> 
> Any help on this matter would be greatly appreciated.
> 
> Kind regards, Ola Theander
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
p niemandt <[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Managed Bean Question

2002-11-22 Thread Anthony Mutiso 2
Thanks

Bill, that worked better!

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]]
Sent: November 21, 2002 2:31 AM
To: [EMAIL PROTECTED]
Subject: Re: Managed Bean Question


Fortunately, there is a yet-undocumented-method :( that works much better.

The "ServerLifecycleListener" in the "server.xml" file takes an
(undocumented) attribute called 'descriptors'.  The value is a ';' separated
list of resources to load the mbean-descriptors from.  This allows you to
package your mbeans-descriptors.xml file with the jar that contains the
custom Realm.  You just create your own mbeans-descriptors.xml file with
your Realm, and in "server.xml" set:
 

and all of your custom classes will be registered.  It works great for me.

"Anthony Mutiso 2" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a webapp with a custom realm class.
> The webapp worked fine in TC 4.0.5.
> When I migrate my webapp to 4.1.12 I get Managed Bean errors which fail my
> realm initialization.
> On searching the mail-list I found suggestions that I need to register the
> realm class in the mbeans-discriptors.xml file.
>
> My qustions is, is this the only or right way to address this issues?
>
> It feels somewhat dirty to update a file in the catalina.jar file.
>
> Thanks
>
> Anthony





--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: subdirs under WEB-INF/lib????

2002-11-22 Thread micael
I am curious why you asked this question.  I cannot think of a reason why 
you would want to do that, but you must have had a reason to ask the question.

At 08:43 PM 11/22/2002 +0100, you wrote:
Hello,
is it possible to take some jars in subirs under WEB-INF/lib? e.g.

WEB-INF/lib/xml/xerces.jar
WEB-INF/lib/log/log4j.jar

I'm using Tomcat 4.1.12.


thanks
Juergen


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: JkMount question

2002-11-22 Thread David Brown
Rafael Angarita writes: 

   Hi, 

   Does anybody knows if it's important the order of JkMount directives?, 
for example: 

   I have two tomcat instances T1 and T2, - The loadbalancer should 
handle all the requests to the entire site (and do a load balance between  
T1 and T2) except for /app1 context
   - T2 should handle all the requests to /app1 context 

   What's the right order of JkMount directives in my .conf file? does it 
matters? 

   Thanks in advance, 

--  

Rafael Angarita 

 

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 
 



Hello Rafael, i don't think the order matters. i don't have 2 loadbalanced 
servers but i have few domains and it seems the JkMount order in httpd.conf 
does not matter. httpd.conf is a name/value/properties type of file and not 
an xml file so the order should not matter. hope this helps ,david 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: subdirs under WEB-INF/lib????

2002-11-22 Thread Nick Wesselman
well personally i could see how having a large number of JARs under 
WEB-INF/lib could get messy :-) there is something to be said about 
being able to group xml/xsl jars, JDBC drivers, in-house JARs, taglibs, 
etc. Know what I mean? Maybe it's time to submit a suggestion via the 
JCP :-)

Nick

On Friday, November 22, 2002, at 05:18 PM, micael wrote:

I am curious why you asked this question.  I cannot think of a reason 
why you would want to do that, but you must have had a reason to ask 
the question.

At 08:43 PM 11/22/2002 +0100, you wrote:
Hello,
is it possible to take some jars in subirs under WEB-INF/lib? e.g.

WEB-INF/lib/xml/xerces.jar
WEB-INF/lib/log/log4j.jar

I'm using Tomcat 4.1.12.


thanks
Juergen


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 


Micael

---

This electronic mail  transmission and any accompanying documents 
contain information belonging to the sender which may be confidential 
and legally privileged.  This information is intended only for the use 
of the individual or entity to whom this electronic mail transmission 
was sent as indicated above. If you are not the intended recipient, 
any disclosure, copying, distribution, or action taken in reliance on 
the contents of the information contained in this transmission is 
strictly prohibited.  If you have received this transmission in error, 
please delete the message.  Thank you


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: i am having trouble using Java Beans with Tomcat 4.1

2002-11-22 Thread David Brown
Jeff Tulley writes: 

If you are using JVM 1.4.1, this might be a FAQ - that you need to have a package name on the bean.
At least it appears that your bean is in the default package. 

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com 

[EMAIL PROTECTED] 11/22/02 9:36:31 AM >>>

Hi,
I am a beginner to Java beans.
i am having trouble using Java Beans with Tomcat 4.1
I am attatching the beans file and am copying the
exact errors that I get..
Please help me.. 

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:
/student_survey.jsp 

Generated servlet error:
[javac] Compiling 1 source file 

C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:7:
'.' expected
import SurveyBean;
 ^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:43:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
  SurveyBean student = null;
  ^ 

 

An error occurred at line: 1 in the jsp file:
/student_survey.jsp 

Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:45:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
student = (SurveyBean)
pageContext.getAttribute("student",
PageContext.SESSION_SCOPE);
   ^ 

 

An error occurred at line: 1 in the jsp file:
/student_survey.jsp 

Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\student_survey_jsp.java:48:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
student = (SurveyBean)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"SurveyBean");
   ^
4 errors 


	at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
	at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
	at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at
o

RE: Tomcat Windows installer reports wrong JAVA_HOME variable

2002-11-22 Thread john delby


I removed the bin part from HOME_JAVA.
Here's some problems I noticed. I compared my unsucessful install on XP to a 
successful install on a Windows 2000 machine.

- Somewhere along the installation a copy file fails. I think the installer 
is trying to put something in common\lib. In the Windows 2000 machine, this 
is where a little copy windows shows up for 2 seconds in the middle of the 
install. I don't know if this part is using some java component. In XP, it 
doesn't happen. Installer reports copy failed for 2 seconds and continues 
extracting files.

After installation, I try catalina.bat and it tells me the Java environment 
is incorrect, shows some java variables and last line says something about 
-dJava.endorsement... not available.

The problem must be related to failed copy during installation. I 
reinstalled the java sdk many times and rebooted many times. I tried older 
versions of Tomcat and all had copy failed. So I guess it's a problem in my 
system. Don't what. I am logged in as administrator and installed also on 
FAT partition but always same problem.

John



after the install is done. When I run catalina.bat it tells me that the




From: "Klein, Scott @ TW" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Subject: RE: Tomcat Windows installer reports wrong JAVA_HOME variable
Date: Fri, 22 Nov 2002 14:05:02 -0800

yep. I had an issue like this also - your JAVA_HOME should point to the
J2SDK/JRE directory, not inside to the bin directory.

Also (and someone correct me if I am wrong) your JAVA_HOME should only have
a single path on it.




-Original Message-
From: srinath narasimhan [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 2:01 PM
To: Tomcat Users List
Subject: RE: Tomcat Windows installer reports wrong JAVA_HOME variable



Not sure but its enough if you set your JAVA_HOME TO k:\j2sdk14


-Original Message-
From: john delby [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 16:56
To: [EMAIL PROTECTED]
Subject: Tomcat Windows installer reports wrong JAVA_HOME variable



My Java environment variable, JAVA_HOME, on my Windows XP is
k:\j2sdk14;%JAVA_HOME%\bin

Yet Tomcat 4.1.12 Windows installer displays "Using Java Development Kit
found in k:\k2sdk14;k:\k2sdk14;k:\k2sdk14;%JAVA_HOME%\bin\bin\bin"

Why is it doing this? Where are the three bin's in "%JAVA_HOME%
\bin\bin\bin" coming from?

John






_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Tomcat 3.3 , JNDI, DataSource, Web.xml, Server.xml

2002-11-22 Thread Jeovanny Mejia
Does anyone know how to get a DataSource configured in the Server.xml file, 
reference it in the web.xml as a resource, and pull the DataSource using 
JNDI in an external application?

I am stumped.



_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: MOD_JK

2002-11-22 Thread mlh
José Moreira wrote:

hello im trying to use mod_jk in apache 2 for winXP Pro...
 
i placed mod_jk.dll in the {apache}/modules
 
then configured it : "LoadModule jk_module modules/mod_jk.dll"
 
but apache gave this error starting
 
"cant find module : d:/Javawork/Apache/modules/mod_jk.dll"
 

If relative, it should be from the base of apache.
Is D:\javawork\apache\ your apache serverroot?

Anyway, try the absolute path.

Matt





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




please unsubscribe me from the list,thanks

2002-11-22 Thread yang huijuan






_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Tomcat 3.3 , JNDI, DataSource, Web.xml, Server.xml

2002-11-22 Thread Craig R. McClanahan


On Sat, 23 Nov 2002, Jeovanny Mejia wrote:

> Date: Sat, 23 Nov 2002 01:32:01 +
> From: Jeovanny Mejia <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.3 , JNDI, DataSource, Web.xml, Server.xml
>
> Does anyone know how to get a DataSource configured in the Server.xml file,
> reference it in the web.xml as a resource, and pull the DataSource using
> JNDI in an external application?
>
> I am stumped.
>

AFAIK the JNDI resources stuff is not supported by Tomcat 3.3.  You should
still be able to use things like PoolMan within a webapp, configuring them
as described in the docs.

For 4.0 and 4.1, the appropriate docs are in the "tomcat-docs" webapp, and
also available online:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

For 4.1, there are also some specific examples for data sources:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




ClassCastException when using Tomcat as RMI client

2002-11-22 Thread Vishal Zinjuvadia
Hi,

I am trying to use a Tomcat webapp as a RMI client.
For the test purposes, my RMI server
resides on the same machine. When I use a Tomcat
webapp as a client, I consistently get a
ClassCastException, while if I use a plain java class
for the client, it works flawlessly.

Following is my client code used in the servlet and
the plain java class.

System.setProperty("java.rmi.server.codebase",
"file:/path/to/stubfile/");
try {
   //(line: 141)
   TestInterface testIf = (TestInterface)
Naming.lookup("//localhost/Test");
   result = testIf.testMethod();
} catch (Exception e) {
   servlet.log(e.getMessage());
   e.printStackTrace();
}

I am using:
JDK-1.4
tomcat-4.1.12

>From the stack it looks like the stub file is located,
but it cannot relate it
with the interface file.

java.lang.ClassCastException: Test_Stub
at
com.blah.blah.TestAction.perform(TestAction.java:141)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)

Thanks in advance,
Vishal

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




urgrnt.. I am getting the org.apache.jasper.JasperException: survey/MainSurvey exception.

2002-11-22 Thread runu rathi
Hi,
I am getting the following error when I try to run a
simple JSP which uses Java Beans. Please suggest what
could be the cause. 
Many Thanks,
Runu

type Exception report

message 

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

exception 

org.apache.jasper.JasperException: survey/MainSurvey
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException: survey/MainSurvey
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
at
org.apache.jsp.student_survey_jsp._jspService(student_survey_jsp.java:79)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.ca

  1   2   >