dev@glassfish.java.net

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

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Mon, 10 Aug 2009 14:57:46 -0700

I do now 'mvn clean' before calling 'svn update' on the whole ws. after I had
problems with left over classes.

Regards,
-marina

Kin-man Chung wrote:
> It didn't make sense to me also. I was scratching my head a little,
> you know.
>
> Unfortunately, I didn't keep the failed workspace, as I was only
> interested in getting it to build. I did do a "svn status" and
> discovered that there were several directories that were supposed
> to be removed but didn't. I think it included common/amx-api and
> common/amx-impl and some sub-directories in packager and distribution.
> I thought it'd be easier for me to just start with a clean workspace.
>
> -Kin-man
>
> On 08/10/09 12:51, Jane Young wrote:
>
>> This doesn't make sense to me.
>> Do you still have the workspace that has the build failure?
>> Can you do "mvn install -X -e" and send me the output?
>> Thanks,
>> Jane
>>
>>
>> Kin-man Chung wrote:
>>
>>> 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
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>