cancel
Showing results for 
Search instead for 
Did you mean: 

Build Failed cannot find symbol getPort()

navdeep123
Champ in-the-making
Champ in-the-making
Hi All,

I am new to Alfresco and setting up alfresco using eclipse. Followed http://wiki.alfresco.com/wiki/Alfresco_on_Eclipse to setup. Got the code from svn://svn.alfresco.com/alfresco/HEAD.
When I build I get the following error
    [javac] AlfrescoWorkspace\AlfrescoProj\root\projects\remote-api\source\generated\org\alfresco\repo\cmis\ws\VersioningService.java:74: cannot find symbol
    [javac] symbol  : method getPort(javax.xml.namespace.QName,java.lang.Class<org.alfresco.repo.cmis.ws.VersioningServicePort>,javax.xml.ws.WebServiceFeature[])
    [javac] location: class javax.xml.ws.Service
    [javac]         return super.getPort(VersioningServicePort, VersioningServicePort.class, features);

I checked javax.xml.ws.Service documentation and there are two getPort methods, but there is none with three arguments. Can someone please help me here. Is this a problem with code or by the way these files are generated. The java file has comments
"This class was generated by Apache CXF 2.1.2"

Thanks,
Navdeep
2 REPLIES 2

ppt
Champ in-the-making
Champ in-the-making
Hello,
I have the same problem. Can you help me, please?

Thanks,
Patrik

sebp
Champ in-the-making
Champ in-the-making
In macros.xml locate the target:
<macrodef name="compile-java-inc-generated"
             description="Compiles Java source files and generated Java files in the given project">

It contains a javac task. Add this line into the javac task:
<compilerarg value="-Djava.endorsed.dirs=${dir.project.3rdparty.lib}"/>