# Thursday, October 17, 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, October 17, 2002 5:44:55 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [5]
Friday, October 18, 2002 8:01:40 AM (W. Europe Daylight Time, UTC+02:00)

Could be the Class or ClassLoader getResource() methods that are failing to be found?
Friday, October 18, 2002 11:45:34 AM (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, October 18, 2002 12:37:59 PM (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, October 19, 2002 2:20:51 AM (W. Europe Daylight Time, UTC+02:00)

Many thanks Mark. I've sent you an e-mail.
Saturday, October 19, 2002 4:05:02 PM (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.
Comments are closed.