Tomcat Security Application

2004-12-02 Thread Luca Antonelli
Hi, i've implemented an application using tomcat security FORM based,
and authenticating against a database.
My login page is the standard FORM:



Username:



Password:



 











The problem is that when i login the page seems to authenticate
correctly, but when i click the back browser button and i retry to login
again it gives an error page with the message: 
The requested resource (/pmt/manage/j_security_check) is not available.

Can anyone help me? 

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



domino redirector

2004-04-16 Thread Luca Saccarola
Hi Guys,

  using tomcat v4.1.27 with domino jk connector v1.2.5 on a red hat v7.3 (kernel 
2.4.20-28.7) based system. All works fine as long as a request for a servlet that 
implement an http upload is made: file transfer will succeed but every additional 
servlet request call the already loaded upload servlet despite what specified in my 
uri. After additional investigation I have found that the problem is repicable when a 
generic servlet attempt to call read method for input stream with the following 
statements:

   ServletInputStream in = req.getInputStream();
   byte[] buffer = new byte[1];
   int bytesRead = in.read(buffer);

After the servlet is executed I can execute only indicted servlet despite the servlet 
specified in uri (looking at domino redirector log file). All fine when a servlet is 
requested directly to tomcat (i.e.: via port 8080). Anyone experienced ? TIA

Best.
-- 
Luca Saccarola
Key ID: 0x4A7A51F7 (c/o keyservers)



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



Re: Where can I find mod-jk2 for RedHat 9.0?

2003-11-20 Thread Luca
Very short question!!!

Download source
http://www.apache.inetcosmos.org/dist/jakarta/tomcat-connectors/jk2/jakarta-tomcat-connectors-jk2-src-current.tar.gz

and compile it with your version of apache.
Very simple.

--- Asif Chowdhary <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> Asif Chowdhary
> System Analyst
> x.eye incorporated
>  
> Phone: (905) 624-6608 ext. 280 
> mailto:[EMAIL PROTECTED]  
> www.xeye.com  
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



mod_jk2 big bug

2003-11-20 Thread Luca
Clustering with mod_jk2 with sticky session e load
balancing works bad.

Configuration 


.
|-|..
|  Apache 2.0.x   |..
.___|mod_jk2  |..
.|  |-||.
.| |.
.| |.
..   | |.
.|-||-|..
.| Tomcat1.4.x || Tomcat1.4.x |..
.|-||-|..
.



Load Balancing and sticky session work fine, but
when there is a node
failure and mod_jk2 switch the courrent request to
the remaining tomcat instance the HTTP POST
parameters get lost!

I sniffed the AJP traffic and I observed those
packets directed to the
remaining node:

1) AJP REQUEST POST with a content length field
setted to 54 (correct size)
2) AJP REQUEST BODY with length 0 !!! Big Big Error

This happens only when switching from a failing node
to another.

I tried with apache e tomcat installed on Windows e
Linux
in a lot of different configuration but the results
seem the same.

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



Re: mod_jk, missing post parameters

2003-11-20 Thread Luca
Hi 

I have exactly the same problem but not solution.

I tried with mod_jk2 too. I have the same problem.

Now I’m trying with apache for Windows. I want see if
is OS problem.

Is a bug of mod_jk/mod_jk2?

Luca


--- Marco Manini <[EMAIL PROTECTED]> wrote:
> Hi,
> I have this configuration:
> 
> - a linux machine with Apache 2.0.47 and mod_jk
> 1.2.5 configured for load
> balancing and sticky session.
> - two linux machine with tomcat 4.1.x.
> 
> Load Balancing and sticky session work fine, but
> when there is a node
> failure and mod_jk switch the courrent request to
> the remaining tomcat instance the HTTP POST
> parameters get lost!
> 
> I sniffed the AJP traffic and I observed those
> packets directed to the
> remaining node:
> 
> 1) AJP REQUEST POST with a content legth field
> setted to 54 (correct size)
> 2) AJP REQUEST BODY with length 0 !!!
> 
> This happens only when switching from a failing node
> to another.
> During normal operation all works fine and the AJP
> packets are correct.
> 
> How is this possibile ?
> 
> Thanks in advance to all mod_jk gurus.
> 
> Marco
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



problem mod_jk2 sticky session

2003-11-19 Thread Luca
Hi all,

I have apache2.0.47, mod_jk2 and two different
instances of tomcat4.1.x

In server.xml I set

 

and 

 

respectively.

My worker2.properties looks like 

...
[channel.socket:10.10.30.107:8009]
debug=10
host=10.10.30.107
port=8009
tomcatId=10.10.30.107:8009
group=testlb

[channel.socket:10.10.30.108:8009]
debug=10
host=10.10.30.108
port=8009
tomcatId=10.10.30.108:8009
group=testlb

[lb:testlb]
info=testlb commento
debug=10
...

Now load balancing work fine but sticky session no.

why? 
It seems I respect what documentation says.

Can someone help me?

Thanks
Luca


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



mod_jk sends an empty ajb13 body packet while switching between cluster nodes

2003-11-17 Thread Luca
Hi,

I have a very strange behaviour.

I have 2 different configurations.

1) I have 3 pc
apache2.0.47 and mod_jk1.2.5 on Red Hat Linux (pc0)
tomcat4.1.x on Red Hat Linux (pc1)
tomcat4.1.x on Red Hat Linux (pc2)

2) I have 3 pc
apache2.0.47 and mod_jk1.2.5 on Red Hat Linux (pc0)
tomcat4.1.x on windows2000 (pc1)
tomcat4.1.x on windows2000 (pc2)

I have configured mod jk to work with sticky session
(jvmRoute in server.xml). It works fine.  

I have configured session replication correctly. It
works fine.

But I have a problem.

In configuration 1) after a failover of a tomcat (i.e.
pc1) the ajp13 body packet that arrives over tomcat
pc2 is empty
while the relative ajp13 header packet defines a
lenght>0.
It means that my request loses the http post content.
Hence I have the session correctly replicated while
the content of a html form, for example, definitively
loose. 


But if I reply the same configuration (case 2) with
Tomcat on Windows all work fine.

It looks very strange.

Some helps.

Thanks

Luca

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



missing setWrapper()

2003-07-19 Thread Gian-Luca Dei Rossi
Hi,
i've some trouble with a servlet that extends ManagerServlet (i have to
give users the capability of stop and start only a limited subset of
application, without having a 'manager' role), as:

public class proveapache extends ManagerServlet {

when tomcat runs this servlet i obtain the following exception


javax.servlet.UnavailableException: Container has not called
setWrapper() for this servlet
at org.apache.catalina.servlets.ManagerServlet.init(ManagerServlet.java:444)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)


So i added the following lines to server.xml


   


I restart tomcat and the same location now gives me a 404 error

I suppose that a wrapped class cannot be a normal servlet in webapps space, but rather 
a class in a
separate package, but i don't know if i'm right, and how to add classes visible to web 
application in a
"clean" way and then wich parameters are correct in web.xml for that wrapped class.

I beg pardon for my poor english :)
Thanks,

-- 
Gian-Luca Dei Rossi (acaso)
http://wwwstud.dsi.unive.it/~gdeiross/
** PACE **


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



RE: Tomcat 4.0.x JDBC connection pooling

2003-01-16 Thread Luca Cremonini

Thanks Eric!

But with Tomcat 4.0.x I don't have things like MaxActive, MinIdle and other
parameters...
4.0 documentation doesn't tell anything about this.

It seems to me that I have to migrate to 4.1.x to use the pool and such
parameters.
Am I right?

L.C.



   

"Roberts,  

Eric"Per:"Tomcat Users List" 
<[EMAIL PROTECTED]>  
  Oggetto: RE: Tomcat 4.0.x JDBC connection 
pooling 
   

16/01/2003 

17.33  

Per favore,

rispondere a   

"Tomcat Users  

List"  

   

   





Hi Luca,

The pool is established in the definition of the resource jdbc/EmployeeDB -
where things like MaxActive, MinIdle and other parameters determine how the
pool behaves.

At startup the pool will connect the MinIdle connections to the DB - a new
connection will then only be established if that number are already in use.

It is good practice to always close connections, as otherwise you become
dependent on parameters like RemoveAbandoned and RemoveAbandoned timeout.

All of this is discussed in the JNDI Datasource HOWTO in the documention :
-)

-Original Message-
From: Luca Cremonini [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Jänner 2003 17:17
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0.x JDBC connection pooling


I'm using JDBC connection with Tomcat 4.0 as shown in Tomcat4.0 online
documentation
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html
):

---
// Obtain our environment naming context
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");

// Look up our data source
DataSource ds = (DataSource)
  envCtx.lookup("jdbc/EmployeeDB");

// Allocate and use a connection from the pool
Connection conn = ds.getConnection();

... use this connection to access the database ...

conn.close();
---

I searched the mailing list and the web,
but coudn't find answer to these questions:

- When I call

 ds.getConnection();

am I getting a connection from a pool or opening a NEW connection every
time?


- If there's a pool why do I have to close the connection with

 conn.close();

instead of releasing it to the pool?

- What are the improvement in Tomcat 1.1.x about JDBC connection pooling?


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


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





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




Tomcat 4.0.x JDBC connection pooling

2003-01-16 Thread Luca Cremonini
I'm using JDBC connection with Tomcat 4.0 as shown in Tomcat4.0 online
documentation
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html):

---
// Obtain our environment naming context
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");

// Look up our data source
DataSource ds = (DataSource)
  envCtx.lookup("jdbc/EmployeeDB");

// Allocate and use a connection from the pool
Connection conn = ds.getConnection();

... use this connection to access the database ...

conn.close();
---

I searched the mailing list and the web,
but coudn't find answer to these questions:

- When I call

 ds.getConnection();

am I getting a connection from a pool or opening a NEW connection every
time?


- If there's a pool why do I have to close the connection with

 conn.close();

instead of releasing it to the pool?

- What are the improvement in Tomcat 1.1.x about JDBC connection pooling?


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




"java.lang.ClassCastException" with "javax.net.ssl" package

2002-12-19 Thread Luca Ventura
Hello everybody!

I have installed JDK1.4 and Tomcat 4.1.16 LE on a Windows 2000 machine.

To support SSL protocol in my servlet I use the version of JSSE API
integrated in JDK 1.4:

import javax.net.ssl.*; //package present in JDK 1.4
...
URL url = new URL(urlString);
HttpsURLConnection Con = (HttpsURLConnection)url.openConnection();


in this way I receive this Exception when the servlet tries to connect to
the https URL:

java.lang.ClassCastException:
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl

If I change the code in this way:

import com.sun.net.ssl.*; //package present in old JSSE 1.0.x API

...
URL url = new URL(urlString);
HttpsURLConnection Con = (HttpsURLConnection)url.openConnection();


all works correctly. This means that the servlet works if it uses
"com.sun.net.ssl" package and not "javax.net.ssl".
How come? I would like to use javax.net.ssl package because it is more
up-to-date and it is that one integrated
with JDK 1.4. Sincerely I don't know why Tomcat searchs for "com.sun.net.ssl
package" and throws that Exception because I haven't installed in Tomcat old
JSSE 1.0.x API!!!

I found indications about this problem at:

http://forum.java.sun.com/thread.jsp?thread=290800&forum=2&message=1146586

and at:

http://java.sun.com/j2se/1.4/docs/guide/security/jsse/JSSERefGuide.html#Inst
allProbs

but they aren't very clear to me

Is it possible that Tomcat uses internally old JSSE 1.0.x API??

HOW CAN I USE "javax.net.ssl" without having the
"java.lang.ClassCastException"???

I hope someone can help me!!


Thanks averybody in advance.

Luca





R: How to restart Tomca's service from a Web app?

2002-12-17 Thread Luca Ventura
Ok, thanks.
I'll check it: but if anybody can give to me a code example
or explain  more deeply this or another solution let me know.

Thanks a lot!

  Luca


-Messaggio originale-
Da: Nicholas Orr [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 16 dicembre 2002 23.54
A: 'Tomcat Users List'
Oggetto: RE: How to restart Tomca's service from a Web app?


I'm sure you could use some "feature" of asp to execute a batch file on your
machine.  I don't know the specifics but I have read about it during my ASP
scripting.  Ask at www.vbforums.com or www.devarticles.com or
www.developerfusion.com

Batch
Script just needs two lines.

net stop "Tomcat Service Name"
net start "Tomcat Service Name"

Nicholas Orr

-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Monday, 16 December 2002 9:50 PM
To: tomcat-user
Subject: How to restart Tomca's service from a Web app?


Hello everybody!

I have installed IIS as Web Server and Tomcat 4.1.16 LE as plug-in of IIS to
mangage Servlet/JSP pages (using isapi filter JK2 "isapi_redirector.dll"). I
would like to know is there is some way to re-start Tomcat's service using
some web application  acessible  from the Internet (it can be based on
asp/jsp pages or servlets) to avoid to use the "Services Panel" of Windows
2000 Advanced Server. In fact it can happen I can not access remotely to the
server machine where Tomcat is installed: so when I need I would like to be
able to re-start Tomcat using some web application. Is it possible?

Thanks everybody in advance!

   Luca


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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


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




How to restart Tomca's service from a Web app?

2002-12-16 Thread Luca Ventura
Hello everybody!

I have installed IIS as Web Server and Tomcat 4.1.16 LE as plug-in of IIS to
mangage Servlet/JSP pages
(using isapi filter JK2 "isapi_redirector.dll"). I would like to know is
there is some way to re-start Tomcat's
service using some web application  acessible  from the Internet (it can be
based on asp/jsp pages or servlets)
to avoid to use the "Services Panel" of Windows 2000 Advanced Server. In
fact it can happen I can not access remotely to the server machine where
Tomcat is installed: so when I need I would like to be able to re-start
Tomcat using some web application. Is it possible?

Thanks everybody in advance!

   Luca



What do these errors mean?

2002-12-11 Thread Luca Ventura
Hello everybody!

I have installed Tomcat 4.1.12 as Servlet Container and IIS as Web Server in
my Windows 2000 machine.
I use the ISAPI filter to redirect requests from IIS to Tomcat: in
particular I use the JK connector "isapi_redirector.dll" you can find
at:

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0
/bin/win32/

After some time IIS and Tomcat working I have read Tomcat's log files to
check that all works properly and I have seen these
strange errors:


In "iis_redir.log":   //this is the log file for the ISAPI filter
"isapi_redirector.dll".


[Mon Dec 02 09:47:03 2002]  [jk_uri_worker_map.c (586)]: In
jk_uri_worker_map_t::map_uri_to_worker, found a security fraud in
'/www.myserver.com/myurl/tmp/mainbody.jsp.htm'


In "catalina_log.2002-12-02.txt": //this is the log file ( 2nd december
2002) for the Tomcat's Cataline engine. It is  in /logs folder of Tomcat.

2002-12-02 13:11:32 Ajp13Processor[8009][6] process: invoke
java.net.SocketException: Connection reset by peer: socket write error
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
 at java.net.SocketOutputStream.write(SocketOutputStream.java:126)
 at org.apache.ajp.Ajp13.send(Ajp13.java:525)
 at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
 at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
 at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
 at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
 at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:536)



WHAT DO THESE TWO ERRORS MEAN? HOW CAN AVOID THEM?

The strange thing is that when the second error occurs  Tomcat suspends
itself and it doesn't accept requests any more: so I must restart the
service
WHY? :-(

I hope someone can help me.

Thanks everybody in advance!

  Luca




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




What do these errors mean?

2002-12-07 Thread Luca Ventura
Hello everybody!

I have installed Tomcat 4.1.12 as Servlet Container and IIS as Web Server in
my Windows 2000 machine.
I use the ISAPI filter to redirect requests from IIS to Tomcat: in
particular I use the JK connector "isapi_redirector.dll" you can find
at:

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0
/bin/win32/

After some time IIS and Tomcat working I have read Tomcat's log files to
check that all works properly and I have seen these
strange errors:


In "iis_redir.log":   //this is the log file for the ISAPI filter
"isapi_redirector.dll".


[Mon Dec 02 09:47:03 2002]  [jk_uri_worker_map.c (586)]: In
jk_uri_worker_map_t::map_uri_to_worker, found a security fraud in
'/www.myserver.com/myurl/tmp/mainbody.jsp.htm'


In "catalina_log.2002-12-02.txt": //this is the log file ( 2nd december
2002) for the Tomcat's Cataline engine. It is  in /logs folder of Tomcat.

2002-12-02 13:11:32 Ajp13Processor[8009][6] process: invoke
java.net.SocketException: Connection reset by peer: socket write error
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
 at java.net.SocketOutputStream.write(SocketOutputStream.java:126)
 at org.apache.ajp.Ajp13.send(Ajp13.java:525)
 at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
 at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
 at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
 at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
 at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:536)



WHAT DO THESE TWO ERRORS MEAN? HOW CAN AVOID THEM?

The strange thing is that when the second error occurs  Tomcat suspends
itself and it doesn't accept requests any more: so I must restart the
service
WHY? :-(

I hope someone can help me.

Thanks everybody in advance!

  Luca





How can I activate a pool of threads using Ajp13 and Tomcat 4.x?

2002-11-29 Thread Luca Ventura
Hello everybody!

I have Tomcat 4.x integrated with IIS 5. I would like to activate a pool of
threads to serve all requests. I tried to add
in the server.xml the following lines:


Connector className="org.apache.tomcat.service.PoolTcpConnector">







I want to use Ajp13 protocolol so I used Ajp13ConnectionHandler class
instead of Ajp12ConnectionHandler".
Anyway these settings don't work in Tomcat 4.x but only in Tomcat 3.x and
with Ajp12 protocol. Why?

How can I obtain the same effect in Tomcat 4.x? I would like to set in
Tomcat 4.x all the properties indicated above (max_threads,
max_spare_threads, etc)...

Thanks everybody in advance!

   Luca



R: Configure IIS + Tomcat 4.1.12

2002-11-28 Thread Luca Ventura
Thanks but it speaks about JK connector (ISAPI redirector 1.0) and not about
JK2 (Coyote) connector :-(

Best regards,

  Luca

-Messaggio originale-
Da: Panos Konstantinidis [mailto:[EMAIL PROTECTED]]
Inviato: giovedi 28 novembre 2002 15.07
A: Tomcat Users List
Oggetto: Re: Configure IIS + Tomcat 4.1.12


  I found a new URL which deals with Tomcat 4.0.1.

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/

  It might help.

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

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



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




Configure IIS + Tomcat 4.1.12

2002-11-28 Thread Luca Ventura
Hello everybody!

I have installed Tomcat 4.1.12 as Servlet Container and IIS 5 as Web Server
on my Win2000 machine. I am trying
to configure JK2 connector (isapi_redirector2.dll) to redirect JSP/Servlets
requests from IIS to Tomcat but unsuccessful.
Can someone help me? I tried to follow the indication you can find at:

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/insta
llhowto.html

Below you can find the two configuration files I am using
("workers2.properties" and "jk2.properties") located in the /conf folder of
Tomcat.

I PRAY YOU to indicate to me all the steps to follow to use
isapi_redirector2.dll (including  the configuration of Windows' registry)
and to give me two example versions of  "workers2.properties" and
"jk2.properties" to use, if possibile.


-
# workers2.properties: myurl is the uri I want to redirect to Tomcat.


# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/myuri/*]
info=Map the whole webapp
worker=ajp13:localhost:8009

[uri:/myuri]
info=Map the whole webapp
worker=ajp13:localhost:8009


--
jk2.properties
--

#This file is empty!



Finally a question: HOW CAN I INDICATE the name (and the location) of the
log file to use for isapi_redirector2.dll ???


Thanks everybody in advance!


   Luca






R: Search engine for the tomcat-user mailing list

2002-11-27 Thread Luca Ventura
Ok,

thanks a lot! :-)

  Luca

-Messaggio originale-
Da: Carsten Ziegert [mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 27 novembre 2002 14.57
A: Tomcat Users List
Oggetto: Re: Search engine for the tomcat-user mailing list


See:

http://nagoya.apache.org/eyebrowse/
http://nagoya.apache.org/eyebrowse/SearchList?listName=tomcat-
[EMAIL PROTECTED]

Carsten

Am Mittwoch, 27.11.02, um 14:29 Uhr (Europe/Berlin) schrieb Luca
Ventura:

> Hello everybody!
>
> Is there a search engine for the tomcat-user and tomcat-dev mailing
> list?
> I would like to find and read  old posts using key-words.
>
> Thanks to everybody in advance!
>
>    Luca
--
Carsten Ziegert

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

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

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



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



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




Search engine for the tomcat-user mailing list

2002-11-27 Thread Luca Ventura
Hello everybody!

Is there a search engine for the tomcat-user and tomcat-dev mailing list?
I would like to find and read  old posts using key-words.

Thanks to everybody in advance!

   Luca


Why does Tomcat 4 suspend itself?

2002-11-26 Thread Luca Ventura
Hello!

I have Tomcat 4.0.4-b3 as Servlet Container (I use it as a plug-in of IIS 5,
using the ISAPI
filter "isapi_redirector.dll" )and I have seen that
sometimes the following strange thing happens

When Tomcat doesn't receive user's requests (forwarded from IIS) for a
period of time
(that can take minutes or hours) it suspends itself and I must restart the
service manually because Tomcat doesn't  answer to the users' requests any
more.

In fact when this happens and the user tries to connect to Tomcat he waits
for an answer forever without success until the connection is closed by the
Web Browser because
it is timed out.

Is there some setting in Tomcat to avoid this? Has someone
already had such problem? If yes, how did he solve it?

Is this a bug of the version of Tomcat (or of the ISAPI filter) I am using?

I hope someone can help me

Thanks in advance.


     Luca


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




Tomcat 5

2002-11-26 Thread Luca Ventura
Hello everybody!

I need some answers about Tomcat 5:


1) Is it Tomcat 5 available?

2) If yes, i it possibile to downalod it?

3) Is it possible to forward requests from IIS 5 to Tomcat 5 using an ISAPI
filter
(as I do in Tomcat 4.x)? If yes, can I find the ISAPI filter to use?

4) Is Tomcat 5 more stable and than Tomcat 4.x? Has it better performance?


Thanks everybody in advance!

  Luca Ventura


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




Tomcat 5 download and possible bug in Tomcat 4.0.4-b3

2002-11-19 Thread Luca Ventura
Hello everybody!

I would like to know two things please:

1) Is Tomcat 5.0 available for download? If yes, is it the final release and
where can I download it?

2) I want to use Tomcat 5.0 as servlet container for IIS Web Server (it runs
under Windows 2000 Advanced Server with JDK 1.4 installed): can I use  the
ISAPI filter  built for Tomcat 4.x to redirect servlet-jsp
request from IIS to Tomcat 5?

Note that I found the ISAPI filter for Tomcat 4.x at:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0
/

3) I am using Tomcat 4.0.4-b3 and a strange thing happens: after Tomcat  is
active for some minutes (or hours) without receiving any request it suspends
itself.
So all next requests to servlet and jsp pages are ignored by Tomcat  and the
browser seems not to find the servlet/jsp page requested. To activate again
Tomcat I have to restart the service: I have found no other way to solve the
problem! Can someone help me? Is this a bug of Tomcat Tomcat 4.0.4-b3 ? Must
I install another Tomcat's version (like Tomcat 5) to remove this bug? Or
there is some configuration setting of Tomcat
to avoid that it suspends itself after some time of inactivity?

I hope someone can help me :-(

Thanks everybody in advance!

 Luca


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




BASIC authentication in Tomcat+IIS (PROBLEM SOLVED: ERRATA CORRIGE!!!)

2002-11-05 Thread Luca Ventura
Hello everybody!

I wrote to notify you that some days ago I have posted a wrong solution
to the problem of the basic authentication of Tomcat with IIS
(below you can find my old post). In fact I believed that the reason why
basic authentication of Tomcat didn't work was due to compatibility problems
between tha jar files "ajp.jar" and "tomcat-util.jar" contained in
"tc4ntiis.zip" and Tomcat 4.x. Anyway after some tests I discovered that
this WAS NOT the cause of the problem: the REAL cause of the problem  was
that I had installed
in Tomcat 4.x the jar files of "tc4ntiis.zip" but not the isapi filter
"isapi_redirect.dll"
provided with the same .zip package. The version of the ISAPI filter I had
installed was
that one you can find in the Jakarta web site (isapi_redirector.dll) that IS
NOT FULLY
compatible with the jar files "ajp.jar" and "tomcat-util.jar" of
"tc4ntiis.zip".
All works correctly if you install with "ajp.jar" and "tomcat-util.jar" also
the "isapi_redirect.dll" present in "tc4ntiis.zip", or if you install
ONLY the "isapi_redirector.dll" of Jakarta web site.

I hope this can help someone else.

Thanks everybody for the patience!

Luca

-Messaggio originale-
Da: Luca Ventura [mailto:ventluca@;tiscali.it]
Inviato: giovedì 31 ottobre 2002 15.17
A: tomcat-dev; tomcat-user
Oggetto: BASIC authentication in Tomcat+IIS (PROBLEM SOLVED!!!)


Hello everybody!

I would like to notify you that I have solved the problem described
below after many days of hard work on it

The solution is simple: to install Tomcat 4.x (I have installed
Tomcat 4.0.4-b2) as plug-in of IIS
to support JSP/Servlet you must download and install the package
"tc4ntiis.zip" that you can find at URL:

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#6


It contains the isapi filter "isapi_redirect.dll" that let IIS
to redirect JSP/Servlets requests to Tomcat 4.x.

Well...the package contains also two jar files: "ajp.jar" and
"tomcat-util.jar"
in the server\lib folder. If you install them in the same folder
of Tomcat the basic authentication  will not work any more
when you use Tomcat with the ISAPI filter (not in standalone mode).

In fact the original distribution of Tomcat 4.x contains two jar
files, "tomcat-util.jar" and "tomcat-ajp.jar", that performs
the same operations of the two files described above but have different
sizes and
use different classes. These two files are built to work correctly with
the version of Tomcat they are bundled with: so they MUST NOT
REPLACED!!! Given that "ajp.jar" and "tomcat-ajp.jar" have different
names you also must  worry not to install both of them in the server\lib
folder
of Tomcat: because it can happen that the classes of the first file will
be used from Tomcat instead of those of the second one.

THIS MEANS THAT YOU HAVE TO IGNORE THE FILES  "ajp.jar" and
"tomcat-util.jar"
OF THE PACKAGE "tc4ntiis.zip" and USE ONLY THE ISAPI FILTER.

Maybe when the author of the zip file generated the jar files
he didn't worry to test them with Tomcat 4.x: this means that he couldn't
note that they have some compatibility problem with
this version of Tomcat.

In attach you can find the original jar files of Tomcat 4.0.4b2 that I have
used
and that work correctly: you can use them to restore the correct
libs of Tomcat.

I hope this solution can help all of you too! :-)

Best regards,

 Luca

-Messaggio originale-
Da: Luca Ventura [mailto:ventluca@;tiscali.it]
Inviato: giovedì 31 ottobre 2002 12.32
A: tomcat-user
Oggetto: BASIC authentication in Tomcat+IIS (second useful information)


Hello!

I have another useful information about this problem...

The version of Tomcat I have is 4.0.4b3: is it possible
that this beta release contains some bug that doesn't
let Tomcat to support correctly BASIC authentication
(when it is used as Servlet Container and not in standalone mode)??

Anyway in this case I don't understand why in the test
environment the basic authentication of Tomcat works well
in fact the problem is present only in production
environment using Server 1!

If someone has some idea or suggestion to solve this problem
I pray him to let me know (I am spending many work-days to solve it
without success)!

Thanks.

   Luca

-Messaggio originale-
Da: Luca Ventura [mailto:ventluca@;tiscali.it]
Inviato: giovedì 31 ottobre 2002 11.12
A: tomcat-dev
Oggetto: BASIC authentication in Tomcat+IIS (one useful information)



Hello!

I have another useful information about the problem described below that I
have
posted some day ago wihout receiving no solution for it :(((

If I use Tomcat 4.x as Web Server (standalone mode), instead of
IIS,

BASIC authentication in Tomcat+IIS (second useful information)

2002-10-31 Thread Luca Ventura
Hello!

I have another useful information about this problem...

The version of Tomcat I have is 4.0.4b3: is it possible
that this beta release contains some bug that doesn't
let Tomcat to support correctly BASIC authentication
(when it is used as Servlet Container and not in standalone mode)??

Anyway in this case I don't understand why in the test
environment the basic authentication of Tomcat works well
in fact the problem is present only in production
environment using Server 1!

If someone has some idea or suggestion to solve this problem
I pray him to let me know (I am spending many work-days to solve it
without success)!

Thanks.

   Luca

-Messaggio originale-
Da: Luca Ventura [mailto:ventluca@;tiscali.it]
Inviato: giovedì 31 ottobre 2002 11.12
A: tomcat-dev
Oggetto: BASIC authentication in Tomcat+IIS (one useful information)



Hello!

I have another useful information about the problem described below that I
have
posted some day ago wihout receiving no solution for it :(((

If I use Tomcat 4.x as Web Server (standalone mode), instead of
IIS, the BASIC Authentication works well also on Server 1!

This means there must be some strange setting in IIS or in Windows 2000
Advanced Server that forces the Tomcat's ISAPI filter (that is to say
when Tomcat is used only as Servlet Container) not to ask for login
and password to the user but to get their values directly from the system.

I hope someone can help me.

Best regards,

      Luca

-Messaggio originale-
Da: Luca Ventura [mailto:ventluca@;tiscali.it]
Inviato: martedì 29 ottobre 2002 12.12
A: tomcat-dev
Oggetto: BASIC authentication in Tomcat+IIS


Hello everybody!

I have the following GREAT problem with basic authentication in Tomcat

I have two servers configured as follows:

Server 1:

Operating system: Windows 2000 Advanced Server
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2: Windows XP Professional
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2 is not connected to the Internet but it is used to test web
applications before passing them in the production environment deployed in
Server 1. In fact Server 1 is connected to the Internet
and contains all the final versions of Web Applications.

So I connect to Server 1 using a real domain name (for example:
www.mydomain.com) while I connect to Server 2  using "localhost".

In both Servers I use Tomcat 4.x as Servlet Container and Micrososft IIS 5
as Web Server. I installed the ISAPI filter to redirect to Tomcat all the
requests to Servlet/JSP pages or to web sites based on such
java-technologies.

I have tried to protect some Servlet/jsp-pages  using basic authentication
of Tomcat. So I configured the following tomcat files in such way:

server.xml:

...







  

...


tomcat-users.xml:


  
 

web.xml:


  Autenticazione Tomcat
  
 Protected Area
 
 /MyServlet
  
  
 
 adminrole
  




  BASIC
  Autenticazione Tomcat



Server.xml and tomcat-users.xml are present in /conf folder of Tomcat, while
web.xml in the WEB-INF folder
of the web application that contains the resource (in this case the servlet
"MyServlet") that I want to protect.


All works fine in Server 2 (localhost): in fact when I connect to the
protected resource (servlet "MyServlet")Tomcat asks me in a window the login
and the password to access to the resource. The problem appears after moving
my application in Server 2 (production environment) because when I try to
connect to the protected servlet I receive from Tomcat the following error
page:

Apache Tomcat/4.0.4-b3 - HTTPS Status 403 - Access to the requested resource
has been denied

type: Status report
message: Access to the requested resource has been denied
description: Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.

The strange thing is that Tomcat, before showing the error page, doesn't ask
to me for the login and the password to access the resource (as in the first
case). It seems that IIS
passes automatically an internal login and password to Tomcat to access to
the protected resource: given that they are not correct I receive an error
message
from Tomcat. Anyway I am not sure of this but I suspect that the problem
is in Windows 2000 Advanced Server because when I try to access to Server 2,
where there is Windows XP installed , all works fine.

I have heard that this problem could occur in Windows 2000 only when realm
authentication is not set in IIS,
but i am not sure and in any case I have no idea how to set realm
authentication  in IIS.

I hope someone can help me to solve this problem.

Thanks a lot in advance!

 Luca


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




BASIC authentication in Tomcat+IIS (second useful information)

2002-10-31 Thread Luca Ventura
Hello!

I have another useful information about this problem...

The version of Tomcat I have is 4.0.4b3: is it possible
that this beta release contains some bug that doesn't
let Tomcat to support correctly BASIC authentication
(when it is used as Servlet Container and not in standalone mode)??

Anyway in this case I don't understand why in the test
environment the basic authentication of Tomcat works well
in fact the problem is present only in production
environment using Server 1!

If someone has some idea or suggestion to solve this problem
I pray him to let me know (I am spending many work-days to solve it
without success)!

Thanks.

   Luca

-Messaggio originale-
Da: Luca Ventura [mailto:ventluca@;tiscali.it]
Inviato: giovedì 31 ottobre 2002 10.43
A: tomcat-user
Oggetto: BASIC authentication in Tomcat+IIS (one useful information)


Hello!

I have another useful information about the problem described below that I
have
posted some day ago wihout receiving no solution for it :(((

If I use Tomcat 4.x as Web Server (standalone mode), instead of
IIS, the BASIC Authentication works well also on Server 1!

This means there must be some strange setting in IIS or in Windows 2000
Advanced Server that forces the Tomcat's ISAPI filter (that is to say
when Tomcat is used only as Servlet Container) not to ask for login
and password to the user but to get their values directly from the system.

I hope someone can help me.

Best regards,

      Luca

-Messaggio originale-
Da: Luca Ventura [mailto:ventluca@;tiscali.it]
Inviato: martedì 29 ottobre 2002 12.12
A: tomcat-user
Oggetto: BASIC authentication in Tomcat+IIS


Hello everybody!

I have the following GREAT problem with basic authentication in Tomcat

I have two servers configured as follows:

Server 1:

Operating system: Windows 2000 Advanced Server
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2: Windows XP Professional
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2 is not connected to the Internet but it is used to test web
applications before passing them in the production environment deployed in
Server 1. In fact Server 1 is connected to the Internet
and contains all the final versions of Web Applications.

So I connect to Server 1 using a real domain name (for example:
www.mydomain.com) while I connect to Server 2  using "localhost".

In both Servers I use Tomcat 4.x as Servlet Container and Micrososft IIS 5
as Web Server. I installed the ISAPI filter to redirect to Tomcat all the
requests to Servlet/JSP pages or to web sites based on such
java-technologies.

I have tried to protect some Servlet/jsp-pages  using basic authentication
of Tomcat. So I configured the following tomcat files in such way:

server.xml:

...







  

...


tomcat-users.xml:


  
 

web.xml:


  Autenticazione Tomcat
  
 Protected Area
 
 /MyServlet
  
  
 
 adminrole
  




  BASIC
  Autenticazione Tomcat



Server.xml and tomcat-users.xml are present in /conf folder of Tomcat, while
web.xml in the WEB-INF folder
of the web application that contains the resource (in this case the servlet
"MyServlet") that I want to protect.


All works fine in Server 2 (localhost): in fact when I connect to the
protected resource (servlet "MyServlet")Tomcat asks me in a window the login
and the password to access to the resource. The problem appears after moving
my application in Server 2 (production environment) because when I try to
connect to the protected servlet I receive from Tomcat the following error
page:

Apache Tomcat/4.0.4-b3 - HTTPS Status 403 - Access to the requested resource
has been denied

type: Status report
message: Access to the requested resource has been denied
description: Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.

The strange thing is that Tomcat, before showing the error page, doesn't ask
to me for the login and the password to access the resource (as in the first
case). It seems that IIS
passes automatically an internal login and password to Tomcat to access to
the protected resource: given that they are not correct I receive an error
message
from Tomcat. Anyway I am not sure of this but I suspect that the problem
is in Windows 2000 Advanced Server because when I try to access to Server 2,
where there is Windows XP installed , all works fine.

I have heard that this problem could occur in Windows 2000 only when realm
authentication is not set in IIS,
but i am not sure and in any case I have no idea how to set realm
authentication  in IIS.

I hope someone can help me to solve this problem.

Thanks a lot in advance!

 Luca


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




BASIC authentication in Tomcat+IIS (one useful information)

2002-10-31 Thread Luca Ventura
Hello!

I have another useful information about the problem described below that I
have
posted some day ago wihout receiving no solution for it :(((

If I use Tomcat 4.x as Web Server (standalone mode), instead of
IIS, the BASIC Authentication works well also on Server 1!

This means there must be some strange setting in IIS or in Windows 2000
Advanced Server that forces the Tomcat's ISAPI filter (that is to say
when Tomcat is used only as Servlet Container) not to ask for login
and password to the user but to get their values directly from the system.

I hope someone can help me.

Best regards,

  Luca

-Messaggio originale-
Da: Luca Ventura [mailto:ventluca@;tiscali.it]
Inviato: martedì 29 ottobre 2002 12.12
A: tomcat-user
Oggetto: BASIC authentication in Tomcat+IIS


Hello everybody!

I have the following GREAT problem with basic authentication in Tomcat

I have two servers configured as follows:

Server 1:

Operating system: Windows 2000 Advanced Server
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2: Windows XP Professional
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2 is not connected to the Internet but it is used to test web
applications before passing them in the production environment deployed in
Server 1. In fact Server 1 is connected to the Internet
and contains all the final versions of Web Applications.

So I connect to Server 1 using a real domain name (for example:
www.mydomain.com) while I connect to Server 2  using "localhost".

In both Servers I use Tomcat 4.x as Servlet Container and Micrososft IIS 5
as Web Server. I installed the ISAPI filter to redirect to Tomcat all the
requests to Servlet/JSP pages or to web sites based on such
java-technologies.

I have tried to protect some Servlet/jsp-pages  using basic authentication
of Tomcat. So I configured the following tomcat files in such way:

server.xml:

...







  

...


tomcat-users.xml:


  
 

web.xml:


  Autenticazione Tomcat
  
 Protected Area
 
 /MyServlet
  
  
 
 adminrole
  




  BASIC
  Autenticazione Tomcat



Server.xml and tomcat-users.xml are present in /conf folder of Tomcat, while
web.xml in the WEB-INF folder
of the web application that contains the resource (in this case the servlet
"MyServlet") that I want to protect.


All works fine in Server 2 (localhost): in fact when I connect to the
protected resource (servlet "MyServlet")Tomcat asks me in a window the login
and the password to access to the resource. The problem appears after moving
my application in Server 2 (production environment) because when I try to
connect to the protected servlet I receive from Tomcat the following error
page:

Apache Tomcat/4.0.4-b3 - HTTPS Status 403 - Access to the requested resource
has been denied

type: Status report
message: Access to the requested resource has been denied
description: Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.

The strange thing is that Tomcat, before showing the error page, doesn't ask
to me for the login and the password to access the resource (as in the first
case). It seems that IIS
passes automatically an internal login and password to Tomcat to access to
the protected resource: given that they are not correct I receive an error
message
from Tomcat. Anyway I am not sure of this but I suspect that the problem
is in Windows 2000 Advanced Server because when I try to access to Server 2,
where there is Windows XP installed , all works fine.

I have heard that this problem could occur in Windows 2000 only when realm
authentication is not set in IIS,
but i am not sure and in any case I have no idea how to set realm
authentication  in IIS.

I hope someone can help me to solve this problem.

Thanks a lot in advance!

 Luca


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




BASIC authentication in Tomcat+IIS

2002-10-29 Thread Luca Ventura

Hello everybody!

I have the following GREAT problem with basic authentication in Tomcat

I have two servers configured as follows:

Server 1:

Operating system: Windows 2000 Advanced Server
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2: Windows XP Professional
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2 is not connected to the Internet but it is used to test web
applications before passing them in the production environment deployed in
Server 1. In fact Server 1 is connected to the Internet
and contains all the final versions of Web Applications.

So I connect to Server 1 using a real domain name (for example:
www.mydomain.com) while I connect to Server 2  using "localhost".

In both Servers I use Tomcat 4.x as Servlet Container and Micrososft IIS 5
as Web Server. I installed the ISAPI filter to redirect to Tomcat all the
requests to Servlet/JSP pages or to web sites based on such
java-technologies.

I have tried to protect some Servlet/jsp-pages  using basic authentication
of Tomcat. So I configured the following tomcat files in such way:

server.xml:

...







  

...


tomcat-users.xml:


  
 

web.xml:


  Autenticazione Tomcat
  
 Protected Area
 
 /MyServlet
  
  
 
 adminrole
  




  BASIC
  Autenticazione Tomcat



Server.xml and tomcat-users.xml are present in /conf folder of Tomcat, while
web.xml in the WEB-INF folder
of the web application that contains the resource (in this case the servlet
"MyServlet") that I want to protect.


All works fine in Server 2 (localhost): in fact when I connect to the
protected resource (servlet "MyServlet")Tomcat asks me in a window the login
and the password to access to the resource. The problem appears after moving
my application in Server 2 (production environment) because when I try to
connect to the protected servlet I receive from Tomcat the following error
page:

Apache Tomcat/4.0.4-b3 - HTTPS Status 403 - Access to the requested resource
has been denied

type: Status report
message: Access to the requested resource has been denied
description: Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.

The strange thing is that Tomcat, before showing the error page, doesn't ask
to me for the login and the password to access the resource (as in the first
case). It seems that IIS
passes automatically an internal login and password to Tomcat to access to
the protected resource: given that they are not correct I receive an error
message
from Tomcat. Anyway I am not sure of this but I suspect that the problem
is in Windows 2000 Advanced Server because when I try to access to Server 2,
where there is Windows XP installed , all works fine.

I have heard that this problem could occur in Windows 2000 only when realm
authentication is not set in IIS,
but i am not sure and in any case I have no idea how to set realm
authentication  in IIS.

I hope someone can help me to solve this problem.

Thanks a lot in advance!

 Luca


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




BASIC authentication in Tomcat+IIS

2002-10-29 Thread Luca Ventura
Hello everybody!

I have the following GREAT problem with basic authentication in Tomcat

I have two servers configured as follows:

Server 1:

Operating system: Windows 2000 Advanced Server
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2: Windows XP Professional
Web Server: IIS 5.0
Servlet Container: Tomcat 4.x

Server 2 is not connected to the Internet but it is used to test web
applications before passing them in the production environment deployed in
Server 1. In fact Server 1 is connected to the Internet
and contains all the final versions of Web Applications.

So I connect to Server 1 using a real domain name (for example:
www.mydomain.com) while I connect to Server 2  using "localhost".

In both Servers I use Tomcat 4.x as Servlet Container and Micrososft IIS 5
as Web Server. I installed the ISAPI filter to redirect to Tomcat all the
requests to Servlet/JSP pages or to web sites based on such
java-technologies.

I have tried to protect some Servlet/jsp-pages  using basic authentication
of Tomcat. So I configured the following tomcat files in such way:

server.xml:

...







  

...


tomcat-users.xml:


  
 

web.xml:


  Autenticazione Tomcat
  
 Protected Area
 
 /MyServlet
  
  
 
 adminrole
  




  BASIC
  Autenticazione Tomcat



Server.xml and tomcat-users.xml are present in /conf folder of Tomcat, while
web.xml in the WEB-INF folder
of the web application that contains the resource (in this case the servlet
"MyServlet") that I want to protect.


All works fine in Server 2 (localhost): in fact when I connect to the
protected resource (servlet "MyServlet")Tomcat asks me in a window the login
and the password to access to the resource. The problem appears after moving
my application in Server 2 (production environment) because when I try to
connect to the protected servlet I receive from Tomcat the following error
page:

Apache Tomcat/4.0.4-b3 - HTTPS Status 403 - Access to the requested resource
has been denied

type: Status report
message: Access to the requested resource has been denied
description: Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.

The strange thing is that Tomcat, before showing the error page, doesn't ask
to me for the login and the password to access the resource (as in the first
case). It seems that IIS
passes automatically an internal login and password to Tomcat to access to
the protected resource: given that they are not correct I receive an error
message
from Tomcat. Anyway I am not sure of this but I suspect that the problem
is in Windows 2000 Advanced Server because when I try to access to Server 2,
where there is Windows XP installed , all works fine.

I have heard that this problem could occur in Windows 2000 only when realm
authentication is not set in IIS,
but i am not sure and in any case I have no idea how to set realm
authentication  in IIS.

I hope someone can help me to solve this problem.

Thanks a lot in advance!

 Luca


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




R: How can I protect my servlet with a login and a password?

2002-10-18 Thread Luca Ventura
Thanks a lot!

Regards,

 Luca

-Messaggio originale-
Da: Rajesh B [mailto:Rajesb@;sapient.com]
Inviato: giovedì 17 ottobre 2002 9.11
A: 'Tomcat Users List'
Oggetto: RE: How can I protect my servlet with a login and a password?


U just need to add basic authentication in ur apache httpd.conf file.
Nothing to change in tomcat. Have a look at basic authentication in apache

-Original Message-----
From: Luca Ventura [mailto:ventluca@;tiscali.it]
Sent: Thursday, October 17, 2002 12:37 PM
To: tomcat-user
Subject: How can I protect my servlet with a login and a password?


Hello everybody!

I have Apache Tomcat 4.0 as Servlet Engine and I would like to to the
following
thing: when a user tries to connect to my servlet "MyServlet" a window
should appear that ask him to insert a login and a password
before accessing to the servlet. How can I do this?

Must I change some configuration file in Tomcat? Can I use
the same solution to protect other web resources (for example
the "files" to download)?

Thanks a lot in advance!

Luca


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




ERROR PAGE IN TOMCAT

2002-10-18 Thread Luca Ventura
Hello everybody!

I would like to show an html "error-page" that I have written
when an error happens in Tomcat (for example: PAGE NOT FOUND), instead of
that one
appears by default.

How can I do? Is there some setting in Tomcat to do this?

Best regards,

   Luca


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




WHY DOES TOMCAT SUSPEND ITSELF?

2002-10-18 Thread Luca Ventura
Hello everybody!

I have Tomcat 4.x as Servlet Container and I have seen that sometimes the
following strange thing happens

When Tomcat doesn't receive requests for a period of time (that can take
minutes or hours) it suspends
itself and I must restart the service manually because Tomcat doesn't answer
to the users' requests any more. In fact when this happens and then a user
tries to connect to Tomcat he waits for an answer forever
without success until the connection is closed by the Web Browser because it
is timed out.

Is there some setting in Tomcat to avois this? Has someone already had such
problem? If yes, how did
he solve it?

I hope someone can help me

Thanks in advance.


Luca





DOES BASIC AUTHENTICATION SUPPORT SSL?

2002-10-18 Thread Luca Ventura
Hello everybody!

I have IIS as Web Server and Tomcat 4.x as Servlet Container (using the
ISAPI filter).
So all requests directed to servlets, jsp-pages, or
java-technology based web sites are redirected to Tomcat 4.x from IIS.
I have installed in IIS a digital certificate to support HTTPS
protocol.

Let's suppose my web domain is: www.mydomain.com

and that my java-technology based web site is in the /javasite folder.
So to access to it in a secure way using HTPPS I must type the url:

https://www.mydomanin.com/javasite/index.html

First of all I would like to have a confirmation of the following thing:

1) When I send data to the url above are all of them cripted from my Web
Browser and decrypted by ISS before redirecting them to Tomcat 4.x
(I haven't installed the same digital certificate in Tomcat because
I don't use it as a Web Server)?

Then I need to know:

2)I want to protect some servlets and jsp-pages with an access login and
password:
So I used the BASIC authentication of Tomcat: in this way when I user
try to connect to a protected servlet or jsp-page the  Servlet Container
Tomcat asks to
the user to insert a login and a password. If the url of the servler or
jsp-page
he tries to connect to is https based (for example:
https://www.mydomanin.com/javasite/MyServet) are both login and password
crypted before sending them to Tomcat (I think that IIS should receive ,
decrypt and forward
them to Tomcat)?


I hope someone can help me.

Thanks everybody in advance!

   Luca




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




How can I protect my servlet with a login and a password?

2002-10-16 Thread Luca Ventura

Hello everybody!

I have Apache Tomcat 4.0 as Servlet Engine and I would like to to the
following
thing: when a user tries to connect to my servlet "MyServlet" a window
should appear that ask him to insert a login and a password
before accessing to the servlet. How can I do this?

Must I change some configuration file in Tomcat? Can I use
the same solution to protect other web resources (for example
the "files" to download)?

Thanks a lot in advance!

Luca


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




JNDI Initial Context, outside webapp

2002-10-09 Thread Luca Zago

Hi,
I noticed that is pratically impossible to retrieve a JNDI resource
outside a webapp.If I need to access my resourse in some classes
istantiated outside a single webapp, I always get an exception.

Name jdbc/myDS is not bound in this Context

I read the docs. If I understand well, the initialContext is read-only,
(for this reason I cannot published a resource there), then the only
context available is "java:comp/env", available only insdie a webapp.
I think that a solution could be: since initialContext for sure is
initialized before webapps, if I can publish a resource there, then I
can access this resource outside a webapp. have I understood well, is it
so impossible to publish in the initialContext, like in other
Application servers?
is there a way to access a JNDI resource outside a webapp?
or is it a limitation of the JNDI implementation in Tomcat?

Thank you in advance for suggestions or explanation.


-- 
Luca Zago
Senior IT Developer
_

E-TREE S.p.a.  Via Fonderia 43 - 31100 Treviso (Italy)
phone +39.0422.3107
fax   +39.0422.310888
http://www.e-tree.com  http://www.webanana.com
_



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




R: Digital certification installation in Tomcat

2002-10-02 Thread Luca Ventura

Thanks Miguel.

To know that the digital certificate must be in IIS is a good
information: now the problem is to know how to install it in IIS...

Does someone how to install digital certificates in both IIS
and Tomcat?

Thank you very much in advance!

 Luca

P.S: Even in this case I haven't to install a digital certificate in Tomcat,
to know ho to do it in Tomcat could be useful in future if I use Tomcat as
Web Server :-)


-Messaggio originale-
Da: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 2 ottobre 2002 10.09
A: Tomcat Users List
Oggetto: RE: Digital certification installation in Tomcat


Hi Luca,

You have raison, the digital certificate must be in IIS, not in Tomcat. IIS
will crypt/decrypt the information before sending it to the client.

I never have do this, so if someone could give some information more, it
will be very interesting.

Regards,
Miguel

-Mensaje original-
De: Luca Ventura [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 02 de octubre de 2002 9:29
Para: tomcat-user
Asunto: Digital certification installation in Tomcat

Hello everybody!


I have the following problem.

I have IIS as Web Server and Tomcat 4.x as Servlet/JSP container. I have
installed
Tomcat 4.x as a plug-in of IIS (using the isapi filter): so all requests
directed to servlet/jsp pages or to sites that use these java-technologies
are redirected to Tomcat.
I would like to install a digital certificate in IIS to support HTTPS
protocol but I don't know if I must install it in Tomcat too. I told that
IIS is my Web Server: so when crypted data
arrive to my Web Server first the should be decrypted from IIS and then
forwarded to Tomcat if necessary, but I am not sure of this and I would like
a confirmation. In fact if the
data sent are not decrypted before redirecting them to Tomcat I should
install the same digital certificate in Tomcat too to support HTTPS.

If I must install the digital certificate in IIS can someone suggest me how
to do or some
link that contains documentation on this topic?

Thank you very much in advance!

    Luca





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


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



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




Digital certification installation in Tomcat

2002-10-02 Thread Luca Ventura

Hello everybody!


I have the following problem.

I have IIS as Web Server and Tomcat 4.x as Servlet/JSP container. I have
installed
Tomcat 4.x as a plug-in of IIS (using the isapi filter): so all requests
directed to servlet/jsp pages or to sites that use these java-technologies
are redirected to Tomcat.
I would like to install a digital certificate in IIS to support HTTPS
protocol but I don't know if I must install it in Tomcat too. I told that
IIS is my Web Server: so when crypted data
arrive to my Web Server first the should be decrypted from IIS and then
forwarded to Tomcat if necessary, but I am not sure of this and I would like
a confirmation. In fact if the
data sent are not decrypted before redirecting them to Tomcat I should
install the same digital certificate in Tomcat too to support HTTPS.

If I must install the digital certificate in IIS can someone suggest me how
to do or some
link that contains documentation on this topic?

Thank you very much in advance!

    Luca





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




Servlet's contexts and other Tomcat's topics.

2002-09-29 Thread Luca Ventura

Hello everybody!

I have Tomcat 4.x as Web Server and I would like to to the following two
things but I don't know how to do:

1) I need to share the same Servlet Context "MyContext" between
all the servlets and jsp-pages of my web application.

2) I would like that my web server does something when an event happens
in the servlet context "MyContext".

3) I would like to show to the user an html page of mine when a Tomcat's
error
happens (for example: "Page not found"). The problem is that I don't know
how to set Tomcat to do this.

I explain better the meaning of first two points:

The thing I would like to do is the following one: every time a user
connects to my servlet (or jsp-page) called "MyServlet" I create
a session (an HttpSession object). After creating it I put this session
in the MyServlet's Context (let's call it "MyContext"): in this
way I can count (using a counter "MyCounter" that I also insert in
"MyContext" together
with the user's session) the users connected to my web application.
All the servlets and jsp pages of my web application should share the
Context
"MyContext".

When I user disconnects from my web application I decrease "MyCounter" and
when "MyCounter" reaches the value 0 the web server Tomcat should execute
a java class (let's suppose it is called "MyClass") that does something (now
it is not important
to explain what it does). Instead when a user disconnects from my web
application
but the counter "MyCounter" doesn't reach the value 0 the Web Server Apache
should execute
another Java class (let's suppose it is called "MySecondClass").

All the other servlets and jsp-pages of my web application
can use the counter "MyCounter" to do some other checks: this is the reason
why I must
share the context "MyContext".

How can I set my Web Server Tomcat 4.x to do all this? What Java Servlet API
must I use?

Thank you very much everybody in advance (above all for the patience!).

Best regards,

Luca


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




Problems with JNDI GlobalNamingResources: access outside webapp

2002-09-26 Thread Luca Zago

Hi,
I have some problems with a JNDI look up.
I have my classes to in a web app, but in a jar in tomact common/lib, I 
put my jndi resourse in the GlobalNamingResources in the server.xml and 
I use this code to access the context.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
ds = (DataSource)envCtx.lookup(datasource);

I got the error:
initialization failed : Name comp is not bound in this Context

it doesn't find the context..because it's out of a webapp..
Does somebody  know how to call the global context from the code?
is it possible to get access to the context outside a webapp?

Thanks,


-- 
Luca Zago
Senior IT Developer
_

E-TREE S.p.a.  Via Fonderia 43 - 31100 Treviso (Italy)
phone +39.0422.3107
fax   +39.0422.310888
http://www.e-tree.com  http://www.webanana.com
_


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




How to run multiple instances of JSP pages/servlets in Tomcat?

2002-09-26 Thread Luca Ventura

Hello everybody!

In Tomcat 4.x I don't know how I can call automatically a JSP page when the
web application starts.
I mean...in Tomcat 4.x there is the web.xml file where I can declare:


MyServlet
MyServlet

configFile
my.conf

1


In this way the servlet "MyServlet" is called when the web app. starts...

Can I do the same thing with a jsp page (the jsp page should be like a
servlet, in fact it is translated into a servlet when it is called the first
time)? If yes, in which way?

Another questions: how can I tell the Web Server "Tomcat" to activate more
instances
of a servlet or a JSP page?

Thanks a lot to everybody!

    Luca



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




How can I maintain sessions between IIS and Tomcat?

2002-09-24 Thread Luca Ventura

Sorry for having replied this mail but I have set a more detailed
subject for it, hoping someone can help me in solving the problem described
below.

Thanks everybody for the patience.

  Luca



Hello everybody!

I have installed Tomcat as plug-in of Internet Information Server (IIS) to
support JSP/Servlet, using the ISAPI filter.
So I can support ASP pages thanks to IIS and Servlets/JSP-pages thanks to
Tomcat.
All works well if I don't use sessions. In fact if I create an user-session
(object) in a JSP page or in a servlet, and then I insert information in it
(using setAttribute() method of HttpSession class) ,
the session object just created is not visible in an ASP page. The same
thing happens if I create
the session in an ASP page: the session will not visible in a JSP page. It
seems that IIS
and Tomcat can't exchange session information between them...why?

How can I solve this problem? Must I configure the ISAPI filter in some way?
If yes..how?

I hope someone can help me.

Thanks in advance!

     Luca


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




Tomcat and IIS

2002-09-24 Thread Luca Ventura


Hello everybody!

I have installed Tomcat as plug-in of Internet Information Server (IIS) to
support JSP/Servlet, using the ISAPI filter.
So I can support ASP pages thanks to IIS and Servlets/JSP-pages thanks to
Tomcat.
All works well if I don't use sessions. In fact if I create an user-session
(object) in a JSP page or in a servlet, and then I insert information in it
(using setAttribute() method of HttpSession class) ,
the session object just created is not visible in an ASP page. The same
thing happens if I create
the session in an ASP page: the session will not visible in a JSP page. It
seems that IIS
and Tomcat can't exchange session information between them...why?

How can I solve this problem? Must I configure the ISAPI filter in some way?
If yes..how?

I hope someone can help me.

Thanks in advance!

     Luca


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




tomcat 4.1.10 & tag

2002-09-09 Thread luca

Hello,
I've caught an exception with tomcat 4.1.10 and the tag .
this is the code:

---
<% boolean disabled=false; ...%>


   
   

---

and this is the error message:

---
An error occurred at line: 567 in the jsp file: /frame-grid.jsp

Generated servlet error:
D:\Programmi\Tomcat
4.1\work\Standalone\localhost\webmodel\frame_0002dgrid_jsp.java:412: cannot
resolve symbol
symbol  : method encode  (boolean)
location: class java.net.URLEncoder
  JspRuntimeLibrary.include(request, response, "simple-icon.jsp" + "?" +
"icon=" + "blocca" + "&" + "disabled=" + java.net.URLEncoder.encode(
disabled ), out, false);
---

Note that with Tomcat 4.04 this worked fine.

I'm using Tomcat 4.1.10 LE-jdk14 with jdk 1.4.0
Thanx for any suggests, luca



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




How I can redirect requests in Tomcat 4?

2002-07-03 Thread Luca Ventura

Hello everybody!

I have Tomcat 4 installed as Web Server on a Win 2000 machine. I would like
to know how  I can redirect requests from an URL to another one. For example
I would like to redirect all the requests for this url:

http://www.mydomain.com/address1.html


to this new url:

http://www.newdomain.com/address2.html


How can I set Tomcat 4 to do this? Which configuration files must I modify?

Thanks a lot in advance!

   Luca


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




Re: Problems compiling mod_jk - SOLVED

2002-07-01 Thread Luca Zancan

Hello everybody,

I finally discovered (thank you very much again, Martin van den Bemt) how to compile 
the
"ik" connector.

I have changed directory into the location for which webserver mod_jk is meant
(/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-1.3 in my case)
and execute the (manually adjusted) appropiate shell file (build-unix.sh).
(adding DEAPI to the CFLAGS variable).
I've launched the shell script and all has went smooth (it compiles right and installs
mod_jk.so in /usr/local/apache/libexec)

I can't understand why these pieces of information are not available on the web... 
even in
Jakarta home is impossible to find a clear installation procedure and the various 
READMEs
contained in the source code do not tell everything is needed...

bye
Luca

Luca Zancan wrote:

> Hello everybody,
>
> I've downloaded "jakarta-tomcat-connectors-4.0.2-01.src.tar.gz" and I've
> launched "ant" and "ant install" without problems (they created a
> "build" directory in the "jk" subdir)
> Then I've changed to the "native" subdir to launch the command
> ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-EAPI
> (I'm using Apache 1.3.24, Tomcat 4.0.3 and Ant 1.4.1 on a RedHat 7.2,
> kernel 2.4.7-10)
> I have no "configure" and then (following the directions in
> REAME.configure) I've tried with "autoconf".
> "autoconf" creates a "configure" file but gives me a couple of errors:
> 
> autoconf: Undefined macros:
> configure.in:18:AC_LIBTOOL_DLOPEN
> configure.in:26:AC_PROG_LD
> 
>
> (I'm using "autoconf 2.13-14" and "libtool 1.4-8")
>
> I've tried to launch "./configure --with-apxs.", but it gives me:
> 
> loading cache ./config.cache
> configure: error: can not find install-sh or install.sh in
> scripts/build/unix ./scripts/build/unix
> 
>
> Any ideas???
> I've tried also with "jakarta-tomcat-connectors-4.0.4-b3-src.tar.gz",
> but I obtain immediately this error when I launch "ant"
> __
> guess_catalina40:
>
> guess_catalina41:
>
> cpath:
>
> prepare:
>  [copy] Could not find file
> 
>/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/coyote/build/lib/tomcat-coyote.jar
> to copy.
>
> BUILD FAILED
>
> /usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/jk/build.xml:100:
> Could not find file
> 
>/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/coyote/build/lib/tomcat-coyote.jar
> to copy.
> ___
>
> I need a version of mod_jk with EAPI enabled and I have not been able to
> find a compiled one...
>
> Any help would be greatly appreciated.
>
> bye
> Luca
> __
>
> Luca Zancan
> Logica S.r.l.
> e-mail [EMAIL PROTECTED]
> URL http://www.logicaonline.com
> __
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
__

Luca Zancan
Logica S.r.l.
e-mail [EMAIL PROTECTED]
URL http://www.logicaonline.com
__



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




Problems compiling mod_jk

2002-06-18 Thread Luca Zancan

Hello everybody,

I've downloaded "jakarta-tomcat-connectors-4.0.2-01.src.tar.gz" and I've
launched "ant" and "ant install" without problems (they created a
"build" directory in the "jk" subdir)
Then I've changed to the "native" subdir to launch the command
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-EAPI
(I'm using Apache 1.3.24, Tomcat 4.0.3 and Ant 1.4.1 on a RedHat 7.2,
kernel 2.4.7-10)
I have no "configure" and then (following the directions in
REAME.configure) I've tried with "autoconf".
"autoconf" creates a "configure" file but gives me a couple of errors:

autoconf: Undefined macros:
configure.in:18:AC_LIBTOOL_DLOPEN
configure.in:26:AC_PROG_LD


(I'm using "autoconf 2.13-14" and "libtool 1.4-8")

I've tried to launch "./configure --with-apxs.", but it gives me:

loading cache ./config.cache
configure: error: can not find install-sh or install.sh in
scripts/build/unix ./scripts/build/unix



Any ideas???
I've tried also with "jakarta-tomcat-connectors-4.0.4-b3-src.tar.gz",
but I obtain immediately this error when I launch "ant"
__
guess_catalina40:

guess_catalina41:

cpath:

prepare:
 [copy] Could not find file
/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/coyote/build/lib/tomcat-coyote.jar
to copy.

BUILD FAILED

/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/jk/build.xml:100:
Could not find file
/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/coyote/build/lib/tomcat-coyote.jar
to copy.
___

I need a version of mod_jk with EAPI enabled and I have not been able to
find a compiled one...

Any help would be greatly appreciated.

bye
Luca
__

Luca Zancan
Logica S.r.l.
e-mail [EMAIL PROTECTED]
URL http://www.logicaonline.com
__



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




Re: Where is workers.properties???

2002-06-13 Thread Luca Zancan

Thank you very much,

I've downloaded "jakarta-tomcat-connectors...src.tar.gz" and now I'll try to
setup it.
(first I'll read all the documentation I've found in the "jk/doc" subdiretory)

Thanks again.

Luca


zibie wrote:

> > My question is: where is the workers.properties file???
> > Is it not generated automatically???
> >
> > I've downloaded a binary version of mod_jk (mod_jk-01.so) and therefore
> > I've not compiled it: I've simply copied it in
> > /usr/local/apache/libexec/mod_jk.so...
>
> AFAIK workers.properties is not create automically.
> Simply copy exist file from
>
> # jakarta-tomcat-connectors-4.0.2-01-src/jk/conf/workers.properties
>
> or i miss something.
>
> regards
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
__

Luca Zancan
Logica S.r.l.
e-mail [EMAIL PROTECTED]
URL http://www.logicaonline.com
__



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




Where is workers.properties???

2002-06-13 Thread Luca Zancan

Hi everybody,

I'm an absolute beginner with Tomcat and I'm installing Tomcat 4.0.3 on
a Linux RedHat 7.2  (kernel 2.4.7-10).
I'm trying to use AJP connector 1.3 to make Tomcat work with Apache
1.3.24.

Tomcat works great in standalone mode: no problems (Ive tested with
http:/192.168.254.1:8080)

Now I'd like to integrate Tomcat with Apache.

I've inserted the following directives in the "server.xml" file:

under "
and a similar Listener directive under "

and indeed this have created 2 directories under $CATALINA_HOME/conf,
called "auto" and "jk".
In $CATALINA_HOME/conf/auto I find the file mod_jk.conf (correct: I'll
use it in an include statement in my httpd.conf later...)
But the $CATALINA_HOME/conf/jk directory is empty.

My question is: where is the workers.properties file???
Is it not generated automatically???

I've downloaded a binary version of mod_jk (mod_jk-01.so) and therefore
I've not compiled it: I've simply copied it in
/usr/local/apache/libexec/mod_jk.so...

Probably I'm missing something...

Thank you very much for your help.

Bye,
Luca
__

Luca Zancan
Logica S.r.l.
e-mail [EMAIL PROTECTED]
URL http://www.logicaonline.com
__



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




Must I restart Tomcat every time I install a new app?

2002-06-13 Thread Luca Ventura

Hello everybody!

I have installed Tomcat 4 as plug-in of IIS to support JSP/SErvlets,
following the instructions indicated at URL:

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html

All works fine but every time I modify the file "uriworkermap.properties"
to add or remove an url to redirect I must restart Tomcat's service
is it the same thing for you too or I have some error in my configuration?

In fact it isn't a good thing to restart Tomcat's service every time
the administrator must do a modification in Tomcat's configuration...in fact
there could be many user connected to the web sites managed by Tomcat
(they could be executing important transction in that moment!) and they
would be
disconnected!

The same thing happens when I use Tomcat in standalone mode (i.e. as
Web-server
and not as plug-in of IIS): in fact it seems that every time I install or
remove a new site
in webapps folder (and modify the related "web.xml" file for example) I must
restart Tomcat? How come?

Is it possible that the biggest Companies (Amazon, ecc) on the net that use
Tomcat, IIS or Apache as
Web Server or Servlet Container must restart their Web services after each
modification in the configuration? :-(( Or maybe they use more server and
mirroring techniques?

I would like to know if all that I explained to you is correct and how I can
avoid this situation...


Thanks a lot in advance!

Luca



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




R: Is it available Tomcat 2?

2002-06-12 Thread Luca Ventura

Hello!

Thanks for your clarifications...

A question: do the modules to support ASP you indicated to me
work only with Apache 2? or with Tomcat 4 too?

Can Apache 2 support JSP/Servlets without Tomcat?

Thanks,

   Luca

-Messaggio originale-
Da: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 12 giugno 2002 11.49
A: Tomcat Users List
Oggetto: AW: Is it available Tomcat 2?


- Apache is not tomcat.
  Apache is 'just' a web server, tomcat is a web server, a servlet
  engine and a jsp engine. The web server part of tomcat can be
  replaced by apache. In this mode tomcat is an extension of apache
  that provides apache with servlets and JSP's.

- There are modules that extend Apache to support ASP
  http://www.nodeworks.com/asp/
  http://www.chilisoft.com/chiliasp/default.asp

- Apache 2 is available for download
  http://www.apache.org/dist/httpd/

> -Ursprüngliche Nachricht-
> Von: Luca Ventura [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 12. Juni 2002 11:37
> An: tomcat-user
> Betreff: Is it available Tomcat 2?
>
>
> Hello everybody!
>
> I would like to know if it is true that the next version of
> Tomcat (called "Apache 2") supports ASP pages. Is it Apache 2
> available for download (final version)?
>

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



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




Is it available Tomcat 2?

2002-06-12 Thread Luca Ventura

Hello everybody!

I would like to know if it is true that the next version of Tomcat (called
"Apache 2") supports
ASP pages. Is it Apache 2 available for download (final version)?

Thanks a lot in advance!

     Luca


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




IIS mailing list (off-topic)

2002-06-11 Thread Luca Ventura

Sorry with everybody about this off-topic question but I need absolutely
to find a mailing-list about Internet Information Server. I tried to search
on the Web but unsuccessfully.

Anyway I can explain to you the type of the problem I have...when I open the
Microsoft Management Console of IIS (I installed it in a Windows 2000
machine) I receive this error message:

"A non-fatal configuration error occurred. Not all available information may
be displayed"

The problem is that this type of error doesn't allow me to create new
sites!!!

Can someone help me? Is there some log file in IIS where this type of error
may have been described?
Maybe a more detailed description of the problem could help me


Thanks and sorry again for this off-topic post.

   Luca

P.S: Given that this is an off-topic message I pray uou to contact me
directly at: [EMAIL PROTECTED]

Thanks!


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




How can I disable "authentication" in Tomcat 4?

2002-06-10 Thread Luca Ventura

Hello everybody!

I have a great problem.:-(
I have installed IIS as Web Server and Tomcat 4 as JSP/Servlet container:
the problem is that when I connect to a site that must be redirected to
Tomcat (because it contains JSP/servlets pages) the servlet container (i.e.
Tomcat 4) asks me to authenticate (it asks me the login and the password)!

I have searched in the Tomcat 4's documentation and on the Jakarta's site to
avoid this problem but unsuccessfully.how can avoid that Tomcat ask me
for authentication?


Can someone help me, please?

Thanks a lot!

  Luca


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




Problems in redirecting requests from IIS to Tomcat 4 (2nd new Information)

2002-06-07 Thread Luca Ventura


I forgot to say another thing...

In my "workers.properties" file I have the following entries:

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
..
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Must I set www.mydomain.com instead of localhost?

Thanks,

    Luca

-Messaggio originale-
Da: Luca Ventura [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 7 giugno 2002 15.55
A: Tomcat Users List
Oggetto: R: Problems in redirecting requests from IIS to Tomcat 4 (new
Information)


Escuse me all in the forum

I want to point out that in my "server.xml" of Tomcat I have the following
entries:








Maybe I have to modify them and set as Host "www.mydomain.com" (or the IP
address of my Web Server) instead of "localhost"?? In fact the Web Server's
name isn't "localhost" any more but "www.mydomain.com"

Thanks a lot in advance!
   Luca

-Messaggio originale-
Da: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 7 giugno 2002 14.48
A: 'Tomcat Users List'
Oggetto: RE: Problems in redirecting requests from IIS to Tomcat 4


If I recall...

Go to the Properties page of the web server and select the Directory
Security tab.  Click the Edit button for Anonymous Access and Authentication
Control.  Select Anonymous Access and un-select everything under
Authenticated Access.

HTH

-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 8:38 AM
To: tomcat-dev; tomcat-user
Subject: Problems in redirecting requests from IIS to Tomcat 4


Hello everybody!

I have installed Internet Information Services (IIS) as Web Server  and
Apache Tomcat 4.0 as plug-in of IIS to support JSP-Servlets (to do this I
installed an ISAPI filter in IIS that redirects
all my JSP-servlet requests to Tomcat). All works fine when I am on
"localhost" but if I use
another domain for my Web Server (e.g: www.mydomain.com) I have the
following problem: when I try to connect to a site that must be redirected
to Tomcat 4 (because it contains JSP pages or servlets), IIS ask me a login
or a password to access to it. For example: i try to connect to the url
"http://www.mydomain.com/mysite"; and "mysite" is a web application defined
in "webapps" folder of tomcat (the document folder is in
webapps\mysite\web-inf").

What can I do to avoid IIS asks me a password or a login? I want that all
users that connects to my site  are redirected to Tomcat without asking any
login and password

I think the problem it isn't in Tomcat's configuration but in IIS's
configurationbut I can be wrong.

I hope someone can help me...thanks i advance!

 Luca


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

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


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




R: Problems in redirecting requests from IIS to Tomcat 4 (new Information)

2002-06-07 Thread Luca Ventura

Escuse me all in the forum

I want to point out that in my "server.xml" of Tomcat I have the following
entries:








Maybe I have to modify them and set as Host "www.mydomain.com" (or the IP
address of my Web Server) instead of "localhost"?? In fact the Web Server's
name isn't "localhost" any more but "www.mydomain.com"

Thanks a lot in advance!
   Luca

-Messaggio originale-
Da: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 7 giugno 2002 14.48
A: 'Tomcat Users List'
Oggetto: RE: Problems in redirecting requests from IIS to Tomcat 4


If I recall...

Go to the Properties page of the web server and select the Directory
Security tab.  Click the Edit button for Anonymous Access and Authentication
Control.  Select Anonymous Access and un-select everything under
Authenticated Access.

HTH

-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 8:38 AM
To: tomcat-dev; tomcat-user
Subject: Problems in redirecting requests from IIS to Tomcat 4


Hello everybody!

I have installed Internet Information Services (IIS) as Web Server  and
Apache Tomcat 4.0 as plug-in of IIS to support JSP-Servlets (to do this I
installed an ISAPI filter in IIS that redirects
all my JSP-servlet requests to Tomcat). All works fine when I am on
"localhost" but if I use
another domain for my Web Server (e.g: www.mydomain.com) I have the
following problem: when I try to connect to a site that must be redirected
to Tomcat 4 (because it contains JSP pages or servlets), IIS ask me a login
or a password to access to it. For example: i try to connect to the url
"http://www.mydomain.com/mysite"; and "mysite" is a web application defined
in "webapps" folder of tomcat (the document folder is in
webapps\mysite\web-inf").

What can I do to avoid IIS asks me a password or a login? I want that all
users that connects to my site  are redirected to Tomcat without asking any
login and password

I think the problem it isn't in Tomcat's configuration but in IIS's
configurationbut I can be wrong.

I hope someone can help me...thanks i advance!

 Luca


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

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


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




R: Problems in redirecting requests from IIS to Tomcat 4

2002-06-07 Thread Luca Ventura

Hello!

Thank you for your help!

Anyway if you are right I don't understand why IIS doesn't ask me the
network login and password for all other sites that must not be redirected
to Tomcatin fact IIS ask me login and password ONLY for the sites that
are redirected to Tomcat...:-(

What do you thin about? Maybe for all the sites configured in IIS the
authentication process isn't applied?

Thaks a lot again!

   luca

-Messaggio originale-
Da: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 7 giugno 2002 14.48
A: 'Tomcat Users List'
Oggetto: RE: Problems in redirecting requests from IIS to Tomcat 4


If I recall...

Go to the Properties page of the web server and select the Directory
Security tab.  Click the Edit button for Anonymous Access and Authentication
Control.  Select Anonymous Access and un-select everything under
Authenticated Access.

HTH

-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 8:38 AM
To: tomcat-dev; tomcat-user
Subject: Problems in redirecting requests from IIS to Tomcat 4


Hello everybody!

I have installed Internet Information Services (IIS) as Web Server  and
Apache Tomcat 4.0 as plug-in of IIS to support JSP-Servlets (to do this I
installed an ISAPI filter in IIS that redirects
all my JSP-servlet requests to Tomcat). All works fine when I am on
"localhost" but if I use
another domain for my Web Server (e.g: www.mydomain.com) I have the
following problem: when I try to connect to a site that must be redirected
to Tomcat 4 (because it contains JSP pages or servlets), IIS ask me a login
or a password to access to it. For example: i try to connect to the url
"http://www.mydomain.com/mysite"; and "mysite" is a web application defined
in "webapps" folder of tomcat (the document folder is in
webapps\mysite\web-inf").

What can I do to avoid IIS asks me a password or a login? I want that all
users that connects to my site  are redirected to Tomcat without asking any
login and password

I think the problem it isn't in Tomcat's configuration but in IIS's
configuration....but I can be wrong.

I hope someone can help me...thanks i advance!

 Luca


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

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


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




Problems in redirecting requests from IIS to Tomcat 4

2002-06-07 Thread Luca Ventura

Hello everybody!

I have installed Internet Information Services (IIS) as Web Server  and
Apache Tomcat 4.0 as plug-in of IIS to support JSP-Servlets (to do this I
installed an ISAPI filter in IIS that redirects
all my JSP-servlet requests to Tomcat). All works fine when I am on
"localhost" but if I use
another domain for my Web Server (e.g: www.mydomain.com) I have the
following problem: when I try to connect to a site that must be redirected
to Tomcat 4 (because it contains JSP pages or servlets), IIS ask me a login
or a password to access to it. For example: i try to connect to the url
"http://www.mydomain.com/mysite"; and "mysite" is a web application defined
in "webapps" folder of tomcat (the document folder is in
webapps\mysite\web-inf").

What can I do to avoid IIS asks me a password or a login? I want that all
users that connects to my site  are redirected to Tomcat without asking any
login and password

I think the problem it isn't in Tomcat's configuration but in IIS's
configurationbut I can be wrong.

I hope someone can help me...thanks i advance!

 Luca


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




R: How to close an HTTP port on Apache Tomcat 4?

2002-06-06 Thread Luca Ventura

Thanks a lot Ralph!:-)

Luca

-Messaggio originale-
Da: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 7 giugno 2002 8.32
A: Tomcat Users List
Oggetto: AW: How to close an HTTP port on Apache Tomcat 4?


Just remove the HTTP Connector entry in server xml.

(Asuming that you want to run tomcat behind a web server)

> -Ursprüngliche Nachricht-
> Von: Luca Ventura [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 7. Juni 2002 08:28
> An: tomcat-user; tomcat-dev
> Betreff: How to close an HTTP port on Apache Tomcat 4?
>
> I use Apache Tomcat 4.0 as Web Server an I would like to know
> how I can
> close an opened port (eg. 8000 or 9000) to avoid that someone
> can use it to
> enter in my system. Which configuration files I must modify?
>

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



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




HELP!! I need urgent information about Tomcat's configuration

2002-06-06 Thread Luca Ventura

Hello everybody!

I have the following problem

I have installed Internet Information Services (IIS) as Web Server on my
local machine and Apache Tomcat 4.0 as plug-in of IIS to support
JSP-Servlets (to do this I installed an ISAPI filter in IIS that redirects
all my JSP-servlet requests to Tomcat). Until now my Web Server's name was
set as "localhost" but now I have the need to change it because I want to
have an Internet domain, es: www.mydomain.com

So I need to know the following information:

1)How can I set in my Web Server (IIS) a different name (that is to say
"www.mydomain.com" instead of "localhost").

2)What changes must I do in Tomcat's configuration files (server.xml and so
on) to make it go on working correctly as plug-in of IIS (given that the
server name will change I suspect I must change anything in Tomcat's
configuration).

3)Even if I set Tomcat 4 as plug-in of IIS I have seen that it starts in
"Standalone mode" (that is to say as a Web Server) on port 9000, so I would
like to know:

a) How can I avoid that Tomcat starts in Standalone mode too?
b) How can I close an opened port in Tomcat 4.0 (I don't want that someone
uses an opened port, eg: 9000, to attack my system!)?


Thanks a lot in advance!

 Luca


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




How to close an HTTP port on Apache Tomcat 4?

2002-06-06 Thread Luca Ventura

Hello everybody!

I use Apache Tomcat 4.0 as Web Server an I would like to know how I can
close an opened port (eg. 8000 or 9000) to avoid that someone can use it to
enter in my system. Which configuration files I must modify?


Thanks a lot in advance!

   Luca


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




Server name setting in Apache Tomcat 4

2002-06-04 Thread Luca Ventura

Hello everybody!

I have installed Apache Tomcat 4 as plug-in of IIS to support jsp pages and
servlets, and alla works fine. For test purposes I installed all on the same
machine  without changing the server-name (localhost) of my Web Server (IIS)
and Servlet/JSP Container (Tomcat). I would like to know what configuration
files I must change in Apache Tomcat 4  if I change the name of my Web
Server (for example in: http://myservername/) to make all go on working
correctly.

Thanks a lot in advance!

  Luca


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




Help: URL's redirection (maybe a little off-topic).

2002-05-31 Thread Luca Ventura

Hello everybody!

I excuse with all people of the forum is the question I am posting is a
little off-topic because it concerns also Internet Information Services
(IIS) Web Server, but
I didn't find any forum or source data where to retrieve the following
information that I need absolutely:-(

I have the following problem: I would like to redirect all the data sent to
url A to url B.  For example I would like that when my Web Server detects a
request directed to url: http://mydomain/servletA (or
https://mydomain/servletA using https protocol)redirects it to url
http://mydomain/servletB (or https://mydomain/servletB) . In this case I am
redirecting a request from servlet A to servlet B.

I would like to know IF and HOW I can do it in the following Web Servers:

1)Internet Information Services (IIS)
2)Apache Tomcat

I need urgently to know the first point because now I have IIS installed
on my Win 2000 machine to run my ASP pages...and only in a second time I
think to convert my ASP pages in JSP pages passing to Apache Tomcat Web
Server. I know I can use
Apache Tomcat like a plug-in of IIS to run JSP pages and servlets but I
would like to obtain the best performance possible from my Web applications:
so I would like to use only one Web Server and not to mix ASP and JSP
pages

I hope someone HELP me

Thanks everybody in advance!

    Luca


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




R: Where must I put the code of my application?

2002-05-17 Thread Luca Ventura

Thanks,
I solved my problem: I checked the logs and my application hadn't been
deployed for some errorsnow I fied them and all works fine!

Thanks a lot!

   Luca

-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Inviato: venerdi 17 maggio 2002 15.31
A: Tomcat Users List
Oggetto: Re: Where must I put the code of my application?



Check the logs. The "webapps/myproject" web application might not have been
deployed. Can you execute any servlets/jsps under "webapps/examples"?
The Context entry should be something like this:

assuming the appBase attribute of the Host is "webapps"

RS






"Luca Ventura" <[EMAIL PROTECTED]> on 05/17/2002 06:41:54 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"tomcat-user" <[EMAIL PROTECTED]>, "tomcat-dev"
   <[EMAIL PROTECTED]>
cc:

Subject:Where must I put the code of my application?

Hello!

I have installed Tomcat 4  as servlet/jsp container and IIS as Web Server.
I developed a Web application and I want to put it not in /webapps/examples
folder of Tomcat but in another folder, for example "/webapps/myproject".
The problem is  that when I try to connect to it
IIS redirects corretly my request to Tomcat 4 (I have set the Web Server in
this way) but Tomcat
says "The requested resource (/myproject/demo.jsp) is not available.". Why?
I have read that
I have to modify the file "server.xml" file when I develop a new
application
and add a new
context...but in which way? Can someone give me a working example please? I
tried to do it but unsuccessful :-(


I hope someone can help me.

Thanks in advance.

Luca


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










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



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




Where must I put the code of my application?

2002-05-17 Thread Luca Ventura

Hello!

I have installed Tomcat 4  as servlet/jsp container and IIS as Web Server.
I developed a Web application and I want to put it not in /webapps/examples
folder of Tomcat but in another folder, for example "/webapps/myproject".
The problem is  that when I try to connect to it
IIS redirects corretly my request to Tomcat 4 (I have set the Web Server in
this way) but Tomcat
says "The requested resource (/myproject/demo.jsp) is not available.". Why?
I have read that
I have to modify the file "server.xml" file when I develop a new application
and add a new
context...but in which way? Can someone give me a working example please? I
tried to do it but unsuccessful :-(


I hope someone can help me.

Thanks in advance.

Luca


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




R: Ref. : How can I redirect only JSP pages to Tomcat?

2002-05-17 Thread Luca Ventura

ThanksI will try you solution but I hope someone else has already solved
this problem:-)
Sorry..but I don't know how to put IIS and tomcat on different machine: I am
curious to know how to do too! :-(

Regards,

   Luca

-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Inviato: venerdi 17 maggio 2002 8.55
A: Tomcat Users List
Oggetto: Ref. : How can I redirect only JSP pages to Tomcat?



I have the same problem.
You can try to add :forwardAll="false" noRoot="false" in the
IIS listener of your context in server.xml
I've seen in tomcat doc this manip permits to redirect only Jsp&servlets
but it doesn't work for me.
Good luck!

Jc

ps: Do you know how can I put IIs & tomcat on different machines?


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



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




How can I redirect only JSP pages to Tomcat?

2002-05-16 Thread Luca Ventura

Hello everybody!

I have installed Tomcat 4 as servlet/JSP container fo IIS 5 but  I haven't
understood
how to redirect to Tomcat only requests for JSP pages or servlets. I have
found only the way
to redirect entire sites  but I would like to redirect only
JSP pages and servlets and not html pages for example.

Is it possible to redirect only a specified directory of a Web site? For
example
if I defined a site in /mysite folder is it possible to redirect to Tomcat
only the
request for the code present in /mysite/jsp ???

Thanks everybody in advance!

    Luca


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




JNDI problem

2002-01-11 Thread Luca Biolcati

Hello,
I'm a newbie wioth tomcat and JNDI, trying to use an eviroment variable with
Tomcat 4.0.1 in my web app. The following exception occurs when I try to
read it:

javax.naming.NameNotFoundException: Name java:comp is not bound in this
Context

this is the code that try to read that variable (following the example in
tomcat doc):

===
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
String home = (String) envCtx.lookup("xsl-home");
===

and here is how I've configured my web.xml:

===

  xsl-home

D:/Programmi/eclipse/workspace/webmodel/web/WEB-INF/xsl
  java.lang.String
 
===

Do I need to initialize somehow the java:comp/env Context?
Thanks for any suggestion,
Luca


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




R: Context

2001-05-30 Thread Davanzo Luca

Hi,
You have to addthe  tag to your web.xml file
Look at the welcome-file-list configuration directive in conf/web.tdt, it is
well explained there

> -Messaggio originale-
> Da: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledì 30 maggio 2001 10.05
> A: '[EMAIL PROTECTED]'
> Oggetto: Context
> 
> 
> Hi,
> 
> Does anybody know how I can map a page? I want that my
> www.test.com/test/login.jsp page immediately shows when I look at
> www.test.com/test. How does the context look? 
> 
> Thanks Pieter
> 



Where's a servlet log?

2001-05-30 Thread Davanzo Luca

Hi,
When from a servlet i use the metthod HttpServlet.log(String, Exception) it
apparentrly works but I cant' find the log file, neither in TOMCAT_HOME/log
NOR ANYWHERE ELSE..
Where is it? or has the log method an empty implementation or what?
Using tomcat 3.2 on winnt
Thanks

-
dott. Luca Davanzo
Insiel S.p.A. - Direzione Tecnica
Via G. Pieri, 2 - 33100 Udine
Italy
tel. +39-0432-551971
*   e-mail: [EMAIL PROTECTED]
-




Tomcat 3.2: 500 error, what does it mean?

2001-01-23 Thread Davanzo Luca

Hi,
I have a servlet calles "xmlcpreove.prova1"; I copied it into
webapps/examples/webinf/classes under a directory xmlcprove; i modified
web.xml withan appropriate
xmlcprove.prova1
but when trying the servlet with
http://davanzol1:8080/examples/servlet/prova1
I get the following page.. what does it mean?

Error: 500

Location: /examples/servlet/prova1
Internal Servlet Error:
java.lang.ClassCastException: xmlcprove.prova1
at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
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,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479) 

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




Re: traffic logs

2000-12-27 Thread Luca Ometto


How can I do to upgrade from 3.1 to 4?

Luca


At 11.07 27/12/2000 -0800, you wrote:
>Luca Ometto wrote:
>
> > Dear Craig, Tomcat 4.0 is not yet released... It is a beta version, 
> isn't it?
> >
>
>It will be next week.  Right now, the current version is called "Milestone 5".
>
> >
> > Does it works good?
> >
>
>Yep :-)
>
>NOTE:  The comment above is primarily about using it stand-alone.  The web
>connector (so you can run 4.0 behind Apache) for Tomcat 4.0 is brand new code,
>and is not yet beta quality.
>
> >
> > Thanks Luca
> >
>
>Craig
>
>
> >
> > At 10.29 27/12/2000 -0800, you wrote:
> > >Luca Ometto wrote:
> > >
> > > > Hi to everybody. I can't analyze traffic logs using Tomcat 
> webserver. How
> > > > have I to do?
> > > >
> > >
> > >Two choices:
> > >
> > >* Run Tomcat connected to a web server -- all requests routed to
> > >   Tomcat will still be logged in the web server's access log.
> > >
> > >* Run Tomcat 4.0 stand-alone.  It has code to create an access log
> > >   in the same way that a web server does.
> > >
> > > >
> > > > Thanks in advance. Luca
> > >
> > >Craig McClanahan




Re: traffic logs

2000-12-27 Thread Luca Ometto


Dear Craig, Tomcat 4.0 is not yet released... It is a beta version, isn't it?

Does it works good?

Thanks Luca


At 10.29 27/12/2000 -0800, you wrote:
>Luca Ometto wrote:
>
> > Hi to everybody. I can't analyze traffic logs using Tomcat webserver. How
> > have I to do?
> >
>
>Two choices:
>
>* Run Tomcat connected to a web server -- all requests routed to
>   Tomcat will still be logged in the web server's access log.
>
>* Run Tomcat 4.0 stand-alone.  It has code to create an access log
>   in the same way that a web server does.
>
> >
> > Thanks in advance. Luca
>
>Craig McClanahan




traffic logs

2000-12-27 Thread Luca Ometto




Hi to everybody. I can't analyze traffic logs using Tomcat webserver. How 
have I to do?

Thanks in advance. Luca