AnsweredAssumed Answered

Cannot find symbol while building Alfresco

Question asked by soulpower on Dec 6, 2010
Latest reply on Dec 9, 2010 by soulpower
Hi guys, I'm Roberto from Italy.
I got a little problem while building Alfresco with Ant and "build tomcat" target from inside the IDE MyEclipse.
The errors I get are the following:

BUILD FAILED
/Users/soulpower/Workspaces/MyEclipse 8.5/Alfresco/HEAD/root/projects.xml:566: The following error occurred while executing this line:
/Users/soulpower/Workspaces/MyEclipse 8.5/Alfresco/HEAD/root/macros.xml:59: Compile failed; see the compiler error output for details.


    [javac] /Users/soulpower/Workspaces/MyEclipse 8.5/Alfresco/HEAD/root/projects/remote-api/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java:2199: cannot find symbol
    [javac] symbol  : class DeleteContentStreamResponse
    [javac] location: class org.alfresco.repo.cmis.ws.ObjectFactory
    [javac]     @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "extension", scope = DeleteContentStreamResponse.class)
    [javac]                                                                                                                     ^
    [javac] /Users/soulpower/Workspaces/MyEclipse 8.5/Alfresco/HEAD/root/projects/remote-api/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java:1081: cannot find symbol
    [javac] symbol  : class DeleteContentStreamResponse
    [javac] location: class org.alfresco.repo.cmis.ws.ObjectFactory
    [javac]     public DeleteContentStreamResponse createDeleteContentStreamResponse() {
    [javac]            ^
    [javac] /Users/soulpower/Workspaces/MyEclipse 8.5/Alfresco/HEAD/root/projects/remote-api/source/java/org/alfresco/repo/web/scripts/content/StreamContent.java:56: warning: [deprecation] org.springframework.extensions.webscripts.WebScriptStatus in org.springframework.extensions.webscripts has been deprecated
    [javac] import org.springframework.extensions.webscripts.WebScriptStatus;
    [javac]                                                 ^
    [javac] /Users/soulpower/Workspaces/MyEclipse 8.5/Alfresco/HEAD/root/projects/remote-api/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java:2199: cannot find symbol
    [javac] symbol  : class DeleteContentStreamResponse
    [javac] location: class org.alfresco.repo.cmis.ws.ObjectFactory
    [javac]     @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "extension", scope = DeleteContentStreamResponse.class)
    [javac]                                                                                                                     ^
    [javac] /Users/soulpower/Workspaces/MyEclipse 8.5/Alfresco/HEAD/root/projects/remote-api/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java:1082: cannot find symbol
    [javac] symbol  : class DeleteContentStreamResponse
    [javac] location: class org.alfresco.repo.cmis.ws.ObjectFactory
    [javac]         return new DeleteContentStreamResponse();
    [javac]                    ^
    [javac] /Users/soulpower/Workspaces/MyEclipse 8.5/Alfresco/HEAD/root/projects/remote-api/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java:2201: cannot find symbol
    [javac] symbol  : class DeleteContentStreamResponse
    [javac] location: class org.alfresco.repo.cmis.ws.ObjectFactory
    [javac]         return new JAXBElement<CmisExtensionType>(_CreateDocumentFromSourceExtension_QNAME, CmisExtensionType.class, DeleteContentStreamResponse.class, value);
    [javac]                                                                                                                      ^

It seems that Ant can't find the DeleteContentStreamResponse class, contained by the project cmis-tck-ws, while compiling the Remote API project.
Is it caused by a missing dependency into the build.xml? Any suggestion?

Thank you
Roberto

Outcomes