[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.laszlo] Re: Invalid LPS web root with Laszlo 3.2cr2!


        if(lpsRoot == null || lpsRoot.equals(""))
            return false;
        File f = new File(lpsRoot);
        if(f.exists() && f.isDirectory()) {
            //Check for LPS 3.1
            File nf = new File(lpsRoot + "/WEB-INF/lib");
            if(nf.exists() && nf.isDirectory()) {
                String[] list = nf.list();
                for(int i=list.length-1; i>=0; i--) {
                    if(list[i].indexOf(LPS_MINIMUM_VERSION) != -1)
                        return true;

Just wanted to note for anyone who's interested. the EASY way to fix this ridiculous problem is not to change folder names or anything like that, but merely create a file within your server /WEB-INF/lib directory that has a name that contains 3.1 in it... solved!


Stupid thing.

This solves it to the extent that the IDE will accept it and you can continue to create projects etc. It does not mean that doing a build will work, as it takes the name of the file you've created as the context root. However you should be able to manually edit the context root attribute in the laszlo setup window after picking the web root and it should work.

(I don't know as I don't use the build feature of the IDE).