geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder" <ammul...@alumni.princeton.edu>
Subject Re: Dependency Problem in HEAD (djencks?)
Date Wed, 22 Mar 2006 23:43:06 GMT
On 3/22/06, David Jencks <david_jencks@yahoo.com> wrote:
> 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 put this in modules/security/project.xml:

        <dependency>
            <groupId>geronimo</groupId>
            <artifactId>geronimo-util</artifactId>
            <version>${pom.currentVersion}</version>
            <properties>
                 <geronimo.dependency>true</geronimo.dependency>
             </properties>
        </dependency>

Than I ran "cd modules/security && maven -o"

I don't get a geronimo-service.xml by doing this (it's not in the
target directory or in the geronimo-security JAR).  Am I missing a
step or some syntax to generate that?

> 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.

I'll look into this.

Thanks,
    Aaron

> 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