Jerry, Try renaming EBook in the context and rename the directory to match.
OR Remove the EBook app and then rename test to EBook. Wonder if there is a typo somewhere.. EBook..Ebook..EBooK..etc. It's a real bite what one letter can do. Doug ----- Original Message ----- From: "Jerry Ford" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, February 14, 2004 11:09 PM Subject: Re: jsp deployment > Well, that's odd.... > > I followed your advice, BAO RuiXian. I created a dirctory called test > and deployed it, with successful results as noted in previous e-mail. > > Since it did deploy successfully, I wondered what would happen if I > copied the contents of the EBook directory---all of it, including html, > jps, servlets, and xml files---into the test directory and ran the EBook > app from there. > > And it worked. Everything, including the jsp file that triggered my > initial question to the forum. The EBook app works find from the test > directory, as the test webapp. Then I went a step further and > configured Apache to recognize the test app. And it worked, too. > > So, my EBook app works whether called directly from Tomcat or from > Tomcat via Apache, if deployed in the test directory, but not in the > EBook directory, even though the context in server.xml is identical in > every respect except directory name. > > I don't get it. > > Now I need to get it to work under the name EBook, not test. This is > really strange. > > Jerry > > > > Jerry Ford wrote: > > > > > > > BAO RuiXian wrote: > > > >> > >> > >> Jerry Ford wrote: > >> > >>> Tomcat manager shows EBook is running. And, when I request it > >>> through Apache, Tomcat does serve it up. When I request it through > >>> port 8080, Tomcat says it's not available: > >> > >> > >> > >> I suggest for now you forget running via Apache totally, > > > > > > > > Agreed. > > > >> since if it is not working directly from Tomcat, it cannot be running > >> via Apache. What you see Tomcat is serving via Apache, actually it is > >> not, rather the Apache itself is serving it. > > > > > > > > But Tomcat has to be serving up something; the servlets that are part > > of EBook do work and Apache can't serve them without Tomcat. > > > >> > >> You say Tomcat manager shows EBook is running, did you run > >> localhost:8080//manager/list? Can you post the result of the url? > > > > > > Here is the output: > > > > OK - Listed applications for virtual host localhost > > /EBook:running:0:/usr/local/webserver/tomcat/webapps/EBook > > /manager:running:0:/usr/local/webserver/tomcat/server/webapps/manager > > /examples:running:0:examples > > /j_tools:running:0:/usr/local/webserver/webapps/j_tools > > /tomcat-docs:running:0:/usr/local/webserver/jakarta-tomcat-4.1.27/webapps/to mcat-docs > > > > /webdav:running:0:/usr/local/webserver/jakarta-tomcat-4.1.27/webapps/webdav > > > > /admin:running:0:/usr/local/webserver/tomcat/server/webapps/admin > > /:running:0:ROOT > > > > > >> > >> To further debug, can you do the following: > >> > >> 1. Make a 'test' directory under your webapps directory, i.e. > >> paralell to "examples" and "EBook"; > >> 2. Make a Context block in the server.xml file for 'test' by > >> copy/paste/modify the Context block for "examples"; > >> 3. Install this 'test' app by running > >> localhost:8080/manager/install?war=test > >> > >> Then run localhost:8080/test, what happens? > > > > > > > > I get a Tomcat-generated directory listing for / > > > > Listing is, of course, empty, since there are no files in test. > > > > BTW, I really appreciate your help. Thanks. > > > >> > >> > >> Best > >> > >> Bao > >> > >>> > >>> Works----http://localhost/EBook > >>> Doesn't work----http://localhost:8080/EBook > >>> > >>> Works---http://localhost/examples/jsp > >>> Works---http://localhost:8080/examples/jsp > >>> > >>> Jerry > >>> > >>> BAO RuiXian wrote: > >>> > >>>> > >>>> > >>>> Jerry Ford wrote: > >>>> > >>>>> Sorry, that's a cut-and-paste error that does not appear in the > >>>>> real server.xml. Only one </context> end tag; the root context is > >>>>> closed before the EBook context begins: <context... /> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> The configuration seems okay then. BTW, can you run > >>>> http://localhost:8080/manager/list to see what apps you have > >>>> installed? If you can not find 'EBook', then you need to install it > >>>> by running http://localhost:8080/manager/install?war=EBook > >>>> > >>>> Best > >>>> > >>>> Bao > >>>> > >>>> > >>> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]