dev@glassfish.java.net

Re: [v3] Build failure: cannot find symbol class AdminAccessController

From: Kin-man Chung <Kin-Man.Chung_at_Sun.COM>
Date: Mon, 10 Aug 2009 12:44:33 -0700

I ended up checking out a fresh copy and the build seemed to be working
now. Doing just "svn update; mvn -U clean and install" wasn't enough,
even if you remove .m2.

-Kin-man

On 08/10/09 12:24, Lloyd Chambers wrote:
> I don't know why it failed.
>
> I do recall one thing I did though: I removed 'packager' and then 'svn up'.
>
> Lloyd
>
> On Aug 10, 2009, at 12:11 PM, kedar wrote:
>
>> I am maven challenged and I have said that publicly.
>> What I am seeing is my build always succeeds from v3 trunk and so does
>> Hudson build I pointed to.
>>
>> So, I don't know why it failed for Kinman and Lloyd, it was just a guess.
>> Do you know why it failed for them then?
>>
>> Jane Young wrote:
>>> I don't think it's SNAPSHOT dependencies since you're building the
>>> SNAPSHOTs locally.
>>> Are you building from the module or from v3?
>>> kedar wrote:
>>>> Because of the SNAPSHOT dependencies maybe, this is causing problems.
>>>> Please update common/container-common, common/internal-api and retry.
>>>>
>>>> I have made sure that clean build works and:
>>>> http://hudson.glassfish.org/job/gf-trunk-build-continuous/1925/
>>>>
>>>> is blue. So, build is definitely not breaking :)
>>>>
>>>> -Kedar
>>>>
>>>> Kin-man Chung wrote:
>>>>> Just did a full update and build.
>>>>>
>>>>> [INFO] Building Kernel Classes
>>>>> [INFO] task-segment: [install]
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [INFO] [enforcer:enforce {execution: enforce-versions}]
>>>>> [INFO] [osgiversion:compute-osgi-version {execution:
>>>>> compute-osgi-version}]
>>>>> [INFO] [resources:resources]
>>>>> [INFO] Using default encoding to copy filtered resources.
>>>>> [INFO] [hk2:hk2-compile]
>>>>> [INFO] Compiling 149 source files to
>>>>> /export/work/v3x/core/kernel/target/classes/export/work/v3x/core/kernel/src/main/java/com/sun/enterprise/v3/admin/AdminAdapter.java:102:
>>>>> cannot find symbol
>>>>> symbol : class AdminAccessController
>>>>> location: class com.sun.enterprise.v3.admin.AdminAdapter
>>>>> volatile AdminAccessController authenticator = null;
>>>>> ^
>>>>> /export/work/v3x/core/kernel/src/main/java/com/sun/enterprise/v3/admin/AdminAdapter.java:102:
>>>>> cannot find symbol
>>>>> symbol : class AdminAccessController
>>>>> location: class com.sun.enterprise.v3.admin.AdminAdapter
>>>>> volatile AdminAccessController authenticator = null;
>>>>> ^
>>>>> /export/work/v3x/core/kernel/src/main/java/com/sun/enterprise/v3/admin/AdminAdapter.java:224:
>>>>> cannot find symbol
>>>>> symbol : method getAuthRealmName()
>>>>> location: interface com.sun.enterprise.config.serverbeans.AdminService
>>>>> return authenticator.login(up[0], up[1],
>>>>> as.getAuthRealmName());
>>>>> ^
>>>>> /export/work/v3x/core/kernel/src/main/java/com/sun/enterprise/v3/server/ApplicationLifecycle.java:202:
>>>>> cannot find symbol
>>>>> symbol : variable keepfailedstubs
>>>>> location: class org.glassfish.api.deployment.DeployCommandParameters
>>>>> if (!commandParams.keepfailedstubs) {
>>>>> ^
>>>>> /export/work/v3x/core/kernel/src/main/java/com/sun/enterprise/server/logging/UniformLogFormatter.java:109:
>>>>> warning: sun.security.action.GetPropertyAction is Sun proprietary
>>>>> API and may be removed in a future release
>>>>> new
>>>>> sun.security.action.GetPropertyAction("line.separator"));
>>>>> ^
>>>>> /export/work/v3x/core/kernel/src/main/java/org/glassfish/kernel/embedded/PortsImpl.java:19:
>>>>> org.glassfish.kernel.embedded.PortsImpl is not abstract and does
>>>>> not override abstract method getPorts() in
>>>>> org.glassfish.api.embedded.Ports
>>>>> public class PortsImpl implements Ports {
>>>>> ^
>>>>> /export/work/v3x/core/kernel/src/main/java/org/glassfish/kernel/embedded/PortsImpl.java:51:
>>>>> getPorts() in org.glassfish.kernel.embedded.PortsImpl cannot
>>>>> implement getPorts() in org.glassfish.api.embedded.Ports;
>>>>> attempting to use incompatible return type
>>>>> found : java.util.Collection<org.glassfish.api.embedded.Port>
>>>>> required: java.util.List<org.glassfish.api.embedded.Port>
>>>>> public Collection<Port> getPorts() {
>>>>> ^
>>>>> /export/work/v3x/core/kernel/src/main/java/org/glassfish/kernel/embedded/PortsImpl.java:60:
>>>>> cannot find symbol
>>>>> symbol : method getPortNumber()
>>>>> location: interface org.glassfish.api.embedded.Port
>>>>> ports.remove(port.getPortNumber());
>>>>> ^
>>>>> Note: Some input files use or override a deprecated API.
>>>>> Note: Recompile with -Xlint:deprecation for details.
>>>>> Note: Some input files use unchecked or unsafe operations.
>>>>> Note: Recompile with -Xlint:unchecked for details.
>>>>> 6 errors
>>>>> 1 warning
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [ERROR] BUILD ERROR
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [INFO] Fatal error compiling
>>>>>
>>>>> Embedded error: APT failed: 1
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [INFO] For more information, run Maven with the -e switch
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [INFO] Total time: 2 minutes 13 seconds
>>>>> [INFO] Finished at: Mon Aug 10 11:05:37 PDT 2009
>>>>> [INFO] Final Memory: 109M/220M
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> Lloyd Chambers
> lloyd.chambers_at_sun.com
> GlassFish Team
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>