Re[2]: Off topic: Single login for separate web applications?

2001-03-14 Thread hische



Thanks for the suggestion, I checked it but if found it a bit too
Microsoft/Novell oriented. But maybe the only way to go is indeed to use some
client side activex,applet or whatever component.

Thanks again,

Wilko






Darrell Porter [EMAIL PROTECTED] on 14-03-2001 05:06:13

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
cc:(bcc: Wilko Hische/HADV/NL)
Subject:  RE: Off topic: Single login for separate web applications?



There's always Single Sign-On from Novell

http://developer.novell.com/research/devnotes/1999/november/05/dpv.htm

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 4:39 AM
To: [EMAIL PROTECTED]
Subject: Off topic: Single login for separate web applications?




Hi,

Sorry for posting this off topic question. I would really appreciate any
pointers into the right direction.

What I would like to know is what you would need in general to create a
single
login to different web applications on different web servers (and possibly
platforms)? I gues the servers would need some shared repository for
login/passwords, but how would it be possible after logging in to one server
to
pass on this fact to the other servers?

I hope the answer is as simple as the question,

Wilko Hische



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

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








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




RE: setContentType / File download

2001-03-14 Thread Kwan, Kenneth Y

Please help, we encounter similar problem but with IE5.5 only (no problem
with all Netscapes, and IE5.01 and below versions). Seems MS has changed
something in IE5.5

Kenneth

-Original Message-
From:   Gerd Trautner [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, March 14, 2001 4:08 PM
To: tomcat-user
Subject:setContentType / File download

Hi tomcat-user,

i have some troubles using the setContentType method.
I want to generate a CSV file of my database data and send it to the
browser. the browser should then say "save file as filenam.csv" ...

what i do is:


response.setContentType("application/msexcel;name=\"TUInventory.csv\"\nConte
nt-Disposition: attachment;filename=TUInventory.csv;");

this works for netscape browsers, but ie wants to save index.html.

any tips?

Gerd




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

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




Re: organization

2001-03-14 Thread Rob Tanner

A couple of comments.  First of all, source files go wherever you want 
them.  If you want them in the same place as your class files, you may 
certainly do so, but I can't think of any good or even not so good 
reason why you should.

As to the other part of what you've heard, I'd suggest getting the 
servlet 2.2 spec and reading it.  There are actually two possible 
directories (directories, not files) that can go in the WEB-INF 
directory at the same level as the web.xml file.  The directories are 
classes and lib.  I tend mostly to write packages that I store in a jar 
file, and that constitutes a library and goes in lib.  In dividual 
class files go in classes, but you could have a hierarchy under classes 
as well.

The reason it doesn't get "messy" is because you will normally have a 
number of such structues.  What they define is a single application, 
not a single servlet.  Any application beyond the very simple-minded 
HelloWord.class demonstration webapp is bound to involve more than one 
servlet, and possibly a mixture of servlets, jsp pages, and static 
html.  All of these go into a single directory structure.  Statis pages 
as well as most jsp pages typically live in the root of the specific 
application hierarchy, which is at the same level as the WEB-INF 
directory.  There is no rule that regulates the definition of an 
application.  You could consider all the webapps you ever write for any 
particular (virtual) server to be a single application, but you could 
also just as easily define individual application in terms of a single 
function and under that application's root, keep only those static 
pages, jsp's and servlets that serve that particular function.  For 
example, I manage the central computing services for Linfield College. 
Creating email accounts, password management, setting and resetting 
forwards and vacation are all handles on line, and all the 
servlets/jsp's that do the work are part of a single application.  We 
also provide email lists for every section of every course taught. 
Those email lists are populated initially from the add drop records. 
But faculty also want the ability to see who's subscribed and who's not 
(students who don't have a Linfield email address are not subscribed 
until they apply for an email address -- the subscription record simply 
uses their student id as a place holder).  Faculty also want to be able 
to look at the list of subscribees and send messages to a select 
subset.  All but the initial population of the lists is handles through 
the web, and the servlets/jsp's that do the work are bundled together 
as an application separate from the account management application. 
The point is that it's not messy because applications are separated 
from one another.  Actually, it's cgi's that get messy.  The 
application structure used for servlets is much cleaner.

-- Rob

--On Tuesday, March 13, 2001 11:15:14 PM + [EMAIL PROTECTED] 
wrote:

 Hi, from my understanding, all compiled classes of servlets have to
 go in a  file called 'classes' in the same directory as the 'web.xml'
 file in  'Web-inf' directory. And from what I heard all corresponding
 java sources  should go in there to. Now if all files ( source java
 files and classes files  ) go in the one directory called classes
 wouldn't it get really messy putting  everything in one file. Does
 anyone have any better suggestion for organizing  this problem.

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





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]


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




Re: organization

2001-03-14 Thread Harish K Kottarathil



You can create application specific web-inf 
dir so that the class files  lib will be organized neatly.
For example the following additional code 
helps Tomcat to pick up classfiles and lib from c:/abc/infodir/codebase/web-inf 
dir.
Add the following lines 
inServer.xml 
  Context path="/infodir" 
 
docBase="c:/abc/infodir/codebase" 
 
crossContext="true" 
debug="0" 
 
reloadable="true" 
 
trusted="false"   
/Context ...other 
Context 
 
 [docBase tells the web-inf dir 
for "infodir"]
 Andyou should have the 
following directory 
structure 
c:\abc\infodir\codebase\Web-Inf\classes 
  
   
 
\lib
  The web.xml specific to the servlet 
should be in the same 
directoryc:\abc\infodir\codebase\Web-Inf\web.xml


Harish



jsp:usebean and setProperty

2001-03-14 Thread Carlos

in a jsp file i put:
%@page import ="Contador"%
%String conta=application.getInitParameter("contadorDir");
String IP=request.getRemoteAddr();
%
jsp:useBean id="contador" class="Contador" scope="session"
jsp:setProperty name="contador" property="Ip" value="=%IP%"/
jsp:setProperty name="contador" property="Path" value="%=conta%"/
/jsp:useBean

this doesn't work why?

but if i put:
%@page import="Contador"%
%String conta=application.getInitParameter("contadorDir");
%
jsp:useBean id="contador" class="Contador" scope="session"
/jsp:useBean
%
String Ip = request.getRemoteAddr();
contador.setIp(Ip);
contador.setPath(conta);
%

it works.
why setProperty doesn't work?
thanks
Carlos


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




RE: usebean and setProperty

2001-03-14 Thread Håkon Gunnar Larsson (ETO)

In your bean class you have som functions called getXxxx and setXxxx.
When you whant to access these properties from a .jsp file you must use
property="" and NOT property="Xxxx". In your case use
property="path" and NOT property="Path" 

Hkon Larsson :o)


-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]]
Sent: 14. mars 2001 10:01
To: [EMAIL PROTECTED]
Subject: jsp:usebean and setProperty


in a jsp file i put:
%@page import ="Contador"%
%String conta=application.getInitParameter("contadorDir");
String IP=request.getRemoteAddr();
%
jsp:useBean id="contador" class="Contador" scope="session"
jsp:setProperty name="contador" property="Ip" value="=%IP%"/
jsp:setProperty name="contador" property="Path" value="%=conta%"/
/jsp:useBean

this doesn't work why?

but if i put:
%@page import="Contador"%
%String conta=application.getInitParameter("contadorDir");
%
jsp:useBean id="contador" class="Contador" scope="session"
/jsp:useBean
%
String Ip = request.getRemoteAddr();
contador.setIp(Ip);
contador.setPath(conta);
%

it works.
why setProperty doesn't work?
thanks
Carlos


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

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




Stupid Question

2001-03-14 Thread Matthias Barmeier

Hi,


I have a stupid question:

What do I have to do to make JSP code work in *.htm files.
I would like to automatically add an authorization prefix to
any *.html and *.htm page of my old web. The java program works
fine but the % authorize this code % does not work.

I use IIS and Tomcat 3.1. 

Can anyone help ??

Ciao
Matze

My uriworkermap

#
# Simple worker configuration file
#

# Mount the servlet context to the ajp12 worker
/servlet/*=ajp12

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

# Advanced mount of the examples context
# /examples/*.jsp=ajp12
# /examples/servlet/*=ajp12
/*.jsp=ajp12
/*.htm=ajp12


My web.xml
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

 web-app
 servlet
servlet-classorg.apache.jasper.runtime.JspServlet/servlet-class
servlet-namehtmtojsp/servlet-name
 /servlet

 servlet
servlet-classUploadManager.HttpFileReceiver/servlet-class
servlet-nameupload/servlet-name
 /servlet


servlet-mapping
servlet-namehtmtojsp/servlet-name
url-pattern*.htm/url-pattern
/servlet-mapping
/web-app


/*
Dipl.-Inform. Matthias BarmeierTel: +49 (0)30 79 70 72 87
bit-side GmbH  Fax: +49 (0)30 79 70 72 88
Salzufer 14a Aufgang D Email: [EMAIL PROTECTED]
10587 Berlin   WWW: http://www.bit-side.com
*/


 

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




Iplanet 4.1 + tomcat... what's wrong?

2001-03-14 Thread Andrzej Przewiezlikowski

Hello
I'v configured my iPlanet to work with tomcat to serve jsp  servlets.
It works fine with static pages but, when it comes to tomcat call
i get following error in nsapi.log

[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 15
[jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
[jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12 start
sequence
[jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers
[jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the terminating
mark
[jk_ajp12_worker.c (472)]: ajpv12_handle_request done
[jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request
[jk_ajp12_worker.c (488)]: Into ajpv12_handle_response
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Status: 400 Bad
Request
[jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Status=400 Bad
Request
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Servlet-Error:
Received empty servlet name
[jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
Servlet-Error=Received empty servlet name
[jk_ajp12_worker.c (542)]: ajpv12_handle_response, allocating header arrays
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read
[jk_ajp12_worker.c (504)]: ajpv12_handle_response, headers are done
[jk_ajp12_worker.c (563)]: ajpv12_handle_response, starting response
[jk_ajp12_worker.c (574)]: ajpv12_handle_response, reading response body
[jk_ajp12_worker.c (590)]: ajpv12_handle_response, response body is done
[jk_ajp12_worker.c (602)]: ajpv12_handle_response done
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done


Can anyone tell me what is wrong with it?


(I'm testing it on tomcat jsp examples and the work fine with tomcat
itself.)


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




web.xml reading (?) problem

2001-03-14 Thread Manjul Sahay

Hi,
I am using Tomcat 3.1 on RedHat linux 6.0 system.
Tomcat is working fine with jsps being served.

However, Tomcat does not seem to be reading the web.xml file in the WEB-INF
directory of the application contexts.
Even for the examples context of tomcat distribution i see a directory
listing of files, even with index.jsp present in the directory but when
executed index.jsp works just fine.

The same version running on Windows NT machine is having no problems. Also I
tried the same with Tomcat 3.2 :) but it didnt work either.

Eagerly looking forward for help and suggestions.

- manjul sahay

P.S i even changed all permissions to 777 to make Tomcat read and write and
do all that it wants, ;) But !


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




Problems when running JSP files om my Linux Box

2001-03-14 Thread Håkon Gunnar Larsson (ETO)

I'm having some problems when running .jps files om my Linux box, in fact they are not 
running at all.
I have also set the TOMCAT_HOME and JAVA_HOME to the correct path according to the 
manual.
What puzzle's me is that on my NT box I'm not experiencing any of these problems.
Here are the messages I get. What can be wrong??

Hkon G Larsson :o)

System info:
  Linux Mandrake 7.2
  j2sdk-1.3.0.02
  jakarta-tomcat-3.2.1

The stdout message: 
Using
classpath: 
/var/tomcat/lib/ant.jar:/var/tomcat/lib/jasper.jar:/var/tomcat/lib/jaxp.jar:/var/tomcat/lib/jcert.jar:/var/tomcat/lib/jnet.jar:/var/tomcat/lib/jsse.jar:/var/tomcat/lib/mmpssdk.jar:/var/tomcat/lib/parser.jar:/var/tomcat/lib/servlet.jar:/var/tomcat/lib/servlet.jar.old:/var/tomcat/lib/test:/var/tomcat/lib/webserver.jar:/usr/java/jdk1.3/lib/tools.jar
[root@pcstudio2 bin]# 2001-03-13 05:12:51 - ContextManager: Adding context Ctx( 
/examples )
2001-03-13 05:12:51 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-03-13 05:12:51 - ContextManager: Adding context Ctx(  )
2001-03-13 05:12:51 - ContextManager: Adding context Ctx( /test )
2001-03-13 05:12:51 - ContextManager: Adding context Ctx( /mps )
2001-03-13 05:12:51 - ContextManager: Adding context Ctx( /locator )
2001-03-13 05:12:51 - ContextManager: Adding context Ctx( /lego )
2001-03-13 05:12:52 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2001-03-13 05:12:53 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
2001-03-13 05:13:23 - Ctx( /examples ): JasperException: R( /examples + 
/jsp/dates/date.jsp + null) Cannot read
file: /jsp/dates/date.jsp
2001-03-13 05:13:23 - Ctx( /examples ): Exception in: R( /examples + 
/jsp/dates/date.jsp + null) - java.lang.NoSuchMethodError
at 
org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:281)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1147)
at org.apache.tomcat.core.Handler.service(Handler.java:311)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

The Jasper.log:

2001-03-14 09:29:36 - Parent class loader is: AdaptiveClassLoader(  )
2001-03-14 09:29:36 - Scratch dir for the JSP engine is: 
/var/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples
2001-03-14 09:29:36 - IMPORTANT: Do not modify the generated servlets
2001-03-14 09:29:36 - Parent class loader is: AdaptiveClassLoader(  )
2001-03-14 09:29:36 - Parent class loader is: AdaptiveClassLoader(  )
2001-03-14 09:29:37 - Parent class loader is: AdaptiveClassLoader(  )
2001-03-14 09:29:37 - Parent class loader is: AdaptiveClassLoader(  )
2001-03-14 09:29:37 - Parent class loader is: AdaptiveClassLoader(  )
2001-03-14 09:29:37 - Parent class loader is: AdaptiveClassLoader(  )
2001-03-14 09:29:57 - JspEngine -- /jsp/num/numguess.jsp
2001-03-14 09:29:57 -ServletPath: /jsp/num/numguess.jsp
2001-03-14 09:29:57 -   PathInfo: null
2001-03-14 09:29:57 -   RealPath: 
/var/jakarta-tomcat-3.2.1/webapps/examples/jsp/num/numguess.jsp
2001-03-14 09:29:57 - RequestURI: /examples/jsp/num/numguess.jsp
2001-03-14 09:29:57 -QueryString: null
2001-03-14 09:29:57 - Request Params: 
2001-03-14 09:29:57 - Classpath according to the Servlet Engine is: 
/var/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes
2001-03-14 09:29:57 - Package name is: jsp.num
2001-03-14 09:29:57 - Class file name is: 
/var/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess.class
2001-03-14 09:29:57 - Java file name is: 
/var/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0.java
2001-03-14 09:29:57 - Class name is: 
_0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0
2001-03-14 09:29:57 - JspReader: Exception parsing file /jsp/num/numguess.jsp - 
java.lang.NoSuchMethodError
at 
org.apache.jasper.JspEngineContext.getResourceAsStream(JspEngineContext.java:348)
at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:193)
at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:146)
at org.apache.jasper.compiler.JspReader.init(JspReader.java:262)
at 

Tomcat - can't load isapi_redirect.dll in IIS

2001-03-14 Thread Kathrin Flückiger

Can't load isapi_redirect.dll into IIS on Windows 2000!
I followed exactly the given instructions. Does somebody know the trick to
activate the isapi_redirect.dll - filter in IIS (convert the red arrow to a
green arrow)?


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




Re: Tomcat - can't load isapi_redirect.dll in IIS

2001-03-14 Thread Harish K Kottarathil



Try put the isapi_redirect.dll ina 
directory corresponding to c:\winnt\system32\inetsrv in WinNT or 
dir where other dlls are and restart the machine.
I had the same problem on NT where the 
green arrow appears only if the dll is in the above directory.

Harish

- Original Message - 
From: Kathrin Flückiger 
To: [EMAIL PROTECTED] 

Sent: Wednesday, March 14, 2001 3:36 PM
Subject: Tomcat - can't load isapi_redirect.dll in IIS
Can't load isapi_redirect.dll into IIS on Windows 2000!I 
followed exactly the given instructions. Does somebody know the trick 
toactivate the isapi_redirect.dll - filter in IIS (convert the red arrow to 
agreen 
arrow)?-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For 
additional commands, email: [EMAIL PROTECTED]


Re: just making sure

2001-03-14 Thread Arnaud Vandyck

[EMAIL PROTECTED] wrote:
 
 My understanding is that whenever you write a new servlet script,
 you have to add that entry to the web.xml file. Is this correct?

No! If your servlet is called Test.class, you can run it with
http://localhost:8080/servlet/Test (respect the case!)

 Example lets say I write a new servlet called TEST, an entry
 would go in web.xml as:
 
 servlet
 servlet-name
 TEST
 /servlet-name
 servlet-class
 TEST
 /servlet-class
 /servlet

This is usefull when your class (servlet) is in a package. If you make a
package com.aol.dumbservlet.Test, then you can map the servlet to Test
but you got to look at the ervlet-mapping directive in web.xml

-- 
Arnaud Vandyck http://www.ressource-toi.org/

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




Re: Tomcat won't honor requests for .xml files?

2001-03-14 Thread skolski

Hello,

in the servers.xml file, located in /conf directory, you should declare
your projekt's path.

e.g.

Context path="/projekt" docBase="webapps/projekt" debug="0"
reloadable="true"/

With the webapps directory located in the tomcat directory.

On the other hand you have to look at the web.mxl file located in the
web-inf directory in your projekt directory. There you should have

url-pattern
  *.xml
url-pattern

or something like that.

Hope I helped you,

Sascha Kolski



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




Re: Cache problem with IE

2001-03-14 Thread Tagunov Anthony

On Tue, 13 Mar 2001 17:13:14 +0100, Zsolt Koppany wrote:

Hi,

with the code below I can get netscape not to cache a jsp page but it
does not work with Internet-Explorer.
Does anybody know why?


response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");\


Hitting the same problem we used at
http://www.mavicanet.com
and it works both on NS and IE!

response.setHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-cache");
response.setHeader("Expires","Thu, 01 Dec 1994 16:00:00 GMT");



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




Re: Re[2]: Off topic: Single login for separate web applications?

2001-03-14 Thread Tagunov Anthony

I heared somewhere that there's a plan to have the following
manner of scalability and load-balancing with servlets:

we have a load balancer that directs request to one of the n
servlet-engine-running boxes.

Sessions are stored permanantly in a DBMS accessible from
all these boxes.

So, the following questions arise:
1) will this solve the problem of single login for different web-apps
2) how is such solution from us, users?

On Tue, 13 Mar 2001 18:21:09 +0100, [EMAIL PROTECTED] wrote:



Thanks, I will check it out.

Wilko





Roby Gamboa
13-03-2001 17:52

Please respond to [EMAIL PROTECTED]

Sent by:  rgamboa


To:   [EMAIL PROTECTED]
cc:(bcc: Wilko Hische/HADV/NL)
Subject:  Re: Off topic: Single login for separate web applications?



I'm using JAAS to handle authentication. One of the things that you're able to
do is use pluggable authentication under Windows and Solaris (using the Sun
implementations) and Linux (with the IBM implementation), or authenticate
against a database (which is what I'm doing). The end result of the
authentication process is a Subject having one or more Principals and public or
private credentials (which can be any Java object).

You can add either the Subject itself (with all of its attached state, in a
secure environment), or just its public credentials (as a token or key in a
non-secure environment) to the session object in JSPs and servlets to indicate
an authenticated user.

You might want to check this out: http://java.sun.com/products/jaas.

Hope this helps.
- Roby

[EMAIL PROTECTED] wrote:

 Yes, but than then client would have to identify itself at the second webapp
 without being challenged for another login. The only way to accomplish this
 would be a session based cookie I guess, in addition to this centrally stored
 information. I was hoping for some standard approach/protocol  that I was not
 aware of. But maybe it just isn't there (yet).

 Thanks,

 Wilko

 "Sam Newman" [EMAIL PROTECTED] on 13-03-2001 15:15:44

 Please respond to [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:(bcc: Wilko Hische/HADV/NL)
 Subject:  Re: Off topic: Single login for separate web applications?

 Having a central repository of logins/passwords would work from one end =
 e.g. when connecting to one of your servers, that server communicates with
 the central repository to veriy the login/password. However, when going to
 another webapp that webapp needs to know you've been authorised. perhaps
 once authorised, you could store information about the client at the central
 respository. When a webapp gets a connection from that client, it looks ion
 the central repository to see if that client has been authorised. Not sure
 on what info would work though

 sam
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 13, 2001 12:38 PM
 Subject: Off topic: Single login for separate web applications?

 
 
  Hi,
 
  Sorry for posting this off topic question. I would really appreciate any
  pointers into the right direction.
 
  What I would like to know is what you would need in general to create a
 single
  login to different web applications on different web servers (and possibly
  platforms)? I gues the servers would need some shared repository for
  login/passwords, but how would it be possible after logging in to one
 server to
  pass on this fact to the other servers?
 
  I hope the answer is as simple as the question,
 
  Wilko Hische

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

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


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





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






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




Restricting access to localhost for ajp-port 8007

2001-03-14 Thread Stefan Busse

Hi,

I've seen this question beeing asked a few times in the
archives, but I didn't find any replies:

How do I restrict access to tomcat listening e.g.
on port 8007 for incoming requests from e.g. apache,
using e.g. mod_jk ?

There seems to be no possibility in the configuration to
restrict access to the localhost, but maybe there is a
patch or an upcoming release dealing with this issue ?
At the moment, we do not have the money for a firewall,
so any help would be greatly appreciated.

Thanks in advance

*sb


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




Re: setContentType / File download

2001-03-14 Thread Tagunov Anthony

On Wed, 14 Mar 2001 09:07:57 +0100, Gerd Trautner wrote:

Hi tomcat-user,

i have some troubles using the setContentType method.
I want to generate a CSV file of my database data and send it to the
browser. the browser should then say "save file as filenam.csv" ...

what i do is:

response.setContentType("application/msexcel;name=\"TUInventory.csv\"\nContent-Disposition:
 attachment;filename=TUInventory.csv;");

this works for netscape browsers, but ie wants to save index.html.


On the cocoon-users there's been a discussion about the following code

response.setHeader("Content-Disposition", "inline;filename=kluge.txt");

they said it was an "unofficial" IE header for the same purpose. haven't tested it 
myself,
but looks like we now have two complementry solutions, for
IE and NS :-)



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




Open Files problem caused by requests for jsp pages

2001-03-14 Thread Daniel Zuck

Hello world :)

We're running a JSP application, and upgraded our plattform from Tomcat 3.1
to 3.2.1, and we're running into a 'open files' problem. The symptom is: it
runs for a while, until all available file handles are in use - which causes
the underlaying FeeBSD to refuse any further request for a file handle (even
for a login). The system can be "switched" back to a normal state by killing
the Java VM, which implies, that all file handles in use by Tomcat, are
released.

In Bugzilla, we found bug #134 which is to be fixed with Tomcat 3.2.2 - but
our problem still occurs under Tomcat 3.2.2b1!

The system we use (FreeBSD and Linux) issues a "too many open files" error
after our webApp runs for a while. The "lsof" command shows that our project
specific jar-files (the ones in webapps/myProject/WEB-INF/lib) are opened
very very often. It seems that each request for a jsp page causes the engine
to open the jar-files once again.

This behaviour doesn't occur under Tomcat 3.1. Here no additional files are
opened for each request.

Does anybody has the same problem, or does anybody know a solution for this?
Please let me know!  Thank you!  For several reasons, I want to avoid a
fallback to Tomcat 3.1



mit freundlichen Gren

Ihre 1822direkt
Daniel Zuck

_
Daniel Zuck 1882222
DV  Technik  111   8  8  2  2  2  2
1822direkt 1   8  8 2 2
Borsigallee 19 188 2 2
60608 Frankfurt am Main1   8  8   2 2
Tel: 069/94170-152; FAX: -199 1   8  8   2 2
mailto:[EMAIL PROTECTED]111   88       direkt
__

Financial Times Deutschland, Telebrse und Focus Money sind sich einig:
Die 1822direkt ist die Direktbank mit den zufriedensten Kunden Deutschlands.
Infos unter: http://www.1822direkt.com/infoseite/auszeichnungen.html
**
1822direkt * direct-banking nach Ma * 24 Stunden am Tag, 7 Tage die Woche
call-center: 0180/3 24 1822 (12Pf/30s)  069/ 94170-0 * Fax: 069/94170-199
WWW: http://www.1822direkt.com * email: [EMAIL PROTECTED] * BTX: *61822#




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




SSL Howto

2001-03-14 Thread Alfredo Solano Martinez

Greetings,

I'm trying to use SSL with Tomcat 3.2. I've followed the SSL-Howto
guidelines and tomcat.log shows :

PoolTcpConnector : Starting HttpConnectionHandler on 8443

which I think s ok, but,

   How do I know SSL is working?

I've tried to use the Request.getAuth() from a login servlet and I still get
NULL.

Any ideas?

Thanks in advance


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




Re: R: R: Problem with a new version of JSP pages

2001-03-14 Thread kaushik

Hello Garry,

Wednesday, February 21, 2001, 9:35:03 PM, you wrote:

GDT Thank you Shahed, I am not alone.

GDT But what we can do to resolve this "wierd" problem?
GDT Open a new Bug?

GDT My be Apache that cache the old JSP Pages? I don't know Apache very well.

GDT Bye Bye
GDT Garry De Toffoli

GDT - Original Message - 
GDT From: Shahed Ali [EMAIL PROTECTED]
GDT To: [EMAIL PROTECTED]
GDT Sent: Wednesday, February 21, 2001 4:48 PM
GDT Subject: Re: R: Problem with a new version of JSP pages


 I also did use %@ include %,
 
 but I touched the main (including) jsp page and it recompiled.
 
 But the recompiled java file in the work dir 
 (after deleting all stuff in work) was still the 
 old java source 
 
 Its a wierd problem !! 
 
 Regards
 Shahed.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 


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

Dear  Gary
When you have in include file embedded into a jsp file then
you  have  to  add  a space to the jsp file that includes the file and
save  it  and  it will function well.  I have found this with tomcat.
And this is specific where you use an include file.

-- 
Best regards,
 kaushikmailto:[EMAIL PROTECTED]



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




Re: Restricting access to localhost for ajp-port 8007

2001-03-14 Thread Nick Holloway

[EMAIL PROTECTED] (Stefan Busse) writes:
 I've seen this question beeing asked a few times in the
 archives, but I didn't find any replies:
 
   How do I restrict access to tomcat listening e.g.
   on port 8007 for incoming requests from e.g. apache,
   using e.g. mod_jk ?

An example from the archive (but I did know what to search for):

http://mikal.org/interests/java/tomcat/archive/view?mesg=20673

In server.xml, add a "inet" parameter to the connector definition: 

Connector className="..."
Parameter name="handler" value="..."
Parameter name="inet" value="localhost"
Parameter name="port" value="8007"
/Connector

-- 
 `O O'  | [EMAIL PROTECTED]
// ^ \\ | http://www.pyrites.org.uk/

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




Redirector blocking IIS

2001-03-14 Thread Graham Wright

I have a problem that a request to Tomcat through IIS redirector is 
occasionally not responding and resulting in web site on IIS being 
locked out to everyone.  Only the port being used is blocked i.e. if 
port 80 is blocked the web site is still available on 443 and any other 
web sites on the IIS machine are available.  Tomcat can be accessed 
using anything other than the blocked web site/port.  The block times 
out after about 5 minutes.

The combination of software/hardware to cause this is
IE5 or 5.5
Microsoft proxy server 2.0 / NT4 SP6a
128K connection
IIS4 / NT4 SP6a
IIS Redirector (any using ajp12 or ajp13)
Tomcat 3.2.1 / NT4 SP6a

We cannot reproduce the problem internally, only from a remote office 
but from there it can be made to happen within at most a couple of 
minutes.  Netscape 4.7 works OK and putting a TCP Tunnel between IE and 
the proxy server resulted in it working!  Using Apache 1.3.19 on the web 
server also works.

The fact that the Web site is getting locked suggests that the problem 
is in the ISAPI layer i.e. iis-redirector.  If if was simply the client 
failing I wouldn't be so concerned but because it can be used to block 
the web site it is potentially a very serious problem if it occurs a a 
client site.

The inconsistent nature of the problem suggest some communication or 
timing problem.

Has anyone ever seen this behavior or have any suggestions on where the 
problem might lie?

thanks

Graham Wright

-- 
*
Information in this email is confidential and may be privileged. It is
intended for the named addressee(s) only. If you have received it in
error please notify the sender immediately and delete it from your
system. You should not otherwise copy, retransmit, use or disclose its
contents to anyone.
*


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




RE: Restricting access to localhost for ajp-port 8007

2001-03-14 Thread Alistair Hopkins

Or, on Linux, include it in your IPCHAINS rules

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 11:43 AM
To: [EMAIL PROTECTED]
Subject: Re: Restricting access to localhost for ajp-port 8007


[EMAIL PROTECTED] (Stefan Busse) writes:
 I've seen this question beeing asked a few times in the
 archives, but I didn't find any replies:
 
   How do I restrict access to tomcat listening e.g.
   on port 8007 for incoming requests from e.g. apache,
   using e.g. mod_jk ?

An example from the archive (but I did know what to search for):

http://mikal.org/interests/java/tomcat/archive/view?mesg=20673

In server.xml, add a "inet" parameter to the connector definition: 

Connector className="..."
Parameter name="handler" value="..."
Parameter name="inet" value="localhost"
Parameter name="port" value="8007"
/Connector

-- 
 `O O'  | [EMAIL PROTECTED]
// ^ \\ | http://www.pyrites.org.uk/

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



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




Re: Cache problem with IE

2001-03-14 Thread Daniel Lopez

Hi,

AFAIL, this doesn't work with some IE versions(5 and above I think) the
problem is caused because IE5+ decides whether it wonts to cache the
page if the page is greater than 32k. So, when it decides that the page
has to be cached, the headers have been long ago forgotten :(. The
solution in our case was to add also the "no caching, please" piece of
html at the end of the pages. So our pages end up being something
like...
html
head
meta http-equiv="Expires" content="now" /
meta http-equiv="Cache-Control" content="no-cache,
must-revalidate"/
meta http-equiv="Pragma" content="no-cache" /
...
/head
body
...
/body
  head
meta http-equiv="Expires" content="now" /
meta http-equiv="Cache-Control" content="no-cache,
must-revalidate"/
meta http-equiv="Pragma" content="no-cache" /
  /head
/html
This trick works for us on all the browsers I have tested so far.
I hope this helps,
Dan
References:
http://support.microsoft.com/support/kb/articles/Q222/0/64.ASP

http://support.microsoft.com/support/kb/articles/Q234/2/47.ASP




Tagunov Anthony wrote:
 
 On Tue, 13 Mar 2001 17:13:14 +0100, Zsolt Koppany wrote:
 
 Hi,
 
 with the code below I can get netscape not to cache a jsp page but it
 does not work with Internet-Explorer.
 Does anybody know why?
 
 
 response.setHeader("Cache-Control", "no-cache");
 response.setHeader("Pragma", "no-cache");\
 
 
 Hitting the same problem we used at
 http://www.mavicanet.com
 and it works both on NS and IE!
 
 response.setHeader("Pragma","no-cache");
 response.setHeader("Cache-Control","no-cache");
 response.setHeader("Expires","Thu, 01 Dec 1994 16:00:00 GMT");

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




Tomcat's setting to IBM jdk1.3

2001-03-14 Thread NSB)Hiroshi Kasamatsu
Hi,all

 I began to use IBM jdk1.3. The performance is very good.
By the way,the default  directory of install is /opt/.
Sun's one is /usr/local/.  I set JAVA_HOME=/opt/IBMjdk1.3.

The problem is that tomcat's starup.sh and stop,sh does not work right.
I got error messages:java.IOException,InputStream,etc.
To be surprised,I also got error
message:/usr/local/jakarta-tomcat/bin/conf/server.xml;
no such directory. My server.xml is in /usr/local/jakarta-tomcat/conf/.
Oh! Why,tomcat?

Please tell me Tomcat's setting to IBM jdk1.3,namely  unusual directory.

Thanks in advance.

Hiroshi Kasamatsu


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


Re: Redirection from http-server

2001-03-14 Thread Zenon Braga F.

If you we're in Tomcat, you could use "Request Dispatch", but it seems that 
you have your own http server, thus you should use the code of TCP/IP 
protocol appropriate, that is, a code and the url (http://someThing:8080).

sincerely,

Zenon Farias Braga F.


From: "Subbarao Bhagavati" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Redirection from http-server
Date: Tue, 13 Mar 2001 20:22:03 -0500

Hi,

I have written a simple http server that can serve static content. I want 
to
use the same server to run the servlets too. I am planning to use Tomcat in
out-of-process mode to achieve this. I am having a problem in redirecting
the http request to tomcat. my web server is running on port 1080 and the
tomcat appserver http connection handler is listening on port 8080. How do 
I
send the request for a servelt to  tomcat and get it processed and send the
response back to the client.
Could some one help.

Thanks,
Subu
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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


_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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




JSP, sessions: how to notify bean about the session end?

2001-03-14 Thread Sergey V. Udaltsov

Hello all

My JSPs uses some session-scoped bean. This bean, among other duties, is
responsible for logging in and out of some app server. I would like the
bean to perform autologout on the session end. Is it possible? How?
AFAIK usual finalize can be called ages after the object is really free
- so I do not like this way. Any ideas?

Regards,

Sergey

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




AW: setContentType / File download

2001-03-14 Thread Andreas Mecky

Hi,

try this:
response.setContentType(application/msexcel);
response.setHeader("Content-Disposition","inline; filename="here goes my
filename");

this works for me in IE and NS.

WBR

Andreas Mecky

 -Ursprungliche Nachricht-
 Von: Gerd Trautner [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. Marz 2001 09:08
 An: tomcat-user
 Betreff: setContentType / File download


 Hi tomcat-user,

 i have some troubles using the setContentType method.
 I want to generate a CSV file of my database data and send it to the
 browser. the browser should then say "save file as filenam.csv" ...

 what i do is:

 response.setContentType("application/msexcel;name=\"TUInventory.cs
 v\"\nContent-Disposition: attachment;filename=TUInventory.csv;");

 this works for netscape browsers, but ie wants to save index.html.

 any tips?

 Gerd



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



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




RE: Form based login: protected against password snooping?

2001-03-14 Thread DUDGEON

I think your understanding is correct. BASIC, DIGEST and FORM are
altenatives. You can't combine them.
To use FORM or BASIC securely you need SSL.

Tim
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 13 March 2001 17:42
 To: [EMAIL PROTECTED]
 Subject: Form based login: protected against password snooping?
 
 
 
 
 Hi,
 
 As far I understand it, when using form based login, login 
 and password are just
 posted in plain format and are therefore not protected 
 against password
 snooping. Is that true? And if so, is the only way to use 
 form based login
 safely, the use of SSL? Or does a sort of mixture between for 
 instance DIGEST 
 Form based login exist?
 
 Thanks,
 
 Wilko
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


--
DISCLAIMER: This message contains proprietary
information some or all of which may be
confidential and/or legally privileged. It is for
the intended recipient only who may use and apply
the information only for the intended purpose.
Internet communications are not secure and
therefore the British Biotech group does not
accept legal responsibility for the contents of
this message. Any views or opinions presented are
only those of the author and not those of the
British Biotech group. If you are not the intended
recipient please delete this e-mail and notify the
author immediately by calling ++44 (0)1865 748747;
do not use, disclose, distribute, copy, print or
rely on this e-mail.

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




AW: Tomcat's setting to IBM jdk1.3

2001-03-14 Thread Egger Lothar
hello

how about a link "java" in "/usr/lib"  that points to /opt/IBMjdk1.3
and set JAVA_HOME=/usr/lib/java

if you have to switch between versions just drop the link and create a new
one
to that jdk that you want to use.

regards
lothar


 -Ursprungliche Nachricht-
 Von: NSB)Hiroshi Kasamatsu [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. Marz 2001 12:58
 An: [EMAIL PROTECTED]
 Betreff: Tomcat's setting to IBM jdk1.3
 
 
 Hi,all
 
  I began to use IBM jdk1.3. The performance is very good.
 By the way,the default  directory of install is /opt/.
 Sun's one is /usr/local/.  I set JAVA_HOME=/opt/IBMjdk1.3.
 
 The problem is that tomcat's starup.sh and stop,sh does not 
 work right.
 I got error messages:java.IOException,InputStream,etc.
 To be surprised,I also got error
 message:/usr/local/jakarta-tomcat/bin/conf/server.xml;
 no such directory. My server.xml is in 
 /usr/local/jakarta-tomcat/conf/.
 Oh! Why,tomcat?
 
 Please tell me Tomcat's setting to IBM jdk1.3,namely  unusual 
 directory.
 
 Thanks in advance.
 
 Hiroshi Kasamatsu
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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


crash!!!

2001-03-14 Thread Herchel Wojciech

Hi all! i've got the following problem.
tomcat was running, and i meant to shut it down, but instead i exceuted
"tomcat start". 
then i shut it down, and tried to restart again. alas, it does not start
HttpConnectionHandler on 8080 nor Ajp12ConnectionHandler on 8007. 
why is that? how can i solve that? executing netstat -t -a shows that server
linstens to ports 8007 and 8009.
plus a file called javacore19565.txt was generated.
can anybody help me please?


vVolf

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




Re: JSP, sessions: how to notify bean about the session end?

2001-03-14 Thread William Brogden



"Sergey V. Udaltsov" wrote:
 
 Hello all
 
 My JSPs uses some session-scoped bean. This bean, among other duties, is
 responsible for logging in and out of some app server. I would like the
 bean to perform autologout on the session end. Is it possible? How?
 AFAIK usual finalize can be called ages after the object is really free
 - so I do not like this way. Any ideas?
 
 Regards,
 
 Sergey
 

Take a look at the HttpSessionBindingListener interface. If your
Bean implements this class, you can get a notification when
the session times out or is otherwise invalidated.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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




config Pb with Apache/Tomcat using mod_jk

2001-03-14 Thread Thomas Klein

Hi all,

I'm building a testing environment on Windows NT4.

Here is my current configuration :
Apache 1.3.14
Sun JDK 1.3.0.02
Tomcat 3.2.1

The system worked fine using mod_jserv as the communication handler
between Apache and Tomcat, and ajp12 as the communication protocol
(mainly the default config).
But since I have updated Tomcat (following the "Working with mod_jk"
guideline from jakarta.apache.org) to use mod_jk instead of mod_jserv
and ajp13 instead of ajp12, my system does not work properly anymore.

I still can run HelloWorldExample servlet using the Tomcat internal HTTP
server (http://localhost:8080/examples/servlet/HelloWorldExample).
But trying to run it through Apache
(http://localhost/examples/servlet/HelloWorldExample), I got a 404 Not
Found error.

Could someone help me ?
What's missing in my configuration ?

Thomas



I added the following bloc in server.xml :

Connector className="org.apache.tomcat.service.PoolTcpConnector"
   Parameter name="handler"

value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/
   Parameter name="port" value="8009"/
/Connector


Here is my custom tomcat-apache.conf :

LoadModule jk_module modules/mod_jk.dll

JkWorkersFile "C:/Apache Group/Tomcat 3.2.1/conf/workers.properties"
JkLogFile  logs/jk.log
JkLogLevel warn
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

IfModule mod_jk.c
#
# Mounting a single smart context
#
# Make Apache know about the context location.
Alias /examples "C:/Apache Group/Tomcat 3.2.1/webapps/examples"

# Customize Apache context service (optional)
Directory "C:/Apache Group/Tomcat 3.2.1/webapps/examples"
Options Indexes FollowSymLinks
/Directory

# Protect the WEB-INF directory from tampering.
Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location

# Mount specific servlet URLS to Tomcat
 JkMount /examples/servlet/* ajpv13

/IfModule


Finally, I updated workers.properties as follow :

workers.tomcat_home="C:\Apache Group\Tomcat 3.2.1\"
workers.java_home=c:\jdk1.3.0_02


begin:vcard 
n:KLEIN;Thomas
tel;cell:06 62 05 49 46
tel;home:[EMAIL PROTECTED]
x-mozilla-html:TRUE
org:APSIDE
adr:;;;Toulouse;;;FRANCE
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Thomas KLEIN
end:vcard



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


RE: Why we need apache web server with tomcat

2001-03-14 Thread Zenon Braga F.

I don't know, perhaps if dns had an alternative to redirect some domain 
("http://www.something.com") to port 8080, them the only need to use apache 
would be performance, thus for simplicity, I think that only Tomcat could 
work fine, but how many times does apache do the work in static page 
compared to Tomcat?   And if I'm use apache and use some perl script like 
modjk that uses an interpreted language, that as we already know isn't fast, 
does the overall time of serving static and dinamic pages using apache be 
less than the overall time of serving static and dinamic pages using Tomcat?
You should consider that redirecting a page has some overhead, and many 
time when the two servers isn't so coupled, it has some increase in trafic.


From: "Dave Masino" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Why we need apache web server with tomcat
Date: Tue, 13 Mar 2001 15:28:55 -0800

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto.
html

  -Original Message-
  From: Ritesh Seth [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 13, 2001 3:26 PM
  To: [EMAIL PROTECTED]
  Subject: Why we need apache web server with tomcat
 
 
  Hi all
 
  I downloaded apache-1.3.19 from apache web site. Configured it
  with DSO and
  perl support and installed it. Http daemon was running on port 80.
 
  Then i downloaded tomcat package. Configured and installed. It
  was runnuing
  on port 8080.
 
  My question is that from the browser when we specify 
IPAddress::tomcatPort
  it goes to tomcat otherwise without port number it goes to apache.Then 
why
  we need apache web server ?
 
 
  Thanks in advance...
 
 
  regards
  ritesh
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 


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


_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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




RE: what's with the socket write errors?

2001-03-14 Thread Randy Layman


To find out how many other people experience this problem I would
suggest looking at the mailing list archives, since I personally have
answered this question twice already this week.  Sort answer, they're
harmless.  Long answer:  read the mailing list archives.

Randy

-Original Message-
From: Jeffry Guttadauro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 10:45 PM
To: [EMAIL PROTECTED]
Subject: what's with the socket write errors?


Hi, everyone.

 I'm wondering if others have run across this too and if anyone can
tell me what's going on.  I get tons of socket write errors when Tomcat
displays images.  The images are displaying fine and my app and Tomcat keep
going strong, but the multitude of errors bothers me.  Anyone know what the
deal is with this?  I'm using 3.2.1 on NT.

Thanks,
-Jeff

here's a small taste of the deluge of errors I get:

2001-03-13 09:28:06 - Ctx( /cellbank ): IOException in: R( /cellbank +
/images/A
bbott_topbar.gif + null) Connection aborted by peer: socket write error
2001-03-13 09:28:06 - Ctx( /cellbank ): IOException in: R( /cellbank +
/images/p
prd_blackbar.gif + null) Connection aborted by peer: socket write error
2001-03-13 09:32:07 - Ctx( /cellbank ): IOException in: R( /cellbank +
/images/A
bbott_topbar.gif + null) Connection aborted by peer: socket write error
2001-03-13 09:32:07 - Ctx( /cellbank ): IOException in: R( /cellbank +
/images/p
prd_blackbar.gif + null) Connection aborted by peer: socket write error
2001-03-13 09:33:04 - Ctx( /cellbank ): IOException in: R( /cellbank +
/images/A
bbott_topbar.gif + null) Connection aborted by peer: socket write error
2001-03-13 09:33:04 - Ctx( /cellbank ): IOException in: R( /cellbank +
/images/p
prd_blackbar.gif + null) Connection aborted by peer: socket write error
2001-03-13 09:33:33 - Ctx( /cellbank ): IOException in: R( /cellbank +
/images/p
prd_blackbar.gif + null) Connection aborted by peer: socket write error

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

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




SMP-Support of Tomcat

2001-03-14 Thread Peissig, Uwe


Hi,

im looking for any information redarding TOMCAT.
Is the Tomcat supporting Multiprocessor environments ?
We want to use Tomcat on 4 processor Sun Hardware and want to know whether
Tomcat can use all ressources or not ( always uses only 1 proc. )
THanks


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




RE: Tomcat - can't load isapi_redirect.dll in IIS

2001-03-14 Thread Randy Layman


THIS SHOULD NOT BE NECESSRY!  I have set up 5 different machines
with IIS/Tomcat (2 with Win2k) and none of them have the DLL in the system
directory. If this works it indicates that you didn't select the dll when
you added the filter.

As to the orginial problem, double check all of your registry
entries.  The problem is 99.999% a miss-spelled registry key or value.  The
remainder of the time its a corrupted DLL file.

Randy

-Original Message-
From: Harish K Kottarathil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 5:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat - can't load isapi_redirect.dll in IIS


Try put the isapi_redirect.dll in  a directory corresponding to
c:\winnt\system32\inetsrv in WinNT or dir where other dlls are and restart
the machine.
I had the same problem on NT where the green arrow appears only if the dll
is in the above directory.
 
Harish
 
- Original Message - 
From: Kathrin Flckiger 
To: [EMAIL PROTECTED] 
Sent: Wednesday, March 14, 2001 3:36 PM
Subject: Tomcat - can't load isapi_redirect.dll in IIS


Can't load isapi_redirect.dll into IIS on Windows 2000!
I followed exactly the given instructions. Does somebody know the trick to
activate the isapi_redirect.dll - filter in IIS (convert the red arrow to a
green arrow)?


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

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




AW: JSP, sessions: how to notify bean about the session end?

2001-03-14 Thread Matthias Barmeier

Hi,

if your bean implements HttpSessionBindungListener you can
code a ValueUnbound method that can do what you want.



-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag
von Sergey V. Udaltsov
Gesendet: Mittwoch, 14. Marz 2001 13:08
An: [EMAIL PROTECTED]
Betreff: JSP, sessions: how to notify bean about the session end?


Hello all

My JSPs uses some session-scoped bean. This bean, among other duties, is
responsible for logging in and out of some app server. I would like the
bean to perform autologout on the session end. Is it possible? How?
AFAIK usual finalize can be called ages after the object is really free
- so I do not like this way. Any ideas?

Regards,

Sergey

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


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




need explanation about config difference between JServ and Tomcat

2001-03-14 Thread Thomas Klein

Hi All,

I retrieved a lot of Guidelines  How-To from jakarta.apache.org before
trying to install my Apache/Tomcat server.
And I succeed in setting up an Apache + Tomcat server using mod_jserv.

But now, I'm trying to replace mod_jserv by mod_jk and I encounter some
config problems (see my previous mail).
So, I realize I'm still confused concerning the numerous configuration
files...

Could someone simply give the list of configuration files which are
really used by Apache/Tomcat ?

The fact is I mix up between the way to configure Apache/JServ and the
way to configure Apache/Tomcat.
What are the main differences ?
Which files were used by JServ and are not used anymore by Tomcat ?

For example : What about the file tomcat.properties ? is it used ? and
what is it used for ? does it correspond to the zone.properties file I
read about in some JServ docs from java.apache.org ?
Do we have to configur servlet zones in Tomcat ?


Thanks a lot to those able to respond to my numerous questions :)

Thomas


begin:vcard 
n:KLEIN;Thomas
tel;cell:06 62 05 49 46
tel;home:[EMAIL PROTECTED]
x-mozilla-html:TRUE
org:APSIDE
adr:;;;Toulouse;;;FRANCE
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Thomas KLEIN
end:vcard



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


CTRL_LOGOFF_EVENT service solution?

2001-03-14 Thread Siebenmann, Joe

Of the many possible solutions for solving the logoff problem when running
Tomcat as a service, most seem to be
wrappers that "allow you to run your Java application as an NT service,
blocking the CTRL_LOGOFF_EVENT" such as
http://www.eworksmart.com/jnt/

But, can you use such an application for Tomcat?  jk_nt_service points to
wrapper.properties.  Other things must happen before you try and start
org.apache.tomcat.startup.Tomcat.

TomcatWrapper.class ( used with jsrvany ) requires complex editing of the
registry, which can't be done with an install program.

Has anyone found a way to use something like the above, with Tomcat, without
complex registry editing?

Thanks,


Joe Siebenmann
Inciscent
Phone:  703-205-5927
Fax:   703-876-5973



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




Réf. : SMP-Support of Tomcat

2001-03-14 Thread JULE, Nicolas - DSIA


Hi uwe,

Tomcat  is multithreaded, but is a single process (the JVM)
The question is then to know  how  your JVM  is scalable on the
machine you work.
Generally JVM are not able to profit of all the ressources of SMP
machines.
On my opinion, this is rather a JVM implementation question, than a
question for tomcat.


Nicolas


De :[EMAIL PROTECTED] le 14/03/2001 14:06
Pour :  tomcat-user@[EMAIL PROTECTED]@SMTP@Hays Hub
cc : 
Faxer :
Objet : SMP-Support of Tomcat


Hi,

im looking for any information redarding TOMCAT.
Is the Tomcat supporting Multiprocessor environments ?
We want to use Tomcat on 4 processor Sun Hardware and want to know
whether
Tomcat can use all ressources or not ( always uses only 1 proc. )
THanks



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



**
Ce message lectronique et tous les fichiers attachs qu'il contient
sont confidentiels et destins exclusivement  l'usage de la personne
 laquelle ils sont adresss. Si vous avez reu ce message par erreur,
merci de le retourner  son metteur. Les ides et opinions prsentes
dans ce messages sont celles de son auteur, et ne reprsentent pas
ncessairement celles du Groupe HAYS plc ou d'une quelconque de ses filiales.
La publication, l'usage, la distribution, l'impression ou la copie non
autorise de ce message et des attachements qu'il contient sont strictement
interdits.

Nous vous informons galement que nous avons vrifi l'absence de virus dans
ce message mais que, malgr ce contrle, nous ne saurions tre tenus pour
responsables d'ventuels dgts occasionns par un virus non dtect.

This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you have
received this email in error please send it back to the person that sent it
to you. Any views or opinions presented are solely those of author and
do not necessarily represent those the HAYS plc group or any of its subsidiary
companies. Unauthorized publication, use, dissemination, forwarding, printing
or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain
any virus but we decline any responsability in case of any damage caused
by an a non detected virus.

**

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




Version checking and *.xml files.

2001-03-14 Thread Scott T. Keller

hi all:

Two things...I just did an upgrade from 3.1--3.2.1 Aside from looking
at
dates, how can I check version and is there any downside from using my
3.1
server.xml and web.xml files?

Thanks a lot!


begin:vcard 
n:Keller;Scott
tel;cell:678-296-3767
tel;fax:404-287-8549
tel;work:404-287-8400
x-mozilla-html:FALSE
version:2.1
adr;quoted-printable:;;950 East Paces Ferry Road=0D=0ASuite 2125;Atlanta;Georgia;30326;
fn:Scott Keller
end:vcard



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


Tomcat fails

2001-03-14 Thread Julie Ruiz

Hi,
I am working with Tomcat 3.2  the thing is that I need to make
transactions with a finantial institution, so I send some parameter via
the POST method but when they send me some parameters throw my servlet
the tomcat fails and appear the following message:
2001-03-13 04:24:14 - Ctx(  ): 400 R( /) null
2001-03-13 04:24:14 - Ctx(  ): IOException in: R( /) Received fatal
alert: certificate_unknown.
I use the hhtp protocol, the institution uses https.

Any idea wht is happen ???

Thanks.



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




Re: Form based auth. again...

2001-03-14 Thread Christian Rauh

Vladimir Grishchenko wrote:
 
 "Craig R. McClanahan" wrote:
  
  * Have the link on your home page exactly has you describe, but have
the link point at a "Welcome To My Application" page inside the
protected area.  The fact that this page is protected will trigger
the authentication dialog, and once the user has identified themselves,
they will be welcomed to your app.  From then on, they will have
already been authenticated.

 The interface I want to use is similar to one found here:
 http://groups.google.com/
 
 or here:
 
 http://developer.java.sun.com/developer/?frontpage-main
 
 You can see a login box on the first page, so I cannot really have a link to
 some page in protected area and make sure login form triggered...
 
 I just want to know if there are any tricks I can play to make it work
 with built in authentication, and form-based a. seems to be almost what I
 want, except the fact it must be triggered by a request to a protected resource.

I am also facing the same problem and had an idea while reading your
post. Maybe you can set a frame on your main page where you want the
login to appear. That frame links to that welcome page proposed by
Craig. What would actually be loaded on the frame is the login page. 

Havent tried it, tell me if it works if you do. And if you got any
workaround by the way. 

I also seem to have read somewhere that you can do what you want using
the JDBCRealm. Have you tried anything on that line?

Christian Rauh

[EMAIL PROTECTED]
NewTrade

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




Re: NullPointerException

2001-03-14 Thread William Au

Thanks for the reply.  But I am sure the NullPointerException is coming
from within Tomcat.  I got them while accessing a static page with
no JSP code.  So how do I test if pointers with "x.equals(null)"???
The exceptions do not show up when I access the page manually
through a browser.  They come when I run a load test and multiple
clients issuing requests at the same time.

Bill

Martin Smith wrote:

 Bryan--

 A NullpointerException is about the most common error message you can get in
 Java--right up there will classpath problems ("class not found.")  g  Basic
 problem is you're not providing enough info for people to help.

 That said, if you are trying to access variables in the request object, it's easy
 to get the nullpointer exception if the parameter isn't there (not provided by the
 form or URL.)  Basically, you have to test each one for x.equals(null) before
 proceeding.

 A shot in th dark, but at least a reply, right?  g

 mfs

 Bryan Murtha wrote:

  I've posted this same question several times and no one has ever bothered to
  reply. I guess they don't know?
 
  Original Message Follows
  From: William Au
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: NullPointerException
  Date: Mon, 12 Mar 2001 16:08:03 -0500
  I am running Tomcat 3.2.1 standalone. I am getting a ton of errors in
  tomcat.log:
  2001-03-12 12:12:57 - ContextManager: Error reading request, ignored -
  java.lang.NullPointerException
  at
  org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled
  Code)
  at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
  Code)
  at
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
  at java.lang.Thread.run(Compiled Code)
  Any idea???
  These errors came while a static page (no JSP code at all) was being
  accessed.
  Does that matter?
  Bill
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]

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


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




[Re] CTRL_LOGOFF_EVENT service solution?

2001-03-14 Thread leak

Has anyone found a way to use something like the above, 
with Tomcat, without complex registry editing?

The JavaService found at

http://www.alexandriasc.com/software/JavaService/index.html

does all this and it comes with a batch file to install it as a Tomcat 3.2 service... 
works perfectly here; no registry editing needed...

np: Underworld - Jumbo (Beaucoup Fish)

-
Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/
Send or read your emails anywhere.
-

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




UNSUBSCRIBE(ADMIN)

2001-03-14 Thread al . motion

Hi folks,
thanks for all your comments, but i have not made any changes to the email
address i subscribed with...as you can see, there is a unique problem...i am
supposed to have a my username and hostname embedded in the return address
but all that appears is :
[EMAIL PROTECTED]
instead of:
[EMAIL PROTECTED]
STILL NEED HELP ...MAIL BOX BEING FLOODED

Thanks

Attached is the message i get back from the mail daemon

- Original Message -
Return-Path:
  [EMAIL PROTECTED] 

[Hide full headers]
  Received:
  from apache.org ([64.208.42.41]) by
hopper.excite.com (InterMail vM.4.01.02.00 201-229-116) with SMTP id
 
[EMAIL PROTECTED] for
[EMAIL PROTECTED]; Wed, 14 Mar 2001
  06:19:07 -0800 
  Received:
  (qmail 10313 invoked by uid 500); 14 Mar
2001 14:18:54 - 
Mailing-List:
  contact
[EMAIL PROTECTED]; run by ezmlm 
  List-Help:
 
mailto:[EMAIL PROTECTED] 
  List-Post:
  mailto:[EMAIL PROTECTED] 
  List-Subscribe:
 
mailto:[EMAIL PROTECTED] 
 Date:
  14 Mar 2001 14:18:54 - 
Message-ID:
  [EMAIL PROTECTED]

 From:
  [EMAIL PROTECTED] 
   To:
  [EMAIL PROTECTED] 
   Delivered-To:
  responder for
[EMAIL PROTECTED] 
  Received:
  (qmail 10306 invoked from network); 14 Mar
2001 14:18:54 - 
  Received:
  from bucky-rwcmex.excite.com (HELO
bucky.excite.com) (198.3.99.218) by h31.sny.collab.net with SMTP; 14 Mar
  2001 14:18:54 - 
  Received:
  from knuckles.excite.com
([199.172.148.179]) by bucky.excite.com (InterMail vM.4.01.02.39
201-229-119-122) with
  ESMTP id
[EMAIL PROTECTED] for
 
[EMAIL PROTECTED];
 Wed, 14 Mar 2001
  06:18:29 -0800 
  MIME-Version:
  1.0 
   Content-type:
  text/plain; charset=us-ascii 
   Subject:
  ezmlm response
  
  Hi! This is the ezmlm program. I'm managing the
  [EMAIL PROTECTED] mailing list.
  
  Acknowledgment: The address
  
 [EMAIL PROTECTED]
  
  was not on the tomcat-user mailing list when I received
  your request and is not a subscriber of this list.
  
  If you unsubscribe, but continue to receive mail, you're subscribed
  under a different address than you currently use. Please look at the
  header for:
  
  'Return-Path: [EMAIL PROTECTED]'
  
  The unsubscribe address for this user would be:
  '[EMAIL PROTECTED]'.
  Just mail to that address, substituting user=host.dom for the real
  values, reply to the confirmation request, and you should receive a
message
  that you're off the list.
  
  For some mail programs, you need to make the headers visible to
  see the return path:
  
  For Eudora 4.0, click on the "Blah blah ..." button.
  For PMMail, click on "Window-Show entire message/header". 
  
  If this still doesn't work, I'm sorry to say that I can't help you.
  Please FORWARD a list message together with a note about what you're
  trying to achieve and a list of addresses that you might be subscribed
  under to my owner:
  
  [EMAIL PROTECTED]
  
  who will take care of it. My owner is a little bit slower than I am, 
  so please be patient.
  
  
  --- Administrative commands for the tomcat-user list ---
  
  I can handle administrative requests automatically. Please
  do not send them to the list address! Instead, send
  your message to the correct command address:
  
  To subscribe to the list, send a message to:
 [EMAIL PROTECTED]
  
  To remove your address from the list, send a message to:
 [EMAIL PROTECTED]
  
  Send mail to the following for info and FAQ for this list:
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
  
  Similar addresses exist for the digest list:
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
  
  To get messages 123 through 145 (a maximum of 100 per request), mail:
 [EMAIL PROTECTED]
  
  To get an index with subject and author for messages 123-456 , mail:
 [EMAIL PROTECTED]

Path args to Apache/Tomact (getPathInfo)

2001-03-14 Thread Ivan E. Markovic

I have a question concerning the req.getPathInfo() functionality.

I have a servlet that I wish to call passing in a 'path' as an 
argument which I will later use as an argument. See below (where 
LogonServlet is the Servlet and VLM is the argument)

www.vlm.com/servlets/VS/servlet/LogonServlet/VLM

This is much cleaner than:

www.vlm.com/servlets/VS/servlet/LogonServlet?CID=VLM

BUT the first URL does not work unless arguments are specified at the 
end of the URL, for example:

www.vlm.com/servlets/VS/servlet/LogonServlet/VLM?A=B

Without '?A=B' No call seems to be made to LogonServlet! Is there 
anyway that I configure the system to accept the first URL, passing 
in the 'VLM' as the path?

If this is possible I have a follow-on question. I would also like to 
create an alias to reduce the length of the URL. How would one go 
about reducing:

www.vlm.com/servlets/VS/servlet/LogonServlet/VLM

To say:

www.vlm.com/LogonServlet/VLM

Thank you for your time.

I v a n ...



-- 
Ivan Markovic
SculptLight
http://www.sculptlight.com
(+353) 87 2939256
(+353) 1 2982205

114 Lower Churchtown Rd,
Dublin 14,
Ireland.

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




Problem with mod_jk

2001-03-14 Thread Philippe Lecler

Hello,
  I installed tomcat 3.2.1 on solaris 2.5.1, it's OK.
  I compiled mod_jk with gcc-2.8.1, but when I trie to restart
  apache 1.3.19 I have the following message :

  Cannot load /soft/apache/libexec/mod_jk.so into server: ld.so.1:
/soft/apache/bin/httpd: fatal: relocation error: file
/soft/apache/libexec/mod_jk.so: symbol snprintf: referenced symbol not
found

snprintf is referenced in jk_util.c and is defined in libc.

Thanx in advance for any response.
-- 
Philippe

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




Re: NullPointerException

2001-03-14 Thread William Brogden



William Au wrote:
 
 Thanks for the reply.  But I am sure the NullPointerException is coming
 from within Tomcat.  I got them while accessing a static page with
 no JSP code.  So how do I test if pointers with "x.equals(null)"???
 The exceptions do not show up when I access the page manually
 through a browser.  They come when I run a load test and multiple
 clients issuing requests at the same time.
 
 Bill
 

x.equals( null ) will in fact cause a NullPointerException

You must use  if( x == null ) to test.

WBB

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




RE: setContentType / File download

2001-03-14 Thread Stefán F. Stefánsson

oh goodie... someone else who has this problem!

I battled this one for a long time and finally, microsoft sent out
the following article on their web:
http://support.microsoft.com/support/kb/articles/Q279/6/67.ASP

And here is another article which I find interesting:
http://support.microsoft.com/support/kb/articles/Q267/9/91.ASP

My guess... M$ tried to fix the bug in the later one but screwed up
somewhere along the line which resulted in the first one.

Anyways.  This is due to one of the very few *acknowledged* (by
Microsoft I mean) bugs in IE 5.5 so sorry, nothing you can do about
it!  but on the bright side... it's nothing you did wrong either ;o)
(this is what I'm trying to convince myself of after spending waaayyy to
much time on this).

Regards, Stefan.

p.s. If you're using tomcat I'd suggest you use this code instead of
what you have (just for readability):
response.setContentType("application/msexcel");
response.setHeader("Content-Disposition","attachment;filename=TUInventor
y.csv");

p.p.s.
I solved this by checking the "User-Agent" header in the request and if
it was IE5.5 I don't set the Content disposition header.  This pops up
the Save file/open dialog box but if you choose to save you'll get a
garbled name...  but at least you'll get the file!

-Original Message-
From: Gerd Trautner [mailto:[EMAIL PROTECTED]]
Sent: 14. mars 2001 08:08
To: tomcat-user
Subject: setContentType / File download


Hi tomcat-user,

i have some troubles using the setContentType method.
I want to generate a CSV file of my database data and send it to the
browser. the browser should then say "save file as filenam.csv" ...

what i do is:

response.setContentType("application/msexcel;name=\"TUInventory.csv\"\nC
ontent-Disposition: attachment;filename=TUInventory.csv;");

this works for netscape browsers, but ie wants to save index.html.

any tips?

Gerd



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


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




turn off HTTP session at server level

2001-03-14 Thread William Au

I am running Tomcat 3.2.1.

Is there any way to turn off HTTP sessions at the server level?

I want to avoid putting the page directive %@ page session="false" %
in every single one of my page.

Bill


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




Setting Java Parameters

2001-03-14 Thread Scott T. Keller

All:

I am getting java stack overflow messages during peak times and it kills
tomcat.  What are some good heavy java params I can use in the startup
script?

Desperate!

Thanks as always.


begin:vcard 
n:Keller;Scott
tel;cell:678-296-3767
tel;fax:404-287-8549
tel;work:404-287-8400
x-mozilla-html:FALSE
version:2.1
adr;quoted-printable:;;950 East Paces Ferry Road=0D=0ASuite 2125;Atlanta;Georgia;30326;
fn:Scott Keller
end:vcard



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


detecting shutdown

2001-03-14 Thread David Wall

Is there something like the web.xml's "load on startup" that can be
triggered when the Tomcat has been requested to shutdown?  I'd like to be
able to do "global" cleanup in such a situation.

I know that an unloaded servlet will be called, but it's not true that being
unloaded means that Tomcat is stopping.

Thanks,
David


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




Socket write errors on GIFS and CSS - what do they mean?

2001-03-14 Thread illan

Hi,

Using IE 5 and Tomcat3.2.1, Tomcat reports the following socket 
errors on every access to certain resources (a CSS and some 
GIFS) on various pages.  The error does not occur on first access 
to the resources, that is after clearing the browser cache. Whether 
or not the error occurs, the resources themselves appear on the 
page. (The browser is set to get resources from the server on each 
visit to the page). The strange thing is that it is always the same 
GIFS that give the error, yet there are other GIFS on the page that 
never do! 

Using Netscape 4.75, the errors do not happen. 

Can anyone explain what is going on?

2001-03-14 05:12:20 - Ctx( /webimgview321 ): IOException in: R( 
/webimgview321 + /webimgview.css + null) Connection aborted by 
peer: socket write error
2001-03-14 05:12:21 - Ctx( /webimgview321 ): IOException in: R( 
/webimgview321 + /images/sun_height30.gif + null) Connection 
aborted by peer: socket write error







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




Is the path set correctly

2001-03-14 Thread Kemp Randy-W18971

When I run Tomcat 3.2 on Solaris 5.6 with Apache, and try to operate the Tomcat 
examples:

http://pdsweb.ecg.csg.mot.com:8080/examples/jsp/dates/date.jsp

I get Error: 500
Location: /examples/jsp/dates/date.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSP

or

Root cause: 
java.lang.IllegalArgumentException: Unknown argument

When I look at the Jasper logs, I see:

2001-03-14 07:22:59 - JspEngine -- /jsp/dates/date.jsp
2001-03-14 07:22:59 -ServletPath: /jsp/dates/date.jsp
2001-03-14 07:22:59 -   PathInfo: null
2001-03-14 07:22:59 -   RealPath: 
/usr2/jakarta-tomcat-3.2.1/webapps/examples/jsp/dates/date.jsp
2001-03-14 07:22:59 - RequestURI: /examples/jsp/dates/date.jsp
2001-03-14 07:22:59 -QueryString: null
2001-03-14 07:22:59 - Request Params: 
2001-03-14 07:22:59 - Classpath according to the Servlet Engine is: 
/usr2/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes

Could the Pathinfo being null and the QueryString being null indicate incorrect path 
settings on Unix, thereby contributing to the problem? 

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




HELP : TOMCAT 3.2 Configuration : File not found

2001-03-14 Thread Jerome Fauvet

Hello,

I am trying to use Tomcat 3.2 with windows 98.
I have tried to use examples of a book.
When I use these examples, I have always the same error message :

XSL error : Could not parse C:\jakarta-tomcat\webapps\ROOT\deptfo.xsl 
XSL Error : SAX Exception
org.apache.xalan.xslt.XSLProcessorException : File 
"C:\jakarta-tomcat\webapps\ROOT\depfo.xsl 
not found

And the file is there with the good name !!!

My Autoexec.bat FILE :

mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi) 
mode con codepage select=850 
keyb fr,,C:\WINDOWS\COMMAND\keyboard.sys 
C:\WINDOWS\COMMAND\doskey.com

SET JAVA_HOME=C:\jdk1.3 
SET TOMCAT_HOME=C:\jakarta-tomcat 
SET PATH=%PATH%;.;c:\jakarta-tomcat\bin 
SET PATH=%PATH%;C:\ORAWIN95\BIN;C:\JDK1.3\BIN
SET CLASSPATH=.;C:\JDK1.3\LIB;C:\jdk1.3\jre\lib\rt.jar 
rem SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\regexp.jar 
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\bsf.jar 
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\bsfengines.jar 
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\xml.jar 
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\xerces.jar 
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\fop_bin_0_13_0.jar 
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext; 
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\xalan.jar 
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\lib\tools.jar

If you have an answer it will be a great help for me. 
I have spent a lot of time trying to correct this problem.

Thank You for Your help


Jrme Fauvet
Universit de Cergy-Pontoise
Service Informatique de Gestion et Rseaux
33 Blvd du Port
95011 Cergy-Pontoise Cedex
Tel : 01.34.25.63.34
E_mail : [EMAIL PROTECTED]

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




Problem with ErrorDocument 404 setup to a JSP page

2001-03-14 Thread Christophe Porteneuve

Hey all,

I'm trying to setup a Tomcat-run JSP page as the local URL of a
ErrorDocument 404 directive in a virtual host on my Apache web server.

The local URL may, depending on whether I'm in dev or prod environment, use
an Apache alias that translates to a Tomcat context. That is, featuring
some leading "/foo/," where "/foo" is a httpd.conf's Alias directive as
well as a server.xml's Context node "path" attribute.

The thing is, such a setup works fine on my configuration with a HTML file
or Perl script. Yet it refuses to work for a JSP file. It seems to work
when the URL is provided as an external one ("http://..."), which I want to
avoid like plague since it implies more maintenance and, furthermore,
strips out the 404 code in the process.

What am I forgetting or doing wrong?

PS: Replies copied to the email below appreciated, since I'm not currently
reading the list itself.

Thanks!

--
Christophe @ Posse42.net
L'API qui chante du potager du Web.
Email : [EMAIL PROTECTED]
http://www.posse42.net

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/IT/TW d- s+: a-- C++(+++)$ UBL+(+++) P--- L+ !E W+++$ N++ o? K?
w++(+++)$ O M(+) V? PS+(++) PE+ Y+ PGP+++ t-- 5 X+@ R+ tv- b+++
DI+ !D G++ e+++* h r++()+++ y+@
--END GEEK CODE BLOCK--



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




RE: Is the path set correctly

2001-03-14 Thread Randy Layman


In short, no.  If you consider a URI:
protocol:port//path/to/resource?QueryString.  The QueryString in the Jasper
log is this same query string and doesn't have anything to do with compiling
the JSP.  Its possible to create a servlet that responds to all requests
that contain it and take a parameter of the remainder of the request.  In
the example above, the servlet's address might be path/to and take the value
of /resource as a parameter.  This is the PathInfo and, again, it doesn't
affect compiling.

What little of the stack trace you have included is very common, but
I can't remember the answer right now.  Search the mailing list archives and
the answer should be there.

Randy

-Original Message-
From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 10:27 AM
To: '[EMAIL PROTECTED]'
Subject: Is the path set correctly


When I run Tomcat 3.2 on Solaris 5.6 with Apache, and try to operate the
Tomcat examples:

http://pdsweb.ecg.csg.mot.com:8080/examples/jsp/dates/date.jsp

I get Error: 500
Location: /examples/jsp/dates/date.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSP

or

Root cause: 
java.lang.IllegalArgumentException: Unknown argument

When I look at the Jasper logs, I see:

2001-03-14 07:22:59 - JspEngine -- /jsp/dates/date.jsp
2001-03-14 07:22:59 -ServletPath: /jsp/dates/date.jsp
2001-03-14 07:22:59 -   PathInfo: null
2001-03-14 07:22:59 -   RealPath:
/usr2/jakarta-tomcat-3.2.1/webapps/examples/jsp/dates/date.jsp
2001-03-14 07:22:59 - RequestURI: /examples/jsp/dates/date.jsp
2001-03-14 07:22:59 -QueryString: null
2001-03-14 07:22:59 - Request Params: 
2001-03-14 07:22:59 - Classpath according to the Servlet Engine is:
/usr2/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes

Could the Pathinfo being null and the QueryString being null indicate
incorrect path settings on Unix, thereby contributing to the problem? 

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

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




JSP pages not updating?

2001-03-14 Thread Mick Sullivan

Can someone please tell me why my JSP pages arnt updating when I make 
changes to them.
I have flushed the cache, made obvious changes to the files and even moved 
the entire JSP folder to another directory, yet when I point the browser to: 
  http://localhost:8080/project/jsp/index.html the pages and their links 
still exist???
Anyone know what is wrong?
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Re: web.xml reading (?) problem

2001-03-14 Thread Rob Tanner

Are you talking about the default web.xml in tomcat's conf directory, 
or an application specific web.xml in your application's WEB-INF 
directory?  Also, is there other evidence that the web.xml file is not 
beibg read (other specifications that are being ignored)?  You might 
also try setting permissions to 000 (instead of 777) to see if tomcat 
complains about not being able to read the file, and have you looked at 
the logs tomcat generates and have you up'd the logging level to get 
more detail?  The other thought that comes to mind is have you checked 
your spelling?  I'm an ace typo kinda guy, and whenever I have a really 
wierd problem (your's falls into that category), that's the first thing 
I look for -- oops, index starts with an "i" doesn't it!  And yup 
[sic], I do that kind of thing to myself all the time.

-- Rob
--On Wednesday, March 14, 2001 03:23:19 PM +0530 Manjul Sahay 
[EMAIL PROTECTED] wrote:

 Hi,
 I am using Tomcat 3.1 on RedHat linux 6.0 system.
 Tomcat is working fine with jsps being served.

 However, Tomcat does not seem to be reading the web.xml file in the
 WEB-INF directory of the application contexts.
 Even for the examples context of tomcat distribution i see a directory
 listing of files, even with index.jsp present in the directory but
 when executed index.jsp works just fine.

 The same version running on Windows NT machine is having no problems.
 Also I tried the same with Tomcat 3.2 :) but it didnt work either.

 Eagerly looking forward for help and suggestions.

 - manjul sahay

 P.S i even changed all permissions to 777 to make Tomcat read and
 write and do all that it wants, ;) But !


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





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]


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




notes on installing 4.0 beta on MacOS X beta

2001-03-14 Thread Miles Poindexter

After upgrading from Tomcat 3.2.1 to 4.0 beta, the weird hang problems and Hotspot JVM 
fatal errors are gone!
Here's some notes about the installation, and some possible bug info:

One problem was this method:
writer.write(s.getBytes());

where "s" is a String object and "write" is an OutputStream. If s happened to be a 
blank string, then after calling this method, nothing more could be written to the 
output stream. Since our app is creating dynamic HTML pages this way (replacing 
dynamic tags and appending to the output stream, I was getting half finished pages. 
Could this be a Tomcat 4.0 bug? It did work on earlier versions I think.

Also, just a note about the web.xml doc. I looked at one or two of the DTDs and there 
does not seem to be documentation about this:
One must put all the servlet entries at the beginning of the xml doc, and then all 
the servlet-mapping entries at the end. If you try to mix the two type of entries 
the parser complains.

example:
This works:
servlet
servlet-nameconductors/servlet-name
servlet-classConductors/servlet-class
/servlet
servlet
   
servlet-namelinkbaton/servlet-name
 servlet-classLinkBaton/servlet-class
/servlet
servlet-mapping
  servlet-nameconductors/servlet-name
  url-pattern/conductors/*/url-pattern
/servlet-mapping
servlet-mapping
  servlet-namelinkbaton/servlet-name
 
url-pattern/get/url-pattern
/servlet-mapping

This FAILS: (but its a logical way to order this, so maybe it should work? Or maybe 
the DTD should document that this is illegal?
servlet
servlet-nameconductors/servlet-name
servlet-classConductors/servlet-class
/servlet
servlet-mapping
  servlet-nameconductors/servlet-name
  url-pattern/conductors/*/url-pattern
/servlet-mapping

servlet
servlet-namelinkbaton/servlet-name
servlet-classLinkBaton/servlet-class
/servlet

servlet-mapping
servlet-namelinkbaton/servlet-name
url-pattern/get/url-pattern
/servlet-mapping

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




getInitParameter return null

2001-03-14 Thread jnw

hello,

I have the following lines in my web.xml file

servlet
servlet-name
jsp
/servlet-name
servlet-class
org.apache.jasper.runtime.JspServlet
/servlet-class
init-param
param-namejnw/param-name
param-valuesalutjeannoel/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet

I create a jsp file with the following line:
out.println(config.getInitParameter("jnw"));
and this return me 
null
I use Tomcat 3.2 and my before with Tomcat 3.1 it was running fine.

can anybody help me?

thanks

Jean-Noel WALLEZ



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




Re: HELP : TOMCAT 3.2 Configuration : File not found

2001-03-14 Thread Ratnakar Malla

Hi,
It is the Xerces.jar classpath problem. make sure that
xerces, is first in the classpath.
Your classpath should start with Xerces.jar
-Ratnakar

--- Jerome Fauvet [EMAIL PROTECTED]
wrote:  Hello,
 
 I am trying to use Tomcat 3.2 with windows 98.
 I have tried to use examples of a book.
 When I use these examples, I have always the same
 error message :
 
 XSL error : Could not parse
 C:\jakarta-tomcat\webapps\ROOT\deptfo.xsl 
 XSL Error : SAX Exception
 org.apache.xalan.xslt.XSLProcessorException : File 
 "C:\jakarta-tomcat\webapps\ROOT\depfo.xsl 
 not found
 
 And the file is there with the good name !!!
 
 My Autoexec.bat FILE :
 
 mode con codepage prepare=((850)
 C:\WINDOWS\COMMAND\ega.cpi) 
 mode con codepage select=850 
 keyb fr,,C:\WINDOWS\COMMAND\keyboard.sys 
 C:\WINDOWS\COMMAND\doskey.com
 
 SET JAVA_HOME=C:\jdk1.3 
 SET TOMCAT_HOME=C:\jakarta-tomcat 
 SET PATH=%PATH%;.;c:\jakarta-tomcat\bin 
 SET PATH=%PATH%;C:\ORAWIN95\BIN;C:\JDK1.3\BIN
 SET
 CLASSPATH=.;C:\JDK1.3\LIB;C:\jdk1.3\jre\lib\rt.jar 
 rem SET

CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\regexp.jar
 
 SET
 CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\bsf.jar 
 SET

CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\bsfengines.jar
 
 SET
 CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\xml.jar 
 SET

CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\xerces.jar
 
 SET

CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\fop_bin_0_13_0.jar
 
 SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext; 
 SET

CLASSPATH=%CLASSPATH%;C:\jdk1.3\jre\lib\ext\xalan.jar
 
 SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\lib\tools.jar
 
 If you have an answer it will be a great help for
 me. 
 I have spent a lot of time trying to correct this
 problem.
 
 Thank You for Your help
 
 
 Jrme Fauvet
 Universit de Cergy-Pontoise
 Service Informatique de Gestion et Rseaux
 33 Blvd du Port
 95011 Cergy-Pontoise Cedex
 Tel : 01.34.25.63.34
 E_mail : [EMAIL PROTECTED]
 

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


=
Ratnakar Malla,
Electrical  Computer Engg,
Louisiana State University.


Do You Yahoo!?
Get your free @yahoo.co.in address at http://mail.yahoo.co.in

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




Re: AW: AW: Problem with mod_jk

2001-03-14 Thread Philippe Lecler

Thomas Bezdicek wrote:
 
 Hi,
 
 One more point, did you compiled mod_jk with apxs?
 if not try it that way :
 
 apxs -o
 mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
 -lposix4 -c *.c ../jk/*.c
 
 in the mod_jk-howto.html it is mentioned and it worked
 for us (but Solaris 8)
 
 regards, tom
 

Yes, I used apxs with and without -lposix4 : same problem.
I found in archive a message about this problem (on alpha, not
sun-solaris), but no answer :-(
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg09705.html

Thanx


-- 
Philippe

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




Re: JSP pages not updating?

2001-03-14 Thread Jan Labanowski

There are many tomcats out there running on many operationg systems

Who owns your $TOMCAT_HOME/work directory (should be the user who runs
tomcat).
Are you "including" something maybe?

Delete everything under the $TOMCAT_HOME/work but leave the directory.


On Wed, 14 Mar 2001, Mick Sullivan wrote:

 Can someone please tell me why my JSP pages arnt updating when I make 
 changes to them.
 I have flushed the cache, made obvious changes to the files and even moved 
 the entire JSP folder to another directory, yet when I point the browser to: 
   http://localhost:8080/project/jsp/index.html the pages and their links 
 still exist???
 Anyone know what is wrong?
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


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




Cannot create bean error?

2001-03-14 Thread Jason Kary

Hi,

I've been searching through the archives and I can't seem to find an
answer to this question.  I just upgraded to Tomcat 3.2.1 from Tomcat
3.1.1.   Everything was working fine.  Now when I try to access my
application I get the following error:



javax.servlet.ServletException:  Cannot create bean of class
com.cisco.gseit.webportal.UserLoginMI
at
jsp._0002fjsp_0002fansportal_0005fLoginProcess_0002ejspansportal_0005fLoginProcess_jsp_0._jspService(_0002fjsp_0002fansportal_0005fLoginProcess_0002ejspansportal_0005fLoginProcess_jsp_0.java:102)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)



The JSP file has the following tag:

jsp:useBean class="com.company.UserLoginMI" id="myDBBean"
scope="request" 
 jsp:setProperty  name="myDBBean" property="*" /
/jsp:useBean

I've verified UserLoginMI has a constructor with no arguements.   It
worked in 3.1.1.  Is this a known bug?

Take Care
Jason Kary




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




RE: CTRL_LOGOFF_EVENT service solution?

2001-03-14 Thread Darrell Porter

What do you mean by
"requires complex editing of the registry, which can't be done with an
install program" ?

What is so complex about the registry settings that a program can't do it?

Darrell


-Original Message-
From: Siebenmann, Joe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 5:36 AM
To: '[EMAIL PROTECTED]'
Subject: CTRL_LOGOFF_EVENT service solution?


Of the many possible solutions for solving the logoff problem when running
Tomcat as a service, most seem to be
wrappers that "allow you to run your Java application as an NT service,
blocking the CTRL_LOGOFF_EVENT" such as
http://www.eworksmart.com/jnt/

But, can you use such an application for Tomcat?  jk_nt_service points to
wrapper.properties.  Other things must happen before you try and start
org.apache.tomcat.startup.Tomcat.

TomcatWrapper.class ( used with jsrvany ) requires complex editing of the
registry, which can't be done with an install program.

Has anyone found a way to use something like the above, with Tomcat, without
complex registry editing?

Thanks,


Joe Siebenmann
Inciscent
Phone:  703-205-5927
Fax:   703-876-5973



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

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




Re: Form based auth. again...

2001-03-14 Thread Vladimir Grishchenko

Christian Rauh wrote:
 
 Vladimir Grishchenko wrote:
 
  "Craig R. McClanahan" wrote:
  
   * Have the link on your home page exactly has you describe, but have
 the link point at a "Welcome To My Application" page inside the
 protected area.  The fact that this page is protected will trigger
 the authentication dialog, and once the user has identified themselves,
 they will be welcomed to your app.  From then on, they will have
 already been authenticated.
 
  The interface I want to use is similar to one found here:
  http://groups.google.com/
 
  or here:
 
  http://developer.java.sun.com/developer/?frontpage-main
 
  You can see a login box on the first page, so I cannot really have a link to
  some page in protected area and make sure login form triggered...
 
  I just want to know if there are any tricks I can play to make it work
  with built in authentication, and form-based a. seems to be almost what I
  want, except the fact it must be triggered by a request to a protected resource.
 
 I am also facing the same problem and had an idea while reading your
 post. Maybe you can set a frame on your main page where you want the
 login to appear. That frame links to that welcome page proposed by
 Craig. What would actually be loaded on the frame is the login page.
 

I'm thinking along the same lines... You could also embed a tiny invisible
image in protected area to your front page (named /welcome, for example)
and define your login form as /welcome?mode=login, so whenever you're not
authorized welcome page is smart to display you a login form... The problem
here is that it's difficult to display a meaningful message that a user needs 
to login whenever (s)he actually tries to get a real protected page since
it'll always display /welcome?mode=login. Something like that...

 Havent tried it, tell me if it works if you do. And if you got any
 workaround by the way.
 
 I also seem to have read somewhere that you can do what you want using
 the  JDBCRealm. Have you tried anything on that line?

As far as I understand JDBCRealm has little to do with it. It's just a mechanism
facilitating authentication, you give it [name, password, role] and it tells you
if you're good to go using a database instead of tomcat-users.xml. that's it.

 
 Christian Rauh
 
 [EMAIL PROTECTED]
 NewTrade
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: just making sure

2001-03-14 Thread JeremyRayYoo

My question was that when you have a servlet, a new one you wrote lets say 
Test.java, do you have to explicitly put an entry in the web.xml for it to be 
executed.  For example: 

 servlet
 servlet-name
 Test
 /servlet-name
 servlet-class
 Test
 /servlet-class
 /servlet

I tried to execute a new servlet by just putting the Test.class file in the 
'classes' folder in Web-inf directory, however the server returns a 404 
message. So I am thinking that  you have to put an entry in the web.xml for 
the server to know what to execute. And if this is the case and you have an 
application that requires several servlets do you have to put all the 
servlets in the web.xml file.

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




Re: detecting shutdown

2001-03-14 Thread Daniel Lopez

Hi David,

AFAIK there's no such a thing in any servlet container that I've worked with,
but I might be wrong as my experience with Tomcat is quite limited. However,
this wouldn't be a logical option as the same that you say about
unloaded!=tomcat stopping can be said of loaded. AFAIK loaded!=Tomcat just
started but it just means tomcat just loaded the servlet. Thus, if Tomcat
decides to unload/reload your servlet for any reason and then tomcat is stopped
you would end up with multiple initialisations and just one finalisation.
Ummm, I think that with JSDK 2.3 you might try to do what yoy want with the
class ServletContextListener, which is notified when the context is initialised
or destroyed. With JSDK 2.2 I'm not sure how could one verify that everything is
really shutting down before clearing things up. We solved it by using just ONE
servlet which acts as ServletController and who initialises everything when
being loaded and cleans everything when unloaded, but I understand this is not a
general solution.
I'm afraid I can't help you much with JSDK2.2. May be someone out there? ;)
regards,
Dan

David Wall wrote:

 Is there something like the web.xml's "load on startup" that can be
 triggered when the Tomcat has been requested to shutdown?  I'd like to be
 able to do "global" cleanup in such a situation.

 I know that an unloaded servlet will be called, but it's not true that being
 unloaded means that Tomcat is stopping.

 Thanks,
 David

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


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




Reloading Pages....Help

2001-03-14 Thread Mick Sullivan

Hi
I need some help here. Does Tomcat cache JSP pages? I ask this because any 
changes I make to my JSP pages arnt actually saving. I am definetly changing 
the right pages in the folder
C:\tomcat\webapps\project\jsp\
When i point my browser to
http://localhost:8080/project/jsp/anyJSPFile.jsp
the changes do not show???
I have even moved the JSP folder, yet the pages (without their images and 
backgrounds) show on the browser?
Someone please help,
Thanks in advance, Mick
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Re: JSP pages not updating?

2001-03-14 Thread TAI Wai Wang, Leo

I had this problem before. It is because i config tomcat wrongly. Try to see
configuration, especially tomcat's the content path, apache's virtual hosts
and alias.

Leo
- Original Message -
From: "Mick Sullivan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 14, 2001 4:07 PM
Subject: JSP pages not updating?


 Can someone please tell me why my JSP pages arnt updating when I make
 changes to them.
 I have flushed the cache, made obvious changes to the files and even moved
 the entire JSP folder to another directory, yet when I point the browser
to:
   http://localhost:8080/project/jsp/index.html the pages and their links
 still exist???
 Anyone know what is wrong?
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Odd problem restarting tomcat

2001-03-14 Thread Andy C

Under Tomcat 3.2.1,Apache 1.3.12,mm.mysql.2.0.4,mysql 3.3.28,NT 2000

On one machine when it is restarted some jsp pages work correctly while
others
give an error.  See below for the full error.  The pages are generated from
jsp from
data in a mysql database.  Only by carefully restarting the apache, tomcat
and
mysql services  in the correct order with a delay between the restarts do
the pages
start working correctly.  The pages will then work correctly until the
server is restarted.

I'm at a bit lost as to which component is actually causing the trouble !
The fault
does not appear on a test machine that does restart and work without user
intervention
Because the main server is under load, could it be that the jsp pages are
attempting
to access resources that are not yet available causing a permanent failure ?

Andy C
Editor R2 Project
http://www.r2-dvd.org

Full error is
org.apache.jasper.JasperException
 at java.lang.Throwable.(Compiled Code)
 at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(Compiled
Code)
 at org.apache.jasper.runtime.JspRuntimeLibrary.introspect(Compiled Code)
 at _0002farticle_0002ejsp_0002farticle_jsp_0._jspService(Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code)
 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)

Root cause:
java.lang.reflect.InvocationTargetException
 at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(Compiled
Code)
 at org.apache.jasper.runtime.JspRuntimeLibrary.introspect(Compiled Code)
 at _0002farticle_0002ejsp_0002farticle_jsp_0._jspService(Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code)
 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)






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




How to make tomcat parse a *.HTM File ??

2001-03-14 Thread Matthias Barmeier

Hi,


I have a question:

What do I have to do to make JSP code work in *.htm files.
I would like to automatically add an authorization prefix to
any *.html and *.htm page of my old web. The java program works
fine but the % authorize this code % does not work.

I use IIS and Tomcat 3.1. 

Can anyone help ??

Ciao
Matze

My uriworkermap

#
# Simple worker configuration file
#

# Mount the servlet context to the ajp12 worker
/servlet/*=ajp12

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

# Advanced mount of the examples context
# /examples/*.jsp=ajp12
# /examples/servlet/*=ajp12
/*.jsp=ajp12
/*.htm=ajp12


My web.xml

I added this to ../conf/web.xml after teh *.jsp entry


servlet-mapping
servlet-namehtmtojsp/servlet-name
url-pattern*.htm/url-pattern
/servlet-mapping

/*
Dipl.-Inform. Matthias BarmeierTel: +49 (0)30 79 70 72 87
bit-side GmbH  Fax: +49 (0)30 79 70 72 88
Salzufer 14a Aufgang D Email: [EMAIL PROTECTED]
10587 Berlin   WWW: http://www.bit-side.com
*/


 

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




Re: JSP, sessions: how to notify bean about the session end?

2001-03-14 Thread Tony Keith

Any examples or resources for this?

William Brogden wrote:

 
 "Sergey V. Udaltsov" wrote:
 
 Hello all
 
 My JSPs uses some session-scoped bean. This bean, among other duties, is
 responsible for logging in and out of some app server. I would like the
 bean to perform autologout on the session end. Is it possible? How?
 AFAIK usual finalize can be called ages after the object is really free
 - so I do not like this way. Any ideas?
 
 Regards,
 
 Sergey
 
 
 Take a look at the HttpSessionBindingListener interface. If your
 Bean implements this class, you can get a notification when
 the session times out or is otherwise invalidate.

 
-- 
Tony Keith


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




Re: Form based auth. again...

2001-03-14 Thread Daniel Lopez

Hi Vladimir,

snipped for brevity

 I'm thinking along the same lines... You could also embed a tiny invisible
 image in protected area to your front page (named /welcome, for example)
 and define your login form as /welcome?mode=login, so whenever you're not
 authorized welcome page is smart to display you a login form... The problem
 here is that it's difficult to display a meaningful message that a user needs
 to login whenever (s)he actually tries to get a real protected page since
 it'll always display /welcome?mode=login. Something like that...

On that regards. Whe we developed our own authentication mechanisms, we also took into
account this
specific problem and what we did was the following:
.- The authentication system tries to authorise the user.
.- If it fails, it returns a meaningful error code as no_log_in, wrong_password,
session_timed_out...
.- The system then checks if there's a specific forward page  for the error code,
somewhere in the configuration file
(something like forward.page.wrong_password="/check_pass.html")
.- If it exists, it forwards control to the specific page, otherwise it forwards 
control
to the default page which would
be the login page.
This way, if you want to return a meaningful message you just have to create an html
file with the proper message
and configure it appropriately. It's not mandatory but in some situations and depending
on the "level of knowledge"
of your users, this is a very useful feature.
Of course, this would imply a more complex authentication system, even though not much,
and it would be something
outside the spec.

Just my 2c,
Dan

  Havent tried it, tell me if it works if you do. And if you got any
  workaround by the way.
 
  I also seem to have read somewhere that you can do what you want using
  the  JDBCRealm. Have you tried anything on that line?

 As far as I understand JDBCRealm has little to do with it. It's just a mechanism
 facilitating authentication, you give it [name, password, role] and it tells you
 if you're good to go using a database instead of tomcat-users.xml. that's it.

 
  Christian Rauh
 
  [EMAIL PROTECTED]
  NewTrade
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]

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


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




RE: detecting shutdown

2001-03-14 Thread Duck-Jin Chun

Instead of looking for something Tomcat/Serlvet2.2 specific, how about
using Runtime.addShutdownHook(Thread)?

My vm version is 1.2.2 so I have not been able to use this new feature.
I was forced to use the (deprecated) Runtime.runFinalizersOnExit()
method instead.

Let me know if you have any luck with addShutdownHook().

hth,
-Duck

-Original Message-
From: Daniel Lopez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 11:41 AM
To: [EMAIL PROTECTED]
Subject: Re: detecting shutdown


Hi David,

AFAIK there's no such a thing in any servlet container that I've worked
with,
but I might be wrong as my experience with Tomcat is quite limited.
However,
this wouldn't be a logical option as the same that you say about
unloaded!=tomcat stopping can be said of loaded. AFAIK loaded!=Tomcat
just
started but it just means tomcat just loaded the servlet. Thus, if
Tomcat
decides to unload/reload your servlet for any reason and then tomcat is
stopped
you would end up with multiple initialisations and just one
finalisation.
Ummm, I think that with JSDK 2.3 you might try to do what yoy want with
the
class ServletContextListener, which is notified when the context is
initialised
or destroyed. With JSDK 2.2 I'm not sure how could one verify that
everything is
really shutting down before clearing things up. We solved it by using
just ONE
servlet which acts as ServletController and who initialises everything
when
being loaded and cleans everything when unloaded, but I understand this
is not a
general solution.
I'm afraid I can't help you much with JSDK2.2. May be someone out there?
;)
regards,
Dan

David Wall wrote:

 Is there something like the web.xml's "load on startup" that can be
 triggered when the Tomcat has been requested to shutdown?  I'd like to
be
 able to do "global" cleanup in such a situation.

 I know that an unloaded servlet will be called, but it's not true that
being
 unloaded means that Tomcat is stopping.

 Thanks,
 David

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


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

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




Re: Reloading Pages....Help

2001-03-14 Thread Andy C

This might not be the correct way to do it but shut down the tomcat server
and
delete the appropriate files from the work directory
(tomcat\work\locakhost_8080 I
guess.)

Andy C
Editor R2 Project
http://www.r2-dvd.org

- Original Message -
From: "Mick Sullivan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 14, 2001 4:47 PM
Subject: Reloading PagesHelp


 Hi
 I need some help here. Does Tomcat cache JSP pages? I ask this because any
 changes I make to my JSP pages arnt actually saving. I am definetly
changing
 the right pages in the folder
 C:\tomcat\webapps\project\jsp\
 When i point my browser to
 http://localhost:8080/project/jsp/anyJSPFile.jsp
 the changes do not show???
 I have even moved the JSP folder, yet the pages (without their images and
 backgrounds) show on the browser?
 Someone please help,



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




Tomcat - Apache : performance

2001-03-14 Thread Bart Ronsyn

People,

We run an Apache Webserver and host websites for companies.
I wonder how much servlets and Tomcat slow down the loading
of the webpages on our webserver ?  The servlets will be used to implement 
chatboxes, database applications f.e. ...
Should I consider to install Tomcat on our other server machine
to avoid decreasing the performance of our webserver ?

Thanks a lot !

Bart,
Besite
www.besite.be
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




RE: How to make tomcat parse a *.HTM File ??

2001-03-14 Thread Christopher Kirk


Have you tried setting  *.htm=ajp12, AND in httpd.conf move the mod_jk
higher up the list of modules (I believe that they are declared in a
'search' order)?

- Chris.


 -Original Message-
 From: Matthias Barmeier [mailto:[EMAIL PROTECTED]]
 Sent: 14 March 2001 17:01
 To: [EMAIL PROTECTED]
 Subject: How to make tomcat parse a *.HTM File ??
 
 
 Hi,
 
 
 I have a question:
 
   What do I have to do to make JSP code work in *.htm files.
   I would like to automatically add an authorization prefix to
   any *.html and *.htm page of my old web. The java program works
   fine but the % authorize this code % does not work.
   
   I use IIS and Tomcat 3.1. 
   
 Can anyone help ??
 
 Ciao
   Matze
 
 My uriworkermap
 
 #
 # Simple worker configuration file
 #
 
 # Mount the servlet context to the ajp12 worker
 /servlet/*=ajp12
 
 # Mount the examples context to the ajp12 worker
 /examples/*=ajp12
 
 # Advanced mount of the examples context
 # /examples/*.jsp=ajp12
 # /examples/servlet/*=ajp12
 /*.jsp=ajp12
 /*.htm=ajp12
 
 
 My web.xml
 
 I added this to ../conf/web.xml after teh *.jsp entry
 
   
   servlet-mapping
   servlet-namehtmtojsp/servlet-name
   url-pattern*.htm/url-pattern
   /servlet-mapping
 
 /*
 Dipl.-Inform. Matthias BarmeierTel: +49 (0)30 79 70 72 87
 bit-side GmbH  Fax: +49 (0)30 79 70 72 88
 Salzufer 14a Aufgang D Email: 
 [EMAIL PROTECTED]
 10587 Berlin   WWW: 
http://www.bit-side.com
*/


 

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

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




RE: JSP, sessions: how to notify bean about the session end?

2001-03-14 Thread Michael Wentzel

 Any examples or resources for this?
 
 William Brogden wrote:
 
  
  "Sergey V. Udaltsov" wrote:
  
  Hello all
  
  My JSPs uses some session-scoped bean. This bean, among 
 other duties, is
  responsible for logging in and out of some app server. I 
 would like the
  bean to perform autologout on the session end. Is it possible? How?
  AFAIK usual finalize can be called ages after the object 
 is really free
  - so I do not like this way. Any ideas?
  
  Regards,
  
  Sergey
  
  
  Take a look at the HttpSessionBindingListener interface. If your
  Bean implements this class, you can get a notification when
  the session times out or is otherwise invalidate.

What kind of examples/resources do you need?  All you should need is
public class MyBean implements javax.servlet.http.HttpSessionBindingListener
[,]

and then implement the valueUnbound and valueBound methods in your bean.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!

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




Re: Form based auth. again...

2001-03-14 Thread Vladimir Grishchenko

Daniel Lopez wrote:
 
 Hi Vladimir,
 
 snipped for brevity
 
  I'm thinking along the same lines... You could also embed a tiny invisible
  image in protected area to your front page (named /welcome, for example)
  and define your login form as /welcome?mode=login, so whenever you're not
  authorized welcome page is smart to display you a login form... The problem
  here is that it's difficult to display a meaningful message that a user needs
  to login whenever (s)he actually tries to get a real protected page since
  it'll always display /welcome?mode=login. Something like that...
 
 On that regards. Whe we developed our own authentication mechanisms, we also took 
into
 account this
 specific problem and what we did was the following:
 .- The authentication system tries to authorise the user.
 .- If it fails, it returns a meaningful error code as no_log_in, wrong_password,
 session_timed_out...
 .- The system then checks if there's a specific forward page  for the error code,
 somewhere in the configuration file
 (something like forward.page.wrong_password="/check_pass.html")
 .- If it exists, it forwards control to the specific page, otherwise it forwards 
control
 to the default page which would
 be the login page.
 This way, if you want to return a meaningful message you just have to create an html
 file with the proper message
 and configure it appropriately. It's not mandatory but in some situations and 
depending
 on the "level of knowledge"
 of your users, this is a very useful feature.
 Of course, this would imply a more complex authentication system, even though not 
much,
 and it would be something
 outside the spec.

I understand that you can write your own authentication mechanism, but I was looking 
into
container based authentication... I think the scope of the original question is 
escaping
from this thread

Thanks anyway...


 
 Just my 2c,
 Dan
 
   Havent tried it, tell me if it works if you do. And if you got any
   workaround by the way.
  
   I also seem to have read somewhere that you can do what you want using
   the  JDBCRealm. Have you tried anything on that line?
 
  As far as I understand JDBCRealm has little to do with it. It's just a mechanism
  facilitating authentication, you give it [name, password, role] and it tells you
  if you're good to go using a database instead of tomcat-users.xml. that's it.
 
  
   Christian Rauh
  
   [EMAIL PROTECTED]
   NewTrade
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Unknown element urn in TLD, taglib, help

2001-03-14 Thread Joel Cordonnier


Hi !

In my application, the JSP pages use tag libraries.
In the tomcat 3.2.1 jasper.log file the is the
WARNING:
Unknown element urn in TLD
What's that ?
Thanks
Joel

___
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, 
Yahoo! Messenger : http://fr.messenger.yahoo.com

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




Set an application's working path

2001-03-14 Thread Alexander Batzios

Hello.

I am using a JSP file to call a class, say myClass, which is a pure java 
application. From that class, I then need to call a method, say myMethod. The 
part of the JSP file that does the above is like:

myClass mc = new myClass(parameters);
mc.myMethod();

Part of myMethod() functionality is reading/writting files. Well, the thing is 
that it only works in the /bin directory of tomcat (where the startup,shutdown 
scripts are). That is, it expects to find files there, and it creates files 
there. How can I change it's working path to a virtual path of the webserver? 
Or to where the JSP file that calls it lives?

Any help will be greatly appreciated.

Thanks,
alex


 Get your FREE web-based e-mail and newsgroup access at:
http://MailAndNews.com

 Create a new mailbox, or access your existing IMAP4 or
 POP3 mailbox from anywhere with just a web browser.



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




RE: Tomcat - Apache : performance

2001-03-14 Thread Darrell Porter

If you're doing this as a service provider, yes - put Tomcat on at least one
other server.  Ideally, you would load-balance multiple Apache servers and
multiple Tomcat servers.

Darrell


-Original Message-
From: Bart Ronsyn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 9:17 AM
To: [EMAIL PROTECTED]
Subject: Tomcat - Apache : performance


People,

We run an Apache Webserver and host websites for companies.
I wonder how much servlets and Tomcat slow down the loading
of the webpages on our webserver ?  The servlets will be used to implement 
chatboxes, database applications f.e. ...
Should I consider to install Tomcat on our other server machine
to avoid decreasing the performance of our webserver ?

Thanks a lot !

Bart,
Besite
www.besite.be
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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

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




AW: RE: How to make tomcat parse a *.HTM File ??

2001-03-14 Thread Matthias Barmeier

Hi,

*.htm=ajp12 I have set this and tomcat delivers the html files, but
tomcat ignores all the %   % tags.

I use IIS 4.0 ... but as mentioned the tomcat already receives the html
files
but does not parse the content.

any Ideas ???


-Ursprngliche Nachricht-
Von: Christopher Kirk [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 14. Mrz 2001 18:22
An: '[EMAIL PROTECTED]'
Betreff: RE: How to make tomcat parse a *.HTM File ??



Have you tried setting  *.htm=ajp12, AND in httpd.conf move the mod_jk
higher up the list of modules (I believe that they are declared in a
'search' order)?

- Chris.


 -Original Message-
 From: Matthias Barmeier [mailto:[EMAIL PROTECTED]]
 Sent: 14 March 2001 17:01
 To: [EMAIL PROTECTED]
 Subject: How to make tomcat parse a *.HTM File ??


 Hi,


 I have a question:

   What do I have to do to make JSP code work in *.htm files.
   I would like to automatically add an authorization prefix to
   any *.html and *.htm page of my old web. The java program works
   fine but the % authorize this code % does not work.

   I use IIS and Tomcat 3.1.

 Can anyone help ??

 Ciao
   Matze

 My uriworkermap

 #
 # Simple worker configuration file
 #

 # Mount the servlet context to the ajp12 worker
 /servlet/*=ajp12

 # Mount the examples context to the ajp12 worker
 /examples/*=ajp12

 # Advanced mount of the examples context
 # /examples/*.jsp=ajp12
 # /examples/servlet/*=ajp12
 /*.jsp=ajp12
 /*.htm=ajp12


 My web.xml

 I added this to ../conf/web.xml after teh *.jsp entry


   servlet-mapping
   servlet-namehtmtojsp/servlet-name
   url-pattern*.htm/url-pattern
   /servlet-mapping

 /*
 Dipl.-Inform. Matthias BarmeierTel: +49 (0)30 79 70 72 87
 bit-side GmbH  Fax: +49 (0)30 79 70 72 88
 Salzufer 14a Aufgang D Email:
 [EMAIL PROTECTED]
 10587 Berlin   WWW:
http://www.bit-side.com
*/




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

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


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




Re: Path args to Apache/Tomact (getPathInfo)

2001-03-14 Thread Milt Epstein

On Wed, 14 Mar 2001, Ivan E. Markovic wrote:

 I have a question concerning the req.getPathInfo() functionality.
 
 I have a servlet that I wish to call passing in a 'path' as an 
 argument which I will later use as an argument. See below (where 
 LogonServlet is the Servlet and VLM is the argument)
 
 www.vlm.com/servlets/VS/servlet/LogonServlet/VLM
 
 This is much cleaner than:
 
 www.vlm.com/servlets/VS/servlet/LogonServlet?CID=VLM
 
 BUT the first URL does not work unless arguments are specified at the 
 end of the URL, for example:
 
 www.vlm.com/servlets/VS/servlet/LogonServlet/VLM?A=B
 
 Without '?A=B' No call seems to be made to LogonServlet! Is there 
 anyway that I configure the system to accept the first URL, passing 
 in the 'VLM' as the path?

Can you tell what *is* being called?  (If you can't tell directly, you
might be able to get more info from the logs, either the tomcat logs
or the apache logs).

And how do you have things set up to get to tomcat, i.e. what is your
context path?  It looks like you have two directories in the context
path in the URL (/servlets/VS), and I haven't really seen that before
(not to say you can't do it, of course :-).

I'm guessing that it might be that apache knows to forward
/servlets/VS/servlet/LogonServlet to tomcat, but not
/servlets/VS/servlet/LogonServlet/VLM.  If that's the case, you might
have to add some directives to your apache/tomcat httpd.conf file to
get it to work right (e.g. ApJServMount's).


 If this is possible I have a follow-on question. I would also like to 
 create an alias to reduce the length of the URL. How would one go 
 about reducing:
 
 www.vlm.com/servlets/VS/servlet/LogonServlet/VLM
 
 To say:
 
 www.vlm.com/LogonServlet/VLM

Again, you might be able to do this with some appropriate ApJServMount
directives.  It also might depend on how you have things set up with
tomcat, e.g. what the contexts are and what the paths to them are.

Hope this gives you some ideas.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: getInitParameter return null

2001-03-14 Thread Milt Epstein

On Wed, 14 Mar 2001 [EMAIL PROTECTED] wrote:

 hello,
 
 I have the following lines in my web.xml file
 
 servlet
 servlet-name
 jsp
 /servlet-name
 servlet-class
 org.apache.jasper.runtime.JspServlet
 /servlet-class
 init-param
 param-namejnw/param-name
 param-valuesalutjeannoel/param-value
 /init-param
 load-on-startup
 -2147483646
 /load-on-startup
 /servlet
 
 I create a jsp file with the following line:
 out.println(config.getInitParameter("jnw"));
 and this return me 
 null
 I use Tomcat 3.2 and my before with Tomcat 3.1 it was running fine.

Well, I don't know what it means that it worked with 3.1 and isn't
with 3.2, but we just had a bit of discussion of get init-param's to
work with JSP's.  For one thing, you have to use a jsp-file tag
instead of servlet-class in web.xml.  And you might also have to set
up a servlet-mapping so that you can use a *.jsp style URL.  You can
check the archives for more info.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: Odd problem restarting tomcat

2001-03-14 Thread Darrell Porter

How are you starting these services on production?

Is it different on dev?



Darrell


-Original Message-
From: Andy C [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 8:58 AM
To: [EMAIL PROTECTED]
Subject: Odd problem restarting tomcat


Under Tomcat 3.2.1,Apache 1.3.12,mm.mysql.2.0.4,mysql 3.3.28,NT 2000

On one machine when it is restarted some jsp pages work correctly while
others
give an error.  See below for the full error.  The pages are generated from
jsp from
data in a mysql database.  Only by carefully restarting the apache, tomcat
and
mysql services  in the correct order with a delay between the restarts do
the pages
start working correctly.  The pages will then work correctly until the
server is restarted.

I'm at a bit lost as to which component is actually causing the trouble !
The fault
does not appear on a test machine that does restart and work without user
intervention
Because the main server is under load, could it be that the jsp pages are
attempting
to access resources that are not yet available causing a permanent failure ?

Andy C
Editor R2 Project
http://www.r2-dvd.org

Full error is
org.apache.jasper.JasperException
 at java.lang.Throwable.(Compiled Code)
 at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(Compiled
Code)
 at org.apache.jasper.runtime.JspRuntimeLibrary.introspect(Compiled Code)
 at _0002farticle_0002ejsp_0002farticle_jsp_0._jspService(Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code)
 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)

Root cause:
java.lang.reflect.InvocationTargetException
 at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(Compiled
Code)
 at org.apache.jasper.runtime.JspRuntimeLibrary.introspect(Compiled Code)
 at _0002farticle_0002ejsp_0002farticle_jsp_0._jspService(Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code)
 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)






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

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




RE: web.xml reading (?) problem

2001-03-14 Thread Manjul Sahay

Hi Rob
Thanks a lot.

First of all it is reading web.xml , figured it out from logs( after making
a few changes ;) ). But the problem which now persists is that it is not
accepting values from web.xml (application's Web-inf/ one and not conf ) .
For example,I have specified index.jsp in welcome file tags but it is simply
making whole directory listing despite index.jsp being present.
I have tried all options I can think of and definitely no typos, I guess.

As about typos, one of the problems initially was that I copied directoris
and were named Web-inf ( from Win ) and on linux it didnt work ;0 , had to
rename to WEB-INF
I thought I will just share.

Thanks and hoping to hear more

manjul


WINNER never QUITS  QUITTERS never WIN !!

Manjul Sahay

 ( [EMAIL PROTECTED] )




-Original Message-
From: Rob Tanner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 9:39 PM
To: [EMAIL PROTECTED]
Cc: Manjul Sahay
Subject: Re: web.xml reading (?) problem


Are you talking about the default web.xml in tomcat's conf directory,
or an application specific web.xml in your application's WEB-INF
directory?  Also, is there other evidence that the web.xml file is not
beibg read (other specifications that are being ignored)?  You might
also try setting permissions to 000 (instead of 777) to see if tomcat
complains about not being able to read the file, and have you looked at
the logs tomcat generates and have you up'd the logging level to get
more detail?  The other thought that comes to mind is have you checked
your spelling?  I'm an ace typo kinda guy, and whenever I have a really
wierd problem (your's falls into that category), that's the first thing
I look for -- oops, index starts with an "i" doesn't it!  And yup
[sic], I do that kind of thing to myself all the time.

-- Rob
--On Wednesday, March 14, 2001 03:23:19 PM +0530 Manjul Sahay
[EMAIL PROTECTED] wrote:

 Hi,
 I am using Tomcat 3.1 on RedHat linux 6.0 system.
 Tomcat is working fine with jsps being served.

 However, Tomcat does not seem to be reading the web.xml file in the
 WEB-INF directory of the application contexts.
 Even for the examples context of tomcat distribution i see a directory
 listing of files, even with index.jsp present in the directory but
 when executed index.jsp works just fine.

 The same version running on Windows NT machine is having no problems.
 Also I tried the same with Tomcat 3.2 :) but it didnt work either.

 Eagerly looking forward for help and suggestions.

 - manjul sahay

 P.S i even changed all permissions to 777 to make Tomcat read and
 write and do all that it wants, ;) But !


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





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]


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


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




ClassCastException :(

2001-03-14 Thread Andrey Myatlyuk

Hello Tomcat users,

I'm in a trouble. I share some object(StatesBean) between servlets. And when I
recompile _servlet_, I got ClassCastException about shared object.


_statesBean=
(StatesBean)getServletContext().getAttribute(StatesBean.STATES_BEAN_NAME);


Classfile for this object is placed in the same directory, where
servlets do - web-inf/classes. Where I need to place classfile for
this object to prevent Tomcat exceptions?

Of course, if I reload Tomcat everything is OK.

Thank you in advance!

-- 
Best regards,
 Andreymailto:[EMAIL PROTECTED]



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




My IIS isn't redirecting to Tomcat

2001-03-14 Thread Dianne Cree

How do I get any servlet or jsp page to load through IIS (redirecting to
Tomcat, of course).  I have spent an embarrassing amount of time trying to
get this to work.  What happened to the days when you just double click on a
setup.exe and everything runs smoothly...  I'm using Win 2000.  Any takers
for this question?

desparate and getting nowhere fast,
Dianne


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




RE: Cannot create bean error?

2001-03-14 Thread Scott Keller

Try using your previous server.xml and web.xml config file.  This is a
config issue.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 11:21 AM
To: [EMAIL PROTECTED]
Subject: Cannot create bean error?


Hi,

I've been searching through the archives and I can't seem to find an
answer to this question.  I just upgraded to Tomcat 3.2.1 from Tomcat
3.1.1.   Everything was working fine.  Now when I try to access my
application I get the following error:



javax.servlet.ServletException:  Cannot create bean of class
com.cisco.gseit.webportal.UserLoginMI
at
jsp._0002fjsp_0002fansportal_0005fLoginProcess_0002ejspansportal_0005fLoginP
rocess_jsp_0._jspService(_0002fjsp_0002fansportal_0005fLoginProcess_0002ejsp
ansportal_0005fLoginProcess_jsp_0.java:102)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)



The JSP file has the following tag:

jsp:useBean class="com.company.UserLoginMI" id="myDBBean"
scope="request" 
 jsp:setProperty  name="myDBBean" property="*" /
/jsp:useBean

I've verified UserLoginMI has a constructor with no arguements.   It
worked in 3.1.1.  Is this a known bug?

Take Care
Jason Kary




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



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




RE: Reloading Pages....Help

2001-03-14 Thread Scott Keller

Did you clear your browser cache?

-Original Message-
From: Mick Sullivan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 11:48 AM
To: [EMAIL PROTECTED]
Subject: Reloading PagesHelp


Hi
I need some help here. Does Tomcat cache JSP pages? I ask this because any
changes I make to my JSP pages arnt actually saving. I am definetly changing
the right pages in the folder
C:\tomcat\webapps\project\jsp\
When i point my browser to
http://localhost:8080/project/jsp/anyJSPFile.jsp
the changes do not show???
I have even moved the JSP folder, yet the pages (without their images and
backgrounds) show on the browser?
Someone please help,
Thanks in advance, Mick
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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



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




Using Apache/Tomcat in high-traffic site

2001-03-14 Thread Gavin_Panella




Hi,

I am looking to use Apache and Tomcat in my company's production web site.
Before I can convince management that this is a good idea I need some
information so I am confident.  If anyone can help I'll be very grateful.


First of all I'll give you a picture of the overall architecture that I want to
create:

1)  For fault-tolerance and scaleability we want to have several instances of
Apache running over a number of machines.  These will be load balanced by a pair
of Cisco Local Director boxes, because we already own a couple of them.  From a
brief look through the operating manual on Cisco's web site I get the impression
that Local Director cannot support "sticky" load-balancing.  Please correct me
if I'm wrong.

2)  We will run several instances of Tomcat (version 3.2.1 most likely) on our
back-end servers.  These are a couple of Sun E1s with 32 processors each.
These are partitioned up into domains, so that we end up with 12 processors on
each machine dedicated to running Tomcat.  Each domain has 2GB of RAM.  There
are other domains dedicated to databases, etc...

3)  Each instance of Apache will be using mod_jk in a "sticky" load-balanced
configuration.  Every instance of Apache (and so mod_jk) will have workers
defined for every instance of Tomcat on both E1s.  In other words, a Tomcat
instance may receive a request from any instance of Apache.


The things I need to know :)

1)  Each request to our site will be assigned seemingly at random to one of the
Apache instances by the Cisco boxes.  Can the "sticky" part of mod_jk cope with
this?  i.e.  Will mod_jk pass the request to the correct Tomcat instance even
though it does not share context information with the other Apache instances?

2)  What is the best way of running Tomcat on the large E1s?  Should I have
just a few very large processes (say 2 x 800MB max heap) for Tomcat or should I
run many smaller processes (say 16 x 100MB max heap)?  Has anyone got any
experience with making Tomcat (or any Java based server) scale to machines of
this size and power?  I want to get good performance, but I don't want to
compromise stability.

3)  Has anyone used Tomcat in a mission critical environment?  I use it in
development all the time and I'm very happy with it, but I'd like to get some
impression of how it holds up.

4)  Are there any security considerations with this configuration?  We have
firewalls, intrusion detection kit, etc... for which we have a dedicated
maintenance team.  I'm really only interested in the software here.  Has anyone
used the new Java 2 security features with Tomcat?


Thank you very much indeed!

Cheerio, Woody.






_

Internet communications are not secure. This message is confidential to the 
addressee. Any copying or distribution of it by anyone without the addressee's 
consent may be unlawful. If you are not the intended addressee, please inform 
us immediately and then delete this message.

Virginmoney Limited is regulated by the Personal Investment Authority for 
investment business only. Virginmoney Limited is registered with the Mortgage 
Code Compliance Board and is a member of the General Insurance Standards 
Council.

Virginmoney Limited's registered office: Discovery House, Whiting Road, 
Norwich, NR4 6EJ. Registered in England no. 3427512.
_

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




javax.servlet.ServletException: sealing violation

2001-03-14 Thread Mandar Joshi

I just moved my server side java class to another directory and altered the
classpaths to the new directory. I am getting follwoing exception while
calling my jsp

javax.servlet.ServletException: sealing violation
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
jsp.dates._0002fjsp_0002fdates_0002fnewdate_0002ejspnewdate_jsp_0._jspServic
e(_0002fjsp_0002fdates_0002fnewdate_0002ejspnewdate_jsp_0.java:91)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.SecurityException: sealing violation
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at
com.commerceroute.rosettanet.xml.template.BaseTemplate.(BaseTemplate.java:14
)
 at com.commerceroute.rosettanet.xml.template.CRMsg.(CRMsg.java:26)
 at com.commerceroute.sxmsgr.MsgCreator.(MsgCreator.java:31)
 at
jsp.dates._0002fjsp_0002fdates_0002fnewdate_0002ejspnewdate_jsp_0._jspServic
e(_0002fjsp_0002fdates_0002fnewdate_0002ejspnewdate_jsp_0.java:62)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

Any idea why is this happening ?

TIA
Mandar


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




RE: Set an application's working path

2001-03-14 Thread Randy Layman


The one major problem with what you ask is:  What happens if the
application is run out of a WAR file?  As in, the JSP server does not expand
the WAR to run it?  This is a possiblity according to the spec, although I
don't know of any JSP environment that works in this way.

To set an Application's default directory, use
System.setProperty("USER.DIR", "Path Here").  Be warned, however, that this
will affect the default directory for every class that is running in the
JVM, including Tomcat and any other webapps.  You probably don't want to do
this.

You can use ServletContext.getRealPath("relative path") to get the
address of some file in your webapp and then somehow mangle this if you need
to write files that don't yet exist.  Be careful, though, because this might
the be address to a file inside of a WAR file.

If you only need to read files, you could use
ClassLoader.getResource/getResourceAsStream or
ServletContext.getResource/getResourceAsStream.  These methods find a file
relative to your classpath (for ClassLoader) or webapp root (for
ServletContext).  These methods only work for reading files that already
exist.

Another option is to store the path in a configuration file, like
web.xml.  Accessing this depends on how you set it up.  A side not here,
though, Tomcat only loads the web.xml file at the context load time (start
in Tomcat 3, context load in Tomcat 4).  This means that you will have to
force the Tomcat configuration to be loaded if you change the path.

The last option that I can think of right now is to hard code the
path into your application.  This can either be relative to the startup
directory (TOMCAT_HOME/bin) or an absolute path.  Both have downsides,
relative to /bin makes you at the mercy of other applications that choose to
mess with the USER.DIR propery (see first option) and the absolute path is
almost always a bad idea.

Randy

-Original Message-
From: Alexander Batzios [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 6:26 AM
To: [EMAIL PROTECTED]
Subject: Set an application's working path


Hello.

I am using a JSP file to call a class, say myClass, which is a pure java 
application. From that class, I then need to call a method, say myMethod.
The 
part of the JSP file that does the above is like:

myClass mc = new myClass(parameters);
mc.myMethod();

Part of myMethod() functionality is reading/writting files. Well, the thing
is 
that it only works in the /bin directory of tomcat (where the
startup,shutdown 
scripts are). That is, it expects to find files there, and it creates files 
there. How can I change it's working path to a virtual path of the
webserver? 
Or to where the JSP file that calls it lives?

Any help will be greatly appreciated.

Thanks,
alex


 Get your FREE web-based e-mail and newsgroup access at:
http://MailAndNews.com

 Create a new mailbox, or access your existing IMAP4 or
 POP3 mailbox from anywhere with just a web browser.



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

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




JkMountCopy directive

2001-03-14 Thread Don Ha

Hi,
I'm trying to setup a server using JkMountCopy.  If
you know how to setup the environment in order to get
this directive work, please let me know.  Thanks.
Don Ha

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

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




  1   2   >