Re: [aspectwerkz-user] AspectWerkz PreProcessor Loading and Initialization in WebSphere 6 which uses IBM JDK 1.4
Gnanam V <[email protected]> Thu, 9 Nov 2006 03:35:04 -0800 (PST)
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Alex Can we take Jonas Bonér s help. Can you please send me his e mail id / Can you please FWd to him. Thanks again. Gnanam V Gnanam V wrote: > > Hi > I have not found anything much on the archive related to IBM WAS. I am > just elaborating my steps and the error messages i am getting, it will > help you to understand my problem.. Please help me by giving some hints to > resolve this issue. > ------------------------------------------- > > I looked at the aspectwerkz.bat file available in the bin folder. There > > "%JAVA_COMMAND%" -cp > "%ASPECTWERKZ_HOME%\lib\aspectwerkz-%ASPECTWERKZ_VERSION%.jar" > org.codehaus.aspectwerkz.util.EnvironmentDetect -jvm" is used to detect > the JVM. Since i am using the IBM JDK it returns 1 and the control tries > to execute the line > > @REM -- Use for Sun HotSpot and IBM JRE -- > "%JAVA_COMMAND%" -cp > "%JAVA_HOME%\lib\tools.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-%ASPECTWERKZ_VERSION%.jar" > org.codehaus.aspectwerkz.hook.ProcessStarter > -Xbootclasspath/p:"\"%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-%ASPECTWERKZ_VERSION%.jar\"" > -cp "\"%CP%\"" -cp > "\"%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-jdk14-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_LIBS%\"" > -Daspectwerkz.home="\"%ASPECTWERKZ_HOME%\"" %* > > So what i have done in my startServer.bat is > > Option 1 > > 1. Set the required variables. i.e > SET JAVA_COMMAND=%JAVA_HOME%\bin\java > SET ASPECTWERKZ_HOME=C:\aspectwerkz-2.0 > SET ASPECTWERKZ_VERSION=2.0 > 2. Add the code copied from aspectwerkz.bat which is for the IBM JRE > 3. I am getting the following error > Exception in thread "main" java.lang.Error: target JVM cannot redefine > classes, please force the use of -Xbootclasspath > at > org.codehaus.aspectwerkz.hook.ClassLoaderPatcher.redefineClass(ClassLoaderPatcher.java:107) > at > org.codehaus.aspectwerkz.hook.ClassLoaderPatcher.hotswapClassLoader(ClassLoaderPatcher.java:219) > at > org.codehaus.aspectwerkz.hook.ProcessStarter.run(ProcessStarter.java:201) > at > org.codehaus.aspectwerkz.hook.ProcessStarter.main(ProcessStarter.java:271) > > Option 2 > > Referred the Aspectwerkz documentation and followedthe steps described for > the NativeHotSwap. > > 1. Added the following line to the startServer.bat and executed > "%JAVA_COMMAND%" -Xdebug -Xrunaspectwerkz > -Xbootclasspath/a:%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%JAVA_HOME%\lib\tools.jar > 2. Got the following error > JVMCI158: Can't load "aspectwerkz.dll", because Can't find dependent > libraries > JVMCI098: xmloadJVMHelperLib aspectwerkz , failed > Could not create the Java virtual machine. > 3. Downloaded the aspectwerkz.dll and placed that in the lib folder and > executed the startServer.bat > 4. Getting the following error > AspectWerkz> initializing ..... > AspectWerkz> HotSwap not supported by JVM > JVMCI159: Unable to initialize JVM helper library aspectwerkz > JVMCI098: xmloadJVMHelperLib aspectwerkz , failed > Could not create the Java virtual machine. > > > Since i am using the WAS 6.0 and the IBM JDK 1.4 - Which option i need to > use?. > Thanks in advance > Gnanam > ----------------------------------------------------------------------------------------------------------------- > > Alexandre Vasseur wrote: >> >> can you check the archive of this mailing list >> http://archive.aspectwerkz.codehaus.org >> there has been several how to posted in there regarding AspectWerkz on >> WAS and unfortunately I am not an expert in WAS so I can't remember >> the details >> Alex >> >> On 11/8/06, Gnanam V <[email protected]> wrote: >>> >>> Hi >>> We are trying to setup the AspectWerkz frame work in IBM WebSphere 6.0. >>> We >>> developed an application that we like to deploy in WAS 6.0 after the >>> completion of AspectWerkz frame work setup. >>> >>> The JDK we are using is IBM JDK 1.4 which comes with WAS 6.0. I read in >>> the >>> AspectWerkz help that fr JDK 1.4 we have to use the HotSwap options. But >>> when i tried those options i am getting errors. >>> >>> I looked at the aspectwerkz batch file available in the bin directory. >>> The >>> "org.codehaus.aspectwerkz.util.EnvironmentDetect" returns 1 for the >>> vendor >>> IBM, and when i used the code available in the aspectwerkz batch file, >>> no >>> luck. >>> >>> Any one can point me some article or provide some tips to setup the >>> aspectwerkz in WAS 6.0. >>> >>> Thanks in adavance >>> Gnanam V >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/AspectWerkz-PreProcessor-Loading-and-Initialization-in-WebSphere-6-which-uses-IBM-JDK-1.4-tf2593467.html#a7233225 >>> Sent from the AspectWerkz - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > -- View this message in context: http://www.nabble.com/AspectWerkz-PreProcessor-Loading-and-Initialization-in-WebSphere-6-which-uses-IBM-JDK-1.4-tf2593467.html#a7256596 Sent from the AspectWerkz - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email