cancel
Showing results for 
Search instead for 
Did you mean: 

Get WARN when start alfresco

baallee
Champ in-the-making
Champ in-the-making
i use source code that check out from svn, to run in eclipse.
and i got followwing warn message:
16:32:44,406 UserSmiley Frustratedystem WARN  [web.scripts.DeclarativeRegistry] Unable to register script classpath:alfresco/webscripts/org/alfresco/indexfamily.get.desc.xml due to error: Failed to read Web Script description document classpath:alfresco/webscriptsorg/alfresco/indexfamily.get.desc.xml ; Document org/alfresco/indexfamily.get.desc.xml does not exist within store classpath:alfresco/webscripts

i found code in ClassPathStore.java
 public void setClassPath(String classPath)
    {
        String cleanClassPath = (classPath.endsWith("/")) ? classPath.substring(0, classPath.length() -1) : classPath;
        this.classPath = cleanClassPath;
    }

i want know why need cutout last char '/'? and how to fix this warn?
thanks!
1 REPLY 1

pmonks
Star Contributor
Star Contributor
Web Script descriptors (the loading of which is causing the warning you're seeing) are files not folders, hence the need to clean any trailing '/' characters prior to loading the file.

Cheers,
Peter