RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
Ben,

file.encoding is a JVM parameter specified e.g

java -Dfile.encoding=Cp1252 SomeClass

There is no need to set this in server.xml when you can do this in the startup scripts 
for TC. You could even try within Java code

System.setProperty(file.encoding, Cp1252);

ADC

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 10:44
 To: Tomcat User List
 Subject: Setting JVM == file.encoding = Cp1252
 
 
 Dear list,
 
 I am new to Java and to TC. When I write all the java.system 
 properties
 to the logfile on my windows machine, I see I am using
 
 file.encoding = Cp1252
 
 on my linux machine this is
 
 file.encoding = iso-8859-15
 
 
 I know I can configure this jvm paramter in the 
 catalina.bat/sh file, but
 is there a way of doing this inside the server.xml or something ?
 
 regards,
 
 Ben
 
 
 +---+
 | GIStec GmbH - Ihr Partner für GIS - Technologie   |
 |   |
 | Ben Bookey|
 | [EMAIL PROTECTED]   Fraunhoferstraße 5  |
 | Tel 0 61 51 / 155 - 254   D-64283 Darmstadt   |
 | Fax 0 61 51 / 155 - 259   http://www.gistec-online.de |
 |   |
 | http://www.ingeoic.de  http://www.geo-watermarking.de |
 +---+
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Ben Bookey

Hi Allistair (once again),

I have no hair anymore !!

Just so I understand correctly, this parameter means that all
text files read and written with java, will write using the specified
encoding.

regards
Ben

-Ursprüngliche Nachricht-
Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 8. September 2004 11:46
An: Tomcat Users List; [EMAIL PROTECTED]
Betreff: RE: Setting JVM == file.encoding = Cp1252


Ben,

file.encoding is a JVM parameter specified e.g

java -Dfile.encoding=Cp1252 SomeClass

There is no need to set this in server.xml when you can do this in the
startup scripts for TC. You could even try within Java code

System.setProperty(file.encoding, Cp1252);

ADC

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 10:44
 To: Tomcat User List
 Subject: Setting JVM == file.encoding = Cp1252


 Dear list,

 I am new to Java and to TC. When I write all the java.system
 properties
 to the logfile on my windows machine, I see I am using

 file.encoding = Cp1252

 on my linux machine this is

 file.encoding = iso-8859-15


 I know I can configure this jvm paramter in the
 catalina.bat/sh file, but
 is there a way of doing this inside the server.xml or something ?

 regards,

 Ben


 +---+
 | GIStec GmbH - Ihr Partner für GIS - Technologie   |
 |   |
 | Ben Bookey|
 | [EMAIL PROTECTED]   Fraunhoferstraße 5  |
 | Tel 0 61 51 / 155 - 254   D-64283 Darmstadt   |
 | Fax 0 61 51 / 155 - 259   http://www.gistec-online.de |
 |   |
 | http://www.ingeoic.de  http://www.geo-watermarking.de |
 +---+


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
hi ben, 

the jvm always operates with utf. Data transferred into or out of the jvm  is in a 
format matching the file.encoding property.

i don't understand why you wish to change the file.encoding. the jvm file encoding 
should really match your file system, that's why on windows it is Cp1252 and on linux 
iso-8859-15.

the file.encoding will not affect the way your request encoding or database encoding 
aligns.

why don't you email me your web.xml, your jsp, your servlet, your JNDI or database 
connectivity config and I will take a look.

ADC

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 11:12
 To: Allistair Crossley
 Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
 Me yet again..
 would it be a good idea to convert all my app config files to 
 utf8 too, once
 I change this file.enoding setting?
 
 regards
 Ben
 
 -Ursprüngliche Nachricht-
 Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 8. September 2004 11:46
 An: Tomcat Users List; [EMAIL PROTECTED]
 Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
 Ben,
 
 file.encoding is a JVM parameter specified e.g
 
 java -Dfile.encoding=Cp1252 SomeClass
 
 There is no need to set this in server.xml when you can do this in the
 startup scripts for TC. You could even try within Java code
 
 System.setProperty(file.encoding, Cp1252);
 
 ADC
 
  -Original Message-
  From: Ben Bookey [mailto:[EMAIL PROTECTED]
  Sent: 08 September 2004 10:44
  To: Tomcat User List
  Subject: Setting JVM == file.encoding = Cp1252
 
 
  Dear list,
 
  I am new to Java and to TC. When I write all the java.system
  properties
  to the logfile on my windows machine, I see I am using
 
  file.encoding = Cp1252
 
  on my linux machine this is
 
  file.encoding = iso-8859-15
 
 
  I know I can configure this jvm paramter in the
  catalina.bat/sh file, but
  is there a way of doing this inside the server.xml or something ?
 
  regards,
 
  Ben
 
 
  
 +---+
  | GIStec GmbH - Ihr Partner für GIS - Technologie   
 |
  |   
 |
  | Ben Bookey
 |
  | [EMAIL PROTECTED]   Fraunhoferstraße 5  
 |
  | Tel 0 61 51 / 155 - 254   D-64283 Darmstadt   
 |
  | Fax 0 61 51 / 155 - 259   
http://www.gistec-online.de |
 |   |
 | http://www.ingeoic.de  http://www.geo-watermarking.de |
 +---+


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
Hi Ben,

You appear to be right that this euro encoding is a right bastard. I have no idea how 
I have it working on our production server now.

I have created a mini-webapp for anyone on this list who cares to have a go at this;

www.adcworks.com/encode.zip

Unzip this into an encode folder in your tomcat webapps. Source is included in 
WEB-INF. 

Request the url

http://yourserver/encode/encode.jsp

5 euro symbols should be in the text field. submit this and it goes to a servlet that 
encodes the request as Cp1252 which includes euro. it then sends the string down the 
response stream as Cp1252 and it gets mashed up.

I have tried setting all encoding to utf-8 also but no go.

I have to admit I am stumped now

Anyone..? Anyone..? Bueller..? Bueller..?

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 12:29
 To: Allistair Crossley
 Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
 yep. still end up with â?¬ being shown in my UTF-8 html/jsp 
 page, sent from
 the server as parameter.
 regards
 Ben
 
 -Ursprüngliche Nachricht-
 Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 8. September 2004 13:04
 An: [EMAIL PROTECTED]
 Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
 have you tried UTF-8 rather than UTF8 as page encoding?
 
 ADC
 
  -Original Message-
  From: Ben Bookey [mailto:[EMAIL PROTECTED]
  Sent: 08 September 2004 12:02
  To: Allistair Crossley
  Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
 
  Hi Allistair,
 
  Thanks for the reply. Please find attached my test scripts,
  which is an
  attempt at using utf-8.
 
  Its just a simple .jsp page which posts a value to the
  servlet in UTF-8,
  and the result is posted back to the edit page. Currently,
  although setting
  my htmlmeta tag, the EUR symbol is recieved back and is 
 not displayed
  correctly. I believe one I can do this round trip, it should
  work when I
  write to the database.
 
  regards
  Ben
 
 
 
 
  -Ursprüngliche Nachricht-
  Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 8. September 2004 12:41
  An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
  hi ben,
 
  the jvm always operates with utf. Data transferred into or
  out of the jvm
  is in a format matching the file.encoding property.
 
  i don't understand why you wish to change the file.encoding.
  the jvm file
  encoding should really match your file system, that's why on
  windows it is
  Cp1252 and on linux iso-8859-15.
 
  the file.encoding will not affect the way your request
  encoding or database
  encoding aligns.
 
  why don't you email me your web.xml, your jsp, your servlet,
  your JNDI or
  database connectivity config and I will take a look.
 
  ADC
 
   -Original Message-
   From: Ben Bookey [mailto:[EMAIL PROTECTED]
   Sent: 08 September 2004 11:12
   To: Allistair Crossley
   Subject: AW: Setting JVM == file.encoding = Cp1252
  
  
   Me yet again..
   would it be a good idea to convert all my app config files to
   utf8 too, once
   I change this file.enoding setting?
  
   regards
   Ben
  
   -Ursprüngliche Nachricht-
   Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
   Gesendet: Mittwoch, 8. September 2004 11:46
   An: Tomcat Users List; [EMAIL PROTECTED]
   Betreff: RE: Setting JVM == file.encoding = Cp1252
  
  
   Ben,
  
   file.encoding is a JVM parameter specified e.g
  
   java -Dfile.encoding=Cp1252 SomeClass
  
   There is no need to set this in server.xml when you can do
  this in the
   startup scripts for TC. You could even try within Java code
  
   System.setProperty(file.encoding, Cp1252);
  
   ADC
  
-Original Message-
From: Ben Bookey [mailto:[EMAIL PROTECTED]
Sent: 08 September 2004 10:44
To: Tomcat User List
Subject: Setting JVM == file.encoding = Cp1252
   
   
Dear list,
   
I am new to Java and to TC. When I write all the java.system
properties
to the logfile on my windows machine, I see I am using
   
file.encoding = Cp1252
   
on my linux machine this is
   
file.encoding = iso-8859-15
   
   
I know I can configure this jvm paramter in the
catalina.bat/sh file, but
is there a way of doing this inside the server.xml or 
 something ?
   
regards,
   
Ben
   
   
   
  
  
 +---+
| GIStec GmbH - Ihr Partner für GIS - Technologie
   |
|
   |
| Ben Bookey
   |
| [EMAIL PROTECTED]   Fraunhoferstraße 5
   |
| Tel 0 61 51 / 155 - 254   D-64283 Darmstadt
   |
| Fax 0 61 51 / 155 - 259
  http://www.gistec-online.de |
   |
  |
   | http://www.ingeoic.de
 http://www.geo-watermarking.de

AW: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Ben Bookey

Dear Allistair, (et.al)

Many many many thanks for ALL your help. The problem has disapeared! oh
joy, oh rapture unforseen

The problem seemed to disapear when I inserted a filter-mapping where
servlets are mapped, for the incoming request filter which converts all
request objects to utf-8 for the application, which was missing from my
web.xml. Then I set the various page-encoding , etc. (see below)

//v/
/v//v
%@ page language=java%
%@ page contentType=text/html;UTF-8%
%@ page pageEncoding=UTF-8%
html
head
 meta http-equiv=Content-Type content=text/html;charset=utf-8
 titleencoding data test./title
/head

body  bgcolor=#F3F3F3
brbrbr
%
String reqURL = /InGeoWebEntryTool/servlet/EncodingValidationServlet;
String strEncodeTest=;

if (request.getParameter(text)!=null 
!request.getParameter(text).equalsIgnoreCase()){
strEncodeTest = request.getParameter(text);
}
%
FORM action=%=reqURL% accept-charset='UTF-8' method=post
 input  type=text name=encodeTest value=%=strEncodeTest% size=98
 input type=submit value=post to server style=WIDTH: 120px
/FORM
/body
/html

//v/
/v//v

Now i have this working using utf-8.  I am sure this will now work for all
encodings, but I think we shall stick with utf-8.


regards,

Ben



-Ursprüngliche Nachricht-
Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 8. September 2004 12:41
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: RE: Setting JVM == file.encoding = Cp1252


hi ben,

the jvm always operates with utf. Data transferred into or out of the jvm
is in a format matching the file.encoding property.

i don't understand why you wish to change the file.encoding. the jvm file
encoding should really match your file system, that's why on windows it is
Cp1252 and on linux iso-8859-15.

the file.encoding will not affect the way your request encoding or database
encoding aligns.

why don't you email me your web.xml, your jsp, your servlet, your JNDI or
database connectivity config and I will take a look.

ADC

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 11:12
 To: Allistair Crossley
 Subject: AW: Setting JVM == file.encoding = Cp1252


 Me yet again..
 would it be a good idea to convert all my app config files to
 utf8 too, once
 I change this file.enoding setting?

 regards
 Ben

 -Ursprüngliche Nachricht-
 Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 8. September 2004 11:46
 An: Tomcat Users List; [EMAIL PROTECTED]
 Betreff: RE: Setting JVM == file.encoding = Cp1252


 Ben,

 file.encoding is a JVM parameter specified e.g

 java -Dfile.encoding=Cp1252 SomeClass

 There is no need to set this in server.xml when you can do this in the
 startup scripts for TC. You could even try within Java code

 System.setProperty(file.encoding, Cp1252);

 ADC

  -Original Message-
  From: Ben Bookey [mailto:[EMAIL PROTECTED]
  Sent: 08 September 2004 10:44
  To: Tomcat User List
  Subject: Setting JVM == file.encoding = Cp1252
 
 
  Dear list,
 
  I am new to Java and to TC. When I write all the java.system
  properties
  to the logfile on my windows machine, I see I am using
 
  file.encoding = Cp1252
 
  on my linux machine this is
 
  file.encoding = iso-8859-15
 
 
  I know I can configure this jvm paramter in the
  catalina.bat/sh file, but
  is there a way of doing this inside the server.xml or something ?
 
  regards,
 
  Ben
 
 
 
 +---+
  | GIStec GmbH - Ihr Partner für GIS - Technologie
 |
  |
 |
  | Ben Bookey
 |
  | [EMAIL PROTECTED]   Fraunhoferstraße 5
 |
  | Tel 0 61 51 / 155 - 254   D-64283 Darmstadt
 |
  | Fax 0 61 51 / 155 - 259
http://www.gistec-online.de |
 |   |
 | http://www.ingeoic.de  http://www.geo-watermarking.de |
 +---+


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
lol, good good .. now why doesn't my version work lol ;)

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 17:23
 To: Tomcat User List
 Cc: Allistair Crossley
 Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
 
 Dear Allistair, (et.al)
 
 Many many many thanks for ALL your help. The problem has 
 disapeared! oh
 joy, oh rapture unforseen
 
 The problem seemed to disapear when I inserted a filter-mapping where
 servlets are mapped, for the incoming request filter which 
 converts all
 request objects to utf-8 for the application, which was 
 missing from my
 web.xml. Then I set the various page-encoding , etc. (see below)
 
 //v///
 //
 /v//v
 %@ page language=java%
 %@ page contentType=text/html;UTF-8%
 %@ page pageEncoding=UTF-8%
 html
 head
  meta http-equiv=Content-Type 
 content=text/html;charset=utf-8
  titleencoding data test./title
 /head
 
 body  bgcolor=#F3F3F3
 brbrbr
 %
 String reqURL = 
 /InGeoWebEntryTool/servlet/EncodingValidationServlet;
 String strEncodeTest=;
 
 if (request.getParameter(text)!=null 
 !request.getParameter(text).equalsIgnoreCase()){
 strEncodeTest = request.getParameter(text);
 }
 %
 FORM action=%=reqURL% accept-charset='UTF-8' method=post
  input  type=text name=encodeTest 
 value=%=strEncodeTest% size=98
  input type=submit value=post to server style=WIDTH: 120px
 /FORM
 /body
 /html
 
 //v///
 //
 /v//v
 
 Now i have this working using utf-8.  I am sure this will now 
 work for all
 encodings, but I think we shall stick with utf-8.
 
 
 regards,
 
 Ben
 
 
 
 -Ursprüngliche Nachricht-
 Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 8. September 2004 12:41
 An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
 hi ben,
 
 the jvm always operates with utf. Data transferred into or 
 out of the jvm
 is in a format matching the file.encoding property.
 
 i don't understand why you wish to change the file.encoding. 
 the jvm file
 encoding should really match your file system, that's why on 
 windows it is
 Cp1252 and on linux iso-8859-15.
 
 the file.encoding will not affect the way your request 
 encoding or database
 encoding aligns.
 
 why don't you email me your web.xml, your jsp, your servlet, 
 your JNDI or
 database connectivity config and I will take a look.
 
 ADC
 
  -Original Message-
  From: Ben Bookey [mailto:[EMAIL PROTECTED]
  Sent: 08 September 2004 11:12
  To: Allistair Crossley
  Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
  Me yet again..
  would it be a good idea to convert all my app config files to
  utf8 too, once
  I change this file.enoding setting?
 
  regards
  Ben
 
  -Ursprüngliche Nachricht-
  Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 8. September 2004 11:46
  An: Tomcat Users List; [EMAIL PROTECTED]
  Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
  Ben,
 
  file.encoding is a JVM parameter specified e.g
 
  java -Dfile.encoding=Cp1252 SomeClass
 
  There is no need to set this in server.xml when you can do 
 this in the
  startup scripts for TC. You could even try within Java code
 
  System.setProperty(file.encoding, Cp1252);
 
  ADC
 
   -Original Message-
   From: Ben Bookey [mailto:[EMAIL PROTECTED]
   Sent: 08 September 2004 10:44
   To: Tomcat User List
   Subject: Setting JVM == file.encoding = Cp1252
  
  
   Dear list,
  
   I am new to Java and to TC. When I write all the java.system
   properties
   to the logfile on my windows machine, I see I am using
  
   file.encoding = Cp1252
  
   on my linux machine this is
  
   file.encoding = iso-8859-15
  
  
   I know I can configure this jvm paramter in the
   catalina.bat/sh file, but
   is there a way of doing this inside the server.xml or something ?
  
   regards,
  
   Ben
  
  
  
  
 +---+
   | GIStec GmbH - Ihr Partner für GIS - Technologie
  |
   |
  |
   | Ben Bookey
  |
   | [EMAIL PROTECTED]   Fraunhoferstraße 5
  |
   | Tel 0 61 51 / 155 - 254   D-64283 Darmstadt
  |
   | Fax 0 61 51 / 155 - 259
 http://www.gistec-online.de |
  |   
 |
  | http://www.ingeoic.de  
http://www.geo-watermarking.de |
 +---+


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE

encoding Cp1252 is not supported

2002-02-28 Thread Sam NewYork

I recently installed Cocoon2 with JBoss-2.4.3_Tomcat-3.2.3.  I followed all 
the instructions on the installation page which involved removing parser.jar 
and jaxp.jar and replacing that with xerces-1.4.4.jar

Now when I try to work with my JSP files in another webapp outside of
cocoon, I get the following message:

Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
D:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\ecp\jsp\navigation\top_nav_media.jsp(1,0)
Unable to open taglibrary /WEB-INF/tlds/taglib.tld : Parse Error in the tag 
library descriptor: The encoding Cp1252 is not supported.
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:713)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)


My taglib.tld in the ecp webapp explicity has an ISO-8859-1 encoding in it.  
I think this has to do with xerces since I changed the parser.jar.
Any one have any ideas what's going on?  If I should be asking another 
mailing list this question, please let me know.

Any help will be appreciated.

Thanks,
Sam



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Cp1252

2001-11-14 Thread Chen, Gin

Hi all,
When I am using JBoss and Tomcat 4.0.1 integrated build. I get an
error with any of my JBoss.xml files that have the ?xml version=1.0
encoding=Cp1252? line.
The error is when starting JBoss and it says:

[AutoDeployer] Deployment
failed:file:/C:/JBoss-2.4.3_Tomcat-4.0/jboss/deploy/SpecSL.jar
[AutoDeployer] org.jboss.deployment.J2eeDeploymentException: Error while
starting SpecSL.jar: Could not deploy
 file:/C:/JBoss-2.4.3_Tomcat-4.0/jboss/tmp/deploy/Default/SpecSL.jar, Cause:
org.jboss.ejb.DeploymentException
: Could not deploy
file:/C:/JBoss-2.4.3_Tomcat-4.0/jboss/tmp/deploy/Default/SpecSL.jar,
Cause:org.jboss.ejb.De
ploymentException: Stopping after fatal error: The encoding Cp1252 is not
supported., Cause:org.xml.sax.SAXE
xception: Stopping after fatal error: The encoding Cp1252 is not
supported.
[AutoDeployer]  at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:519)
[AutoDeployer]  at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
[AutoDeployer]  at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
[AutoDeployer]  at java.lang.reflect.Method.invoke(Native Method)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[AutoDeployer]  at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
[AutoDeployer]  at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
[AutoDeployer]  at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
[AutoDeployer]  at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
[AutoDeployer]  at java.lang.reflect.Method.invoke(Native Method)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[AutoDeployer]  at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Configurati
onService.java:
836)
[AutoDeployer]  at $Proxy0.start(Unknown Source)
[AutoDeployer]  at
org.jboss.util.ServiceControl.start(ServiceControl.java:81)
[AutoDeployer]  at java.lang.reflect.Method.invoke(Native Method)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[AutoDeployer]  at org.jboss.Main.init(Main.java:221)
[AutoDeployer]  at org.jboss.Main$1.run(Main.java:127)
[AutoDeployer]  at java.security.AccessController.doPrivileged(Native
Method)
[AutoDeployer]  at org.jboss.Main.main(Main.java:123)

As you can see... it says that Cp1252 is not supported. Yet with JBoss and
Tomcat 3.x.x it works fine!
What is going on here? Does this have anything to do with the fact that I am
using Cocoon2? How do I fix this? (Other than by changing the encoding type
to something else (UTF-8?))
Thanks,
-Tim

-
Gin-Ting Chen
[EMAIL PROTECTED]
727-738-3000 x6549

Sun Certified Programmer
Sun Certified Web Component Developer
BEA Certified Developer

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Cp1252

2001-11-14 Thread Nikola Milutinovic

Chen, Gin wrote:

 Hi all,
   When I am using JBoss and Tomcat 4.0.1 integrated build. I get an
 error with any of my JBoss.xml files that have the ?xml version=1.0
 encoding=Cp1252? line.

CP-1252? You mean Micro$oft CodePage 1252? Don't expect it to work with ANY Java 
based tool. Java recognizes Unicode and ISO-8859-x charsets.

I'm not sure whether CP-1252 has the same encoding as ISO-8859-1 (a.k.a. 
Latin-1), but I know for sure that CP-1250 and ISO-8859-2 DO NOT.

So expect some conversion trouble.

That is, if you are using Western Europe extended ASCII characters (code  127).

Nix.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]