|
From: Patrick Y. <kc...@ce...> - 2002-10-25 02:27:03
|
Hi Gait, We have met this before.=20 On windows platform, we need one more configuration step besides = patching xalan.jar in the endorsed directory. You should place = %JAVA_HOME%\bin in %PATH% variable, and WITH IT PLACED BEFORE = C:\winnt\system32. If you do not do so, the patching seems to have no = effect. Strange behaviour, huh? We have mentioned this in Chapter 2 in our installation guide, though it = is not an eye-catching note. :-) Hope this helps. Regards, -Patrick ----- Original Message -----=20 From: Gait Boxman=20 To: EbXMLms List (E-mail)=20 Sent: Thursday, October 24, 2002 5:31 PM Subject: [ebxmlms-general] Digital signatures worries Hi, I'm testing digital signatures, and get a warning from xalan.jar = related to the JDK1.4 endorsed mechanism, while the MSH monitor hangs. = From the exception log, I can tell that xalan doesn't like the way it = was installed. This may be related to the fact that I'm running = JDK1.4.1, rather than JDK1.4.0.=20 I tried the following: * Copying the xalan.jar to c:\j2sdk1.4.0\jre\lib\endorsed (it's = already in c:\j2sdk1.4.1\jre\lib\endorsed) * Running the monitor with c:\j2sdk1.4.1\jre\lib\endorsed\xalan.jar = instead of ..\lib\xalan.jar in the CP * Running the monitor with c:\j2sdk1.4.0\jre\lib\endorsed\xalan.jar = instead of ..\lib\xalan.jar in the CP * Running the monitor without ..\lib\xalan.jar in the CP All this to no avail, the last one gives a classNotDefFound error. Full error trace: ----- java.lang.IllegalAccessError: Since it seems that nobody reads our = installation notes, we must do it in the exception messages. Hope you = read them. You did NOT use the endorsed mechanism from JDK 1.4 properly; = look at <http://xml.apache.org/security/install.html> how to solve this = problem. Original message was "tried to access field = org.apache.xpath.XPathContext.m_dtmManager from class = org.apache.xml.security.transforms.implementations.FuncHereContext" at = org.apache.xml.security.transforms.implementations.FuncHereContext.<init>= (FuncHereContext.java:177) at = org.apache.xml.security.utils.CachedXPathFuncHereAPI.eval(CachedXPathFunc= HereAPI.java:356) at = org.apache.xml.security.transforms.implementations.TransformXPath.engineP= erformTransform(TransformXPath.java:195) at = org.apache.xml.security.transforms.Transform.performTransform(Transform.j= ava:333) at = org.apache.xml.security.transforms.Transforms.performTransforms(Transform= s.java:257) at = org.apache.xml.security.signature.Reference.dereferenceURIandPerformTrans= forms(Reference.java:485) at = org.apache.xml.security.signature.Reference.getReferencedBytes(Reference.= java:541) at = org.apache.xml.security.signature.Reference.calculateDigest(Reference.jav= a:566) at = org.apache.xml.security.signature.Reference.generateDigestValue(Reference= .java:439) at = org.apache.xml.security.signature.Manifest.generateDigestValues(Manifest.= java:211) at = org.apache.xml.security.signature.XMLSignature.sign(XMLSignature.java:422= ) at = hk.hku.cecid.phoenix.pki.ApacheXMLDSigner.sign(ApacheXMLDSigner.java:292)= at = hk.hku.cecid.phoenix.message.packaging.PKISignatureImpl.sign(Unknown = Source) at = hk.hku.cecid.phoenix.message.packaging.PKISignatureImpl.sign(Unknown = Source) at = hk.hku.cecid.phoenix.message.packaging.EbxmlMessage.sign(Unknown Source) at hk.hku.cecid.phoenix.message.handler.Request.send(Unknown = Source) at = hk.hku.cecid.phoenix.message.monitor.SendPanel.sendMessage(Unknown = Source) at hk.hku.cecid.phoenix.message.monitor.SendPanel.send(Unknown = Source) at = hk.hku.cecid.phoenix.message.monitor.SendPanel$12.actionPerformed(Unknown= Source) at = javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764) at = javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractBu= tton.java:1817) at = javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.jav= a:419) at = javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at = javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListe= ner.java:245) at java.awt.Component.processMouseEvent(Component.java:5093) at java.awt.Component.processEvent(Component.java:4890) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3598) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3439) at = java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at = java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at = java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Window.dispatchEventImpl(Window.java:1585) at java.awt.Component.dispatchEvent(Component.java:3439) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at = java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread= .java:197) at = java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.j= ava:150) at = java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at = java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at = java.awt.EventDispatchThread.run(EventDispatchThread.java:99) ----- TIA, Gait. |