RE : Manually Populate Request Object Name/Value Parameters?

2004-12-14 Thread LERBSCHER Jean-Pierre
why don't you protect the form ?

-Message d'origine-
De : Joe Reger, Jr. [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 13 décembre 2004 17:15
À : [EMAIL PROTECTED]
Objet : Manually Populate Request Object Name/Value Parameters?


The scenario is a timed-out login session:  The user writes a wonderful
something in a web page form.  They finally submit it but I have to redirect
to the login page to collect credentials because the session has timed out.


Question: Is there any way to restore that original request (with the user's
hard work in it) and throw it back at the page the user was trying to hit
after I collect credentials?  

If not then prior to redirecting for login I'd like to store the name/value
pairs from the request in the session, collect login credentials and then
rebuild the request manually by setting the URL and name/value request
parameters?

I'm using a homebrew login scheme.  Would switching to form-based
authentication automatically restore the original request once the user is
logged-in?

Thanks,

Joe 


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

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



RE: new isapi_redirector2.dll

2004-12-14 Thread David Boyer
SF_NOTIFY_AUTH_COMPLETE is part of the platform SDK. The errors you're
getting suggests VC doesn't know where to find the SDK.

 [EMAIL PROTECTED] 12/14/2004 10:02:26 AM 

I think I've followed the steps to build JK2, but there are still
errors in the jk_isapi_plugin.c file.  The latest version from CVS is
1.64 (according to WinCVS).  Should I just fix these, or is there a
better alternative?

Thanks,
Derrick


jk_isapi_plugin.c
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160)
: error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160)
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(229)
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared
identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2146: syntax error : missing ')' before identifier
'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT
*,char *,void *,unsigned long *)' differs in levels of indirection from
'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: error C2146: syntax error : missing ')' before identifier
'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT
*,char *,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: error C2146: syntax error : missing ')' before identifier
'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT
*,char *,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: error C2059: syntax error : ')'
jk_jni_aprImpl.c



-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 19, 2004 5:01 PM
To: [EMAIL PROTECTED]
Subject: new isapi_redirector2.dll

I noticed there have been some commits since the last official release
in March, so I've built a version based on the latest snapshot. I've
also added a How to page for people interested in building it
themselves.

http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage=overview



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




RE: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Robert Taylor
Ping...

Please let me know if this questions is just too obvious
and I'll gladly RTFM...even more. And yes, I know this list
is not here just to serve _my_ interests.

It just seems like a common idiom to provide a portable mechanism
for protecting direct access to .jsp so as to enforce access through
some controller. I have in the past placed .jsp files behind WEB-INF,
but I don't believe that is portable and would like to use CMS to achieve
this.

Thanks again.

/robert


 -Original Message-
 From: Robert Taylor [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 13, 2004 8:59 PM
 To: [EMAIL PROTECTED]
 Subject: [newbie] Container Managed Security - preventing direct access
 to .jsp
 
 
 Greetings, 
 
 I'm new to Tomcat and this mailing list, and have a question
 regarding configuring Tomcat to simply disallow access to .jsp pages
 which I have been protected via the security-constraint/ in my web app
 web.xml file.
 
 From what I understand, the following should do the trick and cause
 a 403 error to be sent to the browser by the container. I would like
 to trap that error code and display a user friendly page (I chose any page
 so I would know it's working).
 
 I've simply modified the Tomcat jsp-examples web app. Here's a snippet
 of the necessary artifacts in the web.xml file.
 
 
 
 error-page
 error-code403/error-code
 location/dates/date.jsp/location
 /error-page
 
 security-constraint
   display-nameExample Security Constraint/display-name
   web-resource-collection
  web-resource-nameProtected Area/web-resource-name
  url-pattern/security/protected/*/url-pattern
   /web-resource-collection
 /security-constraint
 
 
 I believe the constraint is working, but I don't think the 
 error-page/ is catching the 403 status code. This is probably
 because a 403 status code is not returned, but rather a 200 (I verified
 this by looking at the response headers).
 
 Anyhow, the content of the returned page is below within the content/:
 
 
 content
 You are logged in as remote user null in session 
 D97EE937BEC953A7E82E42B3956AED86
 
 No user principal could be identified.
 
 To check whether your username has been granted a particular role, enter it 
 here:
 
 
 If you have configured this app for form-based authentication, you can log 
 off by 
 clicking here. This should cause you to be returned to the logon page after 
 the 
 redirect that is performed.
 /content
 
 I'm sure this has happened to someone else, I just cannot find where.
 I googled and didn't come up with much. I searched the archives using
 You are logged in as remote user null in session and no matches were
 found.
 
 Any help would be greatly appreciated.
 
 /robert
 
 
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



set an environement variable under fedora core3

2004-12-14 Thread FRANCOIS Dufour
hi to all
im used to work on windows im actualy tring  to find were to set these 
variable under linux
sombody could give mee  an hint  ?

thanks in advance
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

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


RE: new isapi_redirector2.dll

2004-12-14 Thread Derrick Koes
 
I was a bit hasty in my response.  How do you get Visual C++ to recognize the 
SDK files?

Thanks,
Derrick

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 14, 2004 1:14 PM
To: Tomcat Users List
Subject: RE: new isapi_redirector2.dll


Thank you! 


ContactInfo
  NameDerrick Koes/Name
  TitleSenior Software Engineer/Title
  Company name=SkillSoft
url=http://www.skillsoft.com/
  AIMcodeauthor2001/AIM
  Email[EMAIL PROTECTED]/Email
  Phone(603) 305-1753/Phone
  Fax/
  Quote attributedTo=YodaNo, try not, do
or do not, there is no try./Quote
/ContactInfo

-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 12:09 PM
To: [EMAIL PROTECTED]
Subject: RE: new isapi_redirector2.dll

SF_NOTIFY_AUTH_COMPLETE is part of the platform SDK. The errors you're getting 
suggests VC doesn't know where to find the SDK.

 [EMAIL PROTECTED] 12/14/2004 10:02:26 AM 

I think I've followed the steps to build JK2, but there are still errors in the 
jk_isapi_plugin.c file.  The latest version from CVS is
1.64 (according to WinCVS).  Should I just fix these, or is there a better 
alternative?

Thanks,
Derrick


jk_isapi_plugin.c
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160)
: error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160)
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(229)
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,void *,unsigned long *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: error C2059: syntax error : ')'
jk_jni_aprImpl.c



-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 5:01 PM
To: [EMAIL PROTECTED]
Subject: new isapi_redirector2.dll

I noticed there have been some commits since the last official release in 
March, so I've built a version based on the latest snapshot. I've also added a 
How to page for people interested in building it themselves.

http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage=overview



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





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





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



Re: set an environement variable under fedora core3

2004-12-14 Thread Ben Souther
It's usually done in the user's .bash_profile script.

IE:
/home/tomcat/.bash_profile


The text usually looks like this:

JAVA_HOME=/usr/local/jdk1.5.0
CATALINA_HOME=/usr/local/jakarta-tomcat-5.5

export JAVA_HOME CATALINA_HOME


You will either need to log in and back out or source your .bash_profile
script for this to take place.

. .bash_profile




On Tue, 2004-12-14 at 13:16, FRANCOIS Dufour wrote:
 hi to all
 
 im used to work on windows im actualy tring  to find were to set these 
 variable under linux
 sombody could give mee  an hint  ?
 
 thanks in advance
 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: new isapi_redirector2.dll

2004-12-14 Thread Derrick Koes

 
I just had to move 'C:\Program Files\Microsoft SDK\include' higher in the 
directories list.

-Original Message-
From: Derrick Koes 
Sent: Tuesday, December 14, 2004 1:51 PM
To: 'Tomcat Users List'
Subject: RE: new isapi_redirector2.dll

 
I was a bit hasty in my response.  How do you get Visual C++ to recognize the 
SDK files?

Thanks,
Derrick

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 1:14 PM
To: Tomcat Users List
Subject: RE: new isapi_redirector2.dll


Thank you! 


ContactInfo
  NameDerrick Koes/Name
  TitleSenior Software Engineer/Title
  Company name=SkillSoft
url=http://www.skillsoft.com/
  AIMcodeauthor2001/AIM
  Email[EMAIL PROTECTED]/Email
  Phone(603) 305-1753/Phone
  Fax/
  Quote attributedTo=YodaNo, try not, do
or do not, there is no try./Quote
/ContactInfo

-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 12:09 PM
To: [EMAIL PROTECTED]
Subject: RE: new isapi_redirector2.dll

SF_NOTIFY_AUTH_COMPLETE is part of the platform SDK. The errors you're getting 
suggests VC doesn't know where to find the SDK.

 [EMAIL PROTECTED] 12/14/2004 10:02:26 AM 

I think I've followed the steps to build JK2, but there are still errors in the 
jk_isapi_plugin.c file.  The latest version from CVS is
1.64 (according to WinCVS).  Should I just fix these, or is there a better 
alternative?

Thanks,
Derrick


jk_isapi_plugin.c
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160)
: error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160)
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(229)
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,void *,unsigned long *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: error C2059: syntax error : ')'
jk_jni_aprImpl.c



-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 5:01 PM
To: [EMAIL PROTECTED]
Subject: new isapi_redirector2.dll

I noticed there have been some commits since the last official release in 
March, so I've built a version based on the latest snapshot. I've also added a 
How to page for people interested in building it themselves.

http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage=overview



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





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





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



Re: Application looping

2004-12-14 Thread Jim Lynch
Hi,
I solved the problem by dropping back to 4.1.24.  I can't imagine what 
that had to do with it, but now it works.

Jim.
Shapira, Yoav wrote:
Hi,
Two ideas: one, always make sure to return (i.e. a return; statement)
after a request dispatcher forward call.  Two, take Apache out of the
mix for now, test tomcat-standalone.  Once that works, if you need
Apache you can bring it back in and worry about its configuration.
Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 8:36 AM
To: Tomcat Users List
Subject: Application looping
Hi, all,
I'm attempting to port an application from one system to another.  I
originally wrote it on a debian system and ported it to a RH 7.2
system.  Now I'm trying to move it to a RH 9 system.  I installed the
latest Tomcat 4.1.31, java 1.4.2_06 and Apache 1.3.  Orignally this
system had Apache 2, java 1.4.2_05 and Tomcat 4.1.30.  I was never able
to get mod_jk2 working so that's why I backed off to Apache 1.3.  I
don't think that made any difference since the application continues to
loop in either configuration.  It boils down to the following code.
I have a method in my servlet class that looks like:
protected void getJspPage(HttpServletRequest request,
  HttpServletResponse response, String
   

pageName){
 

  RequestDispatcher dispatcher =
   

request.getRequestDispatcher(pageName);
 

  try{
_logger.debug(Dispatcher is Dispatching +pageName);
dispatcher.forward(request, response);
_logger.debug(Done);
  }catch ( Exception e ) {
_logger.debug(Exception in RequestHandler.getJspPage -
+e.toString());
  }
}
It is invoked by the following:
private final String SELECT_PAGE =nindex.jsp;
...
request.setAttribute(Notes,Add unique notes for this data
   

set);
 

getJspPage(request, response, SELECT_PAGE);
_logger.debug(Good bye);
return;
I have a javascript alert message in nindex.jsp that tells me it was
loaded into the browser.
The problem is that the dispatcher.forward method never returns.  I
never see the Good bye message in the log.
Here's from the log:
04-12-14 07:01:40|DEBUG|
manpower.servlets.NafoServlet|Dispatcher is Dispatching nindex.jsp
04-12-14 07:01:40|DEBUG|   manpower.servlets.NafoServlet|Into
NafoServlet Url =/nindex.jsp
04-12-14 07:01:40|DEBUG|
manpower.servlets.NafoServlet| Resources
   

Servlet
 

running 
The first line is from the previously mentioned method.  The second and
third line are from the servelet and are issued when the servlet
starts.  The alert message never gets displayed except the first time
the jsp is loaded.
The log fills up with messages showing the same code being executed
   

over
 

and over.  Note there is no delay in the time the servlet (supposedly)
ends and starts up again.
I'm stumped.  It continues to work on Debian and RH 7.2 but fails on RH
9 with updated Tomcat and Java.
Any suggestions?
Thanks,
Jim.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


RE: new isapi_redirector2.dll

2004-12-14 Thread Derrick Koes

Thank you! 


ContactInfo
  NameDerrick Koes/Name
  TitleSenior Software Engineer/Title
  Company name=SkillSoft
url=http://www.skillsoft.com/
  AIMcodeauthor2001/AIM
  Email[EMAIL PROTECTED]/Email
  Phone(603) 305-1753/Phone
  Fax/
  Quote attributedTo=YodaNo, try not, do
or do not, there is no try./Quote
/ContactInfo

-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 14, 2004 12:09 PM
To: [EMAIL PROTECTED]
Subject: RE: new isapi_redirector2.dll

SF_NOTIFY_AUTH_COMPLETE is part of the platform SDK. The errors you're getting 
suggests VC doesn't know where to find the SDK.

 [EMAIL PROTECTED] 12/14/2004 10:02:26 AM 

I think I've followed the steps to build JK2, but there are still errors in the 
jk_isapi_plugin.c file.  The latest version from CVS is
1.64 (according to WinCVS).  Should I just fix these, or is there a better 
alternative?

Thanks,
Derrick


jk_isapi_plugin.c
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160)
: error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160)
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(229)
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,void *,unsigned long *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231)
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234)
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237)
: error C2059: syntax error : ')'
jk_jni_aprImpl.c



-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 5:01 PM
To: [EMAIL PROTECTED]
Subject: new isapi_redirector2.dll

I noticed there have been some commits since the last official release in 
March, so I've built a version based on the latest snapshot. I've also added a 
How to page for people interested in building it themselves.

http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage=overview



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





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



RE: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Ben Souther
Filters are portable.



On Tue, 2004-12-14 at 12:32, Robert Taylor wrote:
 Ping...
 
 Please let me know if this questions is just too obvious
 and I'll gladly RTFM...even more. And yes, I know this list
 is not here just to serve _my_ interests.
 
 It just seems like a common idiom to provide a portable mechanism
 for protecting direct access to .jsp so as to enforce access through
 some controller. I have in the past placed .jsp files behind WEB-INF,
 but I don't believe that is portable and would like to use CMS to achieve
 this.
 
 Thanks again.
 
 /robert
 
 
  -Original Message-
  From: Robert Taylor [mailto:[EMAIL PROTECTED]
  Sent: Monday, December 13, 2004 8:59 PM
  To: [EMAIL PROTECTED]
  Subject: [newbie] Container Managed Security - preventing direct access
  to .jsp
  
  
  Greetings, 
  
  I'm new to Tomcat and this mailing list, and have a question
  regarding configuring Tomcat to simply disallow access to .jsp pages
  which I have been protected via the security-constraint/ in my web app
  web.xml file.
  
  From what I understand, the following should do the trick and cause
  a 403 error to be sent to the browser by the container. I would like
  to trap that error code and display a user friendly page (I chose any page
  so I would know it's working).
  
  I've simply modified the Tomcat jsp-examples web app. Here's a snippet
  of the necessary artifacts in the web.xml file.
  
  
  
  error-page
  error-code403/error-code
  location/dates/date.jsp/location
  /error-page
  
  security-constraint
display-nameExample Security Constraint/display-name
web-resource-collection
   web-resource-nameProtected Area/web-resource-name
   url-pattern/security/protected/*/url-pattern
  /web-resource-collection
  /security-constraint
  
  
  I believe the constraint is working, but I don't think the 
  error-page/ is catching the 403 status code. This is probably
  because a 403 status code is not returned, but rather a 200 (I verified
  this by looking at the response headers).
  
  Anyhow, the content of the returned page is below within the content/:
  
  
  content
  You are logged in as remote user null in session 
  D97EE937BEC953A7E82E42B3956AED86
  
  No user principal could be identified.
  
  To check whether your username has been granted a particular role, enter it 
  here:
  
  
  If you have configured this app for form-based authentication, you can log 
  off by 
  clicking here. This should cause you to be returned to the logon page after 
  the 
  redirect that is performed.
  /content
  
  I'm sure this has happened to someone else, I just cannot find where.
  I googled and didn't come up with much. I searched the archives using
  You are logged in as remote user null in session and no matches were
  found.
  
  Any help would be greatly appreciated.
  
  /robert
  
  
   
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Hassan Schroeder
Robert Taylor wrote:
Please let me know if this questions is just too obvious
and I'll gladly RTFM...
See below :-)
It just seems like a common idiom to provide a portable mechanism
for protecting direct access to .jsp so as to enforce access through
some controller. I have in the past placed .jsp files behind WEB-INF,
but I don't believe that is portable and would like to use CMS to achieve
this.
Given that the Java Servlet Specification Version 2.4, page 70 sez:
A special directory exists within the application hierarchy
named WEB-INF. This directory contains all things related to
the application that aren't in the document root of the
application. The WEB-INF node is not part of the public
document tree of the application. No file contained in the
WEB-INF directory may be served directly to a client by the
container.
I don't know how much more portable you want it to be :-)
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Tomcat upgrade to 4.1.7

2004-12-14 Thread john corcoran
Hello,
I 've searched the tomcat website and could not find any instructions for 
upgrading Tomcat 4.0.5
to Tomcat 4.1.7

Can anybody help me out ?  Looking for some tpye of cook book or detail 
instructions .

Thanks
-John Corcoran
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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


RE: Tomcat 5.5 / Admin How ?

2004-12-14 Thread Montz, James C. (James Tower)
Just verified;

Tomcat 5.5.6 Does resolve the Service Tree Issue

On a side note, save yourself some trouble/work by altering the 5.5.6
installation path to;
C:\Program Files\Apache Software Foundation\jakarta-tomcat-5.5.6

Then just extract jakarta-tomcat-5.5.6-admin.zip to C:\Program
Files\Apache Software Foundation\

Restart Tomcat, and all should be well, including the Administration
tools.
Just login with the username/password supplied during initial TC 5.5.6
install.

User admin in role admin, manager was created in in tomcat-users.xml
during initial installation, so you shouldn't have to modify
tomcat-users.xml any furhter.
 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 14, 2004 8:17 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5 / Admin How ?

There was an issue with the left-hand tree in 5.5.4. I don't know
whether 5.5.4's admin distribution was repackaged. If not, you should
acquire 5.5.6-alpha. 

I see Yoav has also replied to a separate email with a similar
statement.

Allistair.

 -Original Message-
 From: Kelly, Steve [mailto:[EMAIL PROTECTED]
 Sent: 14 December 2004 14:11
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5 / Admin How ?
 
 
 But does it work. It don't seem to in 5.5.4 (and that's 
 supposed to be a
 stable version - not beta or alpha). See the other threads on the
 subject for more details of the problems.
 
 Steve.   
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: 14 December 2004 13:55
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5 / Admin How ?
 
 
 Hi,
 
 Can any one guide me or point me to the documents  where i 
 will get the
 
 steps to  assimilate the admin with  tomcat ??
 
 Ahh, the Borg.
 
 Anyways, simple:
 - Download jakarta-tomcat-v5.5.6-zip, extract to C:\.
 - Download jakarta-tomcat-v5.5.6-admin.zip, extract to C:\.
 - Edit c:\jakarta-tomcat-5.5.6\conf\tomcat-users.xml as instructed in
 the Manager app how-to.
 - That's it.
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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


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



Tomcat 5 and Realm problem

2004-12-14 Thread VAN DER MARLIERE FREDERIC
Hi,

I'm developping a web app in wich I want the users to authenticate via
Realm.
I first used BASIC authentication méthod and everything worked fine.
But when I want to use the FORM one, I get the following message when login
and password are correct (if not, I get the error page I configured in
web.xml):

The time allowed for the login process has been exceeded. If you wish to
continue you must either click back twice and re-click the link you
requested or close and re-open your browser

My web.xml looks like:

security-constraint
display-name/display-name

web-resource-collection
  web-resource-nameprotection index/web-resource-name
  url-pattern//url-pattern
  http-methodGET/http-method
/web-resource-collection

auth-constraint
  role-namemyRole/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
form-login-config
  form-login-page/login.jsp/form-login-page
  form-error-page/error.jsp/form-error-page
/form-login-config
/login-config

security-role
role-namemyRole/role-name
/security-role

And login.jsp looks like:

  html
  head/head
  body
form action=j_security_check method=POST
  input type=text name=j_username /
  input type=password name=j_password /
  input type=submit /
/form
  /body
/html


Does someone have any idea about the origin of my problem ?

Thanks.
Fred.



Ce message et toutes les pieces jointes (ci-apres le message) sont 
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message 
electronique est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce 
message s'il a ete altere, deforme ou falsifie.
This message and any attachments ( the message) are confidential and intended 
solely for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible to 
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be 
liable for the message if altered, changed or falsified.




RE: [newbie] Container Managed Security - preventing direct accessto .jsp

2004-12-14 Thread Robert Taylor
Yes. That would be an alternative approach.
However, I want to use CMS (Container Managed Security) to protect direct 
access to .jsp pages.
This should be possible as per the Servlet specification.

/robert

 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 14, 2004 1:16 PM
 To: Tomcat Users List
 Subject: RE: [newbie] Container Managed Security - preventing direct
 accessto .jsp
 
 
 Filters are portable.
 
 
 
 On Tue, 2004-12-14 at 12:32, Robert Taylor wrote:
  Ping...
  
  Please let me know if this questions is just too obvious
  and I'll gladly RTFM...even more. And yes, I know this list
  is not here just to serve _my_ interests.
  
  It just seems like a common idiom to provide a portable mechanism
  for protecting direct access to .jsp so as to enforce access through
  some controller. I have in the past placed .jsp files behind WEB-INF,
  but I don't believe that is portable and would like to use CMS to achieve
  this.
  
  Thanks again.
  
  /robert
  
  
   -Original Message-
   From: Robert Taylor [mailto:[EMAIL PROTECTED]
   Sent: Monday, December 13, 2004 8:59 PM
   To: [EMAIL PROTECTED]
   Subject: [newbie] Container Managed Security - preventing direct access
   to .jsp
   
   
   Greetings, 
   
   I'm new to Tomcat and this mailing list, and have a question
   regarding configuring Tomcat to simply disallow access to .jsp pages
   which I have been protected via the security-constraint/ in my web app
   web.xml file.
   
   From what I understand, the following should do the trick and cause
   a 403 error to be sent to the browser by the container. I would like
   to trap that error code and display a user friendly page (I chose any page
   so I would know it's working).
   
   I've simply modified the Tomcat jsp-examples web app. Here's a snippet
   of the necessary artifacts in the web.xml file.
   
   
   
   error-page
   error-code403/error-code
   location/dates/date.jsp/location
   /error-page
   
   security-constraint
 display-nameExample Security Constraint/display-name
 web-resource-collection
web-resource-nameProtected Area/web-resource-name
url-pattern/security/protected/*/url-pattern
 /web-resource-collection
   /security-constraint
   
   
   I believe the constraint is working, but I don't think the 
   error-page/ is catching the 403 status code. This is probably
   because a 403 status code is not returned, but rather a 200 (I verified
   this by looking at the response headers).
   
   Anyhow, the content of the returned page is below within the content/:
   
   
   content
   You are logged in as remote user null in session 
   D97EE937BEC953A7E82E42B3956AED86
   
   No user principal could be identified.
   
   To check whether your username has been granted a particular role, enter 
   it here:
   
   
   If you have configured this app for form-based authentication, you can 
   log off by 
   clicking here. This should cause you to be returned to the logon page 
   after the 
   redirect that is performed.
   /content
   
   I'm sure this has happened to someone else, I just cannot find where.
   I googled and didn't come up with much. I searched the archives using
   You are logged in as remote user null in session and no matches were
   found.
   
   Any help would be greatly appreciated.
   
   /robert
   
   

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

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



upgrading tomcat to 4.1.7

2004-12-14 Thread john corcoran
Hello ,
I am trying to upgrade tomcat 4.0.5 to tomcat 4.1.7
I've searched the net and website and cannot find upgrade 
instructionscan someone help me out ?

Thanks
-J
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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


Log File Rotation in Tomcat 4.1?

2004-12-14 Thread Montz, James C. (James Tower)
How are other admins handling log file rotation and clean up with Tomcat
4.1 on Linux in a Multiple Tomcat instance hosting environment?

Is there any way to have Logger::FileLogger not insert a timestamp in
the filename? (Short of re-writing the class?)

My initial plan was to use something like the logrotate utility to stop
Tomcat, rotate the logs out (catalina.out becomes catalina.out.1,
access.log becomes access.log.1, etc.), then start Tomcat up again.
But I would have to create a separate logrotation config file for each
Tomcat instance (I was hoping for a more elegant solution).

Thanks!
James

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



RE: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Robert Taylor
Thanks Hassan. I didn't realize that was added to the 2.4 spec.
Thanks for pointing that out. 

Even so, it would be nice to know how to use CMS to achieve this.

Maybe a better way to form the question would be how do I use
CMS to protect .jsp pages from direct access and return a user
friendly page/message when a .jsp page is requested without going through
the controller?
 

/robert

 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 14, 2004 2:21 PM
 To: Tomcat Users List
 Subject: Re: [newbie] Container Managed Security - preventing direct
 access to .jsp
 
 
 Robert Taylor wrote:
 
  Please let me know if this questions is just too obvious
  and I'll gladly RTFM...
 
 See below :-)
 
  It just seems like a common idiom to provide a portable mechanism
  for protecting direct access to .jsp so as to enforce access through
  some controller. I have in the past placed .jsp files behind WEB-INF,
  but I don't believe that is portable and would like to use CMS to achieve
  this.
 
 Given that the Java Servlet Specification Version 2.4, page 70 sez:
 
   A special directory exists within the application hierarchy
   named WEB-INF. This directory contains all things related to
   the application that aren't in the document root of the
   application. The WEB-INF node is not part of the public
   document tree of the application. No file contained in the
   WEB-INF directory may be served directly to a client by the
   container.
 
 I don't know how much more portable you want it to be :-)
 
 HTH!
 -- 
 Hassan Schroeder - [EMAIL PROTECTED]
 Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
 
dream.  code.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: WAR files and Eclipse

2004-12-14 Thread Dwayne Ghant
Intresting question associated with this subject.
If I have public_html  enabled for developers on
local machine ex:
   Listener className=org.apache.catalina.startup.UserConfig
   directoryName=public_html
   userClass=org.apache.catalina.startup.PasswdUserDatabase/
Can I have  a setting for tomcat to unwar there personal test 
applications in
there public_html directories

I'm assuming it would look something like this (listed below):
 Host name=localhost debug=0 appBase=/home/*/public_html
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
   /Host
I'm probably incorrect, but I do need to know, to finish setting up JSP 
enviornment for
java developers like myself.
.
Rhino wrote:

It's actually very easy to do what you want to do.
Assuming you have correctly installed and configured Sysdeo, you will need
to tell Eclipse where the War file for your Tomcat project should be
generated. This is done on a *project* basis, i.e. you have to repeat this
step once for each Tomcat project you create but you will never have to do
this again for a given project unless you change the location where you want
the War file.
1. Select the Tomcat project in the Package Explorer perspective.
2. Right click for a context menu. Choose 'Properties'.
3. Within Properties, choose 'Tomcat' from the tree on the left.
4. Click on the 'Export to WAR settings' tab within the Tomcat properties.
5. Enter the path that tells Tomcat where to generate your War file. The
path name should include the file name of the War file. I normally put my
War files in a folder called 'war' directly beneath the project so my WAR
file for export looks like this:
D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to
organize your files differently.
6. Click on OK to close the Properties dialog.
Then, every time you want to regenerate your War file, all you need to do is
this:
1. Select the Tomcat project in the Package Explorer perspective.
2. Right-click for a context menu. Choose 'Tomcat project'.
3. Choose 'Export to the war file sets in project properties'.
4. You should get a brief message that tells you the operation worked.
Now, if you don't find Tomcat in the Properties tree or if you don't see the
'Tomcat project' option in the context menu, it means you probably didn't
configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let
us know and we'll try to help.
Rhino
- Original Message - 
From: Daniel Watrous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 3:43 PM
Subject: WAR files and Eclipse

Hello All,
I am new to WAR files and eclipse.  Many searches on google bring me to the
sysdeo tomcat plugin, which I have installed.  I want to know if there is
some standard way to generate a WAR file for deployment.  I have found that
I can export a JAR file and change its name, but in the process the
directory structure is altered.  Maybe you even know about a better IDE than
eclipse for working with web-based projects.  THANKS in advance.
Daniel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


--
Dwayne A. Ghant
Application Developer
Temple University
215.204.
[EMAIL PROTECTED]

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


Re: set an environement variable under fedora core3

2004-12-14 Thread D. Stimits
FRANCOIS Dufour wrote:
hi to all
im used to work on windows im actualy tring  to find were to set these 
variable under linux
sombody could give mee  an hint  ?
Other answers already were given, this is an alternative that *might* 
help if it is startup environment variables you are interested in. If 
you add a file to TOMCAT_HOME/bin/ and call that file setenv.sh it 
will run this file and set environment variables in it. I had to do this 
on fedora core 2, I found adding to individual files plus other ones 
already mentioned always left something broken. Add file 
TOMCAT_HOME/bin/setenv.sh with these contents fixed everything for me:

#!/bin/sh
export JAVA_HOME=/opt/jdk1.5.0
export CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.30
You can use an editor to create this file, then chmod u+x setenv.sh to 
make sure it is executable (linux can use filenames as hints but really 
has no defined name for type of file, chmod makes it executable).

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


Rewrite to alternate port hooked to mod_jk isn't working as expected.

2004-12-14 Thread Jim Lynch
I have two apache servers running on a single system.  The main one is 
apache 2 the secondary one on port 81 is apache 1.3. Since I was 
unsuccessfull at getting the combination Tomcat 4.1.30, Apache 2 and 
mod_jk2 working together I brought up 1.3 and got it working with Tomcat 
4.1.24 and mod_jk.  Now I'm trying to get a rewrite rule to connect 
through the main Apache server to port 81 of the other one.  Here is the 
rewrite rule.

NameVirtualHost xx.xx.xx.xx
VirtualHost xx.xx.xx.xx
RewriteEngine on
RewriteLog /var/log/httpd/httpd_rewrite.log
RewriteLogLevel 6
RewriteRule   ^/resources/(.*)  
http://headcount.sgi.com:81/resources/$1  [P,L]
RewriteRule   ^/(.*)  http://headcount.sgi.com:81/$1  [P]

/VirtualHost

When I go to http://xyz.sgi.com (which is the same machine as 
headcount.sgi.com, but a different IP address) I get he intro page for 
Apache 1.3 so I know the second rule is working.  But when I go to 
http://xyz,sgi.com/resources/input I get what looks like what might be 
the right output, but it's got this header on it. 

Date: Tue, 14 Dec 2004 19:44:45 GMT
Server: Apache/1.3.33 (Unix) mod_jk/1.2.6
Pragma: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 36695
Connection: close
html
STYLE TYPE=text/css
!--
DIV.menu{ position: absolute; top: 79px; visibility: hidden;}
#menu0  { left: 156px; z-index: 101; width: 107px;}
#menu1  { left: 264px; z-index: 102; width: 110px;}
Removing the first rule gives me exactly the same results.
What I should be seying is the Content-type followed by the rest of the html, but 
what's that extra stuff doing there?  I assume the mod_jk put it in there.  

So how can I make this configuration work, or can it?
Thanks,
Jim.

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


sending a JSP page by email

2004-12-14 Thread Gabriel Belingueres
Hi,

How can I take advantage of Tomcat's JSP processing engine to use a
JSP page as a template for an email?

That is, I want to do something like a page forwarding from a servlet,
but this forwarding process the JSP page and, instead of send it to
the browser, it send it by email to somebody.

Thanks in advance,
Gabriel

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



Re: Tomcat upgrade to 4.1.7

2004-12-14 Thread Ben Souther
Other than the release notes that ship with TC, I don't think you'll
find much.

Out of curiosity, why are you upgrading to 4.1.7?  
The current 4x is 4.1.31.



On Tue, 2004-12-14 at 14:26, john corcoran wrote:
 Hello,
 
 I 've searched the tomcat website and could not find any instructions for 
 upgrading Tomcat 4.0.5
 to Tomcat 4.1.7
 
 Can anybody help me out ?  Looking for some tpye of cook book or detail 
 instructions .
 
 Thanks
 -John Corcoran
 
 _
 FREE pop-up blocking with the new MSN Toolbar  get it now! 
 http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



StandardManager always persists session data. Bug?

2004-12-14 Thread T K
Hi all,

we have observed that, at least 4.1.31, always
persists session data upon shutdown; we even 
tried an explicit Manager:

Manager
className=org.apache.catalina.session.StandardManager
checkInterval=7200 distributable=false
saveOnRestart=false /

to no effect. Any thoughts?

tia

/st




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Re: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Dennis Payne
I have not run into that kind of problem before... typically if you hit
a JSP without hitting its controller first you will just get nothing (an
HTML screen with no data).  when it gets routed back to the controller,
it will then register a failure due to lack of data.  Problem solved.

 [EMAIL PROTECTED] 12-14-2004 12:20 
Robert Taylor wrote:

 Please let me know if this questions is just too obvious
 and I'll gladly RTFM...

See below :-)

 It just seems like a common idiom to provide a portable mechanism
 for protecting direct access to .jsp so as to enforce access through
 some controller. I have in the past placed .jsp files behind
WEB-INF,
 but I don't believe that is portable and would like to use CMS to
achieve
 this.

Given that the Java Servlet Specification Version 2.4, page 70 sez:

A special directory exists within the application hierarchy
named WEB-INF. This directory contains all things related to
the application that aren't in the document root of the
application. The WEB-INF node is not part of the public
document tree of the application. No file contained in the
WEB-INF directory may be served directly to a client by the
container.

I don't know how much more portable you want it to be :-)

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

   dream.  code.



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


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



Re: set an environement variable under fedora core3

2004-12-14 Thread Ben Souther
I think the norm is to:

Create a user that will be used to run tomcat (like tomcat).

Use chown on the tomcat direcctory (often
/usr/local/jakarta-tomcat-xxx).

Create the needed environment variables in the tomcat user's
.bash_profile script (as mentioned in the other posts).




On Tue, 2004-12-14 at 14:39, FRANCOIS Dufour wrote:
 thanks for the hint still im french  so im having a hard time understanding  
 those terms
 so i  have to log in as root  copy catalina content under / %home folder %
 and edit that variable so wen i run startup.sh the executable find itself 
 would it work if i
 edit startup.sh  and include in there the corect path to catalina and jdk ?  
 wondering
 can i do that
 
 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc
 
 
 
 From: Alain Gaeremynck [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: set an environement variable under fedora core3
 Date: Tue, 14 Dec 2004 13:52:52 -0500
 
 In Linux / bash you can set any environement variable using
 export VAR_NAME=var value
 you can do that in the script itself, in the user's .bash_profile file or  
 in the shell directly
 
 
 FRANCOIS Dufour wrote:
 
 hi to all
 
 im used to work on windows im actualy tring  to find were to set these 
 variable under linux
 sombody could give mee  an hint  ?
 
 thanks in advance
 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re:

2004-12-14 Thread Webmaster
Your action forward is missing its path (URI and QueryString)
Would be helpful to have a classname as well for your ActionForward
Anyone else?

Martin-

This message and its contents are intended for receiver. Information contained 
within is protected by Law. If you have received this message in error please 
delete it and notify [EMAIL PROTECTED]



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



Remotely Administering your box, is webdav the tool for the job?

2004-12-14 Thread John Smith
Apparently no one is using WebDAV to develop/administer their tomcat boxes.

All I have found in the list are complains and 'requests for enhancements'
comments

Basically all we need is:
 1._ being able to upload files to the server, (on port 80 or 443 in order
to avoid firewall issues)
 2._ place them at certain locations
 3._ restart the webapp

Anyone using/needing it?


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



R: Log on linux

2004-12-14 Thread Andrea Prandini
I'm using red hat 9 and fedora. I took a look to that directory and seems to
be the cause of my problem because i found a file called tomcat that
contains rotation instructions. Now i'm going to remove this file.

Thanks a lot.
A. 

-Messaggio originale-
Da: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Inviato: martedì 14 dicembre 2004 20.35
A: Tomcat Users List; Tomcat Users List
Oggetto: RE: Log on linux

I don't believe this is Tomcat at all, and is more likely the result of a
log rotation application.

What Linux Distribution are you using?

RedHat uses an application called logrotate.  Sounds to me like you are
either; Writing your logs to some place like /var/log You have a logrotate
entry defined to rotate the files in your Tomcat Logging Directory (In
Redhat, take a look at /etc/logrotate.d, and man
logrotate)

-Original Message-
From: Andrea Prandini [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 7:52 AM
To: 'Tomcat Users List'
Subject: Log on linux

Hi,

I've got some production enviorment installed on linux with Tomcat 5 and
Tomcat 4.1. I've configured tomcat for logging as configured in the standard
server.xml (using FileLogger) and everything works fine. My problem is that
i find too many log files with the extension .gz. Seems that there's a
scheduled job that compress the log files stored in logs directory. The
first time creates localhost_log.2004-11-28.txt.1.gz, after few days
localhost_log.2004-11-28.txt.1.gz.1.gz and on. Someone can help me and told
if this is a configurations of tomcat.

Thanks in advance

Andrew


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


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


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



RE: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Robert Taylor
Fair enough.

When I mention Container Managed Security, I am refering to
using security constraints defined in web.xml to prevent
direct access to resources.

More specifically in Section 12.8 of the 2.4 specification:

Security constraints are a declarative way of defining the protection of web 
content.
A security constraint associates authorization and or user data constraints with
HTTP operations on web resources. A security constraint, which is represented by
security-constraint in deployment descriptor, consists of the following 
elements:

  • web resource collection (web-resource-collection in deployment descriptor)
  • authorization constraint (auth-constraint in deployment descriptor)
  • user data constraint (user-data-constraint in deployment descriptor)

The HTTP operations and web resources to which a security constraint
applies (i.e. the constrained requests) are identified by one or more web 
resource
collections. A web resource collection consists of the following elements:

• URL patterns (url-pattern in deployment descriptor)
• HTTP methods (http-method in deployment descriptor)

An authorization constraint establishes a requirement for authentication and
names the authorization roles permitted to perform the constrained requests. A
user must be a member of at least one of the named roles to be permitted to
perform the constrained requests. The special role name “*” is a shorthand for 
all
role names defined in the deployment descriptor. An authorization constraint 
that
names no roles indicates that access to the constrained requests must not be
permitted under any circumstances.


Does this not imply that I can do what I am trying to do?


/robert


 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 14, 2004 5:07 PM
 To: Tomcat Users List
 Subject: Re: [newbie] Container Managed Security - preventing direct
 access to .jsp


 Robert Taylor wrote:
  I didn't realize that was added to the 2.4 spec.

 It was in 2.3, too. I'd guess it was in the spec from the get-go,
 but don't have an older copy to hand to confirm.

  Even so, it would be nice to know how to use CMS to achieve this.

 What is your definition of Container Managed Security, then, if
 not this? The container prevents direct access to the resources
 placed within WEB-INF, without you having to do anything else.

  Maybe a better way to form the question would be how do I use
  CMS to protect .jsp pages from direct access

 as above.
 and return a user
  friendly page/message when a .jsp page is requested without going through
  the controller?

 A custom 404 page should take care of it. And you can get as fancy
 with that as you like :-)

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

dream.  code.



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




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



Re: StandardManager always persists session data. Bug?

2004-12-14 Thread Filip Hanik - Dev
path=/dev/null could work
- Original Message - 
From: T K [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 4:23 PM
Subject: StandardManager always persists session data. Bug?


Hi all,

we have observed that, at least 4.1.31, always
persists session data upon shutdown; we even 
tried an explicit Manager:

Manager
className=org.apache.catalina.session.StandardManager
checkInterval=7200 distributable=false
saveOnRestart=false /

to no effect. Any thoughts?

tia

/st




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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

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



StackOverflowError for internalGetPageContext method

2004-12-14 Thread Asim Alp
From time to time, the following error message comes up on our Tomcat
5.5.4 with Sun jdk1.5.0 on Windows Server 2003.  It's almost like
there is an infinite loop somewhere in the code that creates a
bottleneck.  Any ideas?  Here is the error message (it's quite long):

record
 date2004-12-14T13:41:22/date
 millis1103049682232/millis
 sequence620/sequence
 loggerorg.apache.jasper.runtime.JspFactoryImpl/logger
 levelSEVERE/level
 classorg.apache.jasper.runtime.JspFactoryImpl/class
 methodinternalGetPageContext/method
 thread28/thread
 messageException initializing page context/message
 exception
   messagejava.lang.StackOverflowError/message
   frame
 classorg.apache.catalina.connector.Request/class
 methoddoGetSession/method
 line2159/line
   /frame
   frame
 classorg.apache.catalina.connector.Request/class
 methodgetSession/method
 line2012/line
   /frame
   frame
 classorg.apache.catalina.connector.RequestFacade/class
 methodgetSession/method
 line523/line
   /frame
   frame
 classjavax.servlet.http.HttpServletRequestWrapper/class
 methodgetSession/method
 line215/line
   /frame
   frame
 classorg.apache.catalina.core.ApplicationHttpRequest/class
 methodgetSession/method
 line518/line
   /frame
   frame
 classjavax.servlet.http.HttpServletRequestWrapper/class
 methodgetSession/method
 line215/line
   /frame
   frame
 classorg.apache.catalina.core.ApplicationHttpRequest/class
 methodgetSession/method
 line518/line
   /frame
   frame
 classjavax.servlet.http.HttpServletRequestWrapper/class
 methodgetSession/method
 line215/line
   /frame
   frame
 classorg.apache.catalina.core.ApplicationHttpRequest/class
 methodgetSession/method
 line518/line
   /frame
   frame
 classjavax.servlet.http.HttpServletRequestWrapper/class
 methodgetSession/method
 line215/line
   /frame
   .

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



Re: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Hassan Schroeder
Robert Taylor wrote:
Does this not imply that I can do what I am trying to do?
I suppose; I'm just baffled why you want to reinvent this particular
built-in wheel, but don't let that stop you :-)
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: HttpServletResponse.setStatus and setContentType (solved)

2004-12-14 Thread Dunlop, Aaron
For future reference by anyone else facing the same problem (Tomcat changing 
the Content-type from text/xml to text/html on 500 server errors - e.g. SOAP 
Faults)

The solution I've arrived at is to use getWriter() instead of getOutputStream 
and to explicitly close the Writer after writing the response (both are 
required - explicitly closing the OutputStream wasn't sufficient, nor was using 
getWriter without an explicit close).

So my working code ends up looking like:

servletResponse.setContentType(text/xml);
...
soapResponse.save(servletResponse.getWriter());
servletResponse.getWriter().close();


Hope that helps anyone else with a similar issue.

Aaron Dunlop


-Original Message-
From: Dunlop, Aaron 
Sent: Wednesday, December 08, 2004 9:53 AM
To: Tomcat Users List
Subject: RE: HttpServletResponse.setStatus and setContentType


Thanks for the suggestion, Yoav, but thus far in my experiments, sendError 
seems to

--Send Content-Type: text/html;charset=utf-8
--Ignore the content I've written (using ServletResponse.getOutputStream()) and 
instead send the generic Tomcat HTML 'Server Error' message. Which of course is 
even worse for a web service client, since it's not well-formed XML ;-)

I'm trying:

servletResponse.setContentType(text/xml);
...
soapResponse.save(servletResponse.getOutputStream());
servletResponse.sendError(500);

(where soapResponse.save writes the XML to the specified OutputStream)

Using sendError(int, String) does effectively the same thing, except with the 
string message included in the HTML response.


When I instead tried:
servletResponse.setContentType(text/xml);
...
servletResponse.setStatus(500);
soapResponse.save(servletResponse.getOutputStream());

I got the appropriate XML contents back, but with Content-Type set to 
text/html;charset=utf-8 instead of text/xml


There must be a way to do this - plenty of people use Tomcat to handle SOAP web 
services...I'll check the Axis source and see how they handle it. But any 
suggestions would be welcome.

Thanks again,
Aaron Dunlop

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 08, 2004 5:59 AM
To: Tomcat Users List
Subject: RE: HttpServletResponse.setStatus and setContentType



Hi,
You know, the JavaDoc for HttpServletResponse#setStatus is pretty clear
on this ;)  Use sendError for errors, setStatus for normal responses.

Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Dunlop, Aaron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 5:44 PM
To: Tomcat Users List
Subject: HttpServletResponse.setStatus and setContentType

I have a standard HTTP servlet acting as an XML web service endpoint,
running on an embedded Tomcat 5.0.30.

I of course use HttpServletResponse.setContentType to specify that the
response is text/xml. When the request is successful and I set a 2xx
HTTP
response code, the Content-Type header looks as expected. But if an
error
is detected and I return an HTTP error code (using setStatus), the
Content-
Type header specifies text/html;charset=utf-8 instead of text/xml.

It doesn't seem to matter whether I call setContentType before or after
setStatus, and all the 4xx and 5xx codes I've tried trigger this
behavior.

I'd just ignore it, but unfortunately, the WSI Basic Profile specifies
that
a SOAP fault must return a 500 along with the XML fault. And some
clients
(ahem... .NET...) seem to choke trying to parse the fault when the
wrong
content-type is returned.

I didn't find anything in the specs or documentation that indicated to
me
that this was required behavior, but perhaps I'm missing something.

Any ideas?

Thanks in advance,
Aaron Dunlop


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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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



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



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



Sticky sessions and URL rewriting

2004-12-14 Thread Derrick Koes

Now that JK2 isn't supported, I'm attempting to get my code to work with JK.  
The issue I've come across is that if I use URL rewriting (i.e. no cookies), 
which I've always done, with JK (I blame it because it's the only new variable) 
Tomcat does not seem to pick up the session from the URL.  First, is listed my 
configuration with JK2 and then the config from JK.  I really can't explain why 
Tomcat doesn't do what I expect when I swap out connectors.

JK2:

 # +++ BEGIN CONFIGURATION ++
# 
# The following configuration file describes a JK2 installation
# which does round-robin, session-aware load balancing across all
# defined workers.  Having a single work will balance the load on
# that worker.  This is the default, even if you don't spell it out,
# but it is spelled out here for clarity.  @TODO indicates a 
# configuration must be made here.  @OPTIONAL indicates an optional
# customization may be made.
#

#
# Define the status worker, used with the URI: /jkstatus 
# This is useful for testing the health of the connector, and for 
# getting performance statistics
#
# @OPTIONAL: if you don't want a /jkstatus report, omit
#
[status:status]

#
# (1) Create a logger.
# @OPTIONAL: You may customize the path if you wish.
#
[logger.file:0]
level=INFO
file=D:/jakarta-tomcat-5.0.28/logs/isapi_filter.log

#
# (2) Define a load balancer worker
# @OPTIONAL: You may add  debug=9 for triage, if needed
#
[lb:lb]
stickySession=1

#
# (3) Define a communication channel to tomcat
#
# @TODO: 
# 1. Replace @TODO-tomcat-server with the tomcat server host name
# 2. Update the corresponding tomcat configuration file 
(${CATALINA_HOME/conf/server.xml):
#Find the line 'Engine ... name=Catalina ...' and add the element
#jvmRoute=@TODO-tomcat-server:8009 .  The value of jvmRoute must
#match the tomcatId below, or stick session load balancing will not work.
#
#** NB ** The value of the jvmRoute parameter must not contain
# embedded dot characters (.) (i.e., the fully-qualified
# domain name.)  Doing so will cause JK2 load balancing to fail.
#
# @TODO: Change the host name as appropriate
#
# @OPTIONAL: You may add  debug=9 for triage, if needed
#
[channel.socket:dkoesxp:8009]
info=AJP13 forwarding over socket
tomcatId=dkoesxp:8009

#
# (4) Define a worker which communicates over the channel above
#
# @TODO: Change the host name as appropriate
#
# @OPTIONAL: Changing the lbfactor affects the weighted round-robin 
# load balancing.  Higher numbers means stronger machine which will
# receive more of the requests.
#
# @OPTIONAL: You may add  debug=9 for triage, if needed
#
[ajp13:dkoesxp:8009]
channel=channel.socket:dkoesxp:8009
lbfactor=1

#
# @OPTIONAL: Repeat steps (3) and (4) here for every tomcat server
# to participate in load balancing.  At least one is required.
# 
# For example, if the load on the single server defined above
# is too great, configure a similar server, and repeat steps (3) and (4)
# to include the new server in the load balancing.
#
# --- END   CONFIGURATION --

# +++BEGIN MAPPING++
#
# (5) Map URIs to be forwarded.  
#
# @TODO: For each context deployed on the tomcat-server(s) above,
# define a mapping to be forwarded.
#
# @OPTIONAL: You may add  debug=9 for triage, if needed
#
# @OPTIONAL: You may change the info= to be descriptive of this application.
#
[uri:/ilt/*]
info=JK2-enabled-application installed under /ilt

# --- END  MAPPING--

# +++ /jkstatus MAPPING   ++
#
# @OPTIONAL: This provides a status report on the JK2 connector.  Remove
# if you don't want this available.
#
[uri:/jkstatus/*]
worker=status:status

# --- /jkstatus MAPPING   --



JK (1.2.6):

# +++ BEGIN CONFIGURATION ++
# 
# The following configuration file describes a JK installation
# which does round-robin, session-aware load balancing across all
# defined workers.  Having a single worker will balance the load on
# that worker.  This is the default, even if you don't spell it out,
# but it is spelled out here for clarity.  @TODO indicates a 
# configuration must be made here.  @OPTIONAL indicates an optional
# customization may be made.
#
# workers.properties -
#
#   Copyright 1999-2004 The Apache Software Foundation
# 
#   Licensed under the Apache License, Version 2.0 (the License);
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
# 
#   http://www.apache.org/licenses/LICENSE-2.0
# 
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an AS IS BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 

RE: Debugging missing web.xml on V5.5.4

2004-12-14 Thread alan . sinclair
To prove it was not a WAR problem, I have tested the idential WAR (struts app) 
on 4.1.31 successfully which rules that out. I think this is something to do 
with the 5.5.4 configuration. It's quite a bit different from 4.1; I do not 
have a context XML file in the WAR file - don't understand how all that works 
yet.


-Original Message-
From: Shapira, Yoav [EMAIL PROTECTED]
Sent: Dec 14, 2004 5:48 AM
To: Tomcat Users List [EMAIL PROTECTED], 
[EMAIL PROTECTED]
Subject: RE: Debugging missing web.xml on V5.5.4


Hi,
See the logging section of the Tomcat 5.5 docs for how to get DEBUG
information out of Tomcat.  You can get *very* verbose details of what's
going on.

Does your WAR have a context XML file?

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 7:07 PM
To: [EMAIL PROTECTED]
Subject: Debugging missing web.xml on V5.5.4

Hi,
I see there has been some traffic on this issue in the past but it has
not
helped me resolve my problem. I cannot automatically deploy a war file
on
Tomcat 5.5.4  I can successfully deploy the same war if I manually
extract
the war contents into the webapps directory. When the running Tomcat
attempts to auto deploy the war, the following error occurs:

INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext

How can I debug this problem? Is there a way to increase the debugging
level in Tomcat 5.5.4 to eject more useful logging information to
determine
the cause?

Thanks for any suggestion.




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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.





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



RE: maxActive in server.xml's ResourceParams

2004-12-14 Thread Shapira, Yoav

Hi,
You could set this very high if you wanted too.  Typically there's a
bottleneck along the way, such as a database that can only handle a
limited number of connections, and your app not being the only user of
said database.  But if you're the database's only user, and it's on a
huge machine that can handle a virtually unlimited number of concurrent
connections, have a blast ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Stephen Charles Huey [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 3:51 PM
To: Tomcat User
Subject: maxActive in server.xml's ResourceParams

In Tomcat 4's server.xml, one of the ResourceParams elements is
maxActive (set to 20 by default).  I'm wondering if there's any reason
why I wouldn't set this very high if I have a virtually unlimited
number
of users for our Oracle database...I'm not sure how much this applies
to
us since I don't believe we're using built-in connection pooling (we're
using some slightly customized classes--nothing nonstandard, though).
Anyway, thanks for any tips...

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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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



RE: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Robert Taylor
I'm not trying to re-invent anything. I'm just trying to 
leverage the specification to secure resources.

Personally I prefer WEB-INF to contain web application
configuration and information resources instead of content
and other non-configuration resources. IMHO, its intuitive that
way.

For anyone else that may even be remotely interested in this
topic, some further googling produced some interesting results.
I searched using the string:

 preventing direct access to .jsp files

It appears that there is no standard way to do this even though
it's implied in the spec.

Here's a good example:
http://forums.bea.com/bea/message.jspa?messageID=202433201

Oh well...

/robert

 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 14, 2004 5:55 PM
 To: Tomcat Users List
 Subject: Re: [newbie] Container Managed Security - preventing direct
 access to .jsp
 
 
 Robert Taylor wrote:
 
  Does this not imply that I can do what I am trying to do?
 
 I suppose; I'm just baffled why you want to reinvent this particular
 built-in wheel, but don't let that stop you :-)
 
 -- 
 Hassan Schroeder - [EMAIL PROTECTED]
 Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
 
dream.  code.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Tomcat 5.5.6 Admin Package

2004-12-14 Thread Charlie Yates
Thanks Hassan.  That worked fine.

Charlie


- Original Message - 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 1:54 PM
Subject: Re: Tomcat 5.5.6 Admin Package


 Charlie Yates wrote:
 
  Is there any documentation available that describes how to install 
   and configure the Admin webapp ...
 
 put both tar files in the same directory; untar them. Done. :-)
 OK, you also need to add a user whose roles include 'admin' to
 $CATALINA_HOME/conf/tomcat-users.xml
 
 And if you're using the minimal server.xml example, you'll want to
 add the two Listeners from the top of the full server.xml.
 
 (re)start Tomcat...
 
 HTH,
 -- 
 Hassan Schroeder - [EMAIL PROTECTED]
 Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
 
dream.  code.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: set an environement variable under fedora core3

2004-12-14 Thread FRANCOIS Dufour
thanks to all it  finaly work
version 4.0.6
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

From: FRANCOIS Dufour [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: set an environement variable under fedora core3
Date: Wed, 15 Dec 2004 00:04:47 +
ok for the variable but now im stuck whit a platform
that dosent want to install a jvm
sombody know how to force fedora tho take a jvm?
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

From: Ben Souther [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: set an environement variable under fedora core3
Date: Tue, 14 Dec 2004 16:04:51 -0500
I think the norm is to:
Create a user that will be used to run tomcat (like tomcat).
Use chown on the tomcat direcctory (often
/usr/local/jakarta-tomcat-xxx).
Create the needed environment variables in the tomcat user's
.bash_profile script (as mentioned in the other posts).

On Tue, 2004-12-14 at 14:39, FRANCOIS Dufour wrote:
 thanks for the hint still im french  so im having a hard time 
understanding
 those terms
 so i  have to log in as root  copy catalina content under / %home 
folder %
 and edit that variable so wen i run startup.sh the executable find 
itself
 would it work if i
 edit startup.sh  and include in there the corect path to catalina and 
jdk ?
 wondering
 can i do that

 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc



 From: Alain Gaeremynck [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: set an environement variable under fedora core3
 Date: Tue, 14 Dec 2004 13:52:52 -0500
 
 In Linux / bash you can set any environement variable using
 export VAR_NAME=var value
 you can do that in the script itself, in the user's .bash_profile file 
or
 in the shell directly
 
 
 FRANCOIS Dufour wrote:
 
 hi to all
 
 im used to work on windows im actualy tring  to find were to set 
these
 variable under linux
 sombody could give mee  an hint  ?
 
 thanks in advance
 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



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

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

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


Server refuse connection with many TIME_WAIT

2004-12-14 Thread V D
I have an Axis service that runs under Tomcat 5.5.4.  I use gSoap client 
to connect to the server.  After about 3960 requests from the clients, 
the Tomcat stops accepting connection.  I have to wait for serveral 
minutes for it to accept connections again.

This is under MS Windows XP system.  Using the command line:
netstat -aenter
I have about 5000 TIMEWAIT:
TCPvd:5000localhost:http TIME_WAIT
Looking through TcpMonitor, both the client and server send in close 
message:

CLIENT MESSAGE:
POST /axis/services/TestService HTTP/1.1
Host: 127.0.0.1:82
User-Agent: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 552
Connection: close
SOAPAction: 

SERVER MESSAGE:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Date: Wed, 15 Dec 2004 04:04:52 GMT
Connection: close
What's going on?  Is there any flag I can set in Tomcat to close these 
TIMEWAIT connections?

Looking at the clients's memory foot print, the memory does not go up at 
all after all these connections.
The strange thing is this:  using Java's client to repeatedly request 
the server for many thousand times, and I don't have any problem with 
the server.  Using the command line netstat -a, and I still see many 
TIMEWAIT.

Could this have something to do with gSoap, not Tomcat?
Thanks,
V D


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


Re: Tomcat 5 and Realm problem

2004-12-14 Thread Quinton Delpeche
On Tuesday 14 December 2004 19:40, VAN DER MARLIERE FREDERIC wrote:
 Hi,

Hello,

 The time allowed for the login process has been exceeded. If you wish to
 continue you must either click back twice and re-click the link you
 requested or close and re-open your browser

I had a similar problem like this a while ago, using a PostgresQL DB server on 
a Linux machine, it turned out that I had all three versions of the JDBC 
Driver in my common/lib and server/lib directory.

Once I removed the other two versions, this problem went away.

 Does someone have any idea about the origin of my problem ?

My suggestion would be to check your versions of the JDBC Driver you are using 
and make sure it is the correct version and working correctly.

 Thanks.
 Fred.

Regards

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

It's Fabulous!  We haven't seen anything like it in the last half an
hour!
-- Macy's


pgpewjkEbfWew.pgp
Description: PGP signature


Re: Server refuse connection with many TIME_WAIT

2004-12-14 Thread V D
Thank you for the reply.  I try to set |connectionTimeout to 1 seconds 
(down from default of 60 seconds), however, the result is almost 
identical.  After about 3900-4000 request, the server refuses all requests.|

FRANCOIS Dufour wrote:
try to lower your conection time out under catalina policy
hope it help
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Thanks :)

2004-12-14 Thread craigmcc
Message blocked by Panda GateDefender: Vulnerability detected


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


I want mutliple host names but just one context

2004-12-14 Thread TK Banks
We've set up multiple DNS entries for the same box.

a.foo.com
b.foo.com

We've got Apache's workers2.properties files setup to
forward all requests to these two machine names to
tomcat:

[uri:a.foo.com/*]
group=lb

[uri:b.foo.com/*]
group=lb

Now what we want is for tomcat to map requests sent to
a.foo.com to directory:

.../tomcat/webapps/killerApp/a

and likewise map requests sent to b.foo.com to
directory:

.../tomcat/webapps/killerApp/b

Actually, this much we can do using virtual hosts, but
if we do that, then we get different application
contexts for a and for b.  Instead we want just one
context so we can share memory between the two.  If
such a thing were possible, the WEB-INF directory, I
presume, would be at:

.../tomcat/webapps/killerApp/WEB-INF

Is there a way to achieve what we desire?



__ 
Do you Yahoo!? 
Jazz up your holiday email with celebrity designs. Learn more. 
http://celebrity.mail.yahoo.com

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


RE: Tomcat Admin Tool Server::Service Drop Down not Populating (was RE: Tomcat Administration Application)

2004-12-14 Thread Kelly, Steve
Some other strange/interesting behaviour...

Every time I go to the admin login screen I see the following in the
tomcat log:-
Org.apache.struts.action.RequestProcessor processMapping
SEVERE: Invalid path / login was requested

And another SEVERE message I've seen in the log is:-
Org.apache.struts.action.RequestProcessor processMapping
SEVERE: Invalid path /Tomcat Server Administration_files/treeControlTest
was requested.

Looks like maybe somewhere the Tomcat Server Administration_files is
not being replaced by my own install directory.

Steve.  
 

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 22:30
To: Tomcat Users List
Subject: Tomcat Admin Tool Server::Service Drop Down not Populating (was
RE: Tomcat Administration Application)

Unfortunately, my installation exhibits the same behavior.

Typically, the Service (Catalina) menu option shows a drop down of
configured Hosts, Valves, and Connectors.
Clicking the Drop Down (Magnifying glass?) returns nothing under the
branch.

Going to the Actions Drop Down, and choosing 'Delete Existing..' does
return a list of the configured Services.

Anyone else on List know cause/solution?

My Environments:
Tomcat 5.5.4
Windows 2000 Pro
Windows 2003 Server Standard
Sun J2SE 5.0

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 12:27 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,

Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.

However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
Service (Catalina)
Host (localhost)
Context (/)
Context (/admin)
Context (/manager) 
Etc

But I just see as far down as Service(Catalina).

Any clues.

TIA

Steve. 

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED]
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.

Anyway, was looking at the files for the tar.gz release of the admin
tools.

Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.


To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?

If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;

Context docBase=${catalina.home}/server/webapps/admin path=/admin 
 privileged=true antiResourceLocking=false
antiJARLocking=false
/Context

This should override the generic page in \webapps\ROOT\admin\


-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,

I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory. 

Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.

There must be something (can anyone tell me what?) pointing /admin to
the web page that displays this message.

Steve.

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED]
Sent: 10 December 2004 20:13
To: Tomcat Users List; Tomcat Users List
Subject: RE: Tomcat Administration Application

Did you simply extract the .zip file into your Tomcat 5.5.4 install
directory?

The .zip has a file path of jakarta-tomcat-5.5.4\, but the default
installation directory is Tomcat 5.5\

So if you simply extracted the zip into your install directory, look for
a directory named jakarta-tomcat-5.5.4

Drag  Drop those directory contents to the true tomcat installation
directory.

Perhaps the .zip could be re-packaged and remove the path
jakarta-tomcat-5.5.4 from the archive?
This would allow users to simply unzip admin.zip into their installation
directory.

James

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 1:47 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Wade,

Forgive me but I'm a novice at this stuff. How can I modify the link ?
The context name is 'admin' but when I key in
http://localhost:8080/admin I get the same message telling me to
download and install the separate admin application.

Steve.  

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: 10 December 2004 17:27
To: Tomcat Users List
Subject: Re: Tomcat Administration Application

Kelly, Steve wrote:
 I've 

Log File Not Genetrated In tomcat 5.5

2004-12-14 Thread birendar . waldiya

Hi 
 I tried to use tomcat5.5  but it came up wit   alot ogf problem ..

I am not getting even log file  ..
i  created  a new folder in webapps   bsw/  and all folder structure as 
per   requirement   web-inf , web-inf/classes  etcs   and im trying to 
access a jsp in context bsw,
my question is   how do i enable the log for this context 
 and how do i add a new context  , should i add a new context manually by 
copying from  tomcat 4.1.30 

please help me ..

thanks 



Birendar Singh Waldiya


DISCLAIMER: The information contained in this e-mail message and/or attachments 
to it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited and any violation thereof would possibly attract 
penal action.   If you have received this communication in error, please notify 
us by reply e-mail or telephone and immediately and permanently delete the 
message and any attachments. TCS accepts no liability for any damage caused by 
this email or its attachments due to viruses, interference, interception, 
corruption or unauthorized access/use.

RE: JK 1.2.7 Problem?

2004-12-14 Thread Allistair Crossley
Here is the trace logging. IE just hangs for a long while and does not get 
anywhere. As soon as 1.2.6 is back in, it works again.

Cheers, Allistair.

[Tue Dec 14 11:06:48 2004] [3176:1560] [debug] init_jk::jk_isapi_plugin.c 
(1004): Using registry.
[Tue Dec 14 11:06:48 2004] [3176:1560] [debug] init_jk::jk_isapi_plugin.c 
(1006): Using log file d:\jakarta-tomcat-jk\logs\isapi.log.
[Tue Dec 14 11:06:48 2004] [3176:1560] [debug] init_jk::jk_isapi_plugin.c 
(1007): Using log level 0.
[Tue Dec 14 11:06:48 2004] [3176:1560] [debug] init_jk::jk_isapi_plugin.c 
(1008): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Dec 14 11:06:48 2004] [3176:1560] [debug] init_jk::jk_isapi_plugin.c 
(1009): Using worker file d:\jakarta-tomcat-jk\conf\workers.properties.
[Tue Dec 14 11:06:48 2004] [3176:1560] [debug] init_jk::jk_isapi_plugin.c 
(1010): Using worker mount file 
d:\jakarta-tomcat-jk\conf\uriworkermap.properties.
[Tue Dec 14 11:06:48 2004] [3176:1560] [debug] init_jk::jk_isapi_plugin.c 
(1012): Using uri select 0.
[Tue Dec 14 11:06:48 2004] [3176:2132] [debug] init_jk::jk_isapi_plugin.c 
(1004): Using registry.
[Tue Dec 14 11:06:48 2004] [3176:2132] [debug] init_jk::jk_isapi_plugin.c 
(1006): Using log file d:\jakarta-tomcat-jk\logs\isapi.log.
[Tue Dec 14 11:06:48 2004] [3176:2132] [debug] init_jk::jk_isapi_plugin.c 
(1007): Using log level 0.
[Tue Dec 14 11:06:48 2004] [3176:2132] [debug] init_jk::jk_isapi_plugin.c 
(1008): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Dec 14 11:06:48 2004] [3176:2132] [debug] init_jk::jk_isapi_plugin.c 
(1009): Using worker file d:\jakarta-tomcat-jk\conf\workers.properties.
[Tue Dec 14 11:06:48 2004] [3176:2132] [debug] init_jk::jk_isapi_plugin.c 
(1010): Using worker mount file 
d:\jakarta-tomcat-jk\conf\uriworkermap.properties.
[Tue Dec 14 11:06:48 2004] [3176:2132] [debug] init_jk::jk_isapi_plugin.c 
(1012): Using uri select 0.
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] init_jk::jk_isapi_plugin.c 
(1004): Using registry.
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] init_jk::jk_isapi_plugin.c 
(1006): Using log file d:\jakarta-tomcat-jk\logs\isapi.log.
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] init_jk::jk_isapi_plugin.c 
(1007): Using log level 0.
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] init_jk::jk_isapi_plugin.c 
(1008): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] init_jk::jk_isapi_plugin.c 
(1009): Using worker file d:\jakarta-tomcat-jk\conf\workers.properties.
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] init_jk::jk_isapi_plugin.c 
(1010): Using worker mount file 
d:\jakarta-tomcat-jk\conf\uriworkermap.properties.
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] init_jk::jk_isapi_plugin.c 
(1012): Using uri select 0.
[Tue Dec 14 11:06:50 2004] [3176:2160] [debug] init_jk::jk_isapi_plugin.c 
(1004): Using registry.
[Tue Dec 14 11:06:50 2004] [3176:2160] [debug] init_jk::jk_isapi_plugin.c 
(1006): Using log file d:\jakarta-tomcat-jk\logs\isapi.log.
[Tue Dec 14 11:06:50 2004] [3176:2160] [debug] init_jk::jk_isapi_plugin.c 
(1007): Using log level 0.
[Tue Dec 14 11:06:50 2004] [3176:3356] [trace] 
uri_worker_map_alloc::jk_uri_worker_map.c (192): enter
[Tue Dec 14 11:06:50 2004] [3176:2160] [debug] init_jk::jk_isapi_plugin.c 
(1008): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Dec 14 11:06:50 2004] [3176:2160] [debug] init_jk::jk_isapi_plugin.c 
(1009): Using worker file d:\jakarta-tomcat-jk\conf\workers.properties.
[Tue Dec 14 11:06:50 2004] [3176:3356] [trace] 
uri_worker_map_open::jk_uri_worker_map.c (442): enter
[Tue Dec 14 11:06:50 2004] [3176:2160] [debug] init_jk::jk_isapi_plugin.c 
(1010): Using worker mount file 
d:\jakarta-tomcat-jk\conf\uriworkermap.properties.
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 2
[Tue Dec 14 11:06:50 2004] [3176:2160] [debug] init_jk::jk_isapi_plugin.c 
(1012): Using uri select 0.
[Tue Dec 14 11:06:50 2004] [3176:3356] [trace] 
uri_worker_map_add::jk_uri_worker_map.c (266): enter
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (360): suffix rule /.do=ajp13 was added
[Tue Dec 14 11:06:50 2004] [3176:3356] [trace] 
uri_worker_map_add::jk_uri_worker_map.c (433): exit
[Tue Dec 14 11:06:50 2004] [3176:3356] [trace] 
uri_worker_map_add::jk_uri_worker_map.c (266): enter
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (360): suffix rule /.jsp=ajp13 was added
[Tue Dec 14 11:06:50 2004] [3176:3356] [trace] 
uri_worker_map_add::jk_uri_worker_map.c (433): exit
[Tue Dec 14 11:06:50 2004] [3176:3356] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (477): there are 2 rules
[Tue Dec 14 11:06:50 2004] [3176:3356] [trace] 
uri_worker_map_open::jk_uri_worker_map.c (496): exit
[Tue Dec 14 11:06:50 2004] [3176:3356] [trace] 
uri_worker_map_alloc::jk_uri_worker_map.c (199): exit
[Tue Dec 14 11:06:50 2004] [3176:2160] 

Undeploying without using manager?

2004-12-14 Thread Fredrik Jonson
Hello, 

I would like to stop and undeploy a webapp without restarting 
tomcat, and without using the manager application. Preferablely 
using a command line tool. How can I do that? 

I'm using tomcat 4.1.29. 

-- 
Fredrik Jonson


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


Re: Tomcat 5.5.4 Ant Task

2004-12-14 Thread Siarhei Dudzin
On Tue, 14 Dec 2004 10:24:33 +0100, Remy Maucherat
[EMAIL PROTECTED] wrote:
 On Tue, 14 Dec 2004 01:13:04 +0100, Siarhei Dudzin
 [EMAIL PROTECTED] wrote:
  Yes, antiJARLocking and antiResourceLocking are not enabled by default.
  Unfortunately, non of them (together and separately) did not help to
  solve my problems...
 
 Try harder, it works. Read the FAQ, and verify that they are actually
 enabled. If antiResourceLocking is enabled, you should notice it, as
 you'll get a cool extended coffee break while Tomcat starts, but you
 cannot possibly get any locking (unless you do really crazy stuff,
 like accessing files directly yourself using harcoded file paths).

I tried it several times and read this FAQ as well. It is enough for
me just to import Log4J in JSP (have no problems with servlets).
However, antiJARLocking didn't make any difference and placing
antiResourceLocking resulted in FileNotFoundException during
deployment.

This is the context.xml file of the application:

Context privileged=true antiResourceLocking=true/

Putting docBase attribute did not help. 

I would be very grateful if you could post a content of working
context.xml or point me to what's wrong. I digged through all the
mailing lists and forums but couldn't find the solution.

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


Create a new web application

2004-12-14 Thread Manisha Sathe
Hi,

Just few days back i downloaded TomCat and learning it. I tried small 
servlet/jsp files and tested it but putting them under /jsp-example and 
/servlet-examples i.e.  existing project directory.

but for my project i want to create new application. I believe I do not have 
Ant (if it is not part of Tomcat) and cvs. Can anybody help me with some basic 
steps ? In installation guide it is given using cvs - when i tried it gave me 
error.   

Thanks and regards
Manisha


Application looping

2004-12-14 Thread Jim Lynch
Hi, all,
I'm attempting to port an application from one system to another.  I 
originally wrote it on a debian system and ported it to a RH 7.2 
system.  Now I'm trying to move it to a RH 9 system.  I installed the 
latest Tomcat 4.1.31, java 1.4.2_06 and Apache 1.3.  Orignally this 
system had Apache 2, java 1.4.2_05 and Tomcat 4.1.30.  I was never able 
to get mod_jk2 working so that's why I backed off to Apache 1.3.  I 
don't think that made any difference since the application continues to 
loop in either configuration.  It boils down to the following code.

I have a method in my servlet class that looks like:
 protected void getJspPage(HttpServletRequest request,
   HttpServletResponse response, String pageName){
  
   RequestDispatcher dispatcher = request.getRequestDispatcher(pageName);
  
   try{
 _logger.debug(Dispatcher is Dispatching +pageName);
 dispatcher.forward(request, response);
 _logger.debug(Done);
   }catch ( Exception e ) {
 _logger.debug(Exception in RequestHandler.getJspPage - 
+e.toString());
   }
 }

It is invoked by the following:
 private final String SELECT_PAGE =nindex.jsp;
...
 request.setAttribute(Notes,Add unique notes for this data set);
 getJspPage(request, response, SELECT_PAGE);
 _logger.debug(Good bye);
 return;
I have a javascript alert message in nindex.jsp that tells me it was 
loaded into the browser.

The problem is that the dispatcher.forward method never returns.  I 
never see the Good bye message in the log. 

Here's from the log:
04-12-14 07:01:40|DEBUG|   
manpower.servlets.NafoServlet|Dispatcher is Dispatching nindex.jsp
04-12-14 07:01:40|DEBUG|   manpower.servlets.NafoServlet|Into 
NafoServlet Url =/nindex.jsp
04-12-14 07:01:40|DEBUG|   
manpower.servlets.NafoServlet| Resources Servlet 
running 

The first line is from the previously mentioned method.  The second and 
third line are from the servelet and are issued when the servlet 
starts.  The alert message never gets displayed except the first time 
the jsp is loaded.

The log fills up with messages showing the same code being executed over 
and over.  Note there is no delay in the time the servlet (supposedly) 
ends and starts up again.

I'm stumped.  It continues to work on Debian and RH 7.2 but fails on RH 
9 with updated Tomcat and Java.

Any suggestions?
Thanks,
Jim.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Error in tomcat manager

2004-12-14 Thread Shapira, Yoav

Hi,

   I have deploy myapp in context path at   tomcat manager but myapp
didn't
start?,then when I click start at commands the   following message
show:
  FAIL - Application at context path   /wrok could not be started

Why that happened and how to solve it?

Check your logs.

2.how to make myapp automatically start   in tomcat manager without
clicking   start   at Commands list?

When you use the manager as-is, you need to start the application.  You
can customize the manager or easily script manager actions together via
Ant, for example, to automate this step.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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


RE: Debugging missing web.xml on V5.5.4

2004-12-14 Thread Shapira, Yoav

Hi,
See the logging section of the Tomcat 5.5 docs for how to get DEBUG
information out of Tomcat.  You can get *very* verbose details of what's
going on.

Does your WAR have a context XML file?

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 7:07 PM
To: [EMAIL PROTECTED]
Subject: Debugging missing web.xml on V5.5.4

Hi,
I see there has been some traffic on this issue in the past but it has
not
helped me resolve my problem. I cannot automatically deploy a war file
on
Tomcat 5.5.4  I can successfully deploy the same war if I manually
extract
the war contents into the webapps directory. When the running Tomcat
attempts to auto deploy the war, the following error occurs:

INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext

How can I debug this problem? Is there a way to increase the debugging
level in Tomcat 5.5.4 to eject more useful logging information to
determine
the cause?

Thanks for any suggestion.




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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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


RE: Tomcat 5.5 / Admin How ?

2004-12-14 Thread Kelly, Steve
But does it work. It don't seem to in 5.5.4 (and that's supposed to be a
stable version - not beta or alpha). See the other threads on the
subject for more details of the problems.

Steve.   

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 14 December 2004 13:55
To: Tomcat Users List
Subject: RE: Tomcat 5.5 / Admin How ?


Hi,

Can any one guide me or point me to the documents  where i will get the

steps to  assimilate the admin with  tomcat ??

Ahh, the Borg.

Anyways, simple:
- Download jakarta-tomcat-v5.5.6-zip, extract to C:\.
- Download jakarta-tomcat-v5.5.6-admin.zip, extract to C:\.
- Edit c:\jakarta-tomcat-5.5.6\conf\tomcat-users.xml as instructed in
the Manager app how-to.
- That's it.

Yoav Shapira http://www.yoavshapira.com





This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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



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


RE: Tomcat 5.5 / Admin How ?

2004-12-14 Thread Shapira, Yoav

Hi,
Yes, it works.  Like a charm...

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 9:11 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5 / Admin How ?

But does it work. It don't seem to in 5.5.4 (and that's supposed to be
a
stable version - not beta or alpha). See the other threads on the
subject for more details of the problems.

Steve.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 14 December 2004 13:55
To: Tomcat Users List
Subject: RE: Tomcat 5.5 / Admin How ?


Hi,

Can any one guide me or point me to the documents  where i will get
the

steps to  assimilate the admin with  tomcat ??

Ahh, the Borg.

Anyways, simple:
- Download jakarta-tomcat-v5.5.6-zip, extract to C:\.
- Download jakarta-tomcat-v5.5.6-admin.zip, extract to C:\.
- Edit c:\jakarta-tomcat-5.5.6\conf\tomcat-users.xml as instructed in
the Manager app how-to.
- That's it.

Yoav Shapira http://www.yoavshapira.com





This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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



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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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


RE: Tomcat 5.5 / Admin How ?

2004-12-14 Thread Allistair Crossley
There was an issue with the left-hand tree in 5.5.4. I don't know whether 
5.5.4's admin distribution was repackaged. If not, you should acquire 
5.5.6-alpha. 

I see Yoav has also replied to a separate email with a similar statement.

Allistair.

 -Original Message-
 From: Kelly, Steve [mailto:[EMAIL PROTECTED]
 Sent: 14 December 2004 14:11
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5 / Admin How ?
 
 
 But does it work. It don't seem to in 5.5.4 (and that's 
 supposed to be a
 stable version - not beta or alpha). See the other threads on the
 subject for more details of the problems.
 
 Steve.   
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: 14 December 2004 13:55
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5 / Admin How ?
 
 
 Hi,
 
 Can any one guide me or point me to the documents  where i 
 will get the
 
 steps to  assimilate the admin with  tomcat ??
 
 Ahh, the Borg.
 
 Anyways, simple:
 - Download jakarta-tomcat-v5.5.6-zip, extract to C:\.
 - Download jakarta-tomcat-v5.5.6-admin.zip, extract to C:\.
 - Edit c:\jakarta-tomcat-5.5.6\conf\tomcat-users.xml as instructed in
 the Manager app how-to.
 - That's it.
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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


Tomcat redirecting when base URI doesn't have trailing slash

2004-12-14 Thread Tauzell, Dave
Hi,
I recently upgraded to Tomcat 5.0 (running under JBoss) and am using the
Slide webdav servlet.  I used to point to: http://my.url.com/webdav to
access our slide repository. Now when I do that I get a 302 redirect
sent back which directs my client to http://my.url.com/webdav/. This
makes sense, but it is a problem for WebDrive clients as they don't
support the redirect.

My questions:
1. Has anybody else dealt with this?
2. Is there anything I can do to not have the redirect happen? 

Thanks,
Dave

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


RE: Tomcat redirecting when base URI doesn't have trailing slash

2004-12-14 Thread Shapira, Yoav

Hi,
To question #2: no.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Tauzell, Dave [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 9:32 AM
To: [EMAIL PROTECTED]
Subject: Tomcat redirecting when base URI doesn't have trailing slash

Hi,
I recently upgraded to Tomcat 5.0 (running under JBoss) and am using
the
Slide webdav servlet.  I used to point to: http://my.url.com/webdav to
access our slide repository. Now when I do that I get a 302 redirect
sent back which directs my client to http://my.url.com/webdav/. This
makes sense, but it is a problem for WebDrive clients as they don't
support the redirect.

My questions:
   1. Has anybody else dealt with this?
   2. Is there anything I can do to not have the redirect happen?

Thanks,
Dave

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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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


RE: new isapi_redirector2.dll

2004-12-14 Thread Derrick Koes
 
I think I've followed the steps to build JK2, but there are still errors in the 
jk_isapi_plugin.c file.  The latest version from CVS is 1.64 (according to 
WinCVS).  Should I just fix these, or is there a better alternative?

Thanks,
Derrick


jk_isapi_plugin.c
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) 
: error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) 
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(229) 
: warning C4018: '==' : signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) 
: error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) 
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) 
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,void *,unsigned long *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) 
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) 
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) 
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) 
: error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) 
: error C2146: syntax error : missing ')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) 
: warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char 
*,char *)' differs in levels of indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) 
: error C2059: syntax error : ')'
jk_jni_aprImpl.c



-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 19, 2004 5:01 PM
To: [EMAIL PROTECTED]
Subject: new isapi_redirector2.dll

I noticed there have been some commits since the last official release in 
March, so I've built a version based on the latest snapshot. I've also added a 
How to page for people interested in building it themselves.
 
http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage=overview



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


Re: new isapi_redirector2.dll

2004-12-14 Thread karjera

Laba diena.

Dkojame, kad mums parate.
Js atsista inut isaugota ms duomen bazje.

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


RE: new isapi_redirector2.dll

2004-12-14 Thread Allistair Crossley
If you are trying to build jk2 to have a connector between your webserver and 
tomcat, and you are just starting out, then you should probably know that jk2 
is no longer supported and you should get jk 1.2.7 (in beta currently but it 
works and will be released soon I think). 

Allistair.

 -Original Message-
 From: Derrick Koes [mailto:[EMAIL PROTECTED]
 Sent: 14 December 2004 16:02
 To: Tomcat Users List
 Subject: RE: new isapi_redirector2.dll
 
 
  
 I think I've followed the steps to build JK2, but there are 
 still errors in the jk_isapi_plugin.c file.  The latest 
 version from CVS is 1.64 (according to WinCVS).  Should I 
 just fix these, or is there a better alternative?
 
 Thanks,
 Derrick
 
 
 jk_isapi_plugin.c
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(160) : error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : 
 undeclared identifier
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(160) : warning C4018: '==' : signed/unsigned mismatch
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(229) : warning C4018: '==' : signed/unsigned mismatch
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(231) : error C2065: 
 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(231) : error C2146: syntax error : missing ')' 
 before identifier 'pvNotification'
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(231) : warning C4047: '=' : 'int (__stdcall 
 *)(struct _HTTP_FILTER_CONTEXT *,char *,void *,unsigned long 
 *)' differs in levels of indirection from 'int '
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(231) : error C2059: syntax error : ')'
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(234) : error C2146: syntax error : missing ')' 
 before identifier 'pvNotification'
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(234) : warning C4047: '=' : 'int (__stdcall 
 *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in 
 levels of indirection from 'int '
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(234) : error C2059: syntax error : ')'
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(237) : error C2146: syntax error : missing ')' 
 before identifier 'pvNotification'
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(237) : warning C4047: '=' : 'int (__stdcall 
 *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in 
 levels of indirection from 'int '
 C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_is
 api_plugin.c(237) : error C2059: syntax error : ')'
 jk_jni_aprImpl.c
 
 
 
 -Original Message-
 From: David Boyer [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 19, 2004 5:01 PM
 To: [EMAIL PROTECTED]
 Subject: new isapi_redirector2.dll
 
 I noticed there have been some commits since the last 
 official release in March, so I've built a version based on 
 the latest snapshot. I've also added a How to page for 
 people interested in building it themselves.
  
 http://web.bvu.edu/staff/david/index.jsp?section=softwaresubs
ection=isapipage=overview



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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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


JSP privileges

2004-12-14 Thread Asim Alp
We want to give FTP access to our customers so that they can create /
edit their own JSP pages; however we are afraid of the capabilities of
JSP.  Technically, it is possible for a user to write a program that
would mess up anything else on the server.  Is there a get around? 
How does JSP hosting companies solve this potential security problem? 
We're not really a hosting company, but an application service
provider...

Thanks,

Asim

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


RE: Log on linux

2004-12-14 Thread Montz, James C. (James Tower)
I don't believe this is Tomcat at all, and is more likely the result of
a log rotation application.

What Linux Distribution are you using?

RedHat uses an application called logrotate.  Sounds to me like you are
either;
Writing your logs to some place like /var/log
You have a logrotate entry defined to rotate the files in your Tomcat
Logging Directory (In Redhat, take a look at /etc/logrotate.d, and man
logrotate)

-Original Message-
From: Andrea Prandini [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 14, 2004 7:52 AM
To: 'Tomcat Users List'
Subject: Log on linux

Hi,

I've got some production enviorment installed on linux with Tomcat 5 and
Tomcat 4.1. I've configured tomcat for logging as configured in the
standard
server.xml (using FileLogger) and everything works fine. My problem is
that
i find too many log files with the extension .gz. Seems that there's a
scheduled job that compress the log files stored in logs directory. The
first time creates localhost_log.2004-11-28.txt.1.gz, after few days
localhost_log.2004-11-28.txt.1.gz.1.gz and on. Someone can help me and
told
if this is a configurations of tomcat.

Thanks in advance

Andrew


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


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


Re: set an environement variable under fedora core3

2004-12-14 Thread FRANCOIS Dufour
thanks for the hint still im french  so im having a hard time understanding  
those terms
so i  have to log in as root  copy catalina content under / %home folder %
and edit that variable so wen i run startup.sh the executable find itself 
would it work if i
edit startup.sh  and include in there the corect path to catalina and jdk ?  
wondering
can i do that

[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

From: Alain Gaeremynck [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: set an environement variable under fedora core3
Date: Tue, 14 Dec 2004 13:52:52 -0500
In Linux / bash you can set any environement variable using
export VAR_NAME=var value
you can do that in the script itself, in the user's .bash_profile file or  
in the shell directly

FRANCOIS Dufour wrote:
hi to all
im used to work on windows im actualy tring  to find were to set these 
variable under linux
sombody could give mee  an hint  ?

thanks in advance
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

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

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

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


Re: set an environement variable under fedora core3

2004-12-14 Thread Alain Gaeremynck
In Linux / bash you can set any environement variable using
export VAR_NAME=var value
you can do that in the script itself, in the user's .bash_profile file 
or  in the shell directly

FRANCOIS Dufour wrote:
hi to all
im used to work on windows im actualy tring  to find were to set these 
variable under linux
sombody could give mee  an hint  ?

thanks in advance
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

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

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


Re: JNDI object not shared among TC instances

2004-12-14 Thread John Smith
 Why would you expect this to be possible?

 JNDI defines an API for a directory . . .

Nope! JNDI stands for  Java Naming and Directory Interface (JNDI)

check out  java.sun.com/products/jndi/

most 'Naming' services work is based on networking protocols even many of
those looking like file/directory ones

 Once you involve multiple JVMs, you need some sort of object sharing
and/or persistence system to allow code in multiple JVM's to look up 'the
same' objects.

 . . .  object sharing . . ., which I (to a certain extent wrongly or
wishfully thining) understood to be provided by JNDI.

 The 'persistence' part of it I can be taken care of by other subsystem or
yourself

 Some of us used to work on Object Oriented Databases for this purpose

 One way to go

- Original Message -
From: Benson Margulies [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 9:31 PM
Subject: RE: JNDI object not shared among TC instances


Why would you expect this to be possible?

JNDI defines an API for a directory. Inside one JVM, it's simple
technology to use that API to look up Java objects. Once you involve
multiple JVMs, you need some sort of object sharing and/or persistence
system to allow code in multiple JVM's to look up 'the same' objects.
Some of us used to work on Object Oriented Databases for this purpose
--- EJBs are another view.

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


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


Re: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Dwayne Ghant
Have you tried writing a session bean??? if not 
just write a session bean and import it as a header in
all you *.jsp pages.  The sessions will controll the flow of
the application.

ex:
%@ include file=Secrity_stuff.jsp %
This is common in writing applications.
Robert Taylor wrote:
Thanks Hassan. I didn't realize that was added to the 2.4 spec.
Thanks for pointing that out. 

Even so, it would be nice to know how to use CMS to achieve this.
Maybe a better way to form the question would be how do I use
CMS to protect .jsp pages from direct access and return a user
friendly page/message when a .jsp page is requested without going through
the controller?
/robert
 

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 2:21 PM
To: Tomcat Users List
Subject: Re: [newbie] Container Managed Security - preventing direct
access to .jsp
Robert Taylor wrote:
   

Please let me know if this questions is just too obvious
and I'll gladly RTFM...
 

See below :-)
   

It just seems like a common idiom to provide a portable mechanism
for protecting direct access to .jsp so as to enforce access through
some controller. I have in the past placed .jsp files behind WEB-INF,
but I don't believe that is portable and would like to use CMS to achieve
this.
 

Given that the Java Servlet Specification Version 2.4, page 70 sez:
A special directory exists within the application hierarchy
named WEB-INF. This directory contains all things related to
the application that aren't in the document root of the
application. The WEB-INF node is not part of the public
document tree of the application. No file contained in the
WEB-INF directory may be served directly to a client by the
container.
I don't know how much more portable you want it to be :-)
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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

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


--
Dwayne A. Ghant
Application Developer
Temple University
215.204.
[EMAIL PROTECTED]

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


Re: Does TC 5.5 have some type of farm deployer?

2004-12-14 Thread Peter Rossbach
Hello Norris,
I have actived the FarmWarDeployer at release 5.5.5.
Regards
Peter
Norris Shelton schrieb:
I ran across this document, but have not been able to find out
any additional information.
http://tomcat.objektpark.org/pdf/Proposal-HostConfig-Deployer.pdf
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton

		
__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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

 


--
J2EE Systemarchitekt und Tomcat Experte
http://objektpark.de/
http://tomcat.objektpark.org/
http://centaurus.sourceforge.net/
Am Josephsschacht 72, 44879 Bochum, Deutschland
Telefon:  (49) 234 9413228
Mobil:(49) 175 1660884
E-Mail:  [EMAIL PROTECTED]

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


Re: Tomcat upgrade to 4.1.7

2004-12-14 Thread john corcoran
That was the request from the application owner.
Thanks for your input
-John
From: Ben Souther [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat upgrade to 4.1.7
Date: Tue, 14 Dec 2004 16:00:35 -0500
Other than the release notes that ship with TC, I don't think you'll
find much.
Out of curiosity, why are you upgrading to 4.1.7?
The current 4x is 4.1.31.

On Tue, 2004-12-14 at 14:26, john corcoran wrote:
 Hello,

 I 've searched the tomcat website and could not find any instructions 
for
 upgrading Tomcat 4.0.5
 to Tomcat 4.1.7

 Can anybody help me out ?  Looking for some tpye of cook book or detail
 instructions .

 Thanks
 -John Corcoran

 _
 FREE pop-up blocking with the new MSN Toolbar  get it now!
 http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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


Re: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Hassan Schroeder
Robert Taylor wrote:
I didn't realize that was added to the 2.4 spec.
It was in 2.3, too. I'd guess it was in the spec from the get-go,
but don't have an older copy to hand to confirm.
Even so, it would be nice to know how to use CMS to achieve this.
What is your definition of Container Managed Security, then, if
not this? The container prevents direct access to the resources
placed within WEB-INF, without you having to do anything else.
Maybe a better way to form the question would be how do I use
CMS to protect .jsp pages from direct access
as above.
   and return a user
friendly page/message when a .jsp page is requested without going through
the controller?
A custom 404 page should take care of it. And you can get as fancy
with that as you like :-)
FWIW!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: Tomcat 5.5 / Admin How ?

2004-12-14 Thread Kelly, Steve
Don't believe it was - certainly can't find a version that works. So
I've taken your advice and gotten 5.5.6 and as Yoav said it works like a
charm.

Thanks to all who contributed.

Steve. 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 14 December 2004 14:17
To: Tomcat Users List
Subject: RE: Tomcat 5.5 / Admin How ?

There was an issue with the left-hand tree in 5.5.4. I don't know
whether 5.5.4's admin distribution was repackaged. If not, you should
acquire 5.5.6-alpha. 

I see Yoav has also replied to a separate email with a similar
statement.

Allistair.

 -Original Message-
 From: Kelly, Steve [mailto:[EMAIL PROTECTED]
 Sent: 14 December 2004 14:11
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5 / Admin How ?
 
 
 But does it work. It don't seem to in 5.5.4 (and that's supposed to be

 a stable version - not beta or alpha). See the other threads on the 
 subject for more details of the problems.
 
 Steve.   
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 14 December 2004 13:55
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5 / Admin How ?
 
 
 Hi,
 
 Can any one guide me or point me to the documents  where i
 will get the
 
 steps to  assimilate the admin with  tomcat ??
 
 Ahh, the Borg.
 
 Anyways, simple:
 - Download jakarta-tomcat-v5.5.6-zip, extract to C:\.
 - Download jakarta-tomcat-v5.5.6-admin.zip, extract to C:\.
 - Edit c:\jakarta-tomcat-5.5.6\conf\tomcat-users.xml as instructed in 
 the Manager app how-to.
 - That's it.
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business 
 communication, and may contain information that is confidential, 
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied, 
 printed, disclosed or used by anyone else.  If you are not the(an) 
 intended recipient, please immediately delete this e-mail from your 
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



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


Re: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Wendy Smoak
From: Hassan Schroeder [EMAIL PROTECTED]
 Given that the Java Servlet Specification Version 2.4, page 70 sez:

 A special directory exists within the application hierarchy
 named WEB-INF. This directory contains all things related to
 the application that aren't in the document root of the
 application. The WEB-INF node is not part of the public
 document tree of the application. No file contained in the
 WEB-INF directory may be served directly to a client by the
 container.

 I don't know how much more portable you want it to be :-)

Except that I think at least one commercial Servlet container interpreted it
more strictly and refused to serve anything under WEB-INF, even with a
forward.  IOW, the specification says the container MAY NOT serve anything
under WEB-INF directly, but it doesn't say that the container MUST serve
those things INdirectly.

No idea which one that was, I just remember being warned when I put things
under WEB-INF, that it wouldn't work everywhere.  Since I never plan to use
anything but Tomcat, it wasn't a problem.

-- 
Wendy Smoak


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


Re: set an environement variable under fedora core3

2004-12-14 Thread FRANCOIS Dufour
ok for the variable but now im stuck whit a platform
that dosent want to install a jvm
sombody know how to force fedora tho take a jvm?
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

From: Ben Souther [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: set an environement variable under fedora core3
Date: Tue, 14 Dec 2004 16:04:51 -0500
I think the norm is to:
Create a user that will be used to run tomcat (like tomcat).
Use chown on the tomcat direcctory (often
/usr/local/jakarta-tomcat-xxx).
Create the needed environment variables in the tomcat user's
.bash_profile script (as mentioned in the other posts).

On Tue, 2004-12-14 at 14:39, FRANCOIS Dufour wrote:
 thanks for the hint still im french  so im having a hard time 
understanding
 those terms
 so i  have to log in as root  copy catalina content under / %home folder 
%
 and edit that variable so wen i run startup.sh the executable find 
itself
 would it work if i
 edit startup.sh  and include in there the corect path to catalina and 
jdk ?
 wondering
 can i do that

 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc



 From: Alain Gaeremynck [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: set an environement variable under fedora core3
 Date: Tue, 14 Dec 2004 13:52:52 -0500
 
 In Linux / bash you can set any environement variable using
 export VAR_NAME=var value
 you can do that in the script itself, in the user's .bash_profile file 
or
 in the shell directly
 
 
 FRANCOIS Dufour wrote:
 
 hi to all
 
 im used to work on windows im actualy tring  to find were to set these
 variable under linux
 sombody could give mee  an hint  ?
 
 thanks in advance
 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



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

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


Re: sending a JSP page by email

2004-12-14 Thread Asim Alp
Here is what I use:


// here is a function from my MailUtils class
public boolean formSend(String to, String fromAddress, String 
fromPersonal,
String msgSubject, PageContext pc, String templateURL) {
if (templateURL == null || templateURL.equals()) { return 
formSend(to,
msgSubject, pc); }

String httpHost = pc.getRequest().getServerName();
Enumeration params = pc.getRequest().getParameterNames();

String queryString = ?;
if (templateURL.indexOf(?) = 0) queryString = ;
while (params.hasMoreElements()) {
String param = (String) params.nextElement();

try {
queryString += param
+ =
+ 
URLEncoder.encode(StringUtils.encodeHTML(JSPUtils.getParam(pc,
param)), 
UTF-8) + ;
} catch (Exception e) {
e.printStackTrace();
}
}

String url = http://; + httpHost + templateURL + queryString;

try {
// see the Webpage object
Webpage wp = new Webpage(url);
String msgBody = wp.loadPage();

// replace it your own send mail function
send(to, fromAddress, fromPersonal, msgSubject, 
msgBody, true);
} catch (Exception e) {
e.printStackTrace();
return false;
}

return true;
}


// Here is the Webpage
package com.edunet.iwas.util;

import java.net.*;
import java.io.*;

public class Webpage {

private static final String NEW_LINE = 
System.getProperty(line.separator);

private String content;

private URL u;

public Webpage(String urlString) throws MalformedURLException {
urlString = StringUtils.replace(urlString,  , %20);
this.u = new URL(urlString);
}

public String loadPage() throws IOException {
BufferedReader in = new BufferedReader(
new InputStreamReader(u.openStream()));

String temp;
content = ;
while ((temp = in.readLine()) != null)
content += temp + NEW_LINE;
/* you don't really need the NEW_LINE */

in.close();

return content;
}

public String getContent() {
return content;
}
}


Please use it at your own risk...

Asim

On Tue, 14 Dec 2004 19:15:13 -0300, Gabriel Belingueres
[EMAIL PROTECTED] wrote:
 Hi,
 
 How can I take advantage of Tomcat's JSP processing engine to use a
 JSP page as a template for an email?
 
 That is, I want to do something like a page forwarding from a servlet,
 but this forwarding process the JSP page and, instead of send it to
 the browser, it send it by email to somebody.
 
 Thanks in advance,
 Gabriel
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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


Re: Application looping

2004-12-14 Thread Dennis Payne
You could also use 'include' instead of 'forward'.

 [EMAIL PROTECTED] 12-14-2004 12:06 
Hi,

I solved the problem by dropping back to 4.1.24.  I can't imagine what

that had to do with it, but now it works.

Jim.

Shapira, Yoav wrote:

Hi,
Two ideas: one, always make sure to return (i.e. a return; statement)
after a request dispatcher forward call.  Two, take Apache out of the
mix for now, test tomcat-standalone.  Once that works, if you need
Apache you can bring it back in and worry about its configuration.

Yoav Shapira http://www.yoavshapira.com 
 

  

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 14, 2004 8:36 AM
To: Tomcat Users List
Subject: Application looping

Hi, all,

I'm attempting to port an application from one system to another.  I
originally wrote it on a debian system and ported it to a RH 7.2
system.  Now I'm trying to move it to a RH 9 system.  I installed
the
latest Tomcat 4.1.31, java 1.4.2_06 and Apache 1.3.  Orignally this
system had Apache 2, java 1.4.2_05 and Tomcat 4.1.30.  I was never
able
to get mod_jk2 working so that's why I backed off to Apache 1.3.  I
don't think that made any difference since the application continues
to
loop in either configuration.  It boils down to the following code.

I have a method in my servlet class that looks like:

 protected void getJspPage(HttpServletRequest request,
   HttpServletResponse response, String


pageName){
  

   RequestDispatcher dispatcher =


request.getRequestDispatcher(pageName);
  

   try{
 _logger.debug(Dispatcher is Dispatching +pageName);
 dispatcher.forward(request, response);
 _logger.debug(Done);
   }catch ( Exception e ) {
 _logger.debug(Exception in RequestHandler.getJspPage -
+e.toString());
   }
 }

It is invoked by the following:

 private final String SELECT_PAGE =nindex.jsp;
...
 request.setAttribute(Notes,Add unique notes for this data


set);
  

 getJspPage(request, response, SELECT_PAGE);
 _logger.debug(Good bye);
 return;

I have a javascript alert message in nindex.jsp that tells me it was
loaded into the browser.

The problem is that the dispatcher.forward method never returns.  I
never see the Good bye message in the log.

Here's from the log:

04-12-14 07:01:40|DEBUG|
manpower.servlets.NafoServlet|Dispatcher is Dispatching nindex.jsp
04-12-14 07:01:40|DEBUG|  
manpower.servlets.NafoServlet|Into
NafoServlet Url =/nindex.jsp
04-12-14 07:01:40|DEBUG|
manpower.servlets.NafoServlet| Resources


Servlet
  

running 

The first line is from the previously mentioned method.  The second
and
third line are from the servelet and are issued when the servlet
starts.  The alert message never gets displayed except the first
time
the jsp is loaded.

The log fills up with messages showing the same code being executed


over
  

and over.  Note there is no delay in the time the servlet
(supposedly)
ends and starts up again.

I'm stumped.  It continues to work on Debian and RH 7.2 but fails on
RH
9 with updated Tomcat and Java.

Any suggestions?

Thanks,
Jim.

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







This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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

  


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


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


Soap and classpaths

2004-12-14 Thread Eric VERGNAUD
Hi,

On MacOS X, I'm trying to run a web service which looks like this:

 package com.jlynx.soap;

 class service
 {
public String test()
{
return Hello;
}
 }

This class is part of a servlet which is installed as jlynx_servlet.

In the soap admin utility, I deploy this service as follows:

ID: jlynx_service
Scope: Request
Provider Type: java
Provider Class: com.jlynx.soap.service
Use Static Class: false
Methods: Test
Options 1:
Key: classpath
Value: /Applications/jakarta/webapps/jlynx_servlet/WEB-INF/classes

In catalina.policy, I have granted all permissions to soap.

However, when I connect to the server, I get the following error:

Unable to resolve target object: com.jlynx.soap.service

What am I doing wrong ?

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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


Re:

2004-12-14 Thread Webmaster
for sample Struts web.xml take a look at
http://www.developeriq.com/articles/view_article.php?id=211

I didnt see webapp at beginning of web.xml
/webapp at end of your web.xml

Also I didnt see servlet-mapping mappings for Struts ActionServlets
e.g.
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

May want to post this to [EMAIL PROTECTED]

HTH,

Martin-




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


Re: Tomcat redirecting when base URI doesn't have trailing slash

2004-12-14 Thread Bill Barker
Not strictly true.  If you have a '/*' mapping, then Tomcat won't redirect.

Shapira, Yoav [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

Hi,
To question #2: no.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Tauzell, Dave [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 9:32 AM
To: [EMAIL PROTECTED]
Subject: Tomcat redirecting when base URI doesn't have trailing slash

Hi,
I recently upgraded to Tomcat 5.0 (running under JBoss) and am using
the
Slide webdav servlet.  I used to point to: http://my.url.com/webdav to
access our slide repository. Now when I do that I get a 302 redirect
sent back which directs my client to http://my.url.com/webdav/. This
makes sense, but it is a problem for WebDrive clients as they don't
support the redirect.

My questions:
 1. Has anybody else dealt with this?
 2. Is there anything I can do to not have the redirect happen?

Thanks,
Dave

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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to 
whom it is addressed, and may not be saved, copied, printed, disclosed or 
used by anyone else.  If you are not the(an) intended recipient, please 
immediately delete this e-mail from your computer system and notify the 
sender.  Thank you. 




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


RE: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Ben Souther
 It appears that there is no standard way to do this even though
 it's implied in the spec.

I don't know how standard this is but it works.
The trick is in the auth-constraint node (note the commented out
role-name).
Since it is exclusive. Not declaring a role-name for the protected
resource denies access to everyone.

You then catch the 403 error with an error page mapping and you're good
to go.  

The JSPs can still be accessed from the request dispatcher so you can 
reach them through the MVC pattern.

I suppose a simpler solution would be simply to create a
servelet-mapping with a url pattern of *.jsp and map it to an error
servlet.

If you want to test this out quickly grab the  SimpleMVC.war from
http://simple.souther.us and replace the web.xml file with this one.
You'd have to create your own no-jsp-4-u.html page.

Hope it helps
-Ben



?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4

 servlet
  servlet-name
ControllerServlet 
  /servlet-name
  
  servlet-class
us.souther.simple.mvc.ControllerServlet/servlet-class
  /servlet

  servlet-mapping
servlet-nameControllerServlet/servlet-name
url-pattern/simple-mvc/url-pattern
  /servlet-mapping
 
  security-constraint
web-resource-collection
  web-resource-name
off-limits
  /web-resource-name
  url-pattern
  *.jsp
  /url-pattern
/web-resource-collection
auth-constraint
  !--role-name manager /role-name--
/auth-constraint
  /security-constraint
 
  error-page
error-code403/error-code
location/no-jsp-4-u.html/location
  /error-page
/web-app


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


RE: Server refuse connection with many TIME_WAIT

2004-12-14 Thread FRANCOIS Dufour
try to lower your conection time out under catalina policy
hope it help
friendly
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

From: V D [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Server refuse connection with many TIME_WAIT
Date: Tue, 14 Dec 2004 23:17:00 -0500
I have an Axis service that runs under Tomcat 5.5.4.  I use gSoap client to 
connect to the server.  After about 3960 requests from the clients, the 
Tomcat stops accepting connection.  I have to wait for serveral minutes for 
it to accept connections again.

This is under MS Windows XP system.  Using the command line:
netstat -aenter
I have about 5000 TIMEWAIT:
TCPvd:5000localhost:http TIME_WAIT
Looking through TcpMonitor, both the client and server send in close 
message:

CLIENT MESSAGE:
POST /axis/services/TestService HTTP/1.1
Host: 127.0.0.1:82
User-Agent: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 552
Connection: close
SOAPAction: 

SERVER MESSAGE:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Date: Wed, 15 Dec 2004 04:04:52 GMT
Connection: close
What's going on?  Is there any flag I can set in Tomcat to close these 
TIMEWAIT connections?

Looking at the clients's memory foot print, the memory does not go up at 
all after all these connections.
The strange thing is this:  using Java's client to repeatedly request the 
server for many thousand times, and I don't have any problem with the 
server.  Using the command line netstat -a, and I still see many 
TIMEWAIT.

Could this have something to do with gSoap, not Tomcat?
Thanks,
V D


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

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


Help me off this list!

2004-12-14 Thread TK Banks
No matter how many times I send mail to
[EMAIL PROTECTED] I continue
to be flooded with tomcat-user mail.

Months ago I wanted to post a question to this list
and found I couldn't do so unless I joined the list. 
So, grudgingly, I joined, posted my question and
immediately unsubscribed.  I checked my mail again
days later to find I had gazillions of emails queued
up.  Since that time I've been periodically sending
requests to unsubscribe and have had no success.

Was there some fine print I missed that said I had to
join for at least a year?



__ 
Do you Yahoo!? 
Send holiday email and support a worthy cause. Do good. 
http://celebrity.mail.yahoo.com

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


Re: Undeploying without using manager?

2004-12-14 Thread Fredrik Jonson
On 2004-12-14, Shapira, Yoav [EMAIL PROTECTED] wrote:

  I would like to stop and undeploy a webapp without restarting
  tomcat, and without using the manager application.

 You can use the Manager through Ant, as illustrated in the Manager
 how-to doc.  But if really don't want to use the Manager at all, and
 don't want to restart Tomcat, go write your own undeployment mechanism.

In this case, the manager app isn't installed at all (security 
precaution), I probably should have mentioned that. And writing 
my own deployment mechanism seems like way over my head right now. 
At lest I know I haven't missed anything obvious. 

Thanks for the input.
-- 
Fredrik Jonson


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