Forum LAMS for Tech-Heads - General Forum: Re: Re: Re: Re: Maintain login page error


 
Search: 

5: Re: Re: Re: Re: Maintain login page error
In response to 4 05/29/09 02:15 AM
[ Reply | Forward ]
Hello Luke,

Thanks for your feedback so far.

I did the a re-build and at no time did I see a lams-www-.war folder appearing. I do, however, have a file of the SAME name in the lams.ear folder.

I reference this post from a while back:
http://www.lamscommunity.org/dotlrn/clubs/technicalcommunity/forums/message-view?message_id=294832

Sroll down to post #9 and this part sounds familiar - "The second problem with lams-www.war was due to me getting the file and folder with the same name confused. So the copy failed since I had copied the war file to where the folder of the same name should have been."

Of course, it appears a manual copy is taking place there, as opposed to letting the ant tasks take care of the build.

Is there any where in any of the settings files (or anywhere else) where I can check that creation/copy of the lams-www.war folder is part of the build process?

How would I know if creation/copy of the file is superseeding the one associated with the folder of the same name?

Thanks and rgds,
Praveen.

Posted by Praveen Pawar

6: Re: Re: Re: Re: Re: Maintain login page error
In response to 5 05/31/09 06:03 PM
[ Reply | Forward ]
Hi Praveen,

When deployed, lams-www.war should always be a folder, not a compressed war file.

You'll find in the lams_build/build.xml this line:

<ant antfile="../${lams_www}/build.xml" target="build-war" inheritAll="false"/>

This builds the war file, then these lines deploy it as a folder:

<move file="${assembly.lams.ear}/lams-www.war" tofile="${assembly.lams.ear}/temp.war"/>
        <unjar src="${assembly.lams.ear}/temp.war" dest="${assembly.lams.ear}/lams-www.war"/>
        <delete file="${assembly.lams.ear}/temp.war"/>


Im not sure why it would ever deploy as a file but it would have to be a problem during the execution of one of these lines.

Let me ask a question....

When you run the assemle-ear task, refresh the lams_build project and look in lams_build/assembly/lams.ear, lams-www.war should be a directory... is this the case?

Luke

Posted by Luke Foxton

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum