RE: IIS 5 and Win200000

2001-04-05 Thread shlomi sarfati



Yes 



  -Original Message[shlomi sarfati]-From: 
  Carlos Gustavo Verbel Martelo [mailto:[EMAIL PROTECTED]]Sent: 
  Thu, April 05, 2001 3:33 PMTo: 
  [EMAIL PROTECTED]Subject: IIS 5 and 
  Win20
  Hello,
  
  Tomcat work with IIS5 and Windows 
  2000?
  
  Thanks for your help.
  
  Best Regards.
  Carlos Gustavo Verbel MarteloNetwork 
  Administrator / Administrador de RedTeléfono / Phone (574) 312 
  2791PRAGMA: Now is Time to get Value. http://www.pragma.com.co
  
  ¿Conoce nuestros servicios? Visite http://www.pragma.com.co/sitio/soluciones/
  
  Mensaje enviado con MISIVA Web Mail 
  Serverhttp://www.pragma.com.co/misiva


RE: Sending HTTP request from a servlet to ASP.

2001-04-03 Thread shlomi sarfati

the simplest way is to redirect the page to the asp page with parameters in
the query string in the form of :
page.asp?param=valueparam1=value
as far as I know you can transfer as much as 1 k in this form
the other way is to use sockets and to post the data to an asp page
in this way you can transfer bigger amounts of data

shlomi

-Original Message-
From: Saurabh Shukla [mailto:[EMAIL PROTECTED]]
Sent: Tue, April 03, 2001 12:45 PM
To: [EMAIL PROTECTED]
Subject: RE: Sending HTTP request from a servlet to ASP.


Do u also need a response from the servlet to which you are sending the data
?

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 01, 2000 3:46 PM
To: [EMAIL PROTECTED]
Subject: Sending HTTP request from a servlet to ASP.


Dear All,
I am trying to send an HTTP request to an ASP page.
Actually, i am writing a servlet which runs on tomcat 3.2 and wants to call
an ASP page and send it some form data. This is a requirement of the third
party software we are using to validate credit card details. How can i call
an ASP page from a java servlet using HTTP?
Thanx in advance,
Hitesh






RE: Tomcat-Startup in windows

2001-03-22 Thread shlomi sarfati

look there are couple of options
1. make the tomcat as nt service (NT-Service-howto , i am attaching this
document)
in this way the tomcat will run as nt service , it will be loaded every time
after the the computer starts before the  login process
2. put your bat files in your startup directory (i am usint win 2000 :
C:\Documents and Settings\shlomi\Start Menu\Programs\Startup) you can right
click on your start menu button then choose open \ programs \ startup .
in this way the server will start after the user log in .

hope i can help


-Original Message-
From: venkatesan [mailto:[EMAIL PROTECTED]]
Sent: Thu, March 22, 2001 10:54 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Tomcat-Startup in windows


Hi shlomi sarfati,
I tried but server is not starting while i started the system. Can you
give the directory hierarchy so that i will past my *.bat files...

Regards
venkatesh...

shlomi sarfati wrote:

 put tomcat as nt service

 -Original Message-
 From: venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Thu, March 22, 2001 10:36 AM
 To: tomcat
 Subject: Tomcat-Startup in windows

 Hi All,
I have a tomcat server working fine with Apache in Windows-NT. I
 have a script which starts tomcat before Apache. Can anybody tell that
 where i have to put these script so that tomcat would be started
 automatically while my system restarts

 Thanks in advance
 Regards
 Venkatesh



Title: Working with the Jakarta NT Service


servlet Query string

2001-03-05 Thread shlomi sarfati

Hi every one

I have a problem in my servlets.

when someone sends parameters through the query string to my servlet that
have the character '%'
in it , something like: myservlet?param=fh%fjnv I cannot receive the
parameter in my servlet
I know that there is encoding for urls and when the % comes with one of
those (e.g %26 ) I can read it

I am asking this here because I haven't had that problem in another server
with the exact same servlet
can ant one help ?
thanks
Shlomi


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




RE: servlet Query string

2001-03-05 Thread shlomi sarfati

Thanks for the help

But
I am not sending the parameters to the servlet !
it automatically receiving them from another program
when I used the same servlet on another servlet machine I had no problems !



-Original Message-
From: Alan Stenhouse
[mailto:[EMAIL PROTECTED]]
Sent: Mon, March 05, 2001 2:26 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: AW: servlet Query string


you must use

"param" + URLEncoder.encode(paramValue)

when passing the parameter.

i.e. ensure that it's encoded correctly...

HTH

Alan

 -Ursprngliche Nachricht-----
 Von: shlomi sarfati [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 5. Mrz 2001 12:55
 An: [EMAIL PROTECTED]
 Betreff: servlet Query string


 Hi every one

 I have a problem in my servlets.

 when someone sends parameters through the query string to my
 servlet that
 have the character '%'
 in it , something like: myservlet?param=fh%fjnv I cannot receive the
 parameter in my servlet
 I know that there is encoding for urls and when the % comes
 with one of
 those (e.g %26 ) I can read it

 I am asking this here because I haven't had that problem in
 another server
 with the exact same servlet
 can ant one help ?
 thanks
 Shlomi


 -
 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]




tomcat.bat

2001-02-26 Thread shlomi sarfati

Hi

I need to run something that tomcat depends on before tomcat
starts(rmiregistry.exe)
I thought about using the tomcat.bat for this
the thing is that if I do it like this , the tomcat wont work because it
will wait for the other program to end

to be simple , how can I call other program in different process through
batch file 

Thanks for the help
Shlomi



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




RE: A Little message for Carlos !!!!

2001-02-22 Thread shlomi sarfati



I hope 
I can help you guys 
I tried this one on my win 2000 and it is 
working good .
in your web.xml document you should add a 
security-constraint entry , define the url pattern that you want 
to protect  ( e.g 'myServlet' )
add 
the http methods that you want the security will work on (e.g: GET, POST ... 
)
after 
this you should determine who should log inwith the  login-config 
tag (e.g Admin)
the 
realm-name is in the tomcat users file . 


web-app

 
security-constraint 
web-resource-collection 
web-resource-nameProtected 
Area/web-resource-name 
url-pattern/myServlet/url-pattern 
 
http-methodDELETE/http-method 
http-methodGET/http-method 
http-methodPOST/http-method 
 
http-methodPUT/http-method 
/web-resource-collection 
auth-constraint 
role-nameadmin/role-name 
/auth-constraint 
/security-constraint

 
login-config 
auth-methodBASIC/auth-method 
realm-nameAdmin/realm-name 
/login-config
 
.
 
. 
 
.
 
.

web-app

  -Original Message-From: Negrini Lilian 
  [mailto:[EMAIL PROTECTED]]Sent: Mon, April 07, 1980 1:17 
  AMTo: [EMAIL PROTECTED]Subject: A Little 
  message for Carlos 
  Hello 
  
  I have the same problem than 
  you,in configuring Tomcat. I want to protect some pages 
with
  Login  password .. if someone 
  have an solving for this, please forward it !!!
  
  Thanks  a lot 
  
  
  Lilian
  
  [EMAIL PROTECTED]


RE: Monitor memory and CPU usage of servlets from inside of Tomcat

2001-02-15 Thread shlomi sarfati

Emil

I am happy to tell you that someone did it already !
and the really good news is that you can use it , it is really nice and easy
to configure
it have very nice GUI and I recommend on it !
go here !

http://rue.nolimits.ro/
Enjoy

Shlomi Sarfati


-Original Message-
From: Emil Genov [mailto:[EMAIL PROTECTED]]
Sent: Thu, February 15, 2001 12:43 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Monitor memory and CPU usage of servlets from inside of Tomcat


Hi everybody,

can I kindly beg for your help. I need to monitor memory usage, CPU usage
and resource usage of servlets from inside of Tomcat. Can someone propose
how to use some API of Tomcat or something else to achieve this. This must
be done by external program or some extension of Tomcat may be. If there are
already made solutions(free-ware) I would be so gratefull if you share them
with me. If you could answer me by e-mail: [EMAIL PROTECTED]

10x very much: Emil Genov


-
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: Monitor memory and CPU usage of servlets from inside of Tomcat

2001-02-15 Thread shlomi sarfati

Emil
I am having no problems access this url
http://rue.nolimits.ro/
if you still having problems maybe I can send you the installation files




-Original Message-
From: Emil Genov [mailto:[EMAIL PROTECTED]]
Sent: Thu, February 15, 2001 1:00 PM
To: [EMAIL PROTECTED]
Subject: Re: Monitor memory and CPU usage of servlets from inside of Tomcat


Hi

10x bery much for reply. Are U sure address Ugive me is correct, i can not
open http://rue.nolimits.ro/

Can U check it, I ll be very gratefull

best regards
Emil Genov

- Original Message -
From: "shlomi sarfati" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 15, 2001 10:42 AM
Subject: RE: Monitor memory and CPU usage of servlets from inside of Tomcat


 Emil

 I am happy to tell you that someone did it already !
 and the really good news is that you can use it , it is really nice and
easy
 to configure
 it have very nice GUI and I recommend on it !
 go here !

 http://rue.nolimits.ro/
 Enjoy

 Shlomi Sarfati


 -Original Message-
 From: Emil Genov [mailto:[EMAIL PROTECTED]]
 Sent: Thu, February 15, 2001 12:43 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Monitor memory and CPU usage of servlets from inside of Tomcat


 Hi everybody,

 can I kindly beg for your help. I need to monitor memory usage, CPU usage
 and resource usage of servlets from inside of Tomcat. Can someone propose
 how to use some API of Tomcat or something else to achieve this. This must
 be done by external program or some extension of Tomcat may be. If there
are
 already made solutions(free-ware) I would be so gratefull if you share
them
 with me. If you could answer me by e-mail: [EMAIL PROTECTED]

 10x very much: Emil Genov


 -
 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]




RE: Monitor memory and CPU usage of servlets from inside of Tomcat

2001-02-15 Thread shlomi sarfati

Sure it is working fine on mine 3.2.1 tomcat 
it is even easier to config 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of mike niemaz
Sent: Thu, February 15, 2001 1:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Monitor memory and CPU usage of servlets from inside of
Tomcat


Emil Genov wrote:

 Hey 10x

 I think everything is OK. Once again 10x very much I appreciate your help

 best regards Emil Genov


Any chance to have it work on TomCat3.2?

--mike


-
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: Monitor memory and CPU usage of servlets from inside of Tomcat

2001-02-15 Thread shlomi sarfati

you don't have to put all RUE jar files (the sensors jar files) in the
classpath manually
tomcat do it because they are in the tomcat_home\lib directory
i think that the only thing you
should add the lib\capsapi_classes.zip to your classpath
just follow the installation instructions !

good luck





-Original Message-
From: Emil Genov [mailto:[EMAIL PROTECTED]]
Sent: Thu, February 15, 2001 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Monitor memory and CPU usage of servlets from inside of
Tomcat


Easier to cinfig - what U mean :



well,


- Original Message -
From: "shlomi sarfati" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 15, 2001 1:04 PM
Subject: RE: Monitor memory and CPU usage of servlets from inside of Tomcat


 Sure it is working fine on mine 3.2.1 tomcat
 it is even easier to config

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of mike niemaz
 Sent: Thu, February 15, 2001 1:22 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Monitor memory and CPU usage of servlets from inside of
 Tomcat


 Emil Genov wrote:

  Hey 10x
 
  I think everything is OK. Once again 10x very much I appreciate your
help
 
  best regards Emil Genov
 

 Any chance to have it work on TomCat3.2?

 --mike


 -
 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]




RE: Re[2]: Monitor memory and CPU usage of servlets from inside of Tomcat

2001-02-15 Thread shlomi sarfati

I don't know
I haven't tried it
one problem may be with the xml parsers
since one using jaxp and the other xerecs but I think you can overcome this
problem too
again I haven't tried it , I don't know !
but I will be glad to hear from you if it does !




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thu, February 15, 2001 3:10 PM
To: [EMAIL PROTECTED]
Subject: Re[2]: Monitor memory and CPU usage of servlets from inside of
Tomcat





Hi,

I would like to try RUE on Tomcat 4. Would that be possible?

Wilko





"shlomi sarfati" [EMAIL PROTECTED] on 15-02-2001 13:04:57

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Wilko Hische/HADV/NL)
Subject:  RE: Monitor memory and CPU usage of servlets from inside of Tomcat



Sure it is working fine on mine 3.2.1 tomcat
it is even easier to config

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of mike niemaz
Sent: Thu, February 15, 2001 1:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Monitor memory and CPU usage of servlets from inside of
Tomcat


Emil Genov wrote:

 Hey 10x

 I think everything is OK. Once again 10x very much I appreciate your help

 best regards Emil Genov


Any chance to have it work on TomCat3.2?

--mike


-
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]




RE: Monitor memory and CPU usage of servlets from inside of Tomcat

2001-02-15 Thread shlomi sarfati

Hi their
first i just want to tell that i am not THE expert on this RUE
i just installed it yesterday so dont take my words as 100 % true i am a
begginer !


 Hi,
I'm almost done with RUE but the RMI part
is not clear at all.
Is it RUE which needs a RMI server or is it

No the rmiregistry and the tomcat should run on the same machine tomcat

for tomcat ('d be weird...).
Id it for RUE, why the 2 command lines (rmiregistry  java ...)
are not added in the start scripts?

it is not for RUE

Do we need to specify a port?

i guess that you refer to the rue.xml , well i am using the isapi_redirect
dll so every request
goes to the tomcat BUT you can set the host name of the machine (in the
RUE.xml file in your rue directory)
running the rmiregistry like: rmi://foo.mydomain.com or if it doesn't have a
domain simply a IP address rmi://194.102.233.6

What remote interface class should we be running?

I must admit i'm a bit confused ;-(

Help please ;-)

--mike

i am sorry if i cant answer all the question but i would love to help with
those ones that i can
regards shlomi

-
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: How to make Tomcat as NT Service

2001-02-15 Thread shlomi sarfati


Sorry

have no idea on this one
but the guy that helped me alot in my instalation is Remus Pereni
[[EMAIL PROTECTED]]
he is very nice and very helpful
maby he can help !?

(tell me if he did )

-Original Message-
From: Pauline Lo [mailto:[EMAIL PROTECTED]]
Sent: Thu, February 15, 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: How to make Tomcat as NT Service


Hi everyone

I have told that this is an excellent way to get some help. Basically I have
a got very simple question. I have installed Release Build Tomcat v3.2.1. I
am able to get it up and running using the startup.bat in the bin directory.
Now what I would like to know is how I could make Tomcat as an NT Service. I
have got the 'jk_nt_service.exe' which I gather is used to create this NT
service, however, I have not managed to understand how I could do this.

I would appreciate if someone could help with this with a step-by-step
method.

Many thanks in advanced
Pauline


- Original Message -
From: "Christian Rauh" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 15, 2001 4:06 PM
Subject: Help: database user authentication how-to.


Dear People,

I am totally confused on how to proceed with the user authentication in
my web application. I will try to state my problem briefly:

I have a web application that has FORM security. I need to create a way
for users to create an account that gives them access to the web
application. Optimally, the user/password/role info should be stored in
a database.

How can this be done as closely as possible to the servlet/jsp
specification? Is there a package written for this somewhere? I found
something about JDBC real in the server.xml file, is it what I seek?

Note that I also need this to be integrated with the web engine (Apache
preferably).

I have seen that app servers like weblogics have a user authentication
scheme exactly like the one I seek but I want a non-proprietary, low
cost solution.

Any direction would be much appreciatted since I am really not knowing
what to do regarding this matter.

Thanks in advance,

Christian Rauh

-
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: Need help! :( (XALAN CONFIG )

2001-02-14 Thread shlomi sarfati

Hi
that's a problem that cause due to the duel parsers !
you see tomcat (version 3.2.1 as far as I know) uses jaxp as its parser
and may be this is your problem ! .


-Original Message-
From: Nazir Faisal-LFN003 [mailto:[EMAIL PROTECTED]]
Sent: Wed, February 14, 2001 5:24 PM
To: '[EMAIL PROTECTED]'
Subject: Need help! :( (XALAN CONFIG )


Hello

We are trying to configure Tomcat to work with Xalan (the XSLT engine).
We have set up the servlet (XSLT.class) in the webapps directory ie
D:\tomcat\webapps\faisal\WEB-INF\Classes\XSLT.class

we have also configured the 'web.xml' in
D:\tomcat\webapps\faisal\WEB-INF

this file looks like :

- 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-name
 XSLT
  /servlet-name
  servlet-class
 XSLT
  /servlet-class
/servlet
/web-app

-eof web.xml --

We can run simple example servlets however, when using the
XALAN API, we keep getting the following errors:

tomcat.log--

Context log: path="/examples" Adding context path="/examples"
docBase="webapps/examples"
Context log: path="" Adding context path=""  docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test"
docBase="webapps/test"
Context log: path="/faisal" Adding context path="/faisal"
docBase="webapps/faisal"

Starting tomcat. Check logs/tomcat.log for error messages

Starting tomcat install="d:\tomcat" home="D:\tomcat"

classPath="d:\tomcat\classes;d:\tomcat\lib\webserver.jar;
d:\tomcat\lib\jasper.jar;d:\tomcat\lib\xml.jar;
d:\tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar;
D:\tomcat\lib\servlet.jar;D:\xalan\stylebook-1.0-b3_xalan-2.jar;.;
D:\xalan\xalan.jar;D:\xalan\xerces.jar;D:\xalan\xalanj1compat.jar;
D:\xalan\xalan2jdoc.jar;D:\xalan\xalanservlet.jar"

Context log: path="/admin" Automatic context load
docBase="D:\tomcat\webapps\admin"
Context log: path="/admin" Adding context path="/admin"
docBase="D:\tomcat\webapps\admin"

file:///D:/tomcat/webapps/faisal/fruit.xml; Line 3; Column 3;
java.lang.NoSuchMethodError
  at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326)
at org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471)
  at
org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528)
  at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va:432)
  at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:193)
  at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
  at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
  at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
  at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1189)
  at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
  at java.lang.Thread.run(Thread.java:484)

-eof tomcat.log--

The servlet compiles ok and the all the Xalan jars are placed in the correct
directories,
however, there seems to be a problem with Tomcat finding the above Xalan API
method call.

We've tried doing many things already and are urgently needing some help.

Here's the simple servlet that we've been working on :

XSLT.java---
-
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;
import org.w3c.dom.*;


public class XSLT extends HttpServlet {
public void init(){
TransformerFactory trFactory = TransformerFactory.newInstance();
File xmlFile = new File("birds.xml");
File xslFile = new File("birds.xsl");
try
{
  Transformer transformer = trFactory.newTransformer(new
StreamSource(xslFile));
  transformer.transform(new StreamSource(xmlFile), new StreamResult(new
File("result.out")))
}
catch (Exception et)
{
  System.out.print(String.valueOf(et));
}
}
}

eof
XSLT.java

 Nazir Faisal-LFN003.vcf


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




RE: Configuring Isapi Redirector with IIS

2001-02-14 Thread shlomi sarfati



Eli 

I am 
throwing a wild guess here but 
in the 
uriworkermap you shouldadd an entryso that the isapi will 
know
to 
which worker to transfer the request
something like :
/*=ajp12 or /myServlet*=ajp12

  -Original Message-From: Eli Segev 
  [mailto:[EMAIL PROTECTED]]Sent: Wed, February 14, 2001 6:58 
  PMTo: [EMAIL PROTECTED]Subject: Re: 
  Configuring Isapi Redirector with IISRandy, 
  Thanks for the quick response. I forgot to add the crucial point that 
  accessing Tomcat directly, something like http://localhost:8080/examples/servlets/index.html 
  works perfectly. But when you take out the port (expecting redirection 
  from IIS to Tomcat), I get inetinfo Application Error and it crashes the IIS. 
  worker.properties file looks like: 
  # # Simple worker configuration file 
  # 
  worker.list=ajp12 
  worker.ajp12.port=8007 worker.ajp12.host=localhost 
   
  The filter points to the isapi_redirect.dll and it has the green arrow in 
  the ISAPI Filters. 
  I did reboot. :-) 
   It seems 
to me like there might be several things wrong. 
 First, check your 
workers.properties file. It seems like you might not have the 
ajp12 worker defined or maybe defined incorrectly. Next, check the 
registry entry for the worker.properties file. 
 Second, look at your 
filter. The executable for the filter needs to be 
isapi_redirect.dll (the message looks like it might not point to the dll, 
just the directory).  If 
that doesn't do it, I would suggest trying a new DLL, after the Windows 
NT fix-all - reboot. 
 Randy 
-Original Message- From: Eli Segev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 
February 14, 2001 10:30 AM To: [EMAIL PROTECTED] 
Subject: Configuring Isapi Redirector with IIS 
I have followed the instructions in "Tomcat IIS HowTo" by Gal Shachor 
[EMAIL PROTECTED] to set up IIS to redirect requests to Tomcat 
on an NT machine. I don't want to repeat again all the steps that 
appears in the document in this email. Whenever I try to test the 
redirection of requests from IIS to Tomcat, I get an error. It 
appears in the "Event Viewer" as: "The HTTP Filter DLL 
E:\Programs\jakarta-tomcat\bin\iis\i386 failed to load. The data 
is the error.". 
The isapi.log has 
[jk_isapi_plugin.c (385)]: In HttpFilterProc test redirection of 
/examples/jsp/index.html [jk_uri_worker_map.c (286)]: Into 
jk_uri_worker_map_t::map_uri_to_worker 
[jk_uri_worker_map.c (338)]: jk_uri_worker_map_t::uri_worker_map_open, 
done with ajp12 [jk_isapi_plugin.c (395)]: In HttpFilterProc 
/examples/jsp/index.html should redirect to ajp12 
[jk_uri_worker_map.c (127)]: Into 
jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c 
(273)]: Into jk_uri_worker_map_t::uri_worker_map_close 
[jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, 
NULL parameter [jk_uri_worker_map.c (134)]: In 
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters 
[jk_worker.c (125)]: Into wc_close [jk_worker.c (127)]: wc_close, 
done 
C:\WINNT\system32\LogFiles\W3SVC1\ex010214.log has: 
2001-02-14 15:08:59 132.253.97.108 - W3SVC1 BISUT GET 
/jakarta/isapi_redirect.dll - 401 80 HTTP/1.0 
Mozilla/4.7+[en]+(WinNT;+I) - 
The operation crashes IIS and I get the following error (see 
attachment). 
Does anyone know what is wrong here? The error is 401 which is not 
covered in the troubleshooting section for WinNT. The IIS version 
is 4.0 and Tomcat is 3.1. 
-- Eli Segev PTC (781)370-6127 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, email: 
  [EMAIL PROTECTED]  
  -- Eli Segev PTC (781)370-6127  
  - To 
  unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
  commands, email: [EMAIL PROTECTED] 



RE: Tomcat 3.2.1 as NT-service

2001-02-13 Thread shlomi sarfati

Maybe the problem is in the wrapper.propertis
in the entries of the 

wrapper.tomcat_home=E:\tomcat
wrapper.java_home=E:\jdk1.2

in the example of the file it looks like this 

wrapper.tomcat_home=E:\tomcat\tomcat
wrapper.java_home=E:\jdk1.2 

you should get rid from the ""



-Original Message-
From: Herbert Peters, GRUENE [mailto:[EMAIL PROTECTED]]
Sent: Tue, February 13, 2001 6:28 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.1 as NT-service


Hello,

I have problems to start Tomcat as NT-Service:

NT-4.0 Server, Sp6a, IIS 4.0 (german)

I can start it manualy without problems.
I also can install the service, but when executing it, Tomcat is not
started.
NT gives not detailled message.

Can you help?


Regards,

Herbert Peters
[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: Here you have, ;o) DO NO OPEN

2001-02-13 Thread shlomi sarfati

for whom who don't know 

do not open this one 
its a virus

-Original Message-
From: David Kadlecek [mailto:[EMAIL PROTECTED]]
Sent: Tue, February 13, 2001 2:50 PM
To: '[EMAIL PROTECTED]'
Subject: Here you have, ;o)


Hi:
Check This!




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




RUE for tomcat

2001-02-12 Thread shlomi sarfati

Does any body familiar with RUE for tomcat  ? 




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




Tomcat monitoring

2001-02-11 Thread shlomi sarfati

What monitoring tool can be used to monitor tomcat
I tried to install RUE but I didn't succeed , is their any other opportunity
?


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




RE: tomcat-iis trouble

2001-02-08 Thread shlomi sarfati



Hi 
nick 
in my 
opinion there couple of reasons to your error 
one of 
them is that in your uriworkermap file you should insert the entry :  
/examples/*=ajp12
the 
other on is that the isapi filter isn't place in the right place 

you 
should put your isapi filterin your new web site directory that you opened 
with the iis console and not in the root directory of the iis 

hope 
it will help you 
if it 
wont help you 
give 
me some more information 
does the isapi log file has been created ? 

what kind of operation system do you use ? 


shlomi 






  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Thu, February 08, 2001 11:24 
  AMTo: [EMAIL PROTECTED]Subject: tomcat-iis 
  trouble
  Hi:
  I would like to run tomcat with iis
  and following the 
  jakarta-tomcat-3.2.1\doc\tomcat-iis-howto.html.
  then
  
  Try http://localhost/examples/jsp/index.html
  always got the error HTTP 404 
  ifI try http://localhost:8080/examples/jsp/index.html
  then it's ok!
  can u help me ?
  
  thanks 
  
  by Nick from 
Taiwan.


The tomcat service could not be started

2001-02-08 Thread shlomi sarfati


Hi
I am trying to run the tomcat as a service on my win 2000
I am using jdk 1.2 and tomcat 3.2
after changing all the configuration in 'wrapper.properties'
I tried to start the service like this :


C:\tomcatC:\tomcat\bin\win32\i386\jk_nt_service.exe -i tomcat
C:\tomcat\conf\wrapper.properties

this is what I got :

Asked (and given) Winsock 1.1
The service named tomcat was created. Now adding registry entries
Registry values were added
If you have already updated wrapper.properties you may start the tomcat
service
by executing "net start tomcat" from the command prompt

trying to run the service :

C:\tomcatnet start tomcat

The tomcat service is starting.
The tomcat service could not be started.

The service did not report an error.
More help is available by typing NET HELPMSG 3534.

the log files that was suppose to be in the logs directory hasn't been
created !

please if anyone can help

Regards Shlomi Sarfati






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




RE: asp and jsp on IIS

2001-02-08 Thread shlomi sarfati

I think that the problem will be that the isapi_redirect dll will transfer
all the request to the tomcat
I haven't found documentation on it but if you can configure the
isapi_redirect.dll to take only requests with
unique extensions maybe you can do it
in your iis console right click on your web site / properties
choose the home directory tab and press on the "configuration" button
you have a list of dll's
try to define an extension to your servlets and configure the redirect to
your isapi filter


-Original Message-
From: Erwan TROEL [mailto:[EMAIL PROTECTED]]
Sent: Thu, February 08, 2001 12:27 PM
To: [EMAIL PROTECTED]
Subject: asp and jsp on IIS


Hello
I want to use ASP and JSP on IIS is it possible ?
I know that it is possible to install tomcat on IIS to develop in JSP , but
in this case will ASP run ?

-
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: tomcat und IIS

2001-02-08 Thread shlomi sarfati

it is possible
I am running it just fine

double check the registry key extension_uri it suppose to have the value of
the dll
something like this "/jakarta/isapi_redirect.dll"
shlomi

-Original Message-
From: Inga Schuetz [mailto:[EMAIL PROTECTED]]
Sent: Thu, February 08, 2001 2:38 PM
To: [EMAIL PROTECTED]
Subject: tomcat und IIS


Hello,

does someone know, if it is possible to use tomcat together with IIS 5 und
Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I
still have a red arrow. It says that the dll was not loaded.

Inga


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




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




security and iis

2001-02-08 Thread shlomi sarfati

Hi 
I define a security constraint for one servlet in my tomcat . 
it is running fine if I am trying to go through localhost:8080/myServlet
(asking for user name and password which are defined in the tomcat-users.xml file)
but when I go through the iis (http://localhost/myServlet) it requires a domain in 
addition to the user name and password 
where can I change this parameter , how do i manage this ??



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




FW: security and iis

2001-02-08 Thread shlomi sarfati

(sorry if this message posted twice)

Hi 
I define a security constraint for one servlet in my tomcat . 
it is running fine if I am trying to go through localhost:8080/myServlet
(asking for user name and password which are defined in the tomcat-users.xml file)
but when I go through the iis (http://localhost/myServlet) it requires a domain in 
addition to the user name and password 
where can I change this parameter , how do i manage this ??



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




servlet security

2001-02-05 Thread shlomi sarfati

can tomcat give authentication to a servlet ?

I want to add a user name and password requirements to a particular servlet
how can I do it ??

thanks ahead
shlomi



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




RE: What means HTTP 400?

2001-02-05 Thread shlomi sarfati



Error Message: HTTP/1.1 Error 400 - Bad Request



The information in this article applies to:

Microsoft Internet Information Services version 5.0





SYMPTOMS
When a GET request is submitted to a Web server configured with Custom Error
pages, the Web server sends the following error message to the client
browser:

HTTP/1.1 Error 400 - Bad Request



CAUSE
This behavior is expected when the GET request itself cannot be parsed
because of some kind of packet corruption. If you send a bad request to the
IIS Web server, the Custom Errors functionality is not invoked, which causes
the "HTTP/1.1 Error 400 - Bad Request" error message.



RESOLUTION
If the contents of a GET request are corrupt, then the server is unable to
determine the URL or the host to which the GET request should be sent. IIS
is unable to retrieve the host information from the GET request packet in
order to look up the meta data for the custom error. This is by design.
Errors that result from severely corrupted GET requests are not
customizable.

To more completely determine what may be occurring, obtain a network capture
of the communication packets between the client receiving the error and the
Web server itself. Use the Microsoft Network Monitor utility to capture
network packets for analysis. For additional information, click the article
number below to view the article in the Microsoft Knowledge Base:

 Q148942 How to Capture Network Traffic with Network Monitor

-Original Message-
From: Rogrio Meneguelli Gatto [mailto:[EMAIL PROTECTED]]
Sent: Mon, February 05, 2001 5:51 PM
To: [EMAIL PROTECTED]
Subject: What means HTTP 400?


Hi, guys,

What is a HTTP 400 status/error?  I'm seeing a lot of these in my
tomcat.log:

2001-02-05 01:27:17 - Ctx(  ): 400 R( /) null

Regards,
--
Rogrio Meneguelli Gatto |  ICQ# 25775025
Analista de Sistemas Pleno   |  +55 19 3254-6518 ext 223
Software Design Informtica  |  http://www.softwaredesign.com.br
God is a comic playing to an audience that's afraid to laugh


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



 Q148942.url

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


servlet security

2001-02-04 Thread shlomi sarfati


can tomcat give authentication to a servlet ?

I want to add a user name and password requirements to a particular servlet
, how can I do it ??

thanks ahead
shlomi


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




isapi_redirect filter problem

2001-01-31 Thread shlomi sarfati

Hi

I tried to install the isapi+AF8-redirec dll on my windows 2000 IIS as explained in 
the document : 'Tomcat IIS HowTo'
my problem is that the that the green arrow up (indicating that the dll is in the air) 
doesn't appear after restarting the iis as result the redirect doesn't work.( a red 
arrow down appear instead)
if someone had this problem tell me,  how can I overcome it ? 
Thanks allot for the attention 
Shlomi 


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




RE: Classpath Woe

2001-01-31 Thread shlomi sarfati



Hi 

I have 
to disagree too ! 
i 
insert the path of the classes12 zipfile to my class_path and it is working fine 



  -Original Message-From: Thomas Bezdicek 
  [mailto:[EMAIL PROTECTED]]Sent: Wed, January 31, 2001 11:34 
  AMTo: [EMAIL PROTECTED]Subject: AW: 
  Classpath Woe
  Hi,
  
  I 
  have to disagree. Having classes12.zip at $TOMCAT_HOME/lib and then restarting 
  worked fine
  for 
  us.
  
  cheers
  
  bez
  -Ursprüngliche Nachricht-Von: Gerald McCollam 
  [mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 31. Jänner 2001 
  01:55An: [EMAIL PROTECTED]Betreff: 
  Classpath Woe
  
hi, i've been having the same problem as 
several others here -- tomcat can't find my oracle jdbc drivers no matter 
wherethey're located. i placed a copy of classes12.zip (for oracle) in 
every conceivable place with no luck and finally decided tomcat doesn't like 
class packages ifthey're zipped. my fix is to unzip and re-jar...(i.e. 
simply renaming the zip file didn't work, duh)

for oracle: 

1. unzip the original file (classes11.zip or 
classes12.zip) into your $TOMCAT_HOME/lib directory. this will place two 
directories there: oracle and javax. i didn't need javax so i threw it 
out

2. open a shell and cd to $TOMCAT_HOME/lib 


3. jar up the oracle directory 
using "jar cvf oracle.jar oracle." you 
can name the jar file whatever you want.

4. restart tomcat

that worked for me!

cheers

- 
gerald


(S.O.S) tomcat proxy problem

2001-01-31 Thread shlomi sarfati

hi
I am trying to use the isapi_redirect dll that enables the proxy service as
described in the how to "Tomcat IIS HowTo".
using a windows 2000 professional the service works fine .
when I tried to load my server to production machine (windows 2000 sever)
the isapi_redirect dll made the log file(what indicate that it is working )
but the iis doesn't redirect the request to the tomcat (I can see this in
the iis log file , request are not being transfer to
'jakarta/isapi_redirect.dll 200' they are going to the real path of the
request)
please if anyone can help I am finding my self spending hours on this not so
complicated issue
any help will be highly  appreciated
thanks
shlomi sarfati


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




CallableStatement problem

2001-01-29 Thread shlomi sarfati

Hi every one 
I am using tomcat on windows 2000 and it is working good the problem is that I have a 
problem to execute a 
CallableStatement on my oracle 8.1.6 db 
I am getting an exception on the 'my+AF8-conn.prepareCall(xx)'
is it a problem with the tomcat or am I doing something wrong ?

thanks in advance
shlomi 


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




jdbc problem

2001-01-28 Thread shlomi sarfati

Hi 
I have a small problem with setting a connection to an oracle database 
every time that I start the tomcat with the following code I cant get the server to 
start 
this is the code within the server.xml :

+ADw-RequestInterceptor className+AD0AIg-org.apache.tomcat.request.JDBCRealm+ACI-
 debug+AD0AIg-99+ACI-
 driverName+AD0AIg-oracle.jdbc.driver.OracleDriver+ACI-
 connectionURL+AD0AIg-jdbc:oracle:thin:+AEA-198.165.124.36:1521:myvxs+ACI-
 connectionName+AD0AIg-name+ACI-
 connectionPassword+AD0AIg-password+ACI-/+AD4-

and another question 

can you set a connection  pool with the tomcat ??
thanks for the attention 

shlomi 


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