6:
Re: Re: Re: Problems deploying lams_tool_example
By: Fiona Malikoff
|
In response to 4 | 08/29/06 05:30 PM | ||
Ken,
I'll deal with the two problems separately as the replies are rather long. First the tool icons in authoring. As you might have guessed, the "question mark with a red circle and slash on top" indicates that the Flash client couldn't get the image from the server for some reason. I suspect whatever is stopping it getting the icon is also causing the file not found. Have a look in your access log. When you try to start authoring you should get similar entries to this: 127.0.0.1 - mmm [30/Aug/2006:09:09:07 +1000] "GET /lams/lams_preloader.swf?loadFile=lams_authoring.swf&loadLibrary=lams_authoring_library.swf&userID=4&serverURL=http://127.0.01:8080/lams/&build=2.0.200608291840&lang=en&country=AU&theme=default&uniqueID=190127664 HTTP/1.1" 200 34513 Pick one of the entries, say the last one, and turn it into a full request and try it in your browser. For example http://localhost:8080/lams/tool/lachat11/images/icon_chat.swf. If it is working, then the icon will appear in your browser window. As it is a swf (ie a Flash file) it will probably scale - the icons scale themselves up to fill the browser window normally. If that doesn't work then check that: ** Your server address is correct (e.g. localhost:8080). You need to double check that the url you are using to access LAMS matches the server name in lams.xml. The lams.xml is in lams_build/conf/windows/lams and is copied to c:/lamsconf when you do the "copyfiles" step in the build. The file in c:/lamsconf is the one used when JBOSS runs so if want to try out values without having to keep rebuilding, modify c:/lamsconf/lams.xml but remember it will be overwritten next time you do a complete build. The file is read when JBOSS starts up so if you change a value then you will need to restart JBOSS. For example, if lams.xml has localhost:8080 you must use http://localhost:8080/lams/. Even using http://127.0.0.1:8080/lams/ won't work properly as the browser will see this as a different "server". ** Check if the war files have actually deployed correctly. You might want to find the matching war file (lachat11 is in [jboss]\server\default\deploy\lams.ear\lams-tool-lachat11.war) and unzip it and make sure the .swf file is actually in the .war file. If the .war file is missing, or the file is not in the .war file then we need to go back and check the build again. ** Check for any errors in system.log that may have occurred during the JBOSS startup. I'm thinking of errors that would have stopped the war files deploying. All the logs are in [jboss]\server\default\log When a tool is deployed (as part of the build), it writes entries to the lams_tool, lams_learning_activity and lams_learning_library tables. If you are getting entries for the tools in authoring, then it suggests the tools built and deployed okay, just that something has gone wrong either during JBOSS starting up or with the servername. Regards, Fiona Posted by Fiona Malikoff |
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum