[Resin-interest] How to specify JVM encoding in Mac OS X ?

2010-09-16 Thread smallufo
I am a newbie of Mac OS X  ,
My Resin (4.0.10) has an encoding problem under mac os x ...
JVM starts without UTF-8 encoding , results in problems when parsing
resources...

This is resin's startup logs :

Resin-4.0.10 (built Tue, 24 Aug 2010 10:49:02 PDT)
Copyright(c) 1998-2010 Caucho Technology.  All rights reserved.

  Using Resin(R) Open Source under the GNU Public License (GPL).

  See http://www.caucho.com for information on Resin Professional,
  including caching, clustering, JNI acceleration, and OpenSSL integration.

Starting Resin on Thu, 16 Sep 2010 04:59:08 +0800 (CST)

[10-09-16 04:59:09.600] {main}
[10-09-16 04:59:09.600] {main} Mac OS X 10.6.4 x86_64
[10-09-16 04:59:09.601] {main} Java(TM) SE Runtime Environment
1.6.0_20-b02-279-10M3065, Big5, zh
[10-09-16 04:59:09.601] {main} Java HotSpot(TM) 64-Bit Server VM
16.3-b01-279, 64, mixed mode, Apple Inc.
[10-09-16 04:59:09.601] {main}

It shows the JRE starts with Big5 encoding ...
How to enforce it to UTF8 ?

I have specified utf-8 in resin.xml :
  character-encodingutf-8/character-encoding


PS :
The whole WAR works like a charm in Linux ...:
[10-09-16 16:37:07.516] {main} Linux 2.6.18-164.6.1.el5 i386
[10-09-16 16:37:07.517] {main} Java(TM) SE Runtime Environment 1.6.0_20-b02,
UTF-8, zh
[10-09-16 16:37:07.517] {main} Java HotSpot(TM) Server VM 16.3-b01, 32,
mixed mode, Sun Microsystems Inc.
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] bean definition in resin 3.1 resin.conf

2010-09-16 Thread Nick Pilch
Hi all. I'm trying to update my resin 3.0 config file to resin 3.1 and I'm
not sure how to convert a bean definition. I'm creating a bean like this:

bean name=properties type=some.class.i.Have 
init

propertyFileDirectory${server.root}/somedir/propertyFileDirectory
/init
/bean

In resin 3.0, this calls Have.init() and Have.setPropertyFileDirectory()

In resin 3.1, Have.init() is not called. How do I get it to be called?
Thanks!
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] bean definition in resin 3.1 resin.conf

2010-09-16 Thread Scott Ferguson
Nick Pilch wrote:
 Hi all. I'm trying to update my resin 3.0 config file to resin 3.1 and 
 I'm not sure how to convert a bean definition. I'm creating a bean 
 like this:

 bean name=properties type=some.class.i.Have 
 init
 
 propertyFileDirectory${server.root}/somedir/propertyFileDirectory
 /init
 /bean

 In resin 3.0, this calls Have.init() and Have.setPropertyFileDirectory()

 In resin 3.1, Have.init() is not called. How do I get it to be called? 
 Thanks!

Try adding a @javax.annotation.PostConstruct annotation to the init() 
method.

Resin 3.0 was detecting the init methods by the method name. Resin 3.1 
and later uses the standard annotations.

-- Scott


 

 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
   



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest