Thanks, now I got the docBase right but I still have to restart Tomcat to get everything up and running after the ant deploy task, but after the restart everything works fine. What can be the problem with the deployment? As I said before, I can see the deployment in the admin console but I get errors when trying to reach it before the restart, so I think it's only "semi-deployed" or something. Do you have any clue what my problem could be?
Thanks a lot /Kax > > From: Phillip Qin <[EMAIL PROTECTED]> > Date: 2004/10/06 on PM 01:46:54 GMT > To: 'Tomcat Users List' <[EMAIL PROTECTED]> > �mne: RE: RE: Root application in Tomcat > > I think Deploy task is using Tomcat Manager to deploy your application. > Please check your deploy parameters > > <deploy url="http://yourhost/manager" username="yourname" > password="yourpass" path="/" war="yourwar.url"/> > > yourwar.url is > > *nix - file:/dir/yourwar.war > Win* - file:/c:/dir/yourwar.war > > In your context.xml > > <Context path="" docBase="ROOT" debug="0" reloadable="true" > crossContext="false"> > > > -----Original Message----- > From: kax [mailto:[EMAIL PROTECTED] > Sent: October 6, 2004 8:53 AM > To: [EMAIL PROTECTED] > Subject: RE: RE: Root application in Tomcat > > > Hi, > > Thanks for your answers and suggestions. I have never got so much help at > any mailing list at any project before! You guys rock! I haven't had the > time to test this until today. I'm trying to deploy the application with the > deploy ant task. The application is deployed and unpacked into the ROOT > directory. But if I then enter the /admin console and looks at the Context > (/) I get an error saying: "HTTP Status 500 - Error retrieving attribute > debug - The server encountered an internal error (Error retrieving attribute > debug) that prevented it from fulfilling this request". But if I restart the > server I get a page for the Context (/) in the admin. Another thing is that > I can't see any document base at the admin page, why is that? > > Thanks in advance. > > > > > From: "Shapira, Yoav" <[EMAIL PROTECTED]> > > Date: 2004/10/05 ti PM 02:32:54 GMT > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > �mne: RE: RE: Root application in Tomcat > > > > > > Hi, > > I would also suggest adding a <factory> element to each > > <ResourceParams> in your d-test.xml file, and setting auth="Container" > > for them to be complete. > > > > In addition, don't use <Parameter> unless you have to: that stuff can > > and should be included as context parameters in your web.xml. That > > approach is more portable and container-independent. > > > > But what you have is not illegal or invalid, the above are just > > suggestions. The server.xml also looks fine at a glance. > > > > So do you have a welcome-file for your webapp that matches what's in > > your web.xml? > > > > Yoav Shapira > > Millennium Research Informatics > > > > > > >-----Original Message----- > > >From: kax [mailto:[EMAIL PROTECTED] > > >Sent: Tuesday, October 05, 2004 10:20 AM > > >To: Tomcat Users List > > >Subject: RE: RE: Root application in Tomcat > > > > > >Hi, > > > > > >Here are the files. No I'm not using the manager. I just drop the war > > >in the webapp folder using autoDeploy="true". > > > > > >Thanks > > > > > >/Kax > > > > > >> > > >> From: "Shapira, Yoav" <[EMAIL PROTECTED]> > > >> Date: 2004/10/05 ti PM 02:06:19 GMT > > >> To: "Tomcat Users List" <[EMAIL PROTECTED]> > > >> �mne: RE: RE: Root application in Tomcat > > >> > > >> > > >> Hi, > > >> Can you post your entire server.xml, and the myApp/WEB-INF/web.xml > > >> file? > > >You are deploying in the simplest way, by restarting the server, > > >right? Not using Ant or the Manager webapp? > > >> > > >> Yoav Shapira > > >> Millennium Research Informatics > > >> > > >> > > >> >-----Original Message----- > > >> >From: kax [mailto:[EMAIL PROTECTED] > > >> >Sent: Tuesday, October 05, 2004 9:58 AM > > >> >To: Tomcat Users List > > >> >Subject: Re: RE: Root application in Tomcat > > >> > > > >> >Thanks for your fast reply but I still can't get it to work. When > > >looking > > >> >in the manager I can see that an application has been deployed to > > >Context > > >> >(/) and another to the Context (/myApp). When looking at the "/" > > >> >no document base or path is visible. When trying to look at the > > >> >"/myApp" I > > >get > > >> >an error: "HTTP Status 500 - Error retrieving attribute debug" > > >> > > > >> >What can be the problem? > > >> > > > >> >Thanks in advance > > >> > > > >> >/Kax > > >> > > > >> >> > > >> >> From: "Shapira, Yoav" <[EMAIL PROTECTED]> > > >> >> Date: 2004/10/05 ti PM 01:42:58 GMT > > >> >> To: "Tomcat Users List" <[EMAIL PROTECTED]> > > >> >> �mne: RE: Root application in Tomcat > > >> >> > > >> >> > > >> >> Hi, > > >> >> > > >> >> ><Context docBase="myApp" path="" > > >> >> workDir="work/Catalina/localhost/myApp"> > > >> >> > > >> >> This is fine. You probably don't need to specify workDir > > >> >> explicitly since you're just using the default anyways. > > >> >> > > >> >> >I thought that leaving the path empty and removing the ROOT > > >application > > >> >> was > > >> >> >enough to install the application att root level so I can use > > >> >> >http://localhost to reach the application instead of > > >> >> >http://localhost/myApp. > > >> >> > > >> >> Your thought is correct. > > >> >> > > >> >> >But this doesn't seem to work. When entering the > > >> >> >root after deployment I end up in "Directory Listing for /" and > > >> >> >all applications are shown. > > >> >> > > >> >> Do you have a welcome file in your app to match the > > >> >> welcome-files defines in your web.xml? > > >> >> > > >> >> Yoav > > >> >> > > >> >> > > >> >> > > >> >> This e-mail, including any attachments, is a confidential > > >> >> business > > >> >communication, and may contain information that is confidential, > > >> >proprietary and/or privileged. This e-mail is intended only for > > >> >the > > >> >individual(s) to whom it is addressed, and may not be saved, copied, > > >> >printed, disclosed or used by anyone else. If you are not the(an) > > >intended > > >> >recipient, please immediately delete this e-mail from your > > >> >computer > > >system > > >> >and notify the sender. Thank you. > > >> >> > > >> >> > > >> >> ---------------------------------------------------------------- > > >> >> ----- > > >> >> 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] > > >> > > >> > > >> > > >> > > >> This e-mail, including any attachments, is a confidential business > > >communication, and may contain information that is confidential, > > >proprietary and/or privileged. This e-mail is intended only for the > > >individual(s) to whom it is addressed, and may not be saved, copied, > > >printed, disclosed or used by anyone else. If you are not the(an) > > >intended recipient, please immediately delete this e-mail from your > > >computer system and notify the sender. Thank you. > > >> > > >> > > >> ------------------------------------------------------------------- > > >> -- > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > > > > > > > This e-mail, including any attachments, is a confidential business > > communication, and may contain information that is confidential, > > proprietary and/or privileged. This e-mail is intended only for the > > individual(s) to whom it is addressed, and may not be saved, copied, > > printed, disclosed or used by anyone else. If you are not the(an) > > intended recipient, please immediately delete this e-mail from your > > computer system and notify the sender. Thank you. > > > > > > --------------------------------------------------------------------- > > 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] > > > !DSPAM:4163eac7143933033418910! > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
