glassfish
  1. glassfish
  2. GLASSFISH-13133

Glassfish 2.1 throws logger exceptions with JAVAAGENT option

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: v2.1.1
    • Fix Version/s: None
    • Component/s: logging
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      13,133
    • Status Whiteboard:
      Hide

      3.1-exclude

      Show
      3.1-exclude

      Description

      HI,

      When I am running an application with -javaagent option in GLASSFISH2.1, few
      conflicts happened and the following exception is thrown in server.log

      I searched in Google and I found that it is a known issue but solution was
      nowhere mentioned.

      One of our high priority customer is facing issues with this problem. Kindly
      let us know if there is any solution/workaround for this problem.

      Could not load Logmanager "com.sun.enterprise.server.logging.ServerLogManager"
      java.lang.ClassNotFoundException:
      com.sun.enterprise.server.logging.ServerLogManager
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.util.logging.LogManager$1.run(LogManager.java:168)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.util.logging.LogManager.<clinit>(LogManager.java:158)
      at java.util.logging.Logger.getLogger(Logger.java:273)
      at sun.awt.AppContext.<clinit>(AppContext.java:114)
      at java.beans.Introspector.getBeanInfo(Introspector.java:157)
      at com.wily.org.apache.log4j.config.PropertySetter.introspect
      (PropertySetter.java:66)
      at com.wily.org.apache.log4j.config.PropertySetter.getPropertyDescriptor
      (PropertySetter.java:234)
      at com.wily.org.apache.log4j.config.PropertySetter.setProperty
      (PropertySetter.java:146)
      at com.wily.org.apache.log4j.config.PropertySetter.setProperties
      (PropertySetter.java:120)
      at com.wily.org.apache.log4j.config.PropertySetter.setProperties
      (PropertySetter.java:87)
      at com.wily.org.apache.log4j.PropertyConfigurator.parseAppender
      (PropertyConfigurator.java:640)
      at com.wily.org.apache.log4j.PropertyConfigurator.parseCategory
      (PropertyConfigurator.java:603)
      at com.wily.org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers
      (PropertyConfigurator.java:524)
      at com.wily.org.apache.log4j.PropertyConfigurator.doConfigure
      (PropertyConfigurator.java:408)
      at com.wily.org.apache.log4j.PropertyConfigurator.configure
      (PropertyConfigurator.java:340)
      at com.wily.util.feedback.backend.log4j.Log4JBackend.configureFromProperties
      (Log4JBackend.java:97)
      at com.wily.util.feedback.WilyLog4JConfigureAndWatchHelper.onChange
      (WilyLog4JConfigureAndWatchHelper.java:62)
      at com.wily.util.ConfigurationWatcher.addConfigurationListener
      (ConfigurationWatcher.java:147)
      at com.wily.util.feedback.AsynchFeedbackChannel.setConfiguration
      (AsynchFeedbackChannel.java:66)
      at com.wily.util.feedback.CachingDelegatingFeedbackChannel.setConfiguration
      (CachingDelegatingFeedbackChannel.java:212)
      at
      com.wily.introscope.agent.enterprise.EnterpriseAgent.setAgentFeedbackConfigurati
      on(EnterpriseAgent.java:492)
      at com.wily.introscope.agent.enterprise.EnterpriseAgent.loadLogConfiguration
      (EnterpriseAgent.java:454)
      at
      com.wily.introscope.agent.enterprise.EnterpriseAgent.doPostConstructionInitializ
      e(EnterpriseAgent.java:178)
      at
      com.wily.introscope.agent.runtime.java.enterprise.Java2EnterpriseAgent.doPostCon
      structionInitialize(Java2EnterpriseAgent.java:37)
      at com.wily.introscope.agent.ACommonAgent.postConstructionInitialize
      (ACommonAgent.java:378)
      at com.wily.introscope.agent.AgentShim.doCreateDelegate(AgentShim.java:594)
      at com.wily.introscope.agent.AgentShim.createDelegate(AgentShim.java:503)
      at com.wily.introscope.agent.AgentShim.getDelegateAgent(AgentShim.java:473)
      at
      com.wily.introscope.agent.AgentShim.ProbeBuilderEntryPoint_initializeAgentShim
      (AgentShim.java:715)
      at com.wily.introscope.api.instrument.JavaAgent.premain(JavaAgent.java:95)
      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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent
      (InstrumentationImpl.java:323)
      at sun.instrument.InstrumentationImpl.loadClassAndCallPremain
      (InstrumentationImpl.java:338)

        Activity

        sompr04 created issue -
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 13133 44737
        Chris Kasso made changes -
        Fix Version/s not determined [ 11149 ]

          People

          • Assignee:
            naman_mehta
            Reporter:
            sompr04
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: