Hi Ali:

Ali Khawaja wrote:

Thanks Ramesh. You are a life saver.

You are welcome.

I just went crazy because of this. I
never realized I had to go into endorsed directory and include that; It was
never mentioned in any of the tutorials.



You don't need to include the xercesImpl.jar of JWSDP 1.4 in endorsed directory. You only need to make sure that this particular jar file comes first in the CLASSPATH before your other xercesImpl.jar ( which you might have got from Apache ). This is needed because the xercesImpl.jar contain META-INF/services entry for setting JAXP Factory to the correct class.
Keeping the jar file in endorsed would make sure that this is going to be looked at first while loading the classes and serve the required purpose though.


Regards
-Ramesh


Thanks again Ali

-----Original Message-----
From: Ramesh Mandava [mailto:[EMAIL PROTECTED] Sent: Saturday, July 10, 2004 5:39 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Problem in runtime class loading:
org.apache.xerces.internal.dom.DocumentImpl .


Hi Ali:
It seems that you are using SAAJ that is part of Java Web Services Developer Pack 1.4. The SAAJ in JWSDP 1.4 has depenency on package renamed xercesImpl.jar that is part of JWSDP 1.4.


You can get more reasons why the package renaming is done by posting to the alias "[EMAIL PROTECTED]".
You just need to make the xercesImpl.jar in JWSDP 1.4 ( available at JWSDP_HOME/jaxp/lib/endorsed/xercesImpl.jar ) available in your CLASSPATH.


If you are using Tiger ( J2SE 5 ) you will also have the package renamed class as part of the JDK itself ( Xerces in Tiger ( J2SE 5 ) implements JAXP 1.3 API though ).

Please let me know if you face any other problem.

Regards
-Ramesh

Ali Khawaja wrote:



I am having a bit of problem. I have an applet that's calling a web-service. I am getting a runtime error. It compiles fine.

java.lang.NoClassDefFoundError: com/sun/org/apache/xerces/internal/dom/DocumentImpl

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:537)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:52)

at



com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.<init>(SOAPPart1_1Imp
l.java:24)


at



com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1
Impl.java:48)


at



com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:65
6)


at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:83)

at keymanager.KeyManagerSoap_Stub.createKeys(KeyManagerSoap_Stub.java:119)

at src.CryptoApplet.btnGenerateKeyActionPerformed(CryptoApplet.java:287)

at src.CryptoApplet.access$100(CryptoApplet.java:33)

at src.CryptoApplet$2.actionPerformed(CryptoApplet.java:130)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

at



javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1839)


at



javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
20)


at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

at



javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener
.java:245)


at java.awt.Component.processMouseEvent(Component.java:5100)

at java.awt.Component.processEvent(Component.java:4897)

at java.awt.Container.processEvent(Container.java:1569)

at java.awt.Component.dispatchEventImpl(Component.java:3615)

at java.awt.Container.dispatchEventImpl(Container.java:1627)

at java.awt.Component.dispatchEvent(Component.java:3477)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)

at java.awt.Container.dispatchEventImpl(Container.java:1613)

at java.awt.Component.dispatchEvent(Component.java:3477)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

at



java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)


at



java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)


at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

DocumentImpl is in org/apache/xerces/internal/dom/DocumentImpl .

Can anyone shed some light was to what is going on, or why its appeneding com.sun before it, and if that is actual package name?

Thanks
Ali






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


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






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



Reply via email to