On Apr 7, 2009, at 1:13 PM, Carla Mott wrote:
> I'm updating the logging code to create the logging.properties file
> if it doesn't exist but I'm confused as to why the logging upgrade
> code was not executed. That code reads the domain.xml entries for
> log-service and moves them to logging.properties. So if that code
> is not executed then none of those values are moved.
>
> I was told that I could assume that I had a v3 installation which
> does have a logging.properties file with the properties for
> logging. Am I now to assume that is not the case?
in embedded mode, I suppose it is a valid case that logging.properties
is not available.
>
> Thanks,
> Carla
>
> Shing Wai Chan wrote:
>> Hi,
>> I have just updated my workspace. I can finish the build.
>> But I see the following stack trace in build log.
>> Is it expected?
>> Shing Wai Chan
>> -------------------------------------------------------
>> T E S T S
>> -------------------------------------------------------
>> Running org.glassfish.embed.DeployWebAppTest
>> Starting AppServer on port 9999
>> Apr 6, 2009 2:10:28 PM com.sun.enterprise.module.impl.HK2Factory
>> initialize
>> WARNING: Singleton already initialized as
>> com.sun.enterprise.module.impl.HK2Factory_at_76d63a2d
>> Located simple.war
>> Deployment expansion took 177
>> Apr 6, 2009 2:10:29 PM
>> com.sun.common.util.logging.LoggingConfigImpl openPropFile
>> SEVERE: Cannot read logging.properties file :
>> java.io.FileNotFoundException: /export/gfv3/src/v3/embedded/api/./
>> config/logging.properties (No such file or directory)
>> at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.<init>(FileInputStream.java:106)
>> at
>> com
>> .sun
>> .common
>> .util.logging.LoggingConfigImpl.openPropFile(LoggingConfigImpl.java:
>> 65) at
>> com
>> .sun
>> .common
>> .util
>> .logging
>> .LoggingConfigImpl.getLoggingProperties(LoggingConfigImpl.java:
>> 183) at
>> com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:
>> 502)
>> at
>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:
>> 160)
>> at com.sun.hk2.component.ConstructorWomb
>> $1.run(ConstructorWomb.java:90)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> com
>> .sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:
>> 87)
>> at
>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
>> at
>> com
>> .sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:
>> 58)
>> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:
>> 107)
>> at
>> com
>> .sun
>> .hk2
>> .component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:
>> 60) at
>> org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:
>> 78)
>> at
>> com
>> .sun
>> .enterprise
>> .v3
>> .server
>> .ApplicationLifecycle.startContainers(ApplicationLifecycle.java:
>> 600) at
>> com
>> .sun
>> .enterprise
>> .v3
>> .server
>> .ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:
>> 401) at
>> com
>> .sun
>> .enterprise
>> .v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:
>> 221) at org.glassfish.embed.AppServer.deploy(AppServer.java:534)
>> at org.glassfish.embed.AppServer.deploy(AppServer.java:483)
>> at org.glassfish.embed.AppServer.deploy(AppServer.java:462)
>> at org.glassfish.embed.DeployWebAppTest.foo(DeployWebAppTest.java:
>> 70)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>> 39) at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25) at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org
>> .junit
>> .internal
>> .runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:
>> 99) at
>> org
>> .junit
>> .internal
>> .runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:
>> 81) at
>> org
>> .junit
>> .internal
>> .runners
>> .BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>> at
>> org
>> .junit
>> .internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:
>> 75) at
>> org
>> .junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:
>> 45)
>> at
>> org
>> .junit
>> .internal
>> .runners
>> .TestClassMethodsRunner
>> .invokeTestMethod(TestClassMethodsRunner.java:71) at
>> org
>> .junit
>> .internal
>> .runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:
>> 35) at org.junit.internal.runners.TestClassRunner
>> $1.runUnprotected(TestClassRunner.java:42) at
>> org
>> .junit
>> .internal
>> .runners
>> .BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>> at
>> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:
>> 52)
>> at
>> org
>> .apache
>> .maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:
>> 62) at
>> org
>> .apache
>> .maven
>> .surefire
>> .suite
>> .AbstractDirectoryTestSuite
>> .executeTestSet(AbstractDirectoryTestSuite.java:140) at
>> org
>> .apache
>> .maven
>> .surefire
>> .suite
>> .AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:
>> 127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>> 39) at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25) at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org
>> .apache
>> .maven
>> .surefire
>> .booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:
>> 345) at
>> org
>> .apache
>> .maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:
>> 241) at
>> org
>> .apache
>> .maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:
>> 537) at
>> org
>> .apache
>> .maven
>> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
>> 451) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeGoals(DefaultLifecycleExecutor.java:558) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
>> 478) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>> at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeTaskSegments(DefaultLifecycleExecutor.java:291) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
>> 142) at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>> 39) at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25) at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
>> 315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Apr 6, 2009 2:10:29 PM com.sun.enterprise.web.WebContainer
>> postConstruct
>> SEVERE: Unable to determine location of server.log file
>> java.io.IOException
>> at
>> com
>> .sun
>> .common
>> .util.logging.LoggingConfigImpl.openPropFile(LoggingConfigImpl.java:
>> 71) at
>> com
>> .sun
>> .common
>> .util
>> .logging
>> .LoggingConfigImpl.getLoggingProperties(LoggingConfigImpl.java:
>> 183) at
>> com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:
>> 502)
>> at
>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:
>> 160)
>> at com.sun.hk2.component.ConstructorWomb
>> $1.run(ConstructorWomb.java:90)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> com
>> .sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:
>> 87)
>> at
>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
>> at
>> com
>> .sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:
>> 58)
>> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:
>> 107)
>> at
>> com
>> .sun
>> .hk2
>> .component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:
>> 60) at
>> org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:
>> 78)
>> at
>> com
>> .sun
>> .enterprise
>> .v3
>> .server
>> .ApplicationLifecycle.startContainers(ApplicationLifecycle.java:
>> 600) at
>> com
>> .sun
>> .enterprise
>> .v3
>> .server
>> .ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:
>> 401) at
>> com
>> .sun
>> .enterprise
>> .v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:
>> 221) at org.glassfish.embed.AppServer.deploy(AppServer.java:534)
>> at org.glassfish.embed.AppServer.deploy(AppServer.java:483)
>> at org.glassfish.embed.AppServer.deploy(AppServer.java:462)
>> at org.glassfish.embed.DeployWebAppTest.foo(DeployWebAppTest.java:
>> 70)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>> 39) at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25) at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org
>> .junit
>> .internal
>> .runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:
>> 99) at
>> org
>> .junit
>> .internal
>> .runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:
>> 81) at
>> org
>> .junit
>> .internal
>> .runners
>> .BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>> at
>> org
>> .junit
>> .internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:
>> 75) at
>> org
>> .junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:
>> 45)
>> at
>> org
>> .junit
>> .internal
>> .runners
>> .TestClassMethodsRunner
>> .invokeTestMethod(TestClassMethodsRunner.java:71) at
>> org
>> .junit
>> .internal
>> .runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:
>> 35) at org.junit.internal.runners.TestClassRunner
>> $1.runUnprotected(TestClassRunner.java:42) at
>> org
>> .junit
>> .internal
>> .runners
>> .BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>> at
>> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:
>> 52)
>> at
>> org
>> .apache
>> .maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:
>> 62) at
>> org
>> .apache
>> .maven
>> .surefire
>> .suite
>> .AbstractDirectoryTestSuite
>> .executeTestSet(AbstractDirectoryTestSuite.java:140) at
>> org
>> .apache
>> .maven
>> .surefire
>> .suite
>> .AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:
>> 127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>> 39) at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25) at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org
>> .apache
>> .maven
>> .surefire
>> .booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:
>> 345) at
>> org
>> .apache
>> .maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:
>> 241) at
>> org
>> .apache
>> .maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:
>> 537) at
>> org
>> .apache
>> .maven
>> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
>> 451) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeGoals(DefaultLifecycleExecutor.java:558) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
>> 478) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>> at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeTaskSegments(DefaultLifecycleExecutor.java:291) at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
>> 142) at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>> 39) at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25) at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
>> 315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> DOL Loading time77
>> classLoader = WebappClassLoader
>> delegate: true
>> repositories:
>> WEB-INF/classes/
>> ----------> Parent Classloader:
>> org.glassfish.internal.api.DelegatingClassLoader_at_2e888c60
>> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7_at_72581c35
>> Simple War deployed and undeployed OK...
>> Caught an Exception as Expected: java.lang.NullPointerException
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>> 4.361 sec
>> ---------------------------------------------------------------------
>> 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
>