cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find symbol while building Alfresco

soulpower
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

soulpower
Champ in-the-making
Champ in-the-making
Solved with a different importing procedure.
I downloaded Alfresco with svn via terminal, and then imported all the projects from within myeclipse with “Copy projects into workspace” unchecked. This procedure caused the error for me.
Now in Eclipse I've installed Subclipse and downloaded the content of the svn repository directly from the IDE (no terminal). Building Alfresco now works.
Thank you
Roberto