You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Chen, Gin" <Gi...@tvratings.com> on 2001/11/14 18:01:16 UTC

Cp1252

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
Gin_Chen@tvratings.com
727-738-3000 x6549

Sun Certified Programmer
Sun Certified Web Component Developer
BEA Certified Developer

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Cp1252

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
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:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>