You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Josip Almasi <jo...@vrspace.org> on 2003/02/20 16:57:58 UTC

Startup trouble

Hi,

I used to load James using my ClassLoader, and run it in the same jvm 
with a few more apps. My startup code is mostly taken from 
org.apache.avalon.phoenix.launcher.Main.
Startup method in 2.1 changed slightly with new Phoenix (CLIMain 
parameters), and it was easy to deal with.
But, I have troubles with locale:

Caused by: java.util.MissingResourceException: Can't find bundle for 
base name org.apache.avalon.phoenix.frontends.Resources, locale hr_HR
	at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694)
	at java.util.ResourceBundle.getBundle(ResourceBundle.java:661)
	at org.apache.avalon.excalibur.i18n.Resources.getBundle(Resources.java:782)
	at org.apache.avalon.excalibur.i18n.Resources.getString(Resources.java:582)
	at 
org.apache.avalon.phoenix.frontends.CLIMain.handleException(CLIMain.java:311)
	at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:106)
	... 7 more

Here's line 311 from CLIMain:

         System.out.println( REZ.getString( "main.exception.header" ) );

Ugly... error handler produces an error, so I don't even know what was 
wrong!

My classloader extends URLClassLoader too, and does nothing with 
resources-related methods, just the same as Phoenix classloader.
And, James runs well when started from prompt.
So, I assume I missed some important part of startup procedure.

Any hints?

Regards,
Josip


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


RE: Startup trouble

Posted by "Noel J. Bergman" <no...@devtech.com>.
This sounds like a question for users@avalon.apache.org.  I don't see
anything in your stack trace that suggests that James is involved in any
way.

	--- Noel

-----Original Message-----
From: Josip Almasi [mailto:joe@vrspace.org]
Sent: Thursday, February 20, 2003 10:58
To: james-dev@jakarta.apache.org
Subject: Startup trouble


Hi,

I used to load James using my ClassLoader, and run it in the same jvm
with a few more apps. My startup code is mostly taken from
org.apache.avalon.phoenix.launcher.Main.
Startup method in 2.1 changed slightly with new Phoenix (CLIMain
parameters), and it was easy to deal with.
But, I have troubles with locale:

Caused by: java.util.MissingResourceException: Can't find bundle for
base name org.apache.avalon.phoenix.frontends.Resources, locale hr_HR
	at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:8
04)
	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694)
	at java.util.ResourceBundle.getBundle(ResourceBundle.java:661)
	at org.apache.avalon.excalibur.i18n.Resources.getBundle(Resources.java:782)
	at org.apache.avalon.excalibur.i18n.Resources.getString(Resources.java:582)
	at
org.apache.avalon.phoenix.frontends.CLIMain.handleException(CLIMain.java:311
)
	at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:106)
	... 7 more

Here's line 311 from CLIMain:

         System.out.println( REZ.getString( "main.exception.header" ) );

Ugly... error handler produces an error, so I don't even know what was
wrong!

My classloader extends URLClassLoader too, and does nothing with
resources-related methods, just the same as Phoenix classloader.
And, James runs well when started from prompt.
So, I assume I missed some important part of startup procedure.

Any hints?

Regards,
Josip


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org