Cayenne with Apache James

From: Gary Jarrel (garyjarre..mail.com)
Date: Wed Apr 18 2007 - 04:39:51 EDT

  • Next message: Gary Jarrel: "Re: Cayenne with Apache James"

    Hi All!

    Not sure if anyone has used Cayenne with James, so this maybe a stab
    in the dark, but I've written a few mailets which utilize Cayenne for
    some DB processing and as soon as I drop the Cayenne 2.0.2 jar
    (no-dep) into my James directory under:
    <instdir>/apps/james/SAR-INF/lib/ I get the following exception:

    org.apache.avalon.phoenix.interfaces.DeploymentException: Bad
    specification version format 'cayenne' in 'org.apache.cayenne'.
    (Reason: java.lang.NumberFormatException: For input string: "cayenne")
            at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:379)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
            at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
            at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
            at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
            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:585)
            at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
            at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)
    Caused by: java.lang.IllegalArgumentException: Bad specification
    version format 'cayenne' in 'org.apache.cayenne'. (Reason:
    java.lang.NumberFormatException: For input string: "cayenne")
            at org.apache.avalon.excalibur.extension.Extension.<init>(Extension.java:444)
            at org.apache.avalon.excalibur.extension.Extension.getExtension(Extension.java:785)
            at org.apache.avalon.excalibur.extension.Extension.getAvailable(Extension.java:241)
            at org.apache.avalon.excalibur.extension.Extension.getAvailable(Extension.java:278)
            at org.apache.avalon.phoenix.components.classloader.SimpleLoaderResolver.getOptionalPackagesFor(SimpleLoaderResolver.java:313)
            at org.apache.avalon.phoenix.components.classloader.SimpleLoaderResolver.determineCompleteClasspath(SimpleLoaderResolver.java:233)
            at org.apache.avalon.phoenix.components.classloader.SarLoaderResolver.createClassLoader(SarLoaderResolver.java:191)
            at org.realityforge.classman.builder.LoaderBuilder.buildRegularClassLoader(LoaderBuilder.java:228)
            at org.realityforge.classman.builder.LoaderBuilder.processClassLoader(LoaderBuilder.java:126)
            at org.realityforge.classman.builder.LoaderBuilder.addAllClassLoaders(LoaderBuilder.java:71)
            at org.realityforge.classman.builder.LoaderBuilder.buildClassLoaders(LoaderBuilder.java:48)
            at org.apache.avalon.phoenix.components.classloader.DefaultClassLoaderManager.createClassLoaderSet(DefaultClassLoaderManager.java:233)
            at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:331)
            ... 14 more
    rethrown from
    java.lang.IllegalArgumentException: Bad specification version format
    'cayenne' in 'org.apache.cayenne'. (Reason:
    java.lang.NumberFormatException: For input string: "cayenne")
            at org.apache.avalon.excalibur.extension.Extension.<init>(Extension.java:444)
            at org.apache.avalon.excalibur.extension.Extension.getExtension(Extension.java:785)
            at org.apache.avalon.excalibur.extension.Extension.getAvailable(Extension.java:241)
            at org.apache.avalon.excalibur.extension.Extension.getAvailable(Extension.java:278)
            at org.apache.avalon.phoenix.components.classloader.SimpleLoaderResolver.getOptionalPackagesFor(SimpleLoaderResolver.java:313)
            at org.apache.avalon.phoenix.components.classloader.SimpleLoaderResolver.determineCompleteClasspath(SimpleLoaderResolver.java:233)
            at org.apache.avalon.phoenix.components.classloader.SarLoaderResolver.createClassLoader(SarLoaderResolver.java:191)
            at org.realityforge.classman.builder.LoaderBuilder.buildRegularClassLoader(LoaderBuilder.java:228)
            at org.realityforge.classman.builder.LoaderBuilder.processClassLoader(LoaderBuilder.java:126)
            at org.realityforge.classman.builder.LoaderBuilder.addAllClassLoaders(LoaderBuilder.java:71)
            at org.realityforge.classman.builder.LoaderBuilder.buildClassLoaders(LoaderBuilder.java:48)
            at org.apache.avalon.phoenix.components.classloader.DefaultClassLoaderManager.createClassLoaderSet(DefaultClassLoaderManager.java:233)
            at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:331)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
            at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
            at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
            at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
            at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
            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:585)
            at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
            at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)

    Without the cayenne jar, the application starts fine!

    Any thoughts?

    Thank you!

    Cheers,

    Gary



    This archive was generated by hypermail 2.0.0 : Wed Apr 18 2007 - 04:41:03 EDT