geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Dependency Problem in HEAD (djencks?)
Date Wed, 22 Mar 2006 22:14:41 GMT

On Mar 22, 2006, at 1:14 PM, Aaron Mulder wrote:

> I have a change for modules/security in HEAD that makes it depend on
> modules/util (specifically, the crypto stuff).  I put a dependency on
> geronimo-util in modules/security/project.xml and the same dependency
> in configs/j2ee-security/project.xml with the geronimo.dependency flag
> set to true.


I'd advise putting the geronimo-dependency flag in modules/security  
and making sure a geronimo-service.xml file is generated there.  Then  
you should be able to leave out the flag in the config.

I don't see how this could be causing your problem.
>   However, when I build configs/j2ee-security, I get the
> stack trace below.
>
> I've confirmed that the generated
> configs/j2ee-security/target/plan/plan.xml contains this:
>
>   <dependency>
>     <groupId>geronimo</groupId>
>     <artifactId>geronimo-util</artifactId>
>     <version>1.2-SNAPSHOT</version>
>   </dependency>
>
> And I've confirmed that that JAR contains the class for
> org/apache/geronimo/util/asn1/x509/X509Name
>
> Any suggestions?  I feel like I've left out one setting somewhere but
> I don't understand what.

Maybe the security jar is loaded in an ancestor classloader to this  
configuration, such as rmi-naming.  In that case you'd have to move  
the dependency for geronimo-util to that ancestor config.  I think  
that if you get geronimo-util into the geronimo-service.xml for the   
security jar that should happen automatically.

If that doesn't help I'd debug through here and find out which  
classloader isn't able to find the needed class.

Hoping for m2 solutions to this kind of mess :-),
david jencks

>
> Thanks,
>     Aaron
>
> 13:41:39,218 ERROR [Deployer] Deployment failed due to
> java.lang.NoClassDefFoundError: org/apache/geronimo/util/asn1/x509/ 
> X509Name
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
>         at java.lang.Class.getDeclaredMethod(Class.java:1262)
>         at org.apache.geronimo.gbean.GBeanInfo.getGBeanInfo 
> (GBeanInfo.java:60)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.addGBeanDa 
> ta(ServiceConfigBuilder.java:316)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.addGBeans( 
> ServiceConfigBuilder.java:311)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfi 
> guration(ServiceConfigBuilder.java:207)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfi 
> guration(ServiceConfigBuilder.java:167)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder$ 
> $FastClassByCGLIB$$9f173be6.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at  
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke 
> (FastMethodInvoker.java:38)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
> (GBeanOperation.java:118)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:800)
>         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke 
> (RawInvoker.java:57)
>         at  
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke 
> (RawOperationInvoker.java:36)
>         at  
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept 
> (ProxyMethodInterceptor.java:96)
>         at org.apache.geronimo.deployment.ConfigurationBuilder$ 
> $EnhancerByCGLIB$$e4972960.buildConfiguration(<generated>)
>         at org.apache.geronimo.deployment.Deployer.deploy 
> (Deployer.java:279)
>         at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB 
> $$734a235d.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at  
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke 
> (FastMethodInvoker.java:38)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
> (GBeanOperation.java:118)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:835)
>         at org.apache.geronimo.kernel.basic.BasicKernel.invoke 
> (BasicKernel.java:178)
>         at  
> org.apache.geronimo.plugin.packaging.PackageBuilder.invokeDeployer 
> (PackageBuilder.java:389)
>         at  
> org.apache.geronimo.plugin.packaging.PackageBuilder.execute 
> (PackageBuilder.java:294)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at  
> org.apache.geronimo.plugin.packaging.PackageBuilderShell.execute 
> (PackageBuilderShell.java:232)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.commons.jelly.impl.DynamicBeanTag.doTag 
> (DynamicBeanTag.java:180)
>         at org.apache.commons.jelly.impl.StaticTagScript.run 
> (StaticTagScript.java:102)
>         at org.apache.commons.jelly.impl.ScriptBlock.run 
> (ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag 
> (MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag 
> $MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:590)
>         at org.apache.maven.werkz.WerkzProject.attainGoal 
> (WerkzProject.java:210)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag 
> (MavenAttainGoalTag.java:114)
>         at org.apache.commons.jelly.impl.TagScript.run 
> (TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run 
> (ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag 
> (MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag 
> $MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.plugin.PluginManager.attainGoals 
> (PluginManager.java:693)
>         at org.apache.maven.MavenSession.attainGoals 
> (MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:511)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> java.lang.reflect.InvocationTargetException: null
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at  
> org.apache.geronimo.plugin.packaging.PackageBuilderShell.execute 
> (PackageBuilderShell.java:232)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.commons.jelly.impl.DynamicBeanTag.doTag 
> (DynamicBeanTag.java:180)
>         at org.apache.commons.jelly.impl.StaticTagScript.run 
> (StaticTagScript.java:102)
>         at org.apache.commons.jelly.impl.ScriptBlock.run 
> (ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag 
> (MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag 
> $MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:590)
>         at org.apache.maven.werkz.WerkzProject.attainGoal 
> (WerkzProject.java:210)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag 
> (MavenAttainGoalTag.java:114)
>         at org.apache.commons.jelly.impl.TagScript.run 
> (TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run 
> (ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag 
> (MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag 
> $MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.plugin.PluginManager.attainGoals 
> (PluginManager.java:693)
>         at org.apache.maven.MavenSession.attainGoals 
> (MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:511)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/geronimo/util/asn1/x509/X509Name
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
>         at java.lang.Class.getDeclaredMethod(Class.java:1262)
>         at org.apache.geronimo.gbean.GBeanInfo.getGBeanInfo 
> (GBeanInfo.java:60)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.addGBeanDa 
> ta(ServiceConfigBuilder.java:316)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.addGBeans( 
> ServiceConfigBuilder.java:311)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfi 
> guration(ServiceConfigBuilder.java:207)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfi 
> guration(ServiceConfigBuilder.java:167)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder$ 
> $FastClassByCGLIB$$9f173be6.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at  
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke 
> (FastMethodInvoker.java:38)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
> (GBeanOperation.java:118)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:800)
>         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke 
> (RawInvoker.java:57)
>         at  
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke 
> (RawOperationInvoker.java:36)
>         at  
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept 
> (ProxyMethodInterceptor.java:96)
>         at org.apache.geronimo.deployment.ConfigurationBuilder$ 
> $EnhancerByCGLIB$$e4972960.buildConfiguration(<generated>)
>         at org.apache.geronimo.deployment.Deployer.deploy 
> (Deployer.java:279)
>         at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB 
> $$734a235d.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at  
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke 
> (FastMethodInvoker.java:38)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
> (GBeanOperation.java:118)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:835)
>         at org.apache.geronimo.kernel.basic.BasicKernel.invoke 
> (BasicKernel.java:178)
>         at  
> org.apache.geronimo.plugin.packaging.PackageBuilder.invokeDeployer 
> (PackageBuilder.java:389)
>         at  
> org.apache.geronimo.plugin.packaging.PackageBuilder.execute 
> (PackageBuilder.java:294)
>         ... 36 more


Mime
View raw message