Details
Description
org.nanocontainer.script.NanoContainerMarkupException: ClassNotFoundException: 'foo.bar.Zap' classloader stack [org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader@773a1
sun.misc.Launcher$AppClassLoader@a9c85c
sun.misc.Launcher$ExtClassLoader@cc7ad6
]
at org.nanocontainer.script.groovy.GroovyNodeBuilder.createNode(GroovyNodeBuilder.java:163)
at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:104)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.doInvokeMethod(GroovyNodeBuilder.java:112)
at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:171)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
at groovy.lang.Closure.invokeMethod(Closure.java:166)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:152)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
at nanocontainer$_run_closure1.doCall(Unknown Source)
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 groovy.lang.Closure.callViaReflection(Closure.java:431)
at groovy.lang.Closure.call(Closure.java:323)
at groovy.lang.Closure.call(Closure.java:249)
at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:170)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.doInvokeMethod(GroovyNodeBuilder.java:112)
at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:171)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
at nanocontainer.run(Unknown Source)
at org.nanocontainer.script.groovy.GroovyContainerBuilder.createContainerFromScript(GroovyContainerBuilder.java:62)
at org.nanocontainer.script.ScriptedContainerBuilder.createContainer(ScriptedContainerBuilder.java:60)
at org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(LifecycleContainerBuilder.java:26)
at org.nanocontainer.deployer.NanoContainerDeployer.deploy(NanoContainerDeployer.java:144)
at org.nanocontainer.deployer.NanoContainerDeployerTestCase.testFolderWithDeploymentScriptAndClassesCanBeDeployed(NanoContainerDeployerTestCase.java:32) 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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
Caused by: java.lang.ClassNotFoundException: 'foo.bar.Zap' classloader stack [org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader@773a1
sun.misc.Launcher$AppClassLoader@a9c85c
sun.misc.Launcher$ExtClassLoader@cc7ad6
]
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.decorateCNFE(DefaultNanoContainer.java:219)
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.loadClass(DefaultNanoContainer.java:194)
at org.nanocontainer.DefaultNanoContainer.loadClass(DefaultNanoContainer.java:145)
at org.nanocontainer.DefaultNanoContainer.registerComponentImplementation(DefaultNanoContainer.java:106)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.createComponentNode(GroovyNodeBuilder.java:287)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.createChildOfContainerNode(GroovyNodeBuilder.java:191)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.createNode(GroovyNodeBuilder.java:161)
... 43 more
Caused by: java.lang.ClassNotFoundException: 'foo.bar.Zap' classloader stack [org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader@773a1
sun.misc.Launcher$AppClassLoader@a9c85c
sun.misc.Launcher$ExtClassLoader@cc7ad6
]
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.decorateCNFE(DefaultNanoContainer.java:219)
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.findClass(DefaultNanoContainer.java:202)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.loadClass(DefaultNanoContainer.java:192)
... 48 more
Caused by: java.lang.ClassNotFoundException: foo.bar.Zap
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.findClass(DefaultNanoContainer.java:200)
... 51 more
Caused by:
java.lang.ClassNotFoundException: 'foo.bar.Zap' classloader stack [org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader@773a1
sun.misc.Launcher$AppClassLoader@a9c85c
sun.misc.Launcher$ExtClassLoader@cc7ad6
]
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.decorateCNFE(DefaultNanoContainer.java:219)
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.loadClass(DefaultNanoContainer.java:194)
at org.nanocontainer.DefaultNanoContainer.loadClass(DefaultNanoContainer.java:145)
at org.nanocontainer.DefaultNanoContainer.registerComponentImplementation(DefaultNanoContainer.java:106)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.createComponentNode(GroovyNodeBuilder.java:287)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.createChildOfContainerNode(GroovyNodeBuilder.java:191)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.createNode(GroovyNodeBuilder.java:161)
at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:104)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.doInvokeMethod(GroovyNodeBuilder.java:112)
at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:171)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
at groovy.lang.Closure.invokeMethod(Closure.java:166)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:152)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
at nanocontainer$_run_closure1.doCall(Unknown Source)
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 groovy.lang.Closure.callViaReflection(Closure.java:431)
at groovy.lang.Closure.call(Closure.java:323)
at groovy.lang.Closure.call(Closure.java:249)
at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:170)
at org.nanocontainer.script.groovy.GroovyNodeBuilder.doInvokeMethod(GroovyNodeBuilder.java:112)
at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:86)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:171)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
at nanocontainer.run(Unknown Source)
at org.nanocontainer.script.groovy.GroovyContainerBuilder.createContainerFromScript(GroovyContainerBuilder.java:62)
at org.nanocontainer.script.ScriptedContainerBuilder.createContainer(ScriptedContainerBuilder.java:60)
at org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(LifecycleContainerBuilder.java:26)
at org.nanocontainer.deployer.NanoContainerDeployer.deploy(NanoContainerDeployer.java:144)
at org.nanocontainer.deployer.NanoContainerDeployerTestCase.testFolderWithDeploymentScriptAndClassesCanBeDeployed(NanoContainerDeployerTestCase.java:32) 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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
Caused by: java.lang.ClassNotFoundException: 'foo.bar.Zap' classloader stack [org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader@773a1
sun.misc.Launcher$AppClassLoader@a9c85c
sun.misc.Launcher$ExtClassLoader@cc7ad6
]
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.decorateCNFE(DefaultNanoContainer.java:219)
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.findClass(DefaultNanoContainer.java:202)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.loadClass(DefaultNanoContainer.java:192)
... 48 more
Caused by: java.lang.ClassNotFoundException: foo.bar.Zap
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.nanocontainer.DefaultNanoContainer$URLPrintingClassLoader.findClass(DefaultNanoContainer.java:200)
... 51 more
------------- ---------------- ---------------
Testcase: testZipWithDeploymentScriptAndClassesCanBeDeployed(org.nanocontainer.deployer.NanoContainerDeployerTestCase): Caused an ERROR
Unknown message with code "No deployment script (nanocontainer.[groovy|bsh|js|py|xml]) in //META-INF".
org.apache.commons.vfs.FileSystemException: Unknown message with code "No deployment script (nanocontainer.[groovy|bsh|js|py|xml]) in //META-INF".
at org.nanocontainer.deployer.NanoContainerDeployer.getDeploymentScript(NanoContainerDeployer.java:181)
at org.nanocontainer.deployer.NanoContainerDeployer.deploy(NanoContainerDeployer.java:129)
at org.nanocontainer.deployer.NanoContainerDeployerTestCase.testZipWithDeploymentScriptAndClassesCanBeDeployed(NanoContainerDeployerTestCase.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Mauro Talevi [ maurotalevi ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Fixed.
Refactored deployer test data. The jars are created at build time rather than being in scm.