Re: tomcat 3.2.3 configuration
Aaron, basic question: do you have an index.html or index.jsp in your webapps/baseball directory? In order to get a page when you go to http://localhost:8080/baseball you'll need an index.jsp page in this directory. If you don't have this, try giving the name of your actual jsp page - something like http://localhost:8080/baseball/home.jsp another basic question: are you getting a 404 page not found or 500 internal server error? If you're getting the latter the problem could lie elsewhere such as a missing or incompatible java compiler. all the best, Raphael. - Original Message - From: "Aaron Cooper" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 24, 2001 9:41 PM Subject: RE: tomcat 3.2.3 configuration Hi William Thanks for your reply. I appreciate it a lot. Ok, I will try what you suggested. However, I do not have any servlets in my application, just JSP pages. That being said, is it necessary for me to define a servlet mapping? Also, when I try http://localhost:8080/servlet/baseball, it still cannot find the directory. I've been following the examples I've seen to a tea, yet unsuccessful. Aren't computers fun :) I'll check out the URL you gave too. Cheers Aaron >>> William Kaufman <[EMAIL PROTECTED]> 07/24/01 12:18pm >>> It should be http://localhost:8080/servlet/baseball ^^^ If you want to use http://localhost:8080/baseball you'll need to define your own web.xml, aliasing your servlet to "/baseball" like, cut here BaseballServlet baseball BaseballServlet /baseball cut here For more information, read the JSDK spec, at http://java.sun.com/products/servlet/download.html -- Bill K. > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 7:59 AM > To: [EMAIL PROTECTED] > Subject: tomcat 3.2.3 configuration > > > Hi folks > >I am really stumped here and am wondering if someone can > lend a helping hand. I want to create my own web > application. From what I have read, if I put a directory > under /webapps, tomcat will automatically add that directory > to its web applications using ContextManager. > > I created a /baseball directory under /webapps, however, > whenever I type in > http://localhost:8080/baseball, it does not find the > directory. So, I went and changed server.xml and added the > > . But that also did not work :) > > Is there something I am doing wrong here? I've noticed in the > /webapps directory there exists .war files... do I need to do > create a war file? if so, how? > > Any help would be greatly appreciated! > > thanks! > > Aaron Cooper > _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: tomcat 3.2.3 configuration
Hi William Thanks for your reply. I appreciate it a lot. Ok, I will try what you suggested. However, I do not have any servlets in my application, just JSP pages. That being said, is it necessary for me to define a servlet mapping? Also, when I try http://localhost:8080/servlet/baseball, it still cannot find the directory. I've been following the examples I've seen to a tea, yet unsuccessful. Aren't computers fun :) I'll check out the URL you gave too. Cheers Aaron >>> William Kaufman <[EMAIL PROTECTED]> 07/24/01 12:18pm >>> It should be http://localhost:8080/servlet/baseball ^^^ If you want to use http://localhost:8080/baseball you'll need to define your own web.xml, aliasing your servlet to "/baseball" like, cut here BaseballServlet baseball BaseballServlet /baseball cut here For more information, read the JSDK spec, at http://java.sun.com/products/servlet/download.html -- Bill K. > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 7:59 AM > To: [EMAIL PROTECTED] > Subject: tomcat 3.2.3 configuration > > > Hi folks > >I am really stumped here and am wondering if someone can > lend a helping hand. I want to create my own web > application. From what I have read, if I put a directory > under /webapps, tomcat will automatically add that directory > to its web applications using ContextManager. > > I created a /baseball directory under /webapps, however, > whenever I type in > http://localhost:8080/baseball, it does not find the > directory. So, I went and changed server.xml and added the > > . But that also did not work :) > > Is there something I am doing wrong here? I've noticed in the > /webapps directory there exists .war files... do I need to do > create a war file? if so, how? > > Any help would be greatly appreciated! > > thanks! > > Aaron Cooper >
Re: tomcat 3.2.3 configuration
William Kaufman wrote: > It should be > > http://localhost:8080/servlet/baseball > ^^^ Ah, thanks William for clarifying that better than I could! :) -- John Alex Hebert [EMAIL PROTECTED] System Engineer
RE: tomcat 3.2.3 configuration
It should be http://localhost:8080/servlet/baseball ^^^ If you want to use http://localhost:8080/baseball you'll need to define your own web.xml, aliasing your servlet to "/baseball" like, cut here BaseballServlet baseball BaseballServlet /baseball cut here For more information, read the JSDK spec, at http://java.sun.com/products/servlet/download.html -- Bill K. > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 7:59 AM > To: [EMAIL PROTECTED] > Subject: tomcat 3.2.3 configuration > > > Hi folks > >I am really stumped here and am wondering if someone can > lend a helping hand. I want to create my own web > application. From what I have read, if I put a directory > under /webapps, tomcat will automatically add that directory > to its web applications using ContextManager. > > I created a /baseball directory under /webapps, however, > whenever I type in > http://localhost:8080/baseball, it does not find the > directory. So, I went and changed server.xml and added the > > . But that also did not work :) > > Is there something I am doing wrong here? I've noticed in the > /webapps directory there exists .war files... do I need to do > create a war file? if so, how? > > Any help would be greatly appreciated! > > thanks! > > Aaron Cooper >
Re: tomcat 3.2.3 configuration
Aaron Cooper wrote: > Hi folks > >I am really stumped here and am wondering if someone can lend a helping hand. I >want to create my own web application. From what I have read, if I put a directory >under /webapps, tomcat will automatically add that directory to its web applications >using ContextManager. > > I created a /baseball directory under /webapps, however, whenever I type in > http://localhost:8080/baseball, it does not find the directory. So, I went and >changed server.xml and added the > . But that also did not work :) > > Is there something I am doing wrong here? I've noticed in the /webapps directory >there exists .war files... do I need to do create a war file? if so, how? > > Any help would be greatly appreciated! > > thanks! > > Aaron Cooper > > Aaron, Nothing is wrong, other than that there is no application under baseball. Read http://jakarta.apache.org/tomcat/tomcat-3.2-doc/appdev/index.html and try playing with the examples. John -- John Alex Hebert [EMAIL PROTECTED] System Engineer