dev@glassfish.java.net

Re: wsit quicklook test problem in umc branch

From: Joseph Fialli <joe.fialli_at_oracle.com>
Date: Wed, 27 Jul 2011 11:57:30 -0400

  Martin,

Here is specific server log failure. It will get you to problem sooner.

[#|2011-07-27T10:39:59.487-0400|SEVERE|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=18;_ThreadName=Thread-3;|Cannot
start container webservices
org.jvnet.hk2.component.UnsatisfiedDependencyException: injection failed
on org.glassfish.webservices.metroglue.MetroContainer.server with
interface com.sun.enterprise.config.serverbeans.Server
    at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:155)
    at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
    at
com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
    at
com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    at
com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    at
com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    at
org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:93)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:957)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:667)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
    at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
    at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
    at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
    at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
    at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
    at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:680)
|#]

-Joe


On 7/27/11 11:35 AM, Martin Grebac wrote:
> I'll look at it,
> MartiNG
>
> On 07/27/2011 05:23 PM, Bobby Bissett wrote:
>> In the "umc" branch I'm seeing the following output:
>>
>> [echo] [testng] ===============================================
>> [echo] [testng] QuickLookTests
>> [echo] [testng] Total tests run: 128, Failures: 0, Skips: 2
>> [echo] [testng] Configuration Failures: 1, Skips: 0
>> [echo] [testng] ===============================================
>>
>> From my run.log:
>>
>>
>> Got ex, class is not loaded.
>> [testng] FAILED CONFIGURATION: @BeforeTest loadClass
>> [testng] java.lang.Exception: java.lang.ClassNotFoundException:
>> jaxwsfromwsdl.client.AddNumbersClient
>> [testng] at
>> jaxwsfromwsdl.client.JaxwsFromWsdlTestNG.loadClass(Unknown Source)
>> [testng] Caused by: java.lang.ClassNotFoundException:
>> jaxwsfromwsdl.client.AddNumbersClient
>> [testng] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> [testng] at java.security.AccessController.doPrivileged(Native
>> Method)
>> [testng] at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> [testng] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> [testng] at
>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> [testng] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> [testng] at java.lang.Class.forName0(Native Method)
>> [testng] at java.lang.Class.forName(Class.java:169)
>> [testng] ... 20 more
>> [testng] ... Removed 19 stack frames
>> [testng] SKIPPED: testAddNumbers_JaxwsFromWsdl
>> [testng] SKIPPED: testAddNumbersException_JaxwsFromWsdl
>> [testng]
>> [testng] ===============================================
>> [testng] wsit_jaxws_tests
>> [testng] Tests run: 2, Failures: 0, Skips: 2
>> [testng] Configuration Failures: 1, Skips: 0
>> [testng] ===============================================
>>
>> This is starting with the revision below -- when I test with the
>> commit before this one the tests all run and pass. Can someone from
>> the wsit team take a look?
>>
>> Thanks,
>> Bobby
>>
>>
>>
>> -------- Original Message --------
>> Subject: [glassfish~svn:48282] Check for UMC - request from the UMC
>> team.
>> Date: Mon, 25 Jul 2011 10:01:24 +0000
>> From: snajper_at_java.net
>> Reply-To: commits_at_glassfish.java.net
>> To: commits_at_glassfish.java.net
>>
>>
>>
>> Project: glassfish
>> Repository: svn
>> Revision: 48282
>> Author: snajper
>> Date: 2011-07-25 10:01:22 UTC
>> Link:
>>
>> Log Message:
>> ------------
>> Check for UMC - request from the UMC team.
>>
>>
>> Revisions:
>> ----------
>> 48282
>>
>>
>> Modified Paths:
>> ---------------
>> branches/umc/webservices/metro-glue/src/main/java/org/glassfish/webservices/metroglue/MetroContainer.java
>>
>>
>> Diffs:
>> ------
>> Index: branches/umc/webservices/metro-glue/src/main/java/org/glassfish/webservices/metroglue/MetroContainer.java
>> ===================================================================
>> --- branches/umc/webservices/metro-glue/src/main/java/org/glassfish/webservices/metroglue/MetroContainer.java (revision 48281)
>> +++ branches/umc/webservices/metro-glue/src/main/java/org/glassfish/webservices/metroglue/MetroContainer.java (revision 48282)
>> @@ -1,7 +1,7 @@
>> /*
>> * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
>> *
>> - * Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
>> + * Copyright (c) 2010-2011 Oracle and/or its affiliates. All rights reserved.
>> *
>> * The contents of this file are subject to the terms of either the GNU
>> * General Public License Version 2 only ("GPL") or the Common Development
>> @@ -51,6 +51,7 @@
>> import com.sun.enterprise.config.serverbeans.Config;
>> import com.sun.enterprise.config.serverbeans.SecurityService;
>> import com.sun.enterprise.config.serverbeans.ServerTags;
>> +import com.sun.enterprise.config.serverbeans.Server;
>> import com.sun.enterprise.deployment.WebServiceEndpoint;
>> import com.sun.enterprise.transaction.api.JavaEETransactionManager;
>> import com.sun.enterprise.transaction.api.RecoveryResourceRegistry;
>> @@ -118,6 +119,8 @@
>> private AvailabilityService availabilityService;
>> @Inject
>> private SecurityService secService;
>> + @Inject
>> + private Server server;
>>
>> @Override
>> public void postConstruct() {
>> @@ -249,7 +252,7 @@
>> }
>>
>> private boolean isCluster() {
>> - return !env.isDas()&& !env.isEmbedded()&& gmsAdapterService.isGmsEnabled();
>> + return (!env.isDas() || server.isClusteredDas())&& !env.isEmbedded()&& gmsAdapterService.isGmsEnabled();
>> }
>>
>> private boolean isHaEnabled() {
>>
>>
>>
>>
>>
>
> --
> Martin Grebac, GlassFish/Metro/JAXB/Tooling at Oracle
> http://blogs.sun.com/mgrebac
> ICQ: 93478885