# Thursday, 17 October 2002
« No Title | Main | No Title »
No Title

More James...

I changed the class loader to use only one dynamic assembly and tried to run James again. It still doesn't run:

Phoenix 4.0a4

Application file://C:/james/apps/james.sar uses a deprecated packaging format.
There was an uncaught exception:
--- Message ---
Unable to create BlockInfo as are unable to locate resource "org/apache/james/James.xinfo".
--- Stack Trace ---
org.apache.avalon.phoenix.interfaces.DeploymentException: Unable to create BlockInfo as are unable to locate resource "org/apache/james/James.xinfo".
        at org.apache...DefaultDeployer.deploy
        at org.apache...DefaultEmbeddor.deployFile
        at org.apache...DefaultEmbeddor.deployFile
        at org.apache...DefaultEmbeddor.deployFiles
        at org.apache...DefaultEmbeddor.deployDefaultApplications
        at org.apache...DefaultEmbeddor.execute
        at org.apache...frontends.CLIMain.run
        at org.apache...frontends.CLIMain.execute
        at org.apache...frontends.CLIMain.main
        at java.lang.reflect.Method.invoke
        at org.apache...launcher.Main.startup
        at org.apache...launcher.Main.main
Caused by: org.apache....assembler.AssemblyException: Unable to create BlockInfo as are unable to locate resource "org/apache/james/James.xinfo".
        at org.apache....assembler.Assembler.getBlockInfo
        at org.apache....assembler.Assembler.buildBlock
        at org.apache....assembler.Assembler.buildBlocks
        at org.apache....assembler.Assembler.assembleSar
        ... 12 more
The log file may contain further details of error.
Please check the configuration files and restart Phoenix.
If the problem persists, contact the Avalon project.  See
http://jakarta.apache.org/avalon for more information.
Shutting down Phoenix.

(I editted the stack trace a little so that it doesn't mess up the formatting of the page too much).

I have no idea what this means and I don't feel like debugging this. May be I'll revisit James in a while when I've implemented more stuff and have better debugging support.


Thursday, 17 October 2002 17:44:55 (W. Europe Daylight Time, UTC+02:00)  #    Comments [5]
Friday, 18 October 2002 08:01:40 (W. Europe Daylight Time, UTC+02:00)

Could be the Class or ClassLoader getResource() methods that are failing to be found?
Friday, 18 October 2002 11:45:34 (W. Europe Daylight Time, UTC+02:00)

Possibly. I know next to nothing about resources, but I had hoped that Classpath's URLClassLoader would know how to read resources from jars/zips.
Friday, 18 October 2002 12:37:59 (W. Europe Daylight Time, UTC+02:00)

GNU Classpath should handle loading resources from jars just fine.
And if it doesn't then that is my bug because I wrote URLClassLoader :)
If you have or can point me to some simple instructions on what you did, which version, etc.
then I can try and see what another GNU Classpath based VM gives.
Saturday, 19 October 2002 02:20:51 (W. Europe Daylight Time, UTC+02:00)

Many thanks Mark. I've sent you an e-mail.
Saturday, 19 October 2002 16:05:02 (W. Europe Daylight Time, UTC+02:00)

OK, analysed the problem. There is a thinko in URLClassLoader from GNU Classpath.
James feeds .bar files to an URLClassLoader that not correctly recognizes them
as actual jar or zip files. Will be fixed shortly while I also integrate some
patches the Intel Orp developers send that speed up URLClassLoader a lot.
Home page

I apologize for the lameness of this, but the comment spam was driving me nuts. In order to be able to post a comment, you need to answer a simple question. Hopefully this question is easy enough not to annoy serious commenters, but hard enough to keep the spammers away.

Anti-Spam Question: What method on java.lang.System returns an object's original hashcode (i.e. the one that would be returned by java.lang.Object.hashCode() if it wasn't overridden)? (case is significant)

Comment (HTML not allowed)  

Live Comment Preview