Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

was-6.1 with aspectwerkz

 
suchu sanghi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

i have an application that runs on was-6.1
also there is a plugin which uses AspectWerkz and injects something into the application at runtime. Now the problem i am facing is....

AW::WARNING - could not load class [com/infosys/j2ee/core/BaseException] as a resource in loader [com.ibm.ws.bootstrap.ExtClassLoader@406e406e]

and due to this injection does not take place

any idea about the issue.it is very urgent.
Thanks
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a classpath issue, it looks. Not sure why it couldn't be loaded.

You've got it on the extensions classpath. Is there any way you could repackage the application and place this file in the lib directory of the war? What about moving the file to the WebSphere \lib\app directory?

Here's a tutorial on understanding WebSphere and J2EE classloaders. Maybe it'll give you some insight into your problem:

Demystifying WebSphere Classloaders: Loading Java Classes at Runtime

Good luck!

-Cameron McKenzie
 
suchu sanghi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
also in the syserr.log i get the following error:

java.io.IOException: Class not found
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.readClass(Unknown Source)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.<init>(Unknown Source)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(AsmClassInfo.java:304)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(AsmClassInfo.java:331)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.createClassInfoFromStream(AsmClassInfo.java:790)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(AsmClassInfo.java(Inlined Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getSuperclass(AsmClassInfo.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.regexp.TypePattern.matchSuperClasses(TypePattern.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.regexp.TypePattern.matchType(TypePattern.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.AdvisedClassFilterExpressionVisitor.visit(AdvisedClassFilterExpressionVisitor.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.ast.ASTMethodPattern.jjtAccept(ASTMethodPattern.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.AdvisedClassFilterExpressionVisitor.visit(AdvisedClassFilterExpressionVisitor.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.ast.ASTExecution.jjtAccept(ASTExecution.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.AdvisedClassFilterExpressionVisitor.visit(AdvisedClassFilterExpressionVisitor.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.ast.ASTExpression.jjtAccept(ASTExpression.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.AdvisedClassFilterExpressionVisitor.visit(AdvisedClassFilterExpressionVisitor.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.ast.ASTPointcutReference.jjtAccept(ASTPointcutReference.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.AdvisedClassFilterExpressionVisitor.visit(AdvisedClassFilterExpressionVisitor.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.expression.ast.ASTExpression.jjtAccept(ASTExpression.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.definition.SystemDefinition.isAdvised(SystemDefinition.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.transform.inlining.InliningWeavingStrategy.classFilter(InliningWeavingStrategy.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.transform.inlining.InliningWeavingStrategy.classFilter(InliningWeavingStrategy.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.transform.inlining.InliningWeavingStrategy.transform(InliningWeavingStrategy.java:88)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor._preProcess(AspectWerkzPreProcessor.java:173)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor.preProcess(AspectWerkzPreProcessor.java:148)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.infosys.roc.j2ee.plugin.WASClassLoaderPlugin.preDefineApplicationClass(Unknown Source)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at java.lang.Class.forName0(Native Method)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at java.lang.Class.forName(Class.java(Compiled Code))
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.webcontainer.srt.WebGroup.loadLifecycleListeners(WebGroup.java:1529)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:384)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:987)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:418)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:787)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at java.lang.reflect.Method.invoke(Method.java:386)
[4/11/07 18:27:45:445 IST] 7f08280d SystemErr R at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic