You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bu...@apache.org on 2013/03/14 17:21:40 UTC
svn commit: r854465 - in /websites/production/santuario/content:
cache/main.pageCache javafaq.html
Author: buildbot
Date: Thu Mar 14 16:21:40 2013
New Revision: 854465
Log:
Production update by buildbot for santuario
Modified:
websites/production/santuario/content/cache/main.pageCache
websites/production/santuario/content/javafaq.html
Modified: websites/production/santuario/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/santuario/content/javafaq.html
==============================================================================
--- websites/production/santuario/content/javafaq.html (original)
+++ websites/production/santuario/content/javafaq.html Thu Mar 14 16:21:40 2013
@@ -132,7 +132,7 @@ Apache Santuario -- java_faq
<p>The logging is configured in the config.xml file which either in the xmlsec.jar file or in the class path. This is a little bit complicated as config.xml is used both for library wide configurations like algorithms as well as for the user setting about log4j. This will be changed someday <img align="middle" class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/wink.gif" height="20" width="20" alt="" border="0">)</p>
-<p>In the <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/resource/config.xml">config.xml</a> file, there is an element called <log4j:configuration>. This element contains the XML style configuration information as defined in the log4j <a shape="rect" class="external-link" href="http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/xml/DOMConfigurator.html">DOMConfigurator</a> class . You can find examples <a shape="rect" class="external-link" href="http://cvs.apache.org/viewcvs.cgi/jakarta-log4j/tests/input/xml/">here</a>.</p>
+<p>In the <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/resource/config.xml">config.xml</a> file, there is an element called <log4j:configuration>. This element contains the XML style configuration information as defined in the log4j <a shape="rect" class="external-link" href="http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/xml/DOMConfigurator.html">DOMConfigurator</a> class.</p>
<h5><a shape="rect" name="java_faq-2.2.WhatisthemeaningofBaseURI%3F"></a>2.2. What is the meaning of BaseURI?</h5>
@@ -148,21 +148,13 @@ Apache Santuario -- java_faq
<p>The samples divide into two groups: Samples that create and samples that verify Signatures. Eventually, you should adjust the verifying program to another filename if you get FileNotFoundExceptions.</p>
-<h5><a shape="rect" name="java_faq-2.4.I%27musingSUNJDKv1.4.0orv1.4.1andIgetsomeexceptions.Anyclues%3F"></a>2.4. I'm using SUN JDK v1.4.0 or v1.4.1 and I get some exceptions. Any clues?</h5>
-
-<p>After SUN released the <a shape="rect" class="external-link" href="http://java.sun.com/j2se/1.4/index.html" rel="nofollow">Java (TM) 2 Platform Standard Edition v1.4.0</a> , the xml-security package stopped working. This is a <a shape="rect" class="external-link" href="http://developer.java.sun.com/developer/bugParade/bugs/4615582.html" rel="nofollow">known problem</a>: SUN packaged a beta of Xalan into the JDK1.4.0, but the xml-security package requires a stable version of Xalan (v2.2.0 or later). To fix the problem, you have to put the xalan.jar into a special directory in your JDK: j2sdk1.4.0/jre/lib/endorsed/xalan.jar. If you installed an out-of-the-box JDK1.4 (e.g. on Windows 2000), the "endorsed" directory does not exist: you'll have to create it by hand.</p>
-
-<p>Putting this JAR to another location like lib/ext WILL NOT WORK.</p>
-
-<p>For more on that, you can also check the <a shape="rect" class="external-link" href="http://xml.apache.org/~edwingo/jaxp-faq.html#override">Unofficial JAXP FAQ</a>.</p>
-
-<h5><a shape="rect" name="java_faq-2.5.IgetaNullPointerException%2CandIdon%27tknowwhat%27swrong."></a>2.5. I get a NullPointerException, and I don't know what's wrong.</h5>
+<h5><a shape="rect" name="java_faq-2.4.IgetaNullPointerException%2CandIdon%27tknowwhat%27swrong."></a>2.4. I get a NullPointerException, and I don't know what's wrong.</h5>
<p>Often, this problem is caused by using DOM1 calls like createElement(), setAttribute(), createAttribute(). These are non-namespace-aware and will cause XPath and C14N errors. Always use the DOM2 create(Attribute|Element)NS(...) methods instead, even if you're creating an element without a namespace (in that case, you can use null as a namespace).</p>
<p>The Xalan-J Team told us that DOM1 calls are deprecated and are not to be used in code. xml-security has been reviewed and is DOM1 clean now. The Xalan folks told us that if you create Elements or attributes using DOM1 calls which are not namespace aware, they do not care about any problem you have because of incorrect hehaviour of Xalan.</p>
-<h5><a shape="rect" name="java_faq-2.6.IsignadocumentandwhenItrytoverifyusingthesamekey%2Citfails"></a>2.6. I sign a document and when I try to verify using the same key, it fails</h5>
+<h5><a shape="rect" name="java_faq-2.5.IsignadocumentandwhenItrytoverifyusingthesamekey%2Citfails"></a>2.5. I sign a document and when I try to verify using the same key, it fails</h5>
<p>After you have created the XMLSignature object, before you sign the document, you must embed the signature element in the owning document (using a call to XMLSignature.getElement() to retrieve the newly created Element node from the signature) before calling the XMLSignature.sign() method,</p>