[opencms-dev] RC2 file.encoding problem, this time with JBoss

Herc herculesxyz at personal.ro
Tue Apr 8 21:58:01 CEST 2003


Hi 

I have installed the opencms again, but first I had to set a variable in system 
variables: 

CATALINA_OPTS=-Dfile.encoding=ISO-8859-1

After you restart your computer you will be able to start the instalation. If 
you have problems write me back.

Regards
Alin






> hello,
> 
> i already read some threads concerning the file.encoding problem, 
> but in this case i did not get an error-message while clicking through the 
wizard.
> i get it while importing the workplace.
> 
> i'm using:
> win2k
> j2sdk1.4.1_06
> jboss&tomcat (i've unpacked the opencms.war in the folder as seen in line 
zero of the following output)
> 
> in line "39" it say something about "Cp1252", but i can't find the place, 
where this ist defined.
> and ist line "16" relevant?
> 
> thanks and greetings,
> sam razialruh
> 
> here's the output of the "workplace import":
> 
> 
> 122:		at com.opencms.boot.CmsSetupThread.run(CmsSetupThread.java:83)
> 121:		at com.opencms.boot.CmsMain.startSetup(CmsMain.java:120)
> 120:		at com.opencms.boot.CmsMain.begin(CmsMain.java:160)
> 119:		at java.lang.reflect.Method.invoke(Method.java:324)
> 118:		at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
> 117:		at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
> 116:		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 115:		at com.opencms.core.CmsShell.commands(CmsShell.java:177)
> 114:		at com.opencms.core.CmsShellCommands.<init>
(CmsShellCommands.java:75)
> 113:	java.lang.NullPointerException
> 112:	
> 111:	>>>	at com.opencms.boot.CmsSetupThread.run(CmsSetupThread.java:83)
> 110:	>>>	at com.opencms.boot.CmsMain.startSetup(CmsMain.java:120)
> 109:	>>>	at com.opencms.boot.CmsMain.begin(CmsMain.java:151)
> 108:	>>>	at java.lang.Class.newInstance(Class.java:259)
> 107:	>>>	at java.lang.Class.newInstance0(Class.java:306)
> 106:	>>>	at java.lang.reflect.Constructor.newInstance
(Constructor.java:274)
> 105:	>>>	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
> 104:	>>>	at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
> 103:	>>>	at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
> 102:	>>>	at com.opencms.core.CmsShell.<init>(CmsShell.java:114)
> 101:	>>>	at com.opencms.core.OpenCms.<init>(OpenCms.java:251)
> 100:	>>>	at com.opencms.file.CmsRbManager.init(CmsRbManager.java:88)
> 99:	>>>	at com.opencms.file.genericSql.CmsResourceBroker.init
(CmsResourceBroker.java:4195)
> 98:	>>>	at com.opencms.file.CmsRegistry.<init>(CmsRegistry.java:177)
> 97:	>>>	at com.opencms.template.A_CmsXmlContent.parse
(A_CmsXmlContent.java:1379)
> 96:	>>>	at com.opencms.template.A_CmsXmlContent.throwException
(A_CmsXmlContent.java:1976)
> 95:	>>>com.opencms.core.CmsException: 21 XML parsing error. Detailed error: 
Cannot parse XML file "null". org.xml.sax.SAXParseException: Invalid encoding 
name "Cp1252".. 
> 94:	>>>Root cause:
> 93:	>>>-----------
> 92:	>>	at com.opencms.boot.CmsSetupThread.run(CmsSetupThread.java:83)
> 91:	>>	at com.opencms.boot.CmsMain.startSetup(CmsMain.java:120)
> 90:	>>	at com.opencms.boot.CmsMain.begin(CmsMain.java:151)
> 89:	>>	at java.lang.Class.newInstance(Class.java:259)
> 88:	>>	at java.lang.Class.newInstance0(Class.java:306)
> 87:	>>	at java.lang.reflect.Constructor.newInstance
(Constructor.java:274)
> 86:	>>	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
> 85:	>>	at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
> 84:	>>	at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
> 83:	>>	at com.opencms.core.CmsShell.<init>(CmsShell.java:114)
> 82:	>>	at com.opencms.core.OpenCms.<init>(OpenCms.java:251)
> 81:	>>	at com.opencms.file.CmsRbManager.init(CmsRbManager.java:88)
> 80:	>>	at com.opencms.file.genericSql.CmsResourceBroker.init
(CmsResourceBroker.java:4195)
> 79:	>>	at com.opencms.file.CmsRegistry.<init>(CmsRegistry.java:180)
> 78:	>>root cause was com.opencms.core.CmsException: 21 XML parsing error. 
Detailed error: Cannot parse XML file "null". org.xml.sax.SAXParseException: 
Invalid encoding name "Cp1252".. 
> 77:	>>com.opencms.core.CmsException: 34 Registry error. Detailed error: 
couldn't init registry. 
> 76:	>>Root cause:
> 75:	>>-----------
> 74:	>	at com.opencms.boot.CmsSetupThread.run(CmsSetupThread.java:83)
> 73:	>	at com.opencms.boot.CmsMain.startSetup(CmsMain.java:120)
> 72:	>	at com.opencms.boot.CmsMain.begin(CmsMain.java:151)
> 71:	>	at java.lang.Class.newInstance(Class.java:259)
> 70:	>	at java.lang.Class.newInstance0(Class.java:306)
> 69:	>	at java.lang.reflect.Constructor.newInstance
(Constructor.java:274)
> 68:	>	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
> 67:	>	at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
> 66:	>	at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
> 65:	>	at com.opencms.core.CmsShell.<init>(CmsShell.java:114)
> 64:	>	at com.opencms.core.OpenCms.<init>(OpenCms.java:251)
> 63:	>	at com.opencms.file.CmsRbManager.init(CmsRbManager.java:100)
> 62:	>root cause was com.opencms.core.CmsException: 21 XML parsing error. 
Detailed error: Cannot parse XML file "null". org.xml.sax.SAXParseException: 
Invalid encoding name "Cp1252".. 
> 61:	>root cause was com.opencms.core.CmsException: 34 Registry error. 
Detailed error: couldn't init registry. 
> 60:	>com.opencms.core.CmsException: 33 Resourcebroker-init error. Detailed 
error: Critical error while loading resourcebroker. 
> 59:	>Root cause:
> 58:	>-----------
> 57:		at com.opencms.boot.CmsSetupThread.run(CmsSetupThread.java:83)
> 56:		at com.opencms.boot.CmsMain.startSetup(CmsMain.java:120)
> 55:		at com.opencms.boot.CmsMain.begin(CmsMain.java:151)
> 54:		at java.lang.Class.newInstance(Class.java:259)
> 53:		at java.lang.Class.newInstance0(Class.java:306)
> 52:		at java.lang.reflect.Constructor.newInstance
(Constructor.java:274)
> 51:		at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
> 50:		at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
> 49:		at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
> 48:		at com.opencms.core.CmsShell.<init>(CmsShell.java:114)
> 47:		at com.opencms.core.OpenCms.<init>(OpenCms.java:255)
> 46:	root cause was com.opencms.core.CmsException: 21 XML parsing error. 
Detailed error: Cannot parse XML file "null". org.xml.sax.SAXParseException: 
Invalid encoding name "Cp1252".. 
> 45:	root cause was com.opencms.core.CmsException: 34 Registry error. 
Detailed error: couldn't init registry. 
> 44:	root cause was com.opencms.core.CmsException: 33 Resourcebroker-init 
error. Detailed error: Critical error while loading resourcebroker. 
> 43:	com.opencms.core.CmsException: 33 Resourcebroker-init error. Detailed 
error: Database init failed. 
> 42:	. Critical init error/3: com.opencms.core.CmsException: Critical error 
while loading resourcebroker
> 41:	[CmsRbManager] Critical error while loading resourcebroker
> 40:	[CmsRegistry] Cannot parse XML file "null". 
org.xml.sax.SAXParseException: Invalid encoding name "Cp1252".
> 39:	[Fatal Error] :1:40: Invalid encoding name "Cp1252".
> 38:	. Initializing registry: starting
> 37:	[com.opencms.dbpool.CmsPool] mysqlonline: starting connection-guard
> 36:	[com.opencms.dbpool.CmsPool] mysqlonline: created
> 35:	[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. 
Current Amount is:4
> 34:	[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. 
Current Amount is:3
> 33:	[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. 
Current Amount is:2
> 32:	[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. 
Current Amount is:1
> 31:	[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. 
Current Amount is:0
> 30:	. Database fill default: yes
> 29:	[com.opencms.dbpool.CmsPool] mysql: starting connection-guard
> 28:	[com.opencms.dbpool.CmsPool] mysql: created
> 27:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:9
> 26:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:8
> 25:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:7
> 24:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:6
> 23:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:5
> 22:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:4
> 21:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:3
> 20:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:2
> 19:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:1
> 18:	[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current 
Amount is:0
> 17:	. Using digest encoding: MD5 from SUN version 1.2
> 16:	. Digest file encoding : UTF-8
> 15:	. Digest configured    : MD5
> 14:	. Database backup pool : jdbc:opencmspool:mysqlbackup
> 13:	. Database online pool : jdbc:opencmspool:mysqlonline
> 12:	. Database offline pool: jdbc:opencmspool:mysql
> 11:	. Database access init : ok
> 10:	. Resource broker init : phase 3 ok - creating db access module
> 9:	. Resource broker init : phase 2 ok - initializing database
> 8:	. Resource broker init : phase 1 ok - starting
> 7:	. Resource broker class: com.opencms.file.mySql.CmsResourceBroker
> 6:	. Resource broker used : mysql
> 5:	. Operating sytem      : Windows 2000 5.0 x86 
> 4:	. Java VM in use       : Java HotSpot(TM) Client VM 1.4.1_02-b06 mixed 
mode Sun Microsystems Inc. 
> 3:	. Encoding set to      : ISO-8859-1
> 2:	. System file.encoding : ISO-8859-1
> 1:	. OpenCms encoding     : ISO-8859-1
> 0:	%%% props: C:\eXXperience\jboss\server\default\deploy\opencms.war\WEB-
INF\config/opencms.properties
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 




______________________________________________________________________
Do you want a free e-mail for life ? Get it at http://www.personal.ro/




More information about the opencms-dev mailing list