The following comment has been added to this issue:
Author: Brian Minchau
Created: Tue, 21 Sep 2004 7:52 AM
Body:
Hi Amit,
please see Henry Zongaro's comment on using a Xalan specific xsl:output property.
In JRE 1.4 Xalan is put inside of an xml.jar file. In that jar you will see that
CharInfo is in the package org.apache.xml.serializer,
but you are trying to use it from org.apache.xalan.serialize, which
is an older, and now depricated package. Which version of Xalan
are you trying to run. I'm afraid that putting an older version of Xalan on your
classpath (not boot classpath) will cause you to get some classes from the older jar,
but others from within the JRE, ending up with a bad combination.
In JRE 1.4 org.apache.xml.serializer.CharInfo is no longer a public class. You can no
longer directly access the class or the field.
What problem are you trying to solve? Do you want to define your own
set of XML entities?
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XALANJ-1943?page=comments#action_53280
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XALANJ-1943
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XALANJ-1943
Summary: jre1.4.2_05 and XML_ENTITIES_RESOURCE
Type: Bug
Status: Unassigned
Priority: Major
Project: XalanJ2
Components:
Serialization
Versions:
2.4
Assignee:
Reporter: amit arora
Created: Wed, 15 Sep 2004 2:31 AM
Updated: Tue, 21 Sep 2004 7:52 AM
Environment: WIN 2000, JRE1.4.2_05
Description:
Hi
I am currently working on a problem to make my code compatible with jre1.4.2_05, I am
getting an exception (illegal access) on this line ---
org.apache.xalan.serialize.CharInfo.XML_ENTITIES_RESOURCE = codeBaseStr;
As jre is not allowing me to assign any value to XML_ENTITIES_RESOURCE variable.
I am not using xalan 2.6.0.
I have gone through your changes in xalan 2.6. 0, if I use xalan 2.6.0, still I have
to put new xalan in jre directory which I can't do.
Committed by [EMAIL PROTECTED] on 2003/04/06
Modified: xml-xalan/java/src/org/apache/xml/serializer CharInfo.java
HTMLEntities.properties output_html.properties output_xml.properties
XMLEntities.properties xml-xalan/java/xdocs/sources/xalan usagepatterns.xml
Committer's log entry: Patch from Christine Li ([EMAIL PROTECTED]). Changed Char Info
so that it allows descriptions of entities to be specified as a properties file in
addition to a Xalan-specific resource file format. The code previously always assumed
a Xalan-specific resource file format, for both user-supplied descriptions of
entities, and for those supplied with Xalan-J. The security restrictions of applets
are such that an applet that relies on a copy of Xalan-J in the Java run-time would
find that Xalan-J would be unable to read the default entities file that is packaged
with the JRE on the applet's behalf - it can only do so with a properties, via
Resource Bundle .
Can you give me any idea to solve this problem?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]