cancel
Showing results for 
Search instead for 
Did you mean: 

Can't compile recent sources for a 2 weeks

jozh
Champ in-the-making
Champ in-the-making
Hello!

Does anybody faced surf compilation problem?
I'm following http://wiki.alfresco.com/wiki/Surf_Platform_-_Deployment_Configurations and after running
ant incremental-surf-starter
I'm getting compilation exceptions:

    [javac] d:\projects\alfresco\src\projects\webscript-framework\source\java\org\alfresco\web\config\RemoteConfigElement.java:85: inconvertible types
    [javac] found   : org.alfresco.config.ConfigElement
    [javac] required: org.alfresco.web.config.RemoteConfigElement
    [javac]         RemoteConfigElement configElement = (RemoteConfigElement) element;
    [javac]                                                                   ^
    [javac] d:\projects\alfresco\src\projects\webscript-framework\source\java\org\alfresco\web\config\RemoteConfigElement.java:122: incompatible types
    [javac] found   : org.alfresco.web.config.RemoteConfigElement
    [javac] required: org.alfresco.config.ConfigElement
    [javac]         return combinedElement;
    [javac]                ^
    [javac] d:\projects\alfresco\src\projects\webscript-framework\source\java\org\alfresco\connector\AbstractPersistentCredentialVault.java:85: inconvertible types
    [javac] found   : org.alfresco.config.ConfigElement
    [javac] required: org.alfresco.web.config.RemoteConfigElement
    [javac]                 "Remote").getConfigElement("remote");

    [javac] d:\projects\alfresco\src\projects\webscript-framework\source\java\org\alfresco\web\scripts\ScriptRemote.java:276: inconvertible types
    [javac] found   : org.alfresco.config.ConfigElement
    [javac] required: org.alfresco.web.config.RemoteConfigElement
    [javac]                 "Remote").getConfigElement("remote");
    [javac]                                           ^
    [javac] d:\projects\alfresco\src\projects\webscript-framework\source\java\org\alfresco\web\scripts\TestWebScriptServer.java:171: inconvertible types
    [javac] found   : org.alfresco.config.ConfigElement
    [javac] required: org.alfresco.web.config.ServerConfigElement
    [javac]          serverProperties = (ServerConfigElement)config.getConfigElement(ServerConfigElement.CONFIG_ELEMENT_ID);

Is this my misconfiguration or guys from alfresco do conceal some changes?  :twisted:
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
What are you trying to compile?    I've just built HEAD with no problems.

jozh
Champ in-the-making
Champ in-the-making
I've just updated project to HEAD from svn and got the same compilation errors.
May be something else need to be configured for compilation?
I checkouted root/modules and root/projects folders only (w/o root/installer and root/design).
I'm using ant 1.7.1 and jdk 1.6.10