Re: add a new servlet ....
You stated you were not able to add a new servlet, have you been able to run any servlets? If not, it may be an installation issue and that is what should be addressed. If you have run at least the example Servlets and JSP, then we can start looking closer at what's going on with this particular one. Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. dsergent@imex pert.com To: [EMAIL PROTECTED] cc: 03/28/2001 Subject: Réf. : Re: Réf. : Re: add a new servlet 09:31 AM Please respond to tomcat-user Excuse me but I don't understand what do you mean by tested my setup ... and I test it with a jsp page which is supposed to use a variable declared by the servlet but my variable is always null. David "Neill" <[EMAIL PROTECTED]> 28/03/01 16:07 Veuillez répondre à tomcat-user Pour : [EMAIL PROTECTED] cc : Objet : Re: Réf. : Re: add a new servlet Have you tested your setup and run any examples or snoop? Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. dsergent@imex pert.com To: [EMAIL PROTECTED] cc: 03/28/2001 Subject: Réf. : Re: add a new servlet 08:14 AM Please respond to tomcat-user ok fine, I creat a application in another folder (configured in server.xml) I put the class in a folder names Web-inf and in a subfolder names classes, but it doesn't work, my servlet doesn't start ... aaarg help me David "Neill" <[EMAIL PROTECTED]> 28/03/01 15:14 Veuillez répondre à tomcat-user Pour : [EMAIL PROTECTED] cc : Objet : Re: add a new servlet the directory structure of the web application is: -TOMCAT_ROOT - - webapps - - - application root (this is where you place HTML and JSP files) - - - - subdirectory (hierarchical organization of HTML and JSP files) - - - - WEB_INF (this is where web.xml will go) - - - - - classes (this is where class files will go and is the CLASSPATH of the application) System.out.print statements will output to the Tomcat command line (STOUT/STERR) print statements using PrintWriter will output to the response object (to your HTML page) Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. dsergent@imex pert.com To: [EMAIL PROTECTED] cc: 03/27/2001 Subject: add a new servlet 04:50 AM Please respond to tomcat-user I try to add a new servlet which is supposed to load on startup. But I don't know where I'm supposed to put the class file. If I use a println() method in the init fonction of my class, where is it supposed to write something ??? my web.xml file : Settings SettingsServlet rootFile c:\testJSP\init.conf -2147483646 Settings /servlet/Settings thks a lot for your answer David a french tomcat beginner
Re: Réf. : Re: add a new servlet ....
Have you tested your setup and run any examples or snoop? Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. dsergent@imex pert.com To: [EMAIL PROTECTED] cc: 03/28/2001 Subject: Réf. : Re: add a new servlet 08:14 AM Please respond to tomcat-user ok fine, I creat a application in another folder (configured in server.xml) I put the class in a folder names Web-inf and in a subfolder names classes, but it doesn't work, my servlet doesn't start ... aaarg help me David "Neill" <[EMAIL PROTECTED]> 28/03/01 15:14 Veuillez répondre à tomcat-user Pour : [EMAIL PROTECTED] cc : Objet : Re: add a new servlet the directory structure of the web application is: -TOMCAT_ROOT - - webapps - - - application root (this is where you place HTML and JSP files) - - - - subdirectory (hierarchical organization of HTML and JSP files) - - - - WEB_INF (this is where web.xml will go) - - - - - classes (this is where class files will go and is the CLASSPATH of the application) System.out.print statements will output to the Tomcat command line (STOUT/STERR) print statements using PrintWriter will output to the response object (to your HTML page) Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. dsergent@imex pert.com To: [EMAIL PROTECTED] cc: 03/27/2001 Subject: add a new servlet 04:50 AM Please respond to tomcat-user I try to add a new servlet which is supposed to load on startup. But I don't know where I'm supposed to put the class file. If I use a println() method in the init fonction of my class, where is it supposed to write something ??? my web.xml file : Settings SettingsServlet rootFile c:\testJSP\init.conf -2147483646 Settings /servlet/Settings thks a lot for your answer David a french tomcat beginner
Re: add a new servlet ....
the directory structure of the web application is: -TOMCAT_ROOT - - webapps - - - application root (this is where you place HTML and JSP files) - - - - subdirectory (hierarchical organization of HTML and JSP files) - - - - WEB_INF (this is where web.xml will go) - - - - - classes (this is where class files will go and is the CLASSPATH of the application) System.out.print statements will output to the Tomcat command line (STOUT/STERR) print statements using PrintWriter will output to the response object (to your HTML page) Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. dsergent@imex pert.com To: [EMAIL PROTECTED] cc: 03/27/2001 Subject: add a new servlet 04:50 AM Please respond to tomcat-user I try to add a new servlet which is supposed to load on startup. But I don't know where I'm supposed to put the class file. If I use a println() method in the init fonction of my class, where is it supposed to write something ??? my web.xml file : Settings SettingsServlet rootFile c:\testJSP\init.conf -2147483646 Settings /servlet/Settings thks a lot for your answer David a french tomcat beginner
RE: Problems while configuring Apache-Tomcat on Linux
The differences are discussed in the Tomcat documentation online at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html basically, mod_jk is newer and replaces mod_jserv and allows integration with various web servers including Apache, iPlanet, and IIS Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. Nick Butler <[EMAIL PROTECTED]> cc: 03/27/2001 08:03 AMSubject: RE: Problems while configuring Apache-Tomcat on Linux Please respond to tomcat-user I noticed there are two files if you go to download the binary version of this module on the following site. http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38 6/ mod_jk.so and mod_jserv_tomcat.so Does anyone know what the difference (if any) is between these two? Thanks -Original Message- From: Gustavo Muñoz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 12:35 AM To: [EMAIL PROTECTED] Subject: RE: Problems while configuring Apache-Tomcat on Linux Hi JServ is an old version. Try mod_jk it is better solution. My two cents, Gustavo. -Original Message- From: Kavita Jotwani [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 11:15 PM To: '[EMAIL PROTECTED]' Subject: Problems while configuring Apache-Tomcat on Linux For configuring Apache-Tomcat to work together on Linux, I downloaded the file named mod_jserv_tomcat.so from the www.jakarta.apache.org site and placed it in the /usr/local/apache/libexec/ directory. The tomcat-apache.conf that was generated on starting tomcat was also renamed to tomcat.conf and the same was included in the apache's httpd.conf. I had to update this tomcat.conf file to change the first line to "LoadModule jserv_module libexec/mod_jserv_tomcat.so" instead of "LoadModule jserv_module libexec/mod_jserv.so" On restarting tomcat, it works fine. When we restart Apache, it gives the following error - [root@linuxwd libexec]# /usr/local/apache/bin/apachectl start Syntax error on line 1021 of /usr/local/apache/conf/httpd.conf: API module structure `jserv_module' in file /usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - perhaps this is not an Apache module DSO? /usr/local/apache/bin/apachectl start: httpd could not be started Can anybody provide assistance in the same? Also, the same thing works fine for NT. I have tried the same with mod_jserv.dll on NT. It is working fine. Thanks and regards Kavita
Re: JSP Anywhere?
My mistake, the Tomcat server.xml document manages the behavior of the application context. In order to get Apache to pass the context to Tomcat you will use mod_jk or mod_jserv. This is done by means of an include statement in Apache http.conf If you are using mod_jk, then the included file will have statements similar to (use mod_jk.conf-auto as an example): # The following line mounts all JSP files and the /servlet/ uri to tomcat JkMount /home/* ajp13 JkMount /home/*.jsp ajp13 If you are using mod_jserv, then your included file will contain: #Context mapping - all requests go to tomcat ApJServMount /examples /root If this is not clear, reply with specifics of your Apache-Tomcat configuration Sincerely, Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. - Original Message - From: "Neill Laney" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 9:36 PM Subject: Re: JSP Anywhere? you need to "Add a entry in the Tomcat server.xml configuration file." for your application. Developing Applications With Tomcat provides a good discussion. http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html - Original Message - From: "Deborah Lee Soltesz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 6:53 PM Subject: JSP Anywhere? I've been beating on Tomcat and Apache trying to process JSPs found anywhere on the server, not just the jsp directory in the servlets directory. _Core_Servlets_ promises I can do such a thing, and makes it sound as if it's the default state of Tomcat when installed. I get a 404 error from TomCat when I try to run a JSP from somewhere other than the servlets directories... what's the set up for this? deborah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: JSP Anywhere?
you need to "Add a entry in the Tomcat server.xml configuration file." for your application. Developing Applications With Tomcat provides a good discussion. http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html - Original Message - From: "Deborah Lee Soltesz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 6:53 PM Subject: JSP Anywhere? I've been beating on Tomcat and Apache trying to process JSPs found anywhere on the server, not just the jsp directory in the servlets directory. _Core_Servlets_ promises I can do such a thing, and makes it sound as if it's the default state of Tomcat when installed. I get a 404 error from TomCat when I try to run a JSP from somewhere other than the servlets directories... what's the set up for this? deborah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to configure mod_jk.conf-auto
It works! The servlets are not in the /servlets path but the root instead. I added LoadModule jk_module modules/mod_jk.so and AddModule mod_jk.c to the appropriate section in the Apache http.conf file so they don't have to be in the include file. I'm a little confused about the libexec file path. the installation I'm running uses a /modules file path. Does this make sense rather than put mod_jk.so in it's own directory? Thanks for the help! Sincerely, Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. - Original Message - From: "Jan Labanowski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Jan Labanowski" <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 6:26 PM Subject: Re: How to configure mod_jk.conf-auto Copy mod_jk.conf-auto to something else. Edit this something else (say mod_jk.conf) and include it at the end of the httpd.conf in your Apache. Jan editing mod_jk.conf-auto does not make sense since it is overwritten each time the Tomcat starts... Jan On Tue, 13 Mar 2001, Neill Laney wrote: > mod_jk.conf-auto shows the following for an application > Tomcat_Home/webapps/home: > > JkMount /home/servlet/* ajp12 > JkMount /home/*.jsp ajp12 > > a servlet is mapped in the application which works fine on port 8080. JSP's > and static pages load from apache, but no servlets :-( > > Any help is appreciated !!! > > Sincerely, > > Neill Laney > http://home.nc.rr.com/nlaney > -- > Web Developer/Technical Support Specialist. > > > - Original Message - > From: "Christopher Albert" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, March 13, 2001 4:22 AM > Subject: Re: How to configure mod_jk.conf-auto > > > Jörg Petschat wrote: > > > > Hallo, > > > > Where can i configure the mod_jk.conf-auto. > > Tomcat use only ajp12 in the mod_jk.conf-auto ? Can someone help ? > > > > J Ö R G P E T S C H A T > > -- Systemadministrator -- > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > Jorg, > > Have you looked at > http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html > > Chris > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to configure mod_jk.conf-auto
mod_jk.conf-auto shows the following for an application Tomcat_Home/webapps/home: JkMount /home/servlet/* ajp12 JkMount /home/*.jsp ajp12 a servlet is mapped in the application which works fine on port 8080. JSP's and static pages load from apache, but no servlets :-( Any help is appreciated !!! Sincerely, Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. - Original Message - From: "Christopher Albert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 4:22 AM Subject: Re: How to configure mod_jk.conf-auto Jörg Petschat wrote: > > Hallo, > > Where can i configure the mod_jk.conf-auto. > Tomcat use only ajp12 in the mod_jk.conf-auto ? Can someone help ? > > J Ö R G P E T S C H A T > -- Systemadministrator -- > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] Jorg, Have you looked at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to configure mod_jk.conf-auto
I am using the same setup (it sounds like) and get the same behavior: mod_jk.conf-auto only lists ajp12. I get another error in a web app context. mod_jk.conf-auto shows the following for an application Tomcat_Home/webapps/home: JkMount /home/servlet/* ajp12 JkMount /home/*.jsp ajp12 so far. OK. If there is a trailing "/" in the URL or if the default home page is typed in the URL manually, the server will not find any servlets. The only way it works is http://host/webapp without a trailing "/" ??? Any help will be greatly appreciated !!! Sincerely, Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. - Original Message - From: "Christopher Albert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 4:22 AM Subject: Re: How to configure mod_jk.conf-auto Jörg Petschat wrote: > > Hallo, > > Where can i configure the mod_jk.conf-auto. > Tomcat use only ajp12 in the mod_jk.conf-auto ? Can someone help ? > > J Ö R G P E T S C H A T > -- Systemadministrator -- > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] Jorg, Have you looked at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
attitude adjusted - welcome-file-list
has anyone had any trouble with default index.jsp, index.htm, or index.html not being served when the application root is requested by the browser? Tomcat 3.21 TIA Sincerely, Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
welcome-file-list Tomcat 3.21 / RH7 Linux
I switched from Tomcat 3.14 to 3.21 to resolve a header issue where I was getting a "text/plain" header in a Servlet when res.setContentType("text/html"); Now, Tomcat 3.21 won't load a default page when the welcome-file-list includes index.html, index.htm, and index.jsp On top of all this, Tomcat 4.0 on Windows 2k Professional sets a cookie when the JSP states session="false" It would be nice if Apache.org would go from stable release to stable release instead of beta to beta, or if anything on God's green earth would work as advertised ! There, now I've vented. My immediate problem is getting Tomcat to load a default index page. Has this happened to anyone else and what can be done. I've searched the archives and not found anything. Of course, I searched using "welcome-file" and the string was not to be found in any of the hits. That's been my day for the most part. Any help is appreciated. Sincerely, Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. Resume online at http://home.nc.rr.com/nlaney/nml/resume.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: JSP's Not reloading
I encountered a similar problem and elected to do coding on a client machine (Windows Professional) with Tomcat stand-alone installed then transfer the files to the production side with Apache and Tomcat on Linux (RH 7) for testing. Neill Laney http://home.nc.rr.com/nlaney -- Actively seeking work as Web Developer/ Technical Support Specialist in Raleigh/Durham/RTP, NC. Resume online at http://home.nc.rr.com/nlaney/nml/resume.html - Original Message - From: "Andreas Sheriff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 08, 2001 7:54 PM Subject: JSP's Not reloading I finally figured out why my Tomcat 3.2 server isn't reloading my updated JSP files! It turns out that I'm using a NFS mounted file system to access the document root on my file server from the Tomcat server machine, but I'm editing the files directly through the file server instead of through the NFS mount point on the Tomcat server. I also learned that NFS has a cachine problem, where you can change the contents of a shared file one one machine, but the directory date doesn't get updated when doing a ls -l * on another machine. Does anyone know how to disable directory caching of NFS on linux 6.2? Any help would be greatly apreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Linux in-process servlet context configuration
Now I can get some sleep. Many thanks! I installed everything from RPM's and the include statement was added with the jserv mod. After adding the ApJservMount context statement to tomcat.conf and restarting TomCat and Apache, the application is running excellently. I meant to give the source of the bookstore application in my previous post. It is from the Java Servlet tutorial, ftp://ftp.javasoft.com/docs/tut-bookstore-tomcat.zip or http://web2.java.sun.com/docs/books/tutorial/servlets/ Thanks again! - Original Message - From: "Carl Johnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 26, 2000 11:58 PM Subject: RE: Linux in-process servlet context configuration Niell, If your 'Include'ing the tomcat-apache.conf (the config that tomcat automatically generates) then you may just need to restart apache for it to pick up the new servlet contexts. If you're not using the tomcat-apache.conf file then you'll probably be using the tomcat.conf file. You'll need edit this file to mount the servlet context within apache (ie/ let apache know that /bookstore is a servlet context) which can be done by adding something simmilar to this to your tomcat.conf file: ApJservMount /bookstore /root Regards, Carl --- Carl Johnston Systems Administrator BiziWorks [http://www.biziworks.com.au] [EMAIL PROTECTED] > -Original Message- > From: Neill Laney [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 27 December 2000 3:36 PM > To: [EMAIL PROTECTED] > Subject: Linux in-process servlet context configuration > > > Tomcat 3.1, jserv module, and Apache 1.3.14 are installed and running on > RedHat 7. > > The examples are running with the URL > http://newhost/examples/servlet/HelloWorldExample and > http://newhost:8080/examples/servlet/HelloWorldExample > > I have an application called "Bookstore" that was running on a stand-alone > TomCat installation on NT that was system copied to Linux (isn't Samba > wonderful). The application will run with the URL > http://newhost:8080/bookstore/enter but not http://newhost/bookstore/enter > > the error message is: > > Not Found > The requested URL /bookstore/enter was not found on this server. > Apache/1.3.14 Server at newhost.localdomain Port 80 > > webapps/bookstore/WEB-INF/web.xml is parsed correctly or it > wouldn't run on > port 8080. What is wrong? > > Any help will be greatly appreciated. >
Linux in-process servlet context configuration
Tomcat 3.1, jserv module, and Apache 1.3.14 are installed and running on RedHat 7. The examples are running with the URL http://newhost/examples/servlet/HelloWorldExample and http://newhost:8080/examples/servlet/HelloWorldExample I have an application called "Bookstore" that was running on a stand-alone TomCat installation on NT that was system copied to Linux (isn't Samba wonderful). The application will run with the URL http://newhost:8080/bookstore/enter but not http://newhost/bookstore/enter the error message is: Not Found The requested URL /bookstore/enter was not found on this server. Apache/1.3.14 Server at newhost.localdomain Port 80 webapps/bookstore/WEB-INF/web.xml is parsed correctly or it wouldn't run on port 8080. What is wrong? Any help will be greatly appreciated.