Re: Digital Library for EJS5.0 beta not able to load XML correctly? -
Francisco Esquembre
237 Posts
Dear Loo Kang,
You did the right thing with the PHPs. The Java 'flavour' of EjsS looks for the 'old' indexEJSdl.php, while the Javascript flavour of EjsS looks for the new indexEJSSdl.php script.
But, if you want to have the same server and directory for both Java and Javascript folders, you need to update the old indexEJSdl.php (see attached). In order for this to work OK, you must respect the "ejss_src_" prefix that EjsS offers you when exporting ZIP files.
There is one more thing. Unlike Java based JAR files, Javascript HTML models do NOT contain the source XML file inside. This means that you cannot place the ejss_model_xxx.zip file and expect EjsS to find the source code inside. Instead, you must place in the server the exported ejss_src_xxx.zip files that you get from EjsS when you export the simulation source files. This was causing the problem you report.
I have also updated the information at http://www.um.es/fem/EjsWiki/Main/CreateYourOwnDigitalLibrary