[Design the new POJO MicroContainer] - Re: Recursive JDKCheckerFactory usage?
by adrian@jboss.org
JIRA: https://jira.jboss.org/jira/browse/JBCL-21
I've got it as far as this:
| 2230 ERROR [ClientClassPathUnitTestCase] ClientLauncher.exception:
| java.lang.ClassCastException: class org.jboss.test.classloading.vfs.client.support.launcher.ClientContainer{cl=BaseClassLoader@18bd7f1{Clien
| tLauncherClassLoader:0.0.0$MODULE} codeSource=(vfsfile:/home/ejort/jboss-cl/classloading-vfs/target/tests-classes/ <no signer certificates>)
| } is not an instanceof class org.jboss.test.classloading.vfs.client.support.launcher.ClientContainer{cl=sun.misc.Launcher$AppClassLoader@1a5
| ab41 codeSource=(file:/home/ejort/jboss-cl/classloading-vfs/target/tests-classes/ <no signer certificates>)}
| at org.jboss.test.classloading.vfs.client.support.launcher.ClientLauncher.getBean(ClientLauncher.java:147)
| at org.jboss.test.classloading.vfs.client.support.launcher.ClientLauncher.launch(ClientLauncher.java:407)
|
So it is failing now because you're instantiating the ClientContainer using the
BaseClassLoader but the ClientLauncher bootstrap is referencing the
one from the classpath.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166637#4166637
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166637
17 years, 8 months
[Design the new POJO MicroContainer] - Unhelpful message from the VFS
by adrian@jboss.org
In a new test written by Scott, the VFS is asked to get a root that doesn't exist.
The VFS gives an unhelpful message for this
| ava.lang.IllegalArgumentException: Null root, rootURI: file:/home/ejort/jboss-cl/classloading-vfs/target/tests-classes/org/jboss/test/class
| loading/vfs/lib.jar, file: /home/ejort/jboss-cl/classloading-vfs/target/tests-classes/org/jboss/test/classloading/vfs/lib.jar
| at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:184)
| at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:156)
| at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:65)
| at org.jboss.virtual.VFS.getVFS(VFS.java:89)
| at org.jboss.virtual.VFS.getRoot(VFS.java:103)
|
This error message needs improving. It should be lib.jar doesn't exist.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166634#4166634
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166634
17 years, 8 months