AspectWerkz
  1. AspectWerkz
  2. AW-463

Integration of AspectWerkz with Weblogic

    Details

    • Type: Task Task
    • Status: Reopened Reopened
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      using Windows 2000 professional welogic 8.1
    • Number of attachments :
      2

      Description

      Hi,
      How to integrate Aspectwerkz in weblogic

      pls any any body help me out in doping this

      Regards
      Suman

      1. startWebLogic.cmd
        4 kB
        Suman G
      1. screenshot-1.jpg
        381 kB

        Activity

        Hide
        Jonas Boner added a comment -
        Show
        Jonas Boner added a comment - this is well described here: http://dev2dev.bea.com/pub/a/2004/05/boner_vasseur.html
        Hide
        Suman G added a comment -

        I have followed the same steps but i got an exception that
        I set the class path also ...but i got an exception

        java.io.IOException: Class not found
        at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.readClass(Ljava.io.InputStream[B(Unknown Source)
        at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.<init>(Ljava.io.InputStream;)V(Unknown Source)
        at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(Ljava.io.InputStream;Ljava.lang.ClassLoad
        er;)Lorg.codehaus.aspectwerkz.reflect.ClassInfo;(AsmClassInfo.java:304)
        at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(Ljava.io.InputStream;Ljava.lang.ClassLoad
        er;Z)Lorg.codehaus.aspectwerkz.reflect.ClassInfo;(AsmClassInfo.java:331)
        at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.createClassInfoFromStream(Ljava.lang.String;Ljava.lang
        .ClassLoader;Z)Lorg.codehaus.aspectwerkz.reflect.ClassInfo;(AsmClassInfo.java:790)
        at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(Ljava.lang.String;Ljava.lang.ClassLoader;
        )Lorg.codehaus.aspectwerkz.reflect.ClassInfo;(AsmClassInfo.java:273)
        at org.codehaus.aspectwerkz.transform.inlining.weaver.FieldSetFieldGetVisitor$ReplacePutFieldAndGetFieldInstruct
        ionCodeAdapter.visitFieldInsn(ILjava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(Optimized Method)
        at org.codehaus.aspectwerkz.org.objectweb.asm.CodeAdapter.visitFieldInsn(ILjava.lang.String;Ljava.lang.String;Lj
        ava.lang.String;)V(Optimized Method)
        at org.codehaus.aspectwerkz.org.objectweb.asm.CodeAdapter.visitFieldInsn(ILjava.lang.String;Ljava.lang.String;Lj
        ava.lang.String;)V(Optimized Method)
        at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.accept(Lorg.codehaus.aspectwerkz.org.objectweb.asm.Cla
        ssVisitor;[Lorg.codehaus.aspectwerkz.org.objectweb.asm.Attribute;Z)V(Optimized Method)
        at org.codehaus.aspectwerkz.transform.inlining.InliningWeavingStrategy.transform(Ljava.lang.String;Lorg.codehaus
        .aspectwerkz.transform.Context;)V(InliningWeavingStrategy.java:198)
        at org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor._preProcess(Ljava.lang.String;[BLjava.lang.ClassLo
        ader;)Lorg.codehaus.aspectwerkz.transform.Context;(AspectWerkzPreProcessor.java:173)
        at org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor.preProcess(Ljava.lang.String;[BLjava.lang.ClassLoa
        der[B(AspectWerkzPreProcessor.java:148)
        at org.codehaus.aspectwerkz.extension.jrockit.JRockitPreProcessor.preProcess(Ljava.lang.ClassLoader;Ljava.lang.S
        tring;[B)[B(Optimized Method)
        at COM.jrockit.vm.ClassPreProcessorManager.notifyClassPreProcessor(ILjava.lang.String;[B)[B(Optimized Method)
        at COM.jrockit.vm.Classes.defineClass0(ILjava.lang.String;[BII)I(Native Method)

        pls can u describe how and what to do

        Regards
        Suman

        Show
        Suman G added a comment - I have followed the same steps but i got an exception that I set the class path also ...but i got an exception java.io.IOException: Class not found at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.readClass(Ljava.io.InputStream [B(Unknown Source) at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.<init>(Ljava.io.InputStream;)V(Unknown Source) at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(Ljava.io.InputStream;Ljava.lang.ClassLoad er;)Lorg.codehaus.aspectwerkz.reflect.ClassInfo;(AsmClassInfo.java:304) at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(Ljava.io.InputStream;Ljava.lang.ClassLoad er;Z)Lorg.codehaus.aspectwerkz.reflect.ClassInfo;(AsmClassInfo.java:331) at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.createClassInfoFromStream(Ljava.lang.String;Ljava.lang .ClassLoader;Z)Lorg.codehaus.aspectwerkz.reflect.ClassInfo;(AsmClassInfo.java:790) at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(Ljava.lang.String;Ljava.lang.ClassLoader; )Lorg.codehaus.aspectwerkz.reflect.ClassInfo;(AsmClassInfo.java:273) at org.codehaus.aspectwerkz.transform.inlining.weaver.FieldSetFieldGetVisitor$ReplacePutFieldAndGetFieldInstruct ionCodeAdapter.visitFieldInsn(ILjava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(Optimized Method) at org.codehaus.aspectwerkz.org.objectweb.asm.CodeAdapter.visitFieldInsn(ILjava.lang.String;Ljava.lang.String;Lj ava.lang.String;)V(Optimized Method) at org.codehaus.aspectwerkz.org.objectweb.asm.CodeAdapter.visitFieldInsn(ILjava.lang.String;Ljava.lang.String;Lj ava.lang.String;)V(Optimized Method) at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.accept(Lorg.codehaus.aspectwerkz.org.objectweb.asm.Cla ssVisitor;[Lorg.codehaus.aspectwerkz.org.objectweb.asm.Attribute;Z)V(Optimized Method) at org.codehaus.aspectwerkz.transform.inlining.InliningWeavingStrategy.transform(Ljava.lang.String;Lorg.codehaus .aspectwerkz.transform.Context;)V(InliningWeavingStrategy.java:198) at org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor._preProcess(Ljava.lang.String;[BLjava.lang.ClassLo ader;)Lorg.codehaus.aspectwerkz.transform.Context;(AspectWerkzPreProcessor.java:173) at org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor.preProcess(Ljava.lang.String;[BLjava.lang.ClassLoa der [B(AspectWerkzPreProcessor.java:148) at org.codehaus.aspectwerkz.extension.jrockit.JRockitPreProcessor.preProcess(Ljava.lang.ClassLoader;Ljava.lang.S tring;[B)[B(Optimized Method) at COM.jrockit.vm.ClassPreProcessorManager.notifyClassPreProcessor(ILjava.lang.String;[B)[B(Optimized Method) at COM.jrockit.vm.Classes.defineClass0(ILjava.lang.String;[BII)I(Native Method) pls can u describe how and what to do Regards Suman
        Hide
        Alexandre Vasseur added a comment -

        Refer to the FAQ on how to enable traces. The FAQ is available from the website.
        (-Daspectwerkz.transform.verbose=true)

        Then try to provide some more info on where that fails

        Show
        Alexandre Vasseur added a comment - Refer to the FAQ on how to enable traces. The FAQ is available from the website. (-Daspectwerkz.transform.verbose=true) Then try to provide some more info on where that fails
        Hide
        Suman G added a comment -

        Hi ,
        Hereby am attaching the StartWeblogic.cmd Script
        Where i dod all these/..
        Pls refer to that
        In the previous mail u didn't sepcified the where FAQs are there to enable ...\

        @ECHO OFF

        @REM WARNING: This file is created by the Configuration Wizard.
        @REM Any changes to this script may be lost when adding extensions to this configuration.

        SETLOCAL

        @REM *************************************************************************
        @REM This script is used to start WebLogic Server for the domain in the
        @REM current working directory. This script simply sets the SERVER_NAME
        @REM variable and starts server.
        @REM
        @REM To create your own start script for your domain, all you need to set is
        @REM SERVER_NAME, then starts the server.
        @REM
        @REM Other variables that startWLS takes are:
        @REM
        @REM WLS_USER - cleartext user for server startup
        @REM WLS_PW - cleartext password for server startup
        @REM PRODUCTION_MODE - true for production mode servers, false for
        @REM development mode
        @REM JAVA_OPTIONS - Java command-line options for running the server. (These
        @REM will be tagged on to the end of the JAVA_VM and MEM_ARGS)
        @REM JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
        @REM -hotspot, etc.)
        @REM MEM_ARGS - The variable to override the standard memory arguments
        @REM passed to java
        @REM
        @REM For additional information, refer to the WebLogic Server Administration
        @REM Console Online Help(http:\\e-docs.bea.com\wls\docs81\ConsoleHelp\startstop.html)
        @REM *************************************************************************
        @rem these lines are written by Suman
        set AW_OPT=-Daspectwerkz.definition.file=C:\securityExample\META-INF\aop.xml

        @rem set BEA JRockit JMAPI implementation path
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%CLASSPATH%
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%CLASSPATH%
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%CLASSPATH%

        @rem activate the JMAPI module for AspectWerkz
        set JAVA_OPTIONS=-Xmanagement:class=org.codehaus.aspectwerkz.extension.jrockit.JRockitPreProcessor %JAVA_OPTIONS%

        @rem set AspectWerkz environment
        Call "%ASPECTWERKZ_HOME%\bin\setEnv.bat"

        @rem set BEA JRockit JMAPI implementation path
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%CLASSPATH%
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%CLASSPATH%
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%CLASSPATH%

        @REM Initialize the common environment.

        set WL_HOME=e:\bea\weblogic81
        for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi

        set PRODUCTION_MODE=

        set JAVA_VENDOR=BEA

        set JAVA_HOME=e:\bea\jrockit81sp2_141_05
        for %%i in ("%JAVA_HOME%") do set JAVA_HOME=%%~fsi

        @REM Call commEnv here AFTER setting the java_vendor to get common environmental settings.

        call "%WL_HOME%\common\bin\commEnv.cmd"

        @REM Set SERVER_NAME to the name of the server you wish to start up.

        set SERVER_NAME=myserver

        set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%;e:\securityAspect.jar

        @REM Call WebLogic Server

        echo .
        echo CLASSPATH=%CLASSPATH%
        echo .
        echo PATH=%PATH%
        echo .
        echo ***************************************************
        echo * To start WebLogic Server, use a username and *
        echo * password assigned to an admin-level user. For *
        echo * server administration, use the WebLogic Server *
        echo * console at http:\\[hostname]:[port]\console *
        echo ***************************************************
        echo AW_OPT=%AW_OPT%
        %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% %AW_OPT% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server

        ENDLOCAL

        Regards
        Suman

        Show
        Suman G added a comment - Hi , Hereby am attaching the StartWeblogic.cmd Script Where i dod all these/.. Pls refer to that In the previous mail u didn't sepcified the where FAQs are there to enable ...\ @ECHO OFF @REM WARNING: This file is created by the Configuration Wizard. @REM Any changes to this script may be lost when adding extensions to this configuration. SETLOCAL @REM ************************************************************************* @REM This script is used to start WebLogic Server for the domain in the @REM current working directory. This script simply sets the SERVER_NAME @REM variable and starts server. @REM @REM To create your own start script for your domain, all you need to set is @REM SERVER_NAME, then starts the server. @REM @REM Other variables that startWLS takes are: @REM @REM WLS_USER - cleartext user for server startup @REM WLS_PW - cleartext password for server startup @REM PRODUCTION_MODE - true for production mode servers, false for @REM development mode @REM JAVA_OPTIONS - Java command-line options for running the server. (These @REM will be tagged on to the end of the JAVA_VM and MEM_ARGS) @REM JAVA_VM - The java arg specifying the VM to run. (i.e. -server, @REM -hotspot, etc.) @REM MEM_ARGS - The variable to override the standard memory arguments @REM passed to java @REM @REM For additional information, refer to the WebLogic Server Administration @REM Console Online Help(http:\\e-docs.bea.com\wls\docs81\ConsoleHelp\startstop.html) @REM ************************************************************************* @rem these lines are written by Suman set AW_OPT=-Daspectwerkz.definition.file=C:\securityExample\META-INF\aop.xml @rem set BEA JRockit JMAPI implementation path set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%CLASSPATH% set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%CLASSPATH% set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%CLASSPATH% @rem activate the JMAPI module for AspectWerkz set JAVA_OPTIONS=-Xmanagement:class=org.codehaus.aspectwerkz.extension.jrockit.JRockitPreProcessor %JAVA_OPTIONS% @rem set AspectWerkz environment Call "%ASPECTWERKZ_HOME%\bin\setEnv.bat" @rem set BEA JRockit JMAPI implementation path set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%CLASSPATH% set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%CLASSPATH% set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%CLASSPATH% @REM Initialize the common environment. set WL_HOME=e:\bea\weblogic81 for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi set PRODUCTION_MODE= set JAVA_VENDOR=BEA set JAVA_HOME=e:\bea\jrockit81sp2_141_05 for %%i in ("%JAVA_HOME%") do set JAVA_HOME=%%~fsi @REM Call commEnv here AFTER setting the java_vendor to get common environmental settings. call "%WL_HOME%\common\bin\commEnv.cmd" @REM Set SERVER_NAME to the name of the server you wish to start up. set SERVER_NAME=myserver set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%;e:\securityAspect.jar @REM Call WebLogic Server echo . echo CLASSPATH=%CLASSPATH% echo . echo PATH=%PATH% echo . echo *************************************************** echo * To start WebLogic Server, use a username and * echo * password assigned to an admin-level user. For * echo * server administration, use the WebLogic Server * echo * console at http:\\[hostname]: [port] \console * echo *************************************************** echo AW_OPT=%AW_OPT% %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% %AW_OPT% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server ENDLOCAL Regards Suman
        Hide
        Suman G added a comment -

        Hi ,
        Hereby am attaching the StartWeblogic.cmd Script
        Where i dod all these/..
        Pls refer to that
        In the previous mail u didn't sepcified the where FAQs are there to enable ...\

        @ECHO OFF

        @REM WARNING: This file is created by the Configuration Wizard.
        @REM Any changes to this script may be lost when adding extensions to this configuration.

        SETLOCAL

        @REM *************************************************************************
        @REM This script is used to start WebLogic Server for the domain in the
        @REM current working directory. This script simply sets the SERVER_NAME
        @REM variable and starts server.
        @REM
        @REM To create your own start script for your domain, all you need to set is
        @REM SERVER_NAME, then starts the server.
        @REM
        @REM Other variables that startWLS takes are:
        @REM
        @REM WLS_USER - cleartext user for server startup
        @REM WLS_PW - cleartext password for server startup
        @REM PRODUCTION_MODE - true for production mode servers, false for
        @REM development mode
        @REM JAVA_OPTIONS - Java command-line options for running the server. (These
        @REM will be tagged on to the end of the JAVA_VM and MEM_ARGS)
        @REM JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
        @REM -hotspot, etc.)
        @REM MEM_ARGS - The variable to override the standard memory arguments
        @REM passed to java
        @REM
        @REM For additional information, refer to the WebLogic Server Administration
        @REM Console Online Help(http:\\e-docs.bea.com\wls\docs81\ConsoleHelp\startstop.html)
        @REM *************************************************************************
        @rem these lines are written by Suman
        set AW_OPT=-Daspectwerkz.definition.file=C:\securityExample\META-INF\aop.xml

        @rem set BEA JRockit JMAPI implementation path
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%CLASSPATH%
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%CLASSPATH%
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%CLASSPATH%

        @rem activate the JMAPI module for AspectWerkz
        set JAVA_OPTIONS=-Xmanagement:class=org.codehaus.aspectwerkz.extension.jrockit.JRockitPreProcessor %JAVA_OPTIONS%

        @rem set AspectWerkz environment
        Call "%ASPECTWERKZ_HOME%\bin\setEnv.bat"

        @rem set BEA JRockit JMAPI implementation path
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%CLASSPATH%
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%CLASSPATH%
        set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%CLASSPATH%

        @REM Initialize the common environment.

        set WL_HOME=e:\bea\weblogic81
        for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi

        set PRODUCTION_MODE=

        set JAVA_VENDOR=BEA

        set JAVA_HOME=e:\bea\jrockit81sp2_141_05
        for %%i in ("%JAVA_HOME%") do set JAVA_HOME=%%~fsi

        @REM Call commEnv here AFTER setting the java_vendor to get common environmental settings.

        call "%WL_HOME%\common\bin\commEnv.cmd"

        @REM Set SERVER_NAME to the name of the server you wish to start up.

        set SERVER_NAME=myserver

        set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%;e:\securityAspect.jar

        @REM Call WebLogic Server

        echo .
        echo CLASSPATH=%CLASSPATH%
        echo .
        echo PATH=%PATH%
        echo .
        echo ***************************************************
        echo * To start WebLogic Server, use a username and *
        echo * password assigned to an admin-level user. For *
        echo * server administration, use the WebLogic Server *
        echo * console at http:\\[hostname]:[port]\console *
        echo ***************************************************
        echo AW_OPT=%AW_OPT%
        %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% %AW_OPT% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server

        ENDLOCAL

        Regards
        Suman

        Show
        Suman G added a comment - Hi , Hereby am attaching the StartWeblogic.cmd Script Where i dod all these/.. Pls refer to that In the previous mail u didn't sepcified the where FAQs are there to enable ...\ @ECHO OFF @REM WARNING: This file is created by the Configuration Wizard. @REM Any changes to this script may be lost when adding extensions to this configuration. SETLOCAL @REM ************************************************************************* @REM This script is used to start WebLogic Server for the domain in the @REM current working directory. This script simply sets the SERVER_NAME @REM variable and starts server. @REM @REM To create your own start script for your domain, all you need to set is @REM SERVER_NAME, then starts the server. @REM @REM Other variables that startWLS takes are: @REM @REM WLS_USER - cleartext user for server startup @REM WLS_PW - cleartext password for server startup @REM PRODUCTION_MODE - true for production mode servers, false for @REM development mode @REM JAVA_OPTIONS - Java command-line options for running the server. (These @REM will be tagged on to the end of the JAVA_VM and MEM_ARGS) @REM JAVA_VM - The java arg specifying the VM to run. (i.e. -server, @REM -hotspot, etc.) @REM MEM_ARGS - The variable to override the standard memory arguments @REM passed to java @REM @REM For additional information, refer to the WebLogic Server Administration @REM Console Online Help(http:\\e-docs.bea.com\wls\docs81\ConsoleHelp\startstop.html) @REM ************************************************************************* @rem these lines are written by Suman set AW_OPT=-Daspectwerkz.definition.file=C:\securityExample\META-INF\aop.xml @rem set BEA JRockit JMAPI implementation path set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%CLASSPATH% set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%CLASSPATH% set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%CLASSPATH% @rem activate the JMAPI module for AspectWerkz set JAVA_OPTIONS=-Xmanagement:class=org.codehaus.aspectwerkz.extension.jrockit.JRockitPreProcessor %JAVA_OPTIONS% @rem set AspectWerkz environment Call "%ASPECTWERKZ_HOME%\bin\setEnv.bat" @rem set BEA JRockit JMAPI implementation path set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%CLASSPATH% set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%CLASSPATH% set CLASSPATH=%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%CLASSPATH% @REM Initialize the common environment. set WL_HOME=e:\bea\weblogic81 for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi set PRODUCTION_MODE= set JAVA_VENDOR=BEA set JAVA_HOME=e:\bea\jrockit81sp2_141_05 for %%i in ("%JAVA_HOME%") do set JAVA_HOME=%%~fsi @REM Call commEnv here AFTER setting the java_vendor to get common environmental settings. call "%WL_HOME%\common\bin\commEnv.cmd" @REM Set SERVER_NAME to the name of the server you wish to start up. set SERVER_NAME=myserver set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%;e:\securityAspect.jar @REM Call WebLogic Server echo . echo CLASSPATH=%CLASSPATH% echo . echo PATH=%PATH% echo . echo *************************************************** echo * To start WebLogic Server, use a username and * echo * password assigned to an admin-level user. For * echo * server administration, use the WebLogic Server * echo * console at http:\\[hostname]: [port] \console * echo *************************************************** echo AW_OPT=%AW_OPT% %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% %AW_OPT% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server ENDLOCAL Regards Suman
        Hide
        Suman G added a comment -

        am attaching StartWeblogic.cmd where i moddified the StartWeblogic.cmd pls see that and tel where i made mistake

        Show
        Suman G added a comment - am attaching StartWeblogic.cmd where i moddified the StartWeblogic.cmd pls see that and tel where i made mistake
        Hide
        Suman G added a comment -

        am attaching the screen when i started the weblogic server i found the error that can find in that screen shot

        Show
        Suman G added a comment - am attaching the screen when i started the weblogic server i found the error that can find in that screen shot
        Hide
        Alexandre Vasseur added a comment -

        see FAQ to turn on the verbose option
        http://aspectwerkz.codehaus.org/faq.html
        item 3 - What are the common steps to perform when I have some troubles?

        as we see in the screenshot you may have a field get/set pointcut that is too invasive and triggers potential advising of this .../CORBA/.. class that apears in the log there.
        Try to narrow down the pointcut, or try to add missing jars to the classpath, or exclude the class using an aop.xml <exclude> element (see doc on the website)

        The verbose option should help you understand which pointcut actually lead to that situation

        Show
        Alexandre Vasseur added a comment - see FAQ to turn on the verbose option http://aspectwerkz.codehaus.org/faq.html item 3 - What are the common steps to perform when I have some troubles? as we see in the screenshot you may have a field get/set pointcut that is too invasive and triggers potential advising of this .../CORBA/.. class that apears in the log there. Try to narrow down the pointcut, or try to add missing jars to the classpath, or exclude the class using an aop.xml <exclude> element (see doc on the website) The verbose option should help you understand which pointcut actually lead to that situation

          People

          • Assignee:
            Unassigned
            Reporter:
            Suman G
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: