Re: Tomcat 4 - OpenSSL - IE client certificate works partially
Hi Henrik !!! I'm interested in your HOW-TO for making client certificates for Tomcat... and don't worry, i love the tricky stuff !!! :-) Thanks... Marcelo - Original Message - From: Henrik Schultz [EMAIL PROTECTED] To: tomcat-user tomcat-user%jakarta.apache.org%NOTESSMTP Sent: Monday, July 01, 2002 7:42 AM Subject: Tomcat 4 - OpenSSL - IE client certificate works partially Greetings all... PS. If anyone is interested in a writeup or HOW-TO of making client certificates for Tomcat, let me know. This is certainly tricky stuff! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to force Tomcat to compile?
Define a context (in your server.xml configuration file) to your web app. like: Context path=/myapp docBase=myapp debug=0 reloadable=true The reloadable=true is what do you need. Chau chau. Marcelo P.S.: To enforce TC to re-compile, you can delete all the code generated by TC 4.0 in the %CATALINA_HOME%/work directory. - Original Message - From: Anja Falkner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 10:24 AM Subject: How to force Tomcat to compile? Hi, is there a method, which forces Tomcat (4.0) to compile all my class-files in WEB-INF/classes? It is a little bit troublesome to rename the classes every time I have changed it... Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[Repost] Re: Context problem (I think)
Still I could not solve the problem. Please, some suggestion? Thanks to all! Marcelo--- Thanks Dan! But I would like not to have to modify the servlet since it'sthird-party´s servlet. Do you have some solution configuring only the side TC? How I do the corresponding thing to "virtual directories" of IIS in TC? The only thing that I want to obtain is that TC understands "/myapp"like a context that it has docBase that I define (i.e.docBase="c:/Project/myapp"). Then, when the servlet ask for http://localhost:8080/myapp/some.jsp(this string is generated by it), TC knows where to find the information (inthis case, the jsp page in "c:/Project/myapp/some.jsp"). Thanks again for new suggestions. Marcelo- Original Message -From: "Dan Miller" [EMAIL PROTECTED]To: "Tomcat Users List" [EMAIL PROTECTED]Sent: Tuesday, January 22, 2002 6:32 PMSubject: Re: Context problem (I think) I would recommend trying something like this, assuming that I have understood your question. First, get the ServletContext that you aretrying to access and the forward/include onward. Example:getServletContext().getContext("/myapp/").getRequestDispatcher("/myapp/myarc h.jsp").forward(request, response); Dan - Original Message - From: "Marcelo Demestri" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Tuesday, January 22, 2002 8:51 PM Subject: Context problem (I think) Hi everybody! I have a little question for you: I have a servlet that responds requests like http://localhost:8080/servlet/myservlet?param1=value1param2=value2 With those parameters he knows what application must deploy. He generatea path like this: "/myapp/myarch.jsp" But instead of looking for it within "/myapp", apparently it looks for within "/ROOT/myapp" I want to move my jsp pages outside the "webapps" folder. I try with context: i.e. Context path="/myapp" docBase="c:/Project/myapp" debug="0" reloadable="true"/ But when my servlet generate the string "/myapp/myarch.jsp", he always look into "/ROOT/myapp" instead of "c:/Project/myapp/". He doesn'trecognize the "/myapp" like a web application (a context). The stranger of all this is that in JRun+IIS (with virtual directories created in home of IIS) my servlet works, that is to say, it findsthe jsp's! And I read Craig in a previous mail say VirtualDirectory (IIS)=Context (TC) Some idea, explanation or suggestion? Very many thanks to all... Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: setting classpath in TOMCAT 4.0
Hi Craig! Only a curiosity... Proving the execution of beans through a jsp page, I discovered that if I directly put my class in MyApp/WEB-INF/classes and made the call from the jsp page, jsp:useBean id=formbean class=z.testBean scope=session / TC gives me this error: java.lang.ClassNotFoundException: testBean Only after including my class in a package, the call worked. Why? Thanks in advance... Marcelo - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; jEff oNg [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 8:47 AM Subject: Re: setting classpath in TOMCAT 4.0 On Thu, 24 Jan 2002, Jeff Ong wrote: Date: Thu, 24 Jan 2002 18:47:10 +0800 From: Jeff Ong [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], jEff oNg [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: setting classpath in TOMCAT 4.0 hi all, I faced problem when try to set CLASSPATH in TOMCAT. I have my own java beans and servlets which located in others path. Where should i set these path in order to let TOMCAT refer it in runtime? You don't -- CLASSPATH causes more grief for Tomcat users than anything except web connector configuration. Move the beans into the directories identified by the Tomcat documentation (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html). Alternatively, you can modify the startup/shutdown scripts in the bin directory, but then you're on your own for figuring out class loading problems. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_jk with Tomcat4
In order to integrate Apache-Tomcat by means of the connector mod_jk you need: - mod_jk.dll (to place it in the folder you modulate of apache). - to modify the file server.xml of TC, qualifying the Ajp13 connector and commenting the part of mod_webapp - to modify the file httpd.conf of Apache, adding to him the JkMount parameters. - to append the file workers.properties in the folder conf of the TC directory. I send you (by attachments) these configuration files. This work for me. I have Win2k pro, Apache 1.3.22, Tomcat 4.0.1 and JDK 1.3.1 Read carefully these files for undertand it. It's not complicated but you will need patience and dedicate time Good Luck. Marcelo - Original Message - From: Oli Gauti Gudmundsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 19, 2002 6:46 AM Subject: mod_jk with Tomcat4 Hi. Has anyone managed to get Apache and Tomcat 4.01 working together with mod_jk? If you have, could you please share with me how you configured Tomcat (send me the server.xml file). If you had any problems, could you please share how you solved them. I'm pretty sure that I have configured Apache correctly (since it starts without errors), and I have configured an AJP13 connector in server.xml. I have also created a workers.properties where the properties are set for the ajp13 worker. Apache and Tomcat both start without errors, but when a request is made, it just times out. The following error appears in catalina.log: java.lang.NoSuchMethodError: java.net.Socket: method setKeepAlive(Z)V not found at org.apache.ajp.tomcat4.Ajp13Connector.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Thanks for your help. -OGG workers.properties Description: Binary data !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory
TomcatApache running in different boxes
Hi people! Before nothing, thanks to all for the offered aid. This list is fantastic! :-) Now, my boring question ;-) I need to integrate Apache and Tomcat but each one running in different machines. How I can do it? I have connected successful Apache and Tomcat with the connector mod_jk, but the 2 running in the same machine. I would like to use the same connector for the above configuration. It would thank for documentation on the matter. My environment: - Win2k pro - Apache 1.3.22 - Tomcat 4.0.1 - JDK 1.3.1 Thaks in advance. Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
----TomcatApache running in different boxes
(Maybe, this is a reposting... I have an error when send this mail the first time... if it is thus, sorry ;-) Hi people! Before nothing, thanks to all for the offered aid. This list is fantastic! :-) Now, my boring question ;-) I need to integrate Apache and Tomcat but each one running in different machines. How I can do it? I have connected successful Apache and Tomcat with the connector mod_jk, but the 2 running in the same machine. I would like to use the same connector for the above configuration. It would thank for documentation on the matter. My environment: - Win2k pro - Apache 1.3.22 - Tomcat 4.0.1 - JDK 1.3.1 Thaks in advance. Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: ----TomcatApache running in different boxes
Thanks to respond David! I think just like you say, but I don't know how to form the variable workers.tomcat_home in workers.properties. Thus I did it when TC and Apache are in the same PC (and it works): workers.tomcat_home=c:\Program Files\jakarta-tomcat-4.0.1 What value I must give when TC is in another machine (supposing that I put workers.properties in the PC with Apache)? Thank you (and all) very much by the suggestions. Marcelo - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 9:57 AM Subject: Re: TomcatApache running in different boxes I don't work with mod_jk much, but I think you just need a copy of the workers.properties file on your Apache server where mod_jk can find it and then modified to reflect the ip and port of Tomcat's server. Docs and other people can probably do a better job of getting you going, but this might be a place to start for you. --David On Thursday 17 January 2002 05:39 pm, you wrote: (Maybe, this is a reposting... I have an error when send this mail the first time... if it is thus, sorry ;-) Hi people! Before nothing, thanks to all for the offered aid. This list is fantastic! :-) Now, my boring question ;-) I need to integrate Apache and Tomcat but each one running in different machines. How I can do it? I have connected successful Apache and Tomcat with the connector mod_jk, but the 2 running in the same machine. I would like to use the same connector for the above configuration. It would thank for documentation on the matter. My environment: - Win2k pro - Apache 1.3.22 - Tomcat 4.0.1 - JDK 1.3.1 Thaks in advance. Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: page not found error using apache/tomcat
I believe this is a bug in the webapp module and I struggled several days about this problem too. You must enter the ending '/' for a directory. e.g. http://x.x.com/examples/ You can try define a context with examples/ too, in the server.xml... maybe work ! :-) Hasta pronto... Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
--- Please helpme: Tomcat visibility (I think!)
Hi all! I hope that someone can help me, since this is urgent for me. I have a servlet that processes certain information according to the data provided by the user. My problem is: this servlet, when creating the path to call certain jsp, uses a relative path of the type / MyApp/html/arch.jsp . My arch.jsp is in the path %CATALINA_HOME%/webapps/MyApp/html/arch.jsp If this structure of directories is not under ROOT (that is to say, ROOT/MyApp/html/arch.jsp), Tomcat gives back an Error to me 404 Not Found. As I said, I have a folder MyApp within /webapps but Tomcat does not find the jsp page. Inclusively I created a context for this application, but it does not work. Also it tries servlet mapping within web.xml without results (good, in fact this is not related to the problem, since servlet is located by Tomcat... what it cannot find are the pages jsp). This is a prove to do anything more general: locate the jsp pages outside the structure of directories of Tomcat. Any advice or suggestions? Thanks in advance. ** My Server.xml !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 ... !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true ... Context path=/MyApp docBase=MyApp debug=0 reloadable=true/ /Host /Engine ** My web.xml web-app servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping /web-app Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: --- Please helpme: Tomcat visibility (I think!)
Thanks Larry for the answer! I try with /html/arch.jsp instead of /MyApp/html/arch.jsp but still don't work. By default, it would not have to be %CATALINA_HOME%/webapps the context root? This is correct? I worked with IIS(+JRun), the request generated by my servlet (/MyApp/html/arch.jsp) work in this environment, and when I began with Tomcat I thought that wwwroot=webapps. I must migrate all to Apache(1.3.22)+Tomcat(4.0.1) and what wanted is not to have to modify the servlet (built by other person), and to make it work in Apache+Tomcat as it works with IIS+JRun. More suggestions are appreciate! Thanks Marcelo - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 5:13 AM Subject: RE: --- Please helpme: Tomcat visibility (I think!) It looks like your relative path should be /html/arch.jsp, not /MyApp/html/arch.jsp. When refering to a page within the same web application, you shouldn't include the context name. It worked under ROOT because /MyApp in this case isn't a context name but a directory name, making /MyApp/html/arch.jsp the correct URL. Cheers, Larry -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 12:14 PM To: Tomcat Users List Subject: --- Please helpme: Tomcat visibility (I think!) Hi all! I hope that someone can help me, since this is urgent for me. I have a servlet that processes certain information according to the data provided by the user. My problem is: this servlet, when creating the path to call certain jsp, uses a relative path of the type / MyApp/html/arch.jsp . My arch.jsp is in the path %CATALINA_HOME%/webapps/MyApp/html/arch.jsp If this structure of directories is not under ROOT (that is to say, ROOT/MyApp/html/arch.jsp), Tomcat gives back an Error to me 404 Not Found. As I said, I have a folder MyApp within /webapps but Tomcat does not find the jsp page. Inclusively I created a context for this application, but it does not work. Also it tries servlet mapping within web.xml without results (good, in fact this is not related to the problem, since servlet is located by Tomcat... what it cannot find are the pages jsp). This is a prove to do anything more general: locate the jsp pages outside the structure of directories of Tomcat. Any advice or suggestions? Thanks in advance. ** My Server.xml !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 ... !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true ... Context path=/MyApp docBase=MyApp debug=0 reloadable=true/ /Host /Engine ** My web.xml web-app servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping /web-app Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: --- Please helpme: Tomcat visibility (I think!)
Thanks you very much Larry but... What do you mean with or allow that docBase to be auto-served ? My servlet receives user's parameters (the webapp-but here this concepts is personal and a little different for the official term- to deploy) and according to them it looks for the information that needs to display the contents of this application (i.e. jsp pages). I wanted to be able to locate this information in any place, but only works when I locate it in the webapps/ROOT. If I put the jsp pages in a anyone directory (i.e. c:/projects/MyApp/html/*.jsp) and wanted that the call of my servlet /MyApp/html/arch.jsp worked, how I would have to do it? Defining a context project? Defining to project like context root? In IIS I can define an application (can be anyone folder) and automatically it enters under the publication hierarchy inetpub/wwwroot/folder, and as inetpub/wwwroot is publication's root, request of the type /folder/html/arch.jsp is made without errors. I hope not to have entangled much! and Pardon by my English, is not very good: -) Marcelo - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 7:58 AM Subject: RE: --- Please helpme: Tomcat visibility (I think!) If you use: Context path=/MyApp docBase=MyApp ... or allow that docBase to be auto-served and have: CATALINA_HOME/webapps/MyApp CATALINA_HOME/webapps/MyApp/html/arch.jsp CATALINA_HOME/webapps/MyApp/WEB-INF ... etc. then /html/arch.jsp is the correct URL. If you use: Context path= docBase=ROOT ... or allow that docBase to be auto and have: CATALINA_HOME/webapps/ROOT/MyApp CATALINA_HOME/webapps/ROOT/MyApp/html/arch.jsp CATALINA_HOME/webapps/ROOT/WEB-INF ... etc. then /MyApp/html/arch.jsp is the correct URL. In this case MyApp gets treated as an ordinary directory rather than as a web application. If the IIS+JRun was working, I would assume you were using a deployment similar to the later case above. Note, you don't state exactly what the servlet is doing. I could be wrong in my interpretation of what you mean by call in creating the path to call certain jsp. I'm assuming a RequestDispatcher include or forward. Cheers, Larry -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 3:01 PM To: Tomcat Users List Subject: Re: --- Please helpme: Tomcat visibility (I think!) Thanks Larry for the answer! I try with /html/arch.jsp instead of /MyApp/html/arch.jsp but still don't work. By default, it would not have to be %CATALINA_HOME%/webapps the context root? This is correct? I worked with IIS(+JRun), the request generated by my servlet (/MyApp/html/arch.jsp) work in this environment, and when I began with Tomcat I thought that wwwroot=webapps. I must migrate all to Apache(1.3.22)+Tomcat(4.0.1) and what wanted is not to have to modify the servlet (built by other person), and to make it work in Apache+Tomcat as it works with IIS+JRun. More suggestions are appreciate! Thanks Marcelo - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 5:13 AM Subject: RE: --- Please helpme: Tomcat visibility (I think!) It looks like your relative path should be /html/arch.jsp, not /MyApp/html/arch.jsp. When refering to a page within the same web application, you shouldn't include the context name. It worked under ROOT because /MyApp in this case isn't a context name but a directory name, making /MyApp/html/arch.jsp the correct URL. Cheers, Larry -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 12:14 PM To: Tomcat Users List Subject: --- Please helpme: Tomcat visibility (I think!) Hi all! I hope that someone can help me, since this is urgent for me. I have a servlet that processes certain information according to the data provided by the user. My problem is: this servlet, when creating the path to call certain jsp, uses a relative path of the type / MyApp/html/arch.jsp . My arch.jsp is in the path %CATALINA_HOME%/webapps/MyApp/html/arch.jsp If this structure of directories is not under ROOT (that is to say, ROOT/MyApp/html/arch.jsp), Tomcat gives back an Error to me 404 Not Found. As I said, I have a folder MyApp within /webapps but Tomcat does not find the jsp page. Inclusively I created a context for this application, but it does not work. Also it tries servlet mapping within web.xml without results (good, in fact this is not related to the problem, since servlet is located by Tomcat... what it cannot find are the pages jsp). This is a prove
Re: tomcat 4.01 and win2000 server-cant get it to work
Generally (by default in the installation), Tomcat qualifies port 8080 for HTTP requests, unless you changes explicitly this port in the server.xml configuration file. Test with http://localhost:8080/examples/jsp/index.html Marcelo - Original Message - From: Martin Sujkowski [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 9:55 AM Subject: tomcat 4.01 and win2000 server-cant get it to work Hello, I just installed tomcat 4.01 on a windows 2000 server. I followed all the steps very diligently and still failed to get it to work. I went through all the troubleshooting steps and none of them fixed my problem. The problem is that I get a 401 error when try to open http://localhost/examples/jsp/index.html .The troubleshooting section doesn't list this kind of error. Does anyone have any ideas? Thanks for any help. Sincerely Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: extending webapp from WebdavServlet
The $CATALINA_HOME/server/lib/ is for all classes and resources required to implement Tomcat 4 itself. Try in $CATALINA_HOME/lib/ . According with the documentation, this is the place to put classes and resources that you wish to share across ALL web applications For more information, I suggest you read the section Class Loader HOW-TO. Marcelo - Original Message - From: Armijn Hemel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 8:10 AM Subject: extending webapp from WebdavServlet hi all, I've been playing around with Tomcat 4.0.1 for a little while now. I made my own webapp, which extends WebdavServlet (org.apache.catalina.servlets.WebdavServlet), but Tomcat doesn't like this and complains about missing classes. I fixed this by copying the jarfiles from $CATALINA_HOME/server/lib/ to $CATALINA_HOME/webapps/mywebapp/WEB-INF/lib/ but that's basically just an ugly fix. Is there a nicer fix that it's also less resource intensive? armijn -- - -- [EMAIL PROTECTED] | http://people.nl.linux.org/~armijn/ | Penguin Power - -- http://nl.linux.org/ | Alles over Linux - -- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat 4.0/ Apache1.3.22 problem
See http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml I utilize mod_jk instead of mod_webapp because I have troubles with the last. But I work on Win2K, perhaps this is the point. Nevertheless, mod_jk works fine in my environment: Win2K pro, JDK1.3.1, Apache 1.3.22 and Tomcat 4.0.1 Tellme your configuration and if it work! Marcelo - Original Message - From: Olivier Brand [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 08, 2002 10:05 PM Subject: Re: tomcat 4.0/ Apache1.3.22 problem No, but I am going to switch to the warp connector. Any idea on how to setup Apache web server for that, I can't find any doc about it ? Olivier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Support for AJP13
Hello I've just upgraded from Tomcat 3.2.3 to 4.0.1. Our system uses Apache for static content so I was used to configuring ajp12. I note in the new version that there is ajp13, although I have configured the integration to use the new MOD_WEBAPP connector. Which method is now supported within Tomcat - ajp12, ajp13 or MOD_WEBAPP ? All of them. You can choose the one that more you prefer. Are there any statistics out there about performance ? I'm interesting too in these statistics about performance, but I have not found them. The mod_webapp is the newest connector and comes with Tomcat 4.0. The Jakarta site recommended it, when is possible. The ajp12 and ajp13 are utilized for the mod_jk connector. Ajp13 is recommended because it is an improved version of the ajp12. See http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html#s2 Sorry if the answer is elsewhere in the documentation - I did look around. And since we are in recommendations, I recommend you to take a look in the documentation. It's a good step. :-) Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_webapp vs. mod_jk
Hi all! I tried to utilize mod_webappfor the integration Apache-Tomcat. I read the documentation and followed all the steps but I couldn't resolve the Tomcat problem of serve static content. My environment: - Win2k pro - JDK 1.3.1 - Apache 1.3.22 - Tomcat 4.0.1 Finally, I tried with the mod_jk connector and it works fine! After read and probe both, my question is: Supopose I have a servlet"myservlet" wich does not belong to any Tomcat application. I put this servlet in the%CATALINA_ROOT%/classes folder (all the application see it). With mod_jk I can make Apache redirect to Tomcatthe request of anURL that http://myhost/servlet/myservletto this servlet. It is correctly found and executed. Ex: JkMount /servlet/* ajp13 (in the Apache httpd.conf) Can I make the same thing with the mod_webapp connector? According to which I investigated, in the mod_webapp I utilize WebAppDeploy to define the connections: Ex: WebAppDeploy examples conn /examples where "examples" is the folder located on my Tomcat folder "/webapps/examples", "conn" the name of the WARP connection and "/examples" the pattern that should be recognized by Apache for redirecting to Tomcat. I think mod_webapp do ALWAYS a link only between a Tomcat Application and a pattern. But ifI request the same URL http://myhost/servlet/myservlet, I get the "404 Not Found" Error. There is a way to make the same thing with this connector? Thanks in advance... Marcelo With mod_webapp, can I tell Apache to redirect to Tomcat for a pattern like "/servlet/*" that a URL like http://myhost/servlet/myservlet will beprocessed by Tomcat? 11 Can I make Tomcat serve an url like http://myhost/servlet/myservletwith Apache´s mod_webapp? In the mod_webapp I utilize WebAppDeploy to define the connections: Ex: WebAppDeploy examples conn /examples where "examples" is the folder located on my Tomcat folder "/webapps/examples", "conn" the name of the WARP connection and "/examples" the pattern that should be recognized by Apache for redirecting to Tomcat. I think mod_webapp do a link only between a Tomcat Application and the pattern -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp.c
I don't have any experience in Solaris, but in Win2K pro environment this line (AddModule mod_webapp.c) can or can not be write in the httpd.conf file. Nevertheless, i suggest you to write this line in your httpd.conf file. Marcelo - Original Message - From: Ansalvish, Dave R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 9:58 AM Subject: mod_webapp.c Hi, I got TOMCAT 4.0.1 installed and running on my Solaris boxes as a standalone server. Now I'm ready to integrated TOMCAT with our Apache servers. So after reading the online documentation I downloaded the Solaris version of mod_webapp.so. Now I must be getting stupid or senile, but according to the documentation I need to have an 'add module mod_webapp.c' in the my httpd.conf. Since I only downloaded the 'so' file. Where can I get the mod_webapp.c or don't I actually need the file. Dave Also, I want to thank all those people who sent me helpful hints on getting TOMCAT working on my one Solaris server. I finally traced the problem to an httpproxy that was installed by another administrator and it ran on port 8080. Dave Ansalvish -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4 integration with apache
The guide is excellent! But I configure the WARP connector mod_webapp following all the steps correctly and still there are problems with the static contents. I work on W2K pro, JDK 1.3.1, Apache 1.3.22 and Tomcat 4.0.1 I succeed the integration Apache-Tomcat with the mod_jk connector (utilizing AJP13). For me, definitively the mod_webapp connector have a weird behavior, at least in a Windows platform . Special thaks for Brian in the configuration of mod_jk... Marcelo - Original Message - From: Justin Rowles [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 07, 2002 8:05 AM Subject: FW: Tomcat 4 integration with apache Kindly sent by Mr Peter Burgess, for those needing a guide to the above. -Original Message- Hi, I noticed your posting on the tomcat-user list via the mail archives (I'm not directly subscribed myself) - this should answer your problem: http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml Please post to the list so this information can be shared Thanks, Peter *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat-apache win32 integration problem with 100% CPU utilization
I utilize NetScape (4.78) and the same occur! Besides, when I used a different machine to browse to the website, I have the same problem !!! (sometimes work, sometimes don't work). Jeff (or anyone else), writeme ([EMAIL PROTECTED]) if you find any solution please. Thanks - Original Message - From: Jeff Prideaux [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 04, 2002 1:41 PM Subject: RE: tomcat-apache win32 integration problem with 100% CPU utilization When I installed the sample app myapp from the tomcat 4.0.1 documentation, and tried to run it with Tomcat plugged into Apache, I had the problem mentioned below with things locking up whenever images needed to be served up (especially whenever you hit the refresh button on the browser). Note that this problem was in my development environment where the browser, apache and tomcat were all running on the same machine. When I used a different machine to browse to the website, I didn't have the problem. That may be one solution to the problem. Just browse to the web site on a different machine than the one hosting the software. But most people develop with everything running on the same machine There must be something going on with one software component (the browser???) getting a lock on something and preventing another software component from getting to it... I'm using I.E for my browser. I wonder if the problem shows up if one uses Netscape as the browser? Perhaps I will download Netscape and try it... -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 9:25 PM To: Tomcat Users List Subject: Re: tomcat-apache win32 integration problem with 100% CPU utilization I have the same problem... I don't know what to do. I try all, everything, but the problem persist (I'm desolated :-(. It's very weird. There is a guru to clarify this problem? - Original Message - From: BW [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 04, 2002 12:09 PM Subject: Re: tomcat-apache win32 integration problem with 100% CPU utilization I get the same problem with tomcat4.0.1 intergrated with apache in win2000 when the html or jsp page has images on it. The apache server respond slow or stop when you refresh it. It also takes time to restart apache I don't know if this is window2000 problem only or we miss any configuration. Thanks for any idea. BW The original message from I'm having problems integrating Tomcat with Apache in my development environment using win2000Pro. I following the directions to add libapr.dll and mod_webapp.so to C:\Program Files\Apache Group\Apache\modules and add the following lines to httpd.conf: LoadModule webapp_module modules/mod_webapp.so ... AddModule mod_webapp.c ... WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples/ Both Tomcat and Apache start up fine. I can browse directly to http://localhost/examples/jsp/num/numguess.jsp and play that number guessing game fine. The integration appears fine for that. But when I browse to a URL within the examples application that has an image, my CPU becomes 100% allocated and my computer practically grinds to a halt. For example, it can't deal with http://jeffp-desktop/examples/jsp/index.html which contains images. I have to stop and restart Tomcat for my computer to get my CPU utilization under control. Has anybody experienced anything like this in integrating Tomcat and Apache? I must be missing some configuration step Thanks in advanced. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4 and Apache 1.3
Hi Jose! I have the same problem. When I install Tomcat 4.0.1 and Apache 1.3.22 in an environment W2K professional with JDK 1.3.1 and the mod_webapp WARP connector, I get the following problem: Whenever I try to access the Tomcat example index page: [...]/examples/jsp/index.html The plain text is displayed, but then Apache hangs downloading the gifs. And I have to restart Apache. However I do not have the problem running Tomcat in Stand-alone mode. I think the occurrence of the log infinite is when Tomcat try to serve the static content of a page. Hopefully a Tomcat guru can tell us what's the problem and how to solve. Marcelo P.S.: you talk spanish? - Original Message - From: Jose F. Osorio [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, January 06, 2002 10:05 PM Subject: Tomcat 4 and Apache 1.3 Hello List Members, I have pretty much spent the day upgrading my laptop from Tomcat 3.2.1 to Tomcat 4.0.1 Laptop PIII 750 running Windows2000 Profesional. Java JDK 1.3 The previous installation was very smooth and stable. The examples web app and my own deployed servlets worked fine under the older version. I installed the mod_webapp module and dll as per instructions. Set CATALINA_HOME to the folder where I installed the new version, made the new entries in apache's http configuration file, and everything else as per the installtion and config instructions. In reviewing fresh log files, it appears that both tomcat and apache comunicate with each other (I start tomcat first, then apache http server.) Proof of this, I hope, is that I am able to see the main index.html page from the examples web application distributed with tomcat. If I don't start tomcat, then I am not able to browse that page. So, this tells me that the jsp/servlet container does comununicate with apache. As soon as I click on any of the links to run any of the sample jsp/servlets from, the browser submits the request and just waits for responses from the server. While this is going on, tomcat's apache log file grows and grows. As you examine the log file below, the beginning of it shows what appears to be normal initialization info. Then, later on you will see the repeating error messages from the request to run a sample application. Any ideas as to what am I doing wrong or missing? By the way, I have not listed server.jar in the CLASSPATH. I don't think it is necessary to list it as it was not listed before and the older tomcat version worked fine. Thank you. Regards, Jose. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat-apache win32 integration problem with 100% CPU utilization
I have the same problem... I don't know what to do. I try all, everything, but the problem persist (I'm desolated :-(. It's very weird. There is a guru to clarify this problem? - Original Message - From: BW [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 04, 2002 12:09 PM Subject: Re: tomcat-apache win32 integration problem with 100% CPU utilization I get the same problem with tomcat4.0.1 intergrated with apache in win2000 when the html or jsp page has images on it. The apache server respond slow or stop when you refresh it. It also takes time to restart apache I don't know if this is window2000 problem only or we miss any configuration. Thanks for any idea. BW The original message from I'm having problems integrating Tomcat with Apache in my development environment using win2000Pro. I following the directions to add libapr.dll and mod_webapp.so to C:\Program Files\Apache Group\Apache\modules and add the following lines to httpd.conf: LoadModule webapp_module modules/mod_webapp.so ... AddModule mod_webapp.c ... WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples/ Both Tomcat and Apache start up fine. I can browse directly to http://localhost/examples/jsp/num/numguess.jsp and play that number guessing game fine. The integration appears fine for that. But when I browse to a URL within the examples application that has an image, my CPU becomes 100% allocated and my computer practically grinds to a halt. For example, it can't deal with http://jeffp-desktop/examples/jsp/index.html which contains images. I have to stop and restart Tomcat for my computer to get my CPU utilization under control. Has anybody experienced anything like this in integrating Tomcat and Apache? I must be missing some configuration step Thanks in advanced. __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat-apache win32 integration problem with 100% CPU utilization
I utilize NetScape (4.78) and the same occur! Besides, when I used a different machine to browse to the website, I have the same problem !!! (sometimes work, sometimes don't work). Jeff (or anyone else), writeme ([EMAIL PROTECTED]) if you find any solution please. Thanks - Original Message - From: Jeff Prideaux [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 04, 2002 1:41 PM Subject: RE: tomcat-apache win32 integration problem with 100% CPU utilization When I installed the sample app myapp from the tomcat 4.0.1 documentation, and tried to run it with Tomcat plugged into Apache, I had the problem mentioned below with things locking up whenever images needed to be served up (especially whenever you hit the refresh button on the browser). Note that this problem was in my development environment where the browser, apache and tomcat were all running on the same machine. When I used a different machine to browse to the website, I didn't have the problem. That may be one solution to the problem. Just browse to the web site on a different machine than the one hosting the software. But most people develop with everything running on the same machine There must be something going on with one software component (the browser???) getting a lock on something and preventing another software component from getting to it... I'm using I.E for my browser. I wonder if the problem shows up if one uses Netscape as the browser? Perhaps I will download Netscape and try it... -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 9:25 PM To: Tomcat Users List Subject: Re: tomcat-apache win32 integration problem with 100% CPU utilization I have the same problem... I don't know what to do. I try all, everything, but the problem persist (I'm desolated :-(. It's very weird. There is a guru to clarify this problem? - Original Message - From: BW [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 04, 2002 12:09 PM Subject: Re: tomcat-apache win32 integration problem with 100% CPU utilization I get the same problem with tomcat4.0.1 intergrated with apache in win2000 when the html or jsp page has images on it. The apache server respond slow or stop when you refresh it. It also takes time to restart apache I don't know if this is window2000 problem only or we miss any configuration. Thanks for any idea. BW The original message from I'm having problems integrating Tomcat with Apache in my development environment using win2000Pro. I following the directions to add libapr.dll and mod_webapp.so to C:\Program Files\Apache Group\Apache\modules and add the following lines to httpd.conf: LoadModule webapp_module modules/mod_webapp.so ... AddModule mod_webapp.c ... WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples/ Both Tomcat and Apache start up fine. I can browse directly to http://localhost/examples/jsp/num/numguess.jsp and play that number guessing game fine. The integration appears fine for that. But when I browse to a URL within the examples application that has an image, my CPU becomes 100% allocated and my computer practically grinds to a halt. For example, it can't deal with http://jeffp-desktop/examples/jsp/index.html which contains images. I have to stop and restart Tomcat for my computer to get my CPU utilization under control. Has anybody experienced anything like this in integrating Tomcat and Apache? I must be missing some configuration step Thanks in advanced. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: update from jserv to tomcat 4.0.1
If you only use jsp's pages and servlets and don't have a lot of people accesing your site, Tomcat Stand-Alone is the right play, I think. Marcelo - Original Message - From: marcel beltz [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 8:53 AM Subject: update from jserv to tomcat 4.0.1 hello, we have a running configuration of apache with mod_jserv. but we have every day a out of memory exception and we want to change to tomcat 4.0.1. our website based only on JSP and servlets, is it better to use apache with tomcat or only tomcat? mfg Marcel Beltz -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Servlet visibility in Apache-Tomcat
Hi all ! I use Apache 1.3.22 and Tomcat 4.0.1 with the WARP connector mod_webapp (W2k pro and JDK 1.3.1) I have a little problem: When I request the URL http://localhost/servlet/myservlet?param1=value1param2=value2 to apache I get the 404 Page Not Found. Nevertheless, when I request the same to Tomcat (at port 8080, Stand-alone mode configuration) it's work fine (myservlet is in %CATALINA_HOME%/classes directory). I think Apache search the servlet folder in his htdocs and obviously don't found it. Why the mapping /servlet/* of Tomcat default web.xml (in the %CATALINA_HOME%/conf) not work? I just want to execute my servlet from Apache. Thanks in advance. Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat servlet output
But if I want to write in a log file, how I do it? I need to modify server.xml or web.xml? Which lines I must append to this configuration files? Thanks in advance and HAPPY NEW YEAR TOO !!! Marcelo - Original Message - From: Guido Medina [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 5:07 AM Subject: RE: tomcat servlet output if you are working in linux try to send the log file to any terminal, for example /dev/tty9 and after you'll see all the System.out.println pressing Alt+F9, any linux person knows that, use the terminals for logs my friend. Regards and happy new year, Guido. -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 01, 2002 12:07 PM To: Tomcat Users List Subject: Re: tomcat servlet output That will look ugly even though it's for the test purpose. Try use the log file. You will more than likely need them in the production environment unless that is not your preference and no necessary. Pae At 05:13 PM 12/31/2001 -0800, you wrote: My servlets in Tomcat works just fine, but I was wondering where does the 'System.out.println(bla bla...)' goes when the servelet is executed. I would like to use this to debug my servlet. thanks, Sanjeev In my case (Win 2K), System.out.println goes to the Catalina console window that's spawned when Tomcat is started. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Getting tomcat to re-compile all .jsp's
Try to delete the contents of the work folder (Tomcat 4.0.1). This folder has all the servlet compiled from the jsp's pages. Tell me if it works! Marcelo - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 30, 2001 12:58 AM Subject: Getting tomcat to re-compile all .jsp's _ Easy question, I hope. I have a project with some files included in numerous .jsp's using %@ include file=... %, the problem is that I am making changes to included files, and tomcat is not detecting changes to the including jsp's. So, my changes are not getting propegated unless I 'touch' the .jsp files. Is there a better way to do this? Is there a command to clear tomcat's (4.0) cache of compiled .jsp's somehow? Thanks, Cameron Elliott -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Servlet visibility
Hi all ! I use Apache 1.3.22 and Tomcat 4.0.1 with the WARP connector mod_webapp (W2k pro and JDK 1.3.1) I have a little problem: When I request the URL http://localhost/servlet/myservlet?param1=value1param2=value2 to apache I get the 404 Page Not Found. Nevertheless, when I request the same to Tomcat (at port 8080, Stand-alone mode configuration) it's work fine (myservlet is in %CATALINA_HOME%/classes directory). I think Apache search the servlet folder in his htdocs and obviously don't found it. Why the mapping /servlet/* of Tomcat default web.xml (in the %CATALINA_HOME%/conf) not work? I just want to execute my servlet from Apache. Thanks in advance. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problem with the mod_webapp connector
Hi everybody! I have a "mission" for this list :-) When I install Tomcat 4.0.1 and Apache 1.3.22 in an environment W2Kprofessional with JDK 1.3.1 and the mod_webapp WARP connector, I get the following problem: Whenever I try to access the Tomcat example index page: [...]/examples/jsp/index.html The plain text is displayed, but then Apache hangs downloading the gifs. And I have to restart Apache. However I do not have the problem running Tomcat in Stand-alone mode. Thanks in advance and i will appreciate so much a solution to thistrouble. Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JSP translation's problem...
Hi ! I need help, my problem is: I call a bean from one jsp page but the result (HTML code) throw by the bean appars at the top of the HTML page served by the web server (I use Tomcat 4.0.1) instead of the position I call it Example: 1) My jsp page !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML ... jsp:useBean id=fmngt class=myfolder.formmngtbean scope=session / % fmngt.getPage(request, response); % ... /HTML 2) Result --HTML code generated for the bean-- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML ... /HTML Why? How I can do appear the generated code in the right position? Don't shall be done by default? Thanks in advance. Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JSP translation's problem...
Thank you S for your response, but i can't yet make it work... a curiosity: why i have this problem (within tomcat) and when i run this web app. with IIS/Jrun work perfectly ? I mean, IIS/Jrun translate the jsp page in the correct order, putting the HTML code generated by my bean exactly where i call the bean, not in the top of the HTML page, like happens with tomcat. Really, i don't understand... Marcelo [EMAIL PROTECTED] wrote: Use the pageWriter from the JSP page, Send the writer to your servlet using somethinglike % fmngt.getPage(request, out); % then in your code do your output lines directly Something like out.println(My page is a wonderful thing); S -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 8:10 PM To: Tomcat Users List Subject: JSP translation's problem... Hi ! I need help, my problem is: I call a bean from one jsp page but the result (HTML code) throw by the bean appars at the top of the HTML page served by the web server (I use Tomcat 4.0.1) instead of the position I call it Example: 1) My jsp page !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML ... jsp:useBean id=fmngt class=myfolder.formmngtbean scope=session / % fmngt.getPage(request, response); % ... /HTML 2) Result --HTML code generated for the bean-- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML ... /HTML Why? How I can do appear the generated code in the right position? Don't shall be done by default? Thanks in advance. Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JSP translation's problem...
Thank you S for your response, but i can't yet make it work... a curiosity: why i have this problem (within tomcat) and when i run this web app. with IIS/Jrun work perfectly ? I mean, IIS/Jrun translate the jsp page in the correct order, putting the HTML code generated by my bean exactly where i call the bean, not in the top of the HTML page, like happens with tomcat. Really, i don't understand... Marcelo [EMAIL PROTECTED] wrote: Use the pageWriter from the JSP page, Send the writer to your servlet using somethinglike % fmngt.getPage(request, out); % then in your code do your output lines directly Something like out.println(My page is a wonderful thing); S -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 8:10 PM To: Tomcat Users List Subject: JSP translation's problem... Hi ! I need help, my problem is: I call a bean from one jsp page but the result (HTML code) throw by the bean appars at the top of the HTML page served by the web server (I use Tomcat 4.0.1) instead of the position I call it Example: 1) My jsp page !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML ... jsp:useBean id=fmngt class=myfolder.formmngtbean scope=session / % fmngt.getPage(request, response); % ... /HTML 2) Result --HTML code generated for the bean-- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML ... /HTML Why? How I can do appear the generated code in the right position? Don't shall be done by default? Thanks in advance. Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JSP translation's problem...
[EMAIL PROTECTED] wrote: try this. set the page buffer to 0. put this line of code at the very top of your jsp %@ page buffer=0 autoFlush=true % thanks. RS. Work !!! Thank you... i hava yet troubles but this directive permit the correct HTML code generation's order. And thanks too S !!! I live in Paraguay and here it's time to go home... i'm tyred of work !!! See you tomorrow... and sincerely thanks for the aid... P.S.: excuseme, my english is bad :-) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]