Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000351 [Resin] minor always 08-13-05 00:00 11-30-05 14:42
Reporter user63 View Status public  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version 3.0.14
Summary 0000351: EnvironmentClassLoader can't find java/lang/Object.class.
Description RSN-395
hi,i'm using AspectWerkz2.0 and JDK1.5.0_01. i weave my aspect to my
classes with AspectWerkz ant task. it's fine for executing standalone,
but deploying on resin-3.0.14($RESIN_HOME/webapps/(foobar.war)),
exception occured. stacktrace is below.

and tested the code in foo.jsp. it places on $RESIN_HOME/webapps/foobar/.

---
InputStream is1 =
this.getClass().getClassLoader().getResourceAsStream("java/lang/Object.class");
InputStream is2 =
ClassLoader.getSystemClassLoader().getResourceAsStream("java/lang/Object.class");

if (is1 == null || is2 == null) { throw new RuntimeException("should not happen"); } --- executing this code on resin-3.0.14, is1 is null and is2 is a inputstream instance. but, executing this code on tomcat-5.5.9, is1 and is2 are inputstream instances.

is it issue that EnvironmentClassLoader can't find "java/lang/Object.class"?

thanks.

-- AW::WARNING - could not load class [java/lang/Object] as a resource in loader [E nvironmentClassLoader$2859291[web-app:http://localhost:8080/jsxserver]] [^] java.io.IOException: Class not found at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.readClass(Unkn own Source) at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.<init>(Unknown Source) at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(A smClassInfo.java:304) at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(A smClassInfo.java:331) at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.createClassInf oFromStream(AsmClassInfo.java:790) at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(A smClassInfo.java:273) at org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo.getSuperclass( AsmClassInfo.java:632) at org.codehaus.aspectwerkz.annotation.AspectAnnotationParser.parseField Attributes(AspectAnnotationParser.java:151) at org.codehaus.aspectwerkz.annotation.AspectAnnotationParser.doParse(As pectAnnotationParser.java:99) at org.codehaus.aspectwerkz.annotation.AspectAnnotationParser.parse(Aspe ctAnnotationParser.java:57) at org.codehaus.aspectwerkz.definition.DocumentParser.parseAspectElement s(DocumentParser.java:433) at org.codehaus.aspectwerkz.definition.DocumentParser.parseSystemElement (DocumentParser.java:232) at org.codehaus.aspectwerkz.definition.DocumentParser.parseSystemElement s(DocumentParser.java:181) at org.codehaus.aspectwerkz.definition.DocumentParser.parse(DocumentPars er.java:168) at org.codehaus.aspectwerkz.definition.XmlParser.parseNoCache(XmlParser. java:178) at org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.registe rClassLoader(SystemDefinitionContainer.java:128) at org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.getHier archicalDefinitionsFor(SystemDefinitionContainer.java:317) at org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.getDefi nitionsFor(SystemDefinitionContainer.java:225) at org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager.getAdv iceInfoContainerForJoinPoint(JoinPointManager.java:282) at org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager.compil eJoinPoint(JoinPointManager.java:230) at org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager.loadJo inPoint(JoinPointManager.java:118) at jp.co.techfirm.service.AbstractService.aw$initJoinPoints(Abstra ctService.java) at jp.co.techfirm.service.AbstractService.<clinit>(AbstractService .java) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.springframework.util.ClassUtils.forName(ClassUtils.java:87) at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.c reateBeanDefinition(BeanDefinitionReaderUtils.java:62) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser. parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:362) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser. parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:328) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser. parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:265) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser. registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:185) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe rBeanDefinitions(XmlBeanDefinitionReader.java:238) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:155) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:68) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:56) at jp.co.techfirm.servlet.JsxServlet.init(JsxServlet.java:39) at javax.servlet.GenericServlet.init(GenericServlet.java:69) at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletCon figImpl.java:599) at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:15 2) at com.caucho.server.webapp.Application.start(Application.java:1546) at com.caucho.server.deploy.DeployController.startImpl(DeployController. java:563) at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(St artAutoRedeployAutoStrategy.java:72) at com.caucho.server.deploy.DeployController.startOnInit(DeployControlle r.java:451) at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:1 57) at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContai ner.java:610) at com.caucho.server.host.Host.start(Host.java:385) at com.caucho.server.deploy.DeployController.startImpl(DeployController. java:563) at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(St artAutoRedeployAutoStrategy.java:72) at com.caucho.server.deploy.DeployController.startOnInit(DeployControlle r.java:451) at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:1 57) at com.caucho.server.host.HostContainer.start(HostContainer.java:468) at com.caucho.server.resin.ServletServer.start(ServletServer.java:934) at com.caucho.server.deploy.DeployController.startImpl(DeployController. java:563) at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(Abstr actDeployControllerStrategy.java:56) at com.caucho.server.deploy.DeployController.start(DeployController.java :459) at com.caucho.server.resin.ResinServer.start(ResinServer.java:465) at com.caucho.server.resin.Resin.init(Resin.java) at com.caucho.server.resin.Resin.main(Resin.java:612)
Additional Information - windows xp sp2
- jkd1.5.0_01
- resin-3.0.14
- AspectWerkz2.0
Attached Files

- Relationships

- Notes
(0000406)
ferg
08-13-05 00:00

server/2495

The java/lang/Object.class loads correctly in a fresh installation of Resin. It may be possible there's an interaction with AspectWerkz which is causing trouble.
 
(0000407)
ferg
08-13-05 00:00

server/2497
 

- Issue History
Date Modified Username Field Change
08-13-05 00:00 user63 New Issue
11-30-05 00:00 administrator Fixed in Version  => 3.0.15
11-30-05 14:42 ferg Status resolved => closed


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker