Thread: RE: [Aimmath-developers] APPROVAL: multiple AiM installations
Brought to you by:
gustav_delius,
npstrick
From: Greg G. <gr...@ma...> - 2003-07-17 10:25:14
|
On Wednesday, 16 July 2003 7:25 PM, Gustav wrote: > Dear Greg, > > I just noticed that I never answered your questions, even though > the new installation instructions in installwin.html may already > have answered it. > > > However, I got the feeling that you were saying you could have > > the two going simultaneously, in which case server.xml would > > need to be changed more substantially ... a different server port? > > or do you only need to copy the `<Context path=...' line and give > > a different value for path which will appear in the URL? > > In fact no change is required at all. Modern Tomcats come with a > server.xml that needs no modifications. Thanks Gustav, What I was confused about was that I could see that the new tree would need to be served under a different URL, and I was unclear as to how that happened. When I looked at your installwin.html, I noticed that the directory name appeared in the URL. So then I had a look at AutoConf.mpl and when it sets TomcatContext it first checks if the subdirectory of webapps containing the AiM stuff is ROOT or something else. If it's not ROOT then the directory name is appended to the URL. So, now I have my parallel developer's AIM directory at: http://olld.maths.curtin.edu.au/AIM/ and my original which was in webapps/ROOT under http://olld.maths.curtin.edu.au/ ... and it all works fine, except that you will notice that I didn't want port 8080 (but instead use port 80) which I have configured in ManualConfig.mpl. However, everytime the admin.html and index.html page are regenerated (by adding a subject) the form action is set to a URL with :8080 inserted. I can edit it correctly by hand, but where is this coming from? It's apparently generated by aim/Zone.mpl using Config['ServletURL'], but I've checked this via Console.mpl ... it is the URL given above. So what's going on? PS I had to make a few adjustments to AutoConf.mpl and Servlet.mpl to repair things for Linux and fix typos. BTW It was a nice idea to make AutoConf.mpl proceed on to reading Servlet.mpl and Make.mpl. That simplifies the install quite a bit for first time users. Regards, Greg |
From: Gustav W D. <gw...@yo...> - 2003-07-17 10:55:38
|
Greg wrote: > ... and it all works fine, except that you will notice that I didn't > want port 8080 (but instead use port 80) which I have configured in > ManualConfig.mpl. However, everytime the admin.html and index.html > page are regenerated (by adding a subject) the form action is set > to a URL with :8080 inserted. I can edit it correctly by hand, but > where is this coming from? It's apparently generated by aim/Zone.mpl > using Config['ServletURL'], but I've checked this via Console.mpl > ... it is the URL given above. So what's going on? This is strange. If you have set Config['TomcatPort'] = "80" in your ManualConfig.mpl then there is really no way the 8080 could enter. The only place where 8080 is explicitly in the code is in AutoConf.mpl in the following line: setconfig('TomcatPort' , "8080"): But the way setconfig works is that if TomcatPort is already assigned a value then it is not overwritten. So it should still be 80. The only idea I have is that perhaps you first used your installation on port 8080 and later changed to 80. It is then possible that the 8080 has found its way into some of the automatically generated files in the directory web-inf/root. Could you search all files in there for an occurence of 8080? Gustav |
From: Greg G. <gr...@ma...> - 2003-07-18 04:31:59
|
On Thu, 17 Jul 2003, Gustav W Delius wrote: GG> ... and it all works fine, except that you will notice that I didn't GG> want port 8080 (but instead use port 80) which I have configured in GG> ManualConfig.mpl. However, everytime the admin.html and index.html GG> page are regenerated (by adding a subject) the form action is set GG> to a URL with :8080 inserted. I can edit it correctly by hand, but GG> where is this coming from? It's apparently generated by aim/Zone.mpl GG> using Config['ServletURL'], but I've checked this via Console.mpl GG> ... it is the URL given above. So what's going on? > ... > The only idea I have is that perhaps you first used your installation on > port 8080 and later changed to 80. It is then possible that the 8080 has > found its way into some of the automatically generated files in the > directory web-inf/root. Could you search all files in there for an occurence > of 8080? Indeed, I had neglected to add the configuration Config['TomcatPort'] := 80: in ManualConfig.mpl, on my first pass and so the file DefaultZone.mpl written to the top of the WEB-INF/root directory had the port :8080 inserted in the servlet URLs. I see that this file is first written by AliceServer.mpl. I would have avoided the problem if I had removed this file before rereading AutoConf.mpl. We should have a warning that WEB-INF/root/DefaultZone.mpl should be removed or at least checked for wrong information before re-reading AutoConf.mpl after changing ManualConfig.mpl in our installation instructions. Regards, Greg |