RE: How to start a web app?
-Original Message- From: Mike Curwen Michael, my email was specifically in reply to David.Pawson's. Sarcasm aside, it's an interesting thought process you must have gone through to start off with Right, and then proceed to point out how it's wrong. The point I was attempting to make is that there is nothing wrong with the docs, and that they are not missing Essential Information. Unless someone can tell me how the 3rd bullet on the docs I linked to allows a person to infer recursion, I don't think the docs need changing. I don't believe I mentioned recursion? I asked if context 'fred' should be sought within webapps (as webapps/fred) or within (webapps/ROOT/fred). I don't see that as recursion? Perhaps it's the use of 'subdirectory'. If it was changed to read Any directory within the Application Base directory, would that avoid this miscomprehension? I'm sorry Mike, I've lost the link you sent. If 'Application Base directory' is clearly defined as webapps, then tc searching within that would make sense. Its the presence of ROOT directory then that becomes odd? I'm used to thinking in terms of trees (xml background) hence I made a 'wrong' assumption that it was the base of all contexts. Is that as daft as it sounds? regards DaveP ** snip here ** -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to start a web app? - documentation suggestion.
Proposed addition to the tomcat documentation that would do it for me. With the default setup, http://localhost:8080/index.html would cause tomcat to seek a file index.html in directory ${catalina.home}/webapps/ROOT/index.html. http://localhost:8080/myservlet would cause tomcat to seek a configuration file (web.xml) (more accurately the deployment descriptor) in ${catalina.home}/webapps/myservlet/WEB-INF/ I.e. an application should be 'installed' directly within the directory ${catalina.home}/webapps The class file for the servlet will normally be found in ${catalina.home}/webapps/myservlet/WEB-INF/classes This presumes the default setup, as tomcat is delivered. I *think* the above is correct. I guess I'm aiming at the newbie like me, taking tomcat out of the box and hoping to have a servlet up and running quickly. (I'm not debating the fact that far more complex setups are possible with tomcat :-) HTH DaveP ** snip here ** -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to start a web app?
-Original Message- From: QM Long story short: Tomcat does not search the webapps directory recursively for webapps; it loads contexts that are immediate children of the webapps directory. Essential information. I do wish someone would make that explicit in the tomcat documentation. regards DaveP. ** snip here ** -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to start a web app?
Hey Dave, I have one problem Action Class i will tell u the clean scenario.. It is related with the session validation and invalidation in the same page.. 1) i am logging into the site and retrieved my trip details... 2) and i started Initial Search with the same user name and password...coz it maintains my session.. 3) i went upto 3 steps... (ex: Review Trip page). there it should ask only the continue button.. i am getting it. and i logged out from that session 4) and in the same screen i started my initial search again.. 5) when i get into the review trip page it should ask for two options.. one is login option and another on is continue option.. hence i logged out from the first session.. 6) But i am getting only the continue option... when i looked into application.log file, it is given me the same session id and same JSessionId... Please tell me how can i come over this problem here is the code change i have made to validate and invalidate the session:--- private void validateSession( HttpServletRequest request, HttpServletResponse response, SessionManager sessionManager ) throws ActionSessionException { HttpSession httpSession = request.getSession(); Session sessionToken = getSession( request ); if ( isDebugEnabled() ) { logDebug( AbstractTpAction::validateSession( )--, Found session token. Will try to validate it ); } //TODO: will be replaced by 'DONT_CREATE_TP_SESSION'. if ( sessionToken.getTpSession().getLastKnownState() == TpSessionState.TPNOTAVAILABLE !isTPUsed ) { createSession( request, response, sessionManager ); return; } if ( !isTPUsed ) { return; } // Copy the current session ID from cookie for any of the 888 applications // if this isn't the first time they've validated the session. // Their session IDs change everytime they go to the 888 home page and // if we try to validate the new vs. old, it fails. /* TpPdbResponse tpPdbResponse = null; TpDataManager tpDataManager; tpDataManager = (TpDataManager) lookupComponent( TpDataManager.ROLE ); try { tpDataManager.retrievePDB( getSession ( request ), cookie_uid); tpDataManager.retrievePDB( getSession ( request ), sh_SID); tpDataManager.retrievePDB( getSession ( request ), sh_login_list); } catch (ManagedComponentException ex) { logError(AbstractTpAction: error in retirevePDB, ex); } finally { getComponentManager().release (tpDataManager); } */ HttpDataManager httpDataManager = null; TpDataManager tpDataManager = null; httpDataManager = ( HttpDataManager ) lookupComponent( HttpDataManager.ROLE ); httpDataManager.getPersistentValue(request, SID); logDebug( Cookie Value - ,httpDataManager.getPersistentValue(request, SID)); if ( httpDataManager.getPersistentValue(request, SID) == null) { tpDataManager = ( TpDataManager ) lookupComponent( TpDataManager.ROLE ); try { TpResponse tpResponse = tpDataManager.invalidateSession( getSession(request) ); httpSession.invalidate(); createSession( request, response, sessionManager ); sessionToken = getSession( request ); request.setAttribute( FIRST_REQUEST, FIRST_REQUEST ); return; }catch ( ManagedComponentException ex ) { logError( AbstractTpAction: error in invalidation tpSession , ex ); } finally { getComponentManager().release( httpDataManager ); } } if ( ValidateUtil.validateNotNull( sessionToken.getSessionId() ) sessionToken.getServiceTag().endsWith( PHONE ) ) { try { String tpSessionId = httpDataManager.getPersistentValue( request, SID ); if ( ValidateUtil.validateNotNull( tpSessionId ) ) { sessionToken.getTpSession().setSessionId( tpSessionId ); } } finally { getComponentManager().release( httpDataManager ); } } /* if ( ValidateUtil.validateNotNull( sessionToken.getSessionId() ) sessionToken.getServiceTag().endsWith( PHONE ) ) { HttpDataManager httpDataManager = null; try { httpDataManager = ( HttpDataManager ) lookupComponent( HttpDataManager.ROLE ); String tpSessionId = httpDataManager.getPersistentValue( request,
RE: How to start a web app?
Wouldn't it be easier to assume (in all things, not just tomcat docs) that unless 'recursion' is specifically mentioned, that a given process is *not* recursive? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat ic%20Application%20Deployment Where in the 3rd bullet do you get the idea that tomcat would search recursively through the directory specified in 'appBase' ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 1:41 AM To: [EMAIL PROTECTED] Subject: RE: How to start a web app? -Original Message- From: QM Long story short: Tomcat does not search the webapps directory recursively for webapps; it loads contexts that are immediate children of the webapps directory. Essential information. I do wish someone would make that explicit in the tomcat documentation. regards DaveP. ** snip here ** -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to start a web app?
Right. So should we improve the documentation or improve all the readers of the documentation? Let's see ... Documentation, or all the readers of the those docs ... Improve the docs, or all the readers of the docs ... Hmmm ... What could the answer be? Boy! That's a tough one! On Friday 09 July 2004 08:19 am, Mike Curwen wrote: Wouldn't it be easier to assume (in all things, not just tomcat docs) that unless 'recursion' is specifically mentioned, that a given process is *not* recursive? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat ic%20Application%20Deployment Where in the 3rd bullet do you get the idea that tomcat would search recursively through the directory specified in 'appBase' ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 1:41 AM To: [EMAIL PROTECTED] Subject: RE: How to start a web app? -Original Message- From: QM Long story short: Tomcat does not search the webapps directory recursively for webapps; it loads contexts that are immediate children of the webapps directory. Essential information. I do wish someone would make that explicit in the tomcat documentation. regards DaveP. ** snip here ** -- - 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]
RE: How to start a web app?
Michael, my email was specifically in reply to David.Pawson's. I thought I'd point that out in case you took anything personally in my previous email. I bother to point it out because you asked the same question three times. Where I come from, that's ridicule by repetition, but I could be mistaking your intent. Sarcasm aside, it's an interesting thought process you must have gone through to start off with Right, and then proceed to point out how it's wrong. The point I was attempting to make is that there is nothing wrong with the docs, and that they are not missing Essential Information. Unless someone can tell me how the 3rd bullet on the docs I linked to allows a person to infer recursion, I don't think the docs need changing. Perhaps it's the use of 'subdirectory'. If it was changed to read Any directory within the Application Base directory, would that avoid this miscomprehension? If not, then I come back to my first question of the previous email. In your entire life as programmer, when is it appropriate to assume a process is recursive, when it is not explicitly documented to be so? -Original Message- From: Michael Labhard [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 10:29 AM To: Tomcat Users List Subject: Re: How to start a web app? Right. So should we improve the documentation or improve all the readers of the documentation? Let's see ... Documentation, or all the readers of the those docs ... Improve the docs, or all the readers of the docs ... Hmmm ... What could the answer be? Boy! That's a tough one! On Friday 09 July 2004 08:19 am, Mike Curwen wrote: Wouldn't it be easier to assume (in all things, not just tomcat docs) that unless 'recursion' is specifically mentioned, that a given process is *not* recursive? http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/host.html#Autom at ic%20Application%20Deployment Where in the 3rd bullet do you get the idea that tomcat would search recursively through the directory specified in 'appBase' ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 1:41 AM To: [EMAIL PROTECTED] Subject: RE: How to start a web app? -Original Message- From: QM Long story short: Tomcat does not search the webapps directory recursively for webapps; it loads contexts that are immediate children of the webapps directory. Essential information. I do wish someone would make that explicit in the tomcat documentation. regards DaveP. ** snip here ** -- - 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]
Re: How to start a web app?
On Friday 09 July 2004 09:15 am, Mike Curwen wrote: The point I was attempting to make is that there is nothing wrong with the docs, Yes, I know. And the point that I am trying to make is that several readers of the documentation disagree with you on this point. And that is, in my opinion, sufficient reason to conclude that there _is_, or at least may be, something wrong with the docs. It's really pointless to argue that the docs are semantically correct. It doesn't matter. What matters is whether or not they helped the readers. That's all that matters. If they did then they may be semantically gibberish and yet they are good. If they did not then they are wrong, regardless of semantics. As an aside. The place to fix this problem with the docs, in my opinion, is in the error messages. If the error messages told the user exactly what mistake it made then the problem with the docs would be irrelevant. So, instead of Cannot access XXX it should say, I found a subdirectory of webapps of the correct name but it doesn't contain a WEB-INF directory so I cannot proceed. Or, I found a subdir and a WEB-INF dir and a web.xml there but it doesn't have XXX in the YYY place. Then no one would care about the semantics of the other documentation -- it would be redundantly obscure. -- Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to start a web app?
What is it with the person to person discussions on a public forum these days. Please take this off list and post something when the docs are updated. Otherwise I don't want or need to read this. --David PS: Tomcat is an open source project -- write a correction and submit it if you feel one is necessary. Michael Labhard wrote: On Friday 09 July 2004 09:15 am, Mike Curwen wrote: The point I was attempting to make is that there is nothing wrong with the docs, Yes, I know. And the point that I am trying to make is that several readers of the documentation disagree with you on this point. And that is, in my opinion, sufficient reason to conclude that there _is_, or at least may be, something wrong with the docs. It's really pointless to argue that the docs are semantically correct. It doesn't matter. What matters is whether or not they helped the readers. That's all that matters. If they did then they may be semantically gibberish and yet they are good. If they did not then they are wrong, regardless of semantics. As an aside. The place to fix this problem with the docs, in my opinion, is in the error messages. If the error messages told the user exactly what mistake it made then the problem with the docs would be irrelevant. So, instead of Cannot access XXX it should say, I found a subdirectory of webapps of the correct name but it doesn't contain a WEB-INF directory so I cannot proceed. Or, I found a subdir and a WEB-INF dir and a web.xml there but it doesn't have XXX in the YYY place. Then no one would care about the semantics of the other documentation -- it would be redundantly obscure. -- Michael - 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]
RE: How to start a web app?
in order to be considered a webapp, you need to have an empty web.xml file in the WEB-INF folder under springapps. Do you have this? empty means web.xml contains: web-app /web-app You will also need to restart Tomcat for it to pick this up. -Original Message- From: Michael Labhard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 11:28 AM To: Tomcat Users List Subject: How to start a web app? I installed a new, extremely simple application in $CATALINA_HOME/webapps/springapps/index.html. When I attempt to view this with http://localhost:8080/springapps/index.html I get Error: 404. The requested resource (/springapps/index.html) is not available. So I'm reading and it says that I have to start the application by going into the Tomcat Manager. So I fix the $CATALINA_HOME/conf/tomcat-users.xml file so that I have both admin and manager roles. Then I go to the Tomcat homepage localhost:8080. I can log into the Administration page no problem. But when I try to get to the Manager it says, Access to the specified resource (Access to the requested resource has been denied) has been forbidden. I'm stumped. Don't know where to go from here. Seems like this shouldn't be this difficult. Any suggestions? -- Michael - 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]
Re: How to start a web app?
Mike: Thanks for the response. This application is slightly different but has the identical problem. Yes I have a web.xml. The directory structure for the app looks like this: === /opt/tomcat/webapps/springapps/: niagra2 /opt/tomcat/webapps/springapps/niagra2: WEB-INF index.jsp /opt/tomcat/webapps/springapps/niagra2/WEB-INF: lib web.xml === The web.xml file contains this: === ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd' web-app /web-app === Tomcat was stop/started. Still when I try http://localhost:8080/springapps/niagra2/index.jsp I get The requested resource (/springapps/niagra2/index.jsp) is not available. Any other suggestions? -- Michael On Thursday 08 July 2004 09:48 am, Mike Curwen wrote: in order to be considered a webapp, you need to have an empty web.xml file in the WEB-INF folder under springapps. Do you have this? empty means web.xml contains: web-app /web-app You will also need to restart Tomcat for it to pick this up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to start a web app?
From: Michael Labhard [mailto:[EMAIL PROTECTED] Tomcat was stop/started. Still when I try http://localhost:8080/springapps/niagra2/index.jsp I get The requested resource (/springapps/niagra2/index.jsp) is not available. Any other suggestions? What do the log files say? If the context isn't starting, there will most likely be an error message in one of the logs. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to start a web app?
On Thu, Jul 08, 2004 at 10:03:46AM -0700, Michael Labhard wrote: : === : /opt/tomcat/webapps/springapps/: : niagra2 : : /opt/tomcat/webapps/springapps/niagra2: : WEB-INF index.jsp Why not try this: move niagra2 into webapps. Long story short: Tomcat does not search the webapps directory recursively for webapps; it loads contexts that are immediate children of the webapps directory. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to start a web app?
From: Michael Labhard [mailto:[EMAIL PROTECTED] The directory structure for the app looks like this: === /opt/tomcat/webapps/springapps/: niagra2 /opt/tomcat/webapps/springapps/niagra2: WEB-INF index.jsp /opt/tomcat/webapps/springapps/niagra2/WEB-INF: lib web.xml Wait a minute... If you want Tomcat to automatically discover this webapp, then WEB-INF ought to be directly under 'springapps'. If you want to use a directory structure other than /path/to/tomcat/webapps/contextname Then you'll have to do some configuration, such as how the 'manager' app is set up. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to start a web app?
Long story short: Tomcat does not search the webapps directory recursively for webapps; it loads contexts that are immediate children of the webapps directory. -QM QM: Thank you. That was it. I thought I could create subfolders at will. I must put all apps only one folder below. Any ideas about the problem with the Manager? I still cannot use it. Shouldn't I get a login screen as I do with the Administration option? -- Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to start a web app?
You don't get a login screen, you get a login popup. Not getting that either? Andrew -Original Message- From: Michael Labhard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:12 PM To: Tomcat Users List Subject: Re: How to start a web app? Long story short: Tomcat does not search the webapps directory recursively for webapps; it loads contexts that are immediate children of the webapps directory. -QM QM: Thank you. That was it. I thought I could create subfolders at will. I must put all apps only one folder below. Any ideas about the problem with the Manager? I still cannot use it. Shouldn't I get a login screen as I do with the Administration option? -- Michael - 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]
Re: How to start a web app?
On Thursday 08 July 2004 11:14 am, Andrew Janian wrote: You don't get a login screen, you get a login popup. Not getting that either? Nope, not getting that either. I did see it once, yesterday. Ever since, nothing. I have even reinstalled Tomcat without benefit. -- Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to start a web app?
On Thu, Jul 08, 2004 at 11:11:34AM -0700, Michael Labhard wrote: : Thank you. That was it. I thought I could create subfolders at will. I must : put all apps only one folder below. You don't *have* to do that, it's just in line with Tomcat's defaults. Tomcat can load contexts (webapps) from any location in the filesystem as long as you tell it. Review the Tomcat deployment docs for details. : Any ideas about the problem with the Manager? None -- I've never used it. ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to start a web app?
Are you sure that Tomcat itself is running? Did the manager webapp get loaded. You should see in the logs that the manager webapp, administraion app, and a couple other examples get loaded if you are using Tomcat out of the box and have not disabled it. Did you provide a username and password when the box popped up? What was the result if so? Andrew -Original Message- From: Michael Labhard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:19 PM To: Tomcat Users List Subject: Re: How to start a web app? On Thursday 08 July 2004 11:14 am, Andrew Janian wrote: You don't get a login screen, you get a login popup. Not getting that either? Nope, not getting that either. I did see it once, yesterday. Ever since, nothing. I have even reinstalled Tomcat without benefit. -- Michael - 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]
RE: How to start a web app?
also, check that your tomcat-users.xml is similar to this: tomcat-users role rolename=manager/ role rolename=admin/ user username=admin password=admin roles=admin,manager/ /tomcat-users --- Andrew Janian [EMAIL PROTECTED] wrote: Are you sure that Tomcat itself is running? Did the manager webapp get loaded. You should see in the logs that the manager webapp, administraion app, and a couple other examples get loaded if you are using Tomcat out of the box and have not disabled it. Did you provide a username and password when the box popped up? What was the result if so? Andrew -Original Message- From: Michael Labhard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:19 PM To: Tomcat Users List Subject: Re: How to start a web app? On Thursday 08 July 2004 11:14 am, Andrew Janian wrote: You don't get a login screen, you get a login popup. Not getting that either? Nope, not getting that either. I did see it once, yesterday. Ever since, nothing. I have even reinstalled Tomcat without benefit. -- Michael - 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] __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to start a web app?
On Thursday 08 July 2004 11:50 am, Andrew Janian wrote: Are you sure that Tomcat itself is running? Would I not have trouble getting the Home page and logging into the Administration page were it not? Also, I can install, run and use JSP pages deployed to $CATALINA_HOME/webapps. I'm pretty sure it's running. Did the manager webapp get loaded. You should see in the logs that the manager webapp, administraion app, and a couple other examples get loaded if you are using Tomcat out of the box and have not disabled it. The log file shows these lines: Jul 8, 2004 11:24:19 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /manager Jul 8, 2004 11:24:19 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /admin Jul 8, 2004 11:24:19 AM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,path=/admin,host=localhost Jul 8, 2004 11:24:29 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/etc/tomcat/Catalina/localhost/manager.xml Jul 8, 2004 11:24:26 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/etc/tomcat/Catalina/localhost/admin.xml Did you provide a username and password when the box popped up? What was the result if so? Yes, I did but it was the wrong ones and I was denied access at that time. I haven't had another chance. tomcat-users.xml looks like this: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user username=mel password=tomcat roles=tomcat,admin,manager/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ /tomcat-users My username is mel. -- Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to start a web app?
That looks about right. It is re-deploying the app after the context is removed (why it is removed at all i do not know). Everything looks fine. -Original Message- From: Michael Labhard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 2:10 PM To: Tomcat Users List Subject: Re: How to start a web app? On Thursday 08 July 2004 11:50 am, Andrew Janian wrote: Are you sure that Tomcat itself is running? Would I not have trouble getting the Home page and logging into the Administration page were it not? Also, I can install, run and use JSP pages deployed to $CATALINA_HOME/webapps. I'm pretty sure it's running. Did the manager webapp get loaded. You should see in the logs that the manager webapp, administraion app, and a couple other examples get loaded if you are using Tomcat out of the box and have not disabled it. The log file shows these lines: Jul 8, 2004 11:24:19 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /manager Jul 8, 2004 11:24:19 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /admin Jul 8, 2004 11:24:19 AM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,path=/admin,host=localhost Jul 8, 2004 11:24:29 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/etc/tomcat/Catalina/localhost/manager.xml Jul 8, 2004 11:24:26 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/etc/tomcat/Catalina/localhost/admin.xml Did you provide a username and password when the box popped up? What was the result if so? Yes, I did but it was the wrong ones and I was denied access at that time. I haven't had another chance. tomcat-users.xml looks like this: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user username=mel password=tomcat roles=tomcat,admin,manager/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ /tomcat-users My username is mel. -- Michael - 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]