java.lang.ClassCastException with javax.net.ssl package
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=290800forum=2message=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?
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?
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?
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?
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?
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 Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8009/ Parameter name=max_threads value=30/ Parameter name=max_spare_threads value=10/ Parameter name=min_spare_threads value=5 / /Connector 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
Configure IIS + Tomcat 4.1.12
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: Configure IIS + Tomcat 4.1.12
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]
Search engine for the tomcat-user mailing list
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
R: Search engine for the tomcat-user mailing list
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]
Tomcat 5
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]
Why does Tomcat 4 suspend itself?
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 download and possible bug in Tomcat 4.0.4-b3
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!!!)
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, 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
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: ... !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Realm className=org.apache.catalina.realm.MemoryRealm / ... tomcat-users.xml: tomcat-users user name=admin password=tomcat roles=adminrole / /tomcat-users web.xml: security-constraint display-nameAutenticazione Tomcat/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/MyServlet/url-pattern /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nameadminrole/role-name /auth-constraint /security-constraint !-- Default login configuration uses form-based authentication -- login-config auth-methodBASIC/auth-method realm-nameAutenticazione Tomcat/realm-name /login-config 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)
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: ... !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Realm className=org.apache.catalina.realm.MemoryRealm / ... tomcat-users.xml: tomcat-users user name=admin password=tomcat roles=adminrole / /tomcat-users web.xml: security-constraint display-nameAutenticazione Tomcat/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/MyServlet/url-pattern /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nameadminrole/role-name /auth-constraint /security-constraint !-- Default login configuration uses form-based authentication -- login-config auth-methodBASIC/auth-method realm-nameAutenticazione Tomcat/realm-name /login-config 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
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, 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: ... !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Realm className=org.apache.catalina.realm.MemoryRealm / ... tomcat-users.xml: tomcat-users user name=admin password=tomcat roles=adminrole / /tomcat-users web.xml: security-constraint display-nameAutenticazione Tomcat/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/MyServlet/url-pattern /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nameadminrole/role-name /auth-constraint /security-constraint !-- Default login configuration uses form-based authentication -- login-config auth-methodBASIC/auth-method realm-nameAutenticazione Tomcat/realm-name /login-config 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
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: ... !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Realm className=org.apache.catalina.realm.MemoryRealm / ... tomcat-users.xml: tomcat-users user name=admin password=tomcat roles=adminrole / /tomcat-users web.xml: security-constraint display-nameAutenticazione Tomcat/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/MyServlet/url-pattern /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nameadminrole/role-name /auth-constraint /security-constraint !-- Default login configuration uses form-based authentication -- login-config auth-methodBASIC/auth-method realm-nameAutenticazione Tomcat/realm-name /login-config 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
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: ... !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Realm className=org.apache.catalina.realm.MemoryRealm / ... tomcat-users.xml: tomcat-users user name=admin password=tomcat roles=adminrole / /tomcat-users web.xml: security-constraint display-nameAutenticazione Tomcat/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/MyServlet/url-pattern /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nameadminrole/role-name /auth-constraint /security-constraint !-- Default login configuration uses form-based authentication -- login-config auth-methodBASIC/auth-method realm-nameAutenticazione Tomcat/realm-name /login-config 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
DOES BASIC AUTHENTICATION SUPPORT SSL?
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
WHY DOES TOMCAT SUSPEND ITSELF?
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
ERROR PAGE IN TOMCAT
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
R: How can I protect my servlet with a login and a password?
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
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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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]
R: Digital certification installation in Tomcat
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]
Servlet's contexts and other Tomcat's topics.
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]
How to run multiple instances of JSP pages/servlets in Tomcat?
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: servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class init-param param-nameconfigFile/param-name param-valuemy.conf/param-value /init-param load-on-startup1/load-on-startup /servlet 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]
Tomcat and IIS
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]
How can I maintain sessions between IIS and Tomcat?
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]
How I can redirect requests in Tomcat 4?
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]
Must I restart Tomcat every time I install a new app?
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]
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)? 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?
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]
IIS mailing list (off-topic)
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?
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]
How to close an HTTP port on Apache Tomcat 4?
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]
HELP!! I need urgent information about Tomcat's configuration
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]
R: How to close an HTTP port on Apache Tomcat 4?
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]
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]
R: Problems in redirecting requests from IIS to Tomcat 4
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 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)
Escuse me all in the forum I want to point out that in my server.xml of Tomcat I have the following entries: !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 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]
Problems in redirecting requests from IIS to Tomcat 4 (2nd new Information)
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: !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 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]
Server name setting in Apache Tomcat 4
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).
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: Ref. : How can I redirect only JSP pages to Tomcat?
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 Jspservlets 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?
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]
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]
R: Where must I put the code of my application?
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: Context path=/myproject docBase=myproject debug=0 reloadable=false crossContext=false 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]