aspectviewer problem on WAS 7.0

Help
2010-06-07
2013-05-15
  • sadat ali khan

    sadat ali khan - 2010-06-07

    we are deploying glassbox on a Websphere app server 7.0 stand alone instance ( JRE 1.6.0 ) on AIX

    The genericJvmArguments in the server console has been set to the following value:-

    "-Xbootclasspath/a:/WAS7.0/IBM/WebSphere/AppServer/profiles/FOProfile/config/lib/glassboxMonitor.ja
    r -Dglassbox.install.dir=/WAS7.0/IBM/WebSphere/AppServer/profiles/FOProfile/config/lib/glassbox -javaagent:/WAS7.0/IBM/WebSphere/AppServer/profiles/FOProfile/config/lib/aspectjweaver.jar"

             after setting this, when the instance is started , it refuses to initialize and does not start. The sys out logs show the following classpath ( the aspectviewer jar is shown twice )

    Classpath = /WAS7.0/IBM/WebSphere/AppServer/profiles/FOProfile/properties:/WAS7.0/IBM/WebSphere/AppServer/properties:/WAS7.0/
    IBM/WebSphere/AppServer/lib/startup.jar:/WAS7.0/IBM/WebSphere/AppServer/lib/bootstrap.jar:/WAS7.0/IBM/WebSphere/AppServer/lib/jsf-nls.jar:/WAS7.0/IBM/WebSphere/AppServer/lib/lmproxy.jar:/WAS7.0/IBM/WebSphere/AppServer/lib/urlprotocols.jar:/WAS7.0/IBM
    /WebSphere/AppServer/deploytool/itp/batchboot.jar:/WAS7.0/IBM/WebSphere/AppServer/deploytool/itp/batch2.jar:/WAS7.0/IBM/WebSp
    here/AppServer/java/lib/tools.jar:/WAS7.0/IBM/WebSphere/AppServer/profiles/FOProfile/config/lib/aspectjweaver.jar:/WAS7.0/IBM
    /WebSphere/AppServer/profiles/FOProfile/config/lib/aspectjweaver.jar

             the native stderr logs show the following:-

    --- AspectJ Properties --
    AspectJ Compiler AspectJ for Glassbox 2.0 built on Wednesday Feb 21, 2007 at 16:34:54 GMT
    --- Dump Properties --
    Dump file: Unknown
    Dump reason: java.security.AccessControlException
    Dump on exception: true
    Dump at exit condition: abort
    --- Exception Information --
    java.security.AccessControlException: Access denied (java.util.PropertyPermission aj.weaving.verbose read)
            at java.security.AccessController.checkPermission(AccessController.java:108)
            at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
            at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
            at java.lang.System.getProperty(System.java:378)
            at java.lang.System.getProperty(System.java:362)
            at java.lang.Boolean.getBoolean(Boolean.java:232)
            at org.aspectj.weaver.tools.WeavingAdaptor.getVerbose(WeavingAdaptor.java:154)
            at org.aspectj.weaver.tools.WeavingAdaptor.<init>(WeavingAdaptor.java:79)
            at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.<init>(ClassLoaderWeavingAdaptor.java:83)
            at org.aspectj.weaver.loadtime.Aj$WeaverContainer.getWeaver(Aj.java:115)
            at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:73)
            at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:52)
            at sun.instrument.TransformerManager.transform(TransformerManager.java:181)
            at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:377)
            at java.lang.ClassLoader.defineClassImpl(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:493)
            at java.net.URLClassLoader.access$300(URLClassLoader.java:64)
            at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:892)
            at java.security.AccessController.doPrivileged(AccessController.java:284)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:414)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
            at org.eclipse.core.launcher.Main.invokeFramework(Main.java:337)
            at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
            at org.eclipse.core.launcher.Main.run(Main.java:981)
            at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:330)
            at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:108)
    --- System Properties --

             the native stdout logs show the following:--

    00000000 Aj            E org.aspectj.weaver.tools.Jdk14Trace error com/ibm/ws/runtime/WsServe
    r$Implementation
                                     java.security.AccessControlException: Access denied (java.util.PropertyPermission aj.weaving
    .verbose read)
            at java.security.AccessControlException.<init>(Unknown Source)
            at java.security.AccessController.checkPermission(AccessController.java:108)
            at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
            at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
            at java.lang.System.getProperty(System.java:378)
            at java.lang.System.getProperty(System.java:362)
            at java.lang.Boolean.getBoolean(Boolean.java:232)
            at org.aspectj.weaver.tools.WeavingAdaptor.getVerbose(WeavingAdaptor.java:154)
            at org.aspectj.weaver.tools.WeavingAdaptor.<init>(WeavingAdaptor.java:79)
            at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.<init>(ClassLoaderWeavingAdaptor.java:83)
            at org.aspectj.weaver.loadtime.Aj$WeaverContainer.getWeaver(Aj.java:115)
            at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:73)
            at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:52)
            at sun.instrument.TransformerManager.transform(TransformerManager.java:181)
            at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:377)
            at java.lang.ClassLoader.defineClassImpl(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
            at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:160)
            at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:550)
            at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:520)
            at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:451)
            at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassName(ClasspathManager.java:430)
            at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417)
            at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)
            at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334)
            at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:386)
            at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
            at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
            at com.ibm.ws.runtime.WsServer.<clinit>(WsServer.java:51)
            at java.lang.J9VMInternals.initializeImpl(Native Method)
            at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
            at java.lang.J9VMInternals.newInstanceImpl(Native Method)
            at java.lang.Class.newInstance(Class.java:1325)
            at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:1
    57)
            at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:770)
            at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
            at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle
    .java:51)
            at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:173)
            at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:93)
            at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:74)
            at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
            at java.lang.reflect.Method.invoke(Method.java:599)
            at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
            at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
            at org.eclipse.core.launcher.Main.run(Main.java:981)
            at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:330)
            at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:108)

    Please help us understand what is behind these errors and workarounds for them… thanks in advance

     
  • ivan kuth

    ivan kuth - 2010-07-15

    I get the same error on WAS NDM 6.1 version. I followed the suggestions others made still no luck. Any help appreciated?

    =============Application Server logs below error at the time of starting====

    0000000a Dump          I org.aspectj.weaver.tools.Jdk14Trace info Dumping to stderr
    0000000a Aj            E org.aspectj.weaver.tools.Jdk14Trace error com/ibm/wsspi/security/audit/AuditOutcome
                                     java.security.AccessControlException: Access denied (java.util.PropertyPermission aj.weaving.verbose read)
            at java.security.AccessController.checkPermission(AccessController.java:108)
            at java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
            at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1311)
            at java.lang.System.getProperty(System.java:369)
            at java.lang.System.getProperty(System.java:353)
            at java.lang.Boolean.getBoolean(Boolean.java:236)
            at org.aspectj.weaver.tools.WeavingAdaptor.getVerbose(WeavingAdaptor.java:154)
            at org.aspectj.weaver.tools.WeavingAdaptor.<init>(WeavingAdaptor.java:79)
            at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.<init>(ClassLoaderWeavingAdaptor.java:83)
            at org.aspectj.weaver.loadtime.Aj$WeaverContainer.getWeaver(Aj.java:115)
            at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:73)
            at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:52)
            at sun.instrument.TransformerManager.transform(TransformerManager.java:141)
            at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:174)
            at java.lang.ClassLoader.defineClassImpl(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:258)
            at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:160)
            at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:498)
            at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:468)
            at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:427)
            at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:410)
            at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)
            at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334)
            at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:386)
            at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
            at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
            at com.ibm.ws.security.audit.AuditActiveSettings.<init>(AuditActiveSettings.java:27)
            at com.ibm.ws.security.audit.AuditEventSettings.<init>(AuditEventSettings.java:30)
            at com.ibm.ws.security.audit.AuditServiceImpl.<init>(AuditServiceImpl.java:125)
            at com.ibm.ws.security.audit.AuditServiceImpl.initAuditService(AuditServiceImpl.java:100)
            at com.ibm.ws.security.core.distSecurityComponentImpl.initializeAudit(distSecurityComponentImpl.java:713)
            at com.ibm.ws.security.core.distSecurityComponentImpl.initialize(distSecurityComponentImpl.java:230)
            at com.ibm.ws.security.core.SecurityComponentImpl.initialize(SecurityComponentImpl.java:90)
            at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:1338)
            at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:1136)
            at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:356)
            at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:178)
            at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:140)
            at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:461)
            at com.ibm.ws.runtime.WsServer.main(WsServer.java:59)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:618)
            at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:183)
            at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:90)
            at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:72)
            at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:618)
            at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
            at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
            at org.eclipse.core.launcher.Main.run(Main.java:977)
            at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:329)
            at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:92)

    ===================After complete start of applications server, when I try access the glassbox application I get below error===
    00000032 DispatcherSer I org.springframework.web.servlet.DispatcherServlet initViewResolvers No ViewResolvers found in servlet 'springapp': using default
    00000032 DispatcherSer I org.springframework.web.servlet.FrameworkServlet initServletBean FrameworkServlet 'springapp': initialization completed in 265 ms
    00000032 DispatcherSer I org.springframework.web.servlet.HttpServletBean init Servlet 'springapp' configured successfully
    00000032 ServletWrappe I   SRVE0242I:   : Initialization successful.
    00000032 PageNotFound  W org.springframework.web.servlet.DispatcherServlet noHandlerFound No mapping for  in DispatcherServlet with name 'springapp'
    00000032 WebContainer  E   SRVE0255E: A WebGroup/Virtual Host to handle /favicon.ico has not been defined.

    =============

     
  • ivan kuth

    ivan kuth - 2010-07-16

    Glassbox application is working. I had to aspectjweaver.jar, glassboxMonitor.jar files to /app/IBM/WebSphere/AppServer/lib/ext  to make it work.

     

Log in to post a comment.