cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFound org/w3c/dom/Node.

Former Member
0 Kudos

Hi,

i have a j2ee application deployed on SAP J2EE Server.i want my application to access inqmyxml.jar file which present in additional-lib folder.i made an entry in reference.txt file under managers folder like

reference UMS library:inqmy.The name of my application is UMS.At run time i get the following exception

No class def found com/w3c/dom/Node.

how should i map my application so that it uses inqmyxml.jar file.

Any help is appreciated

regards

srini

<b></b>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Well, the idea is quite simple. Every class the server can't find in its libraries (ones blong to the application) provokes such an exception. Before it was Node interface but when you added it the server complained about the next missing one. So, how to fix it completely? Just find which archive (jar) the missing class belongs to and add it to the library. It should work. A hint: the last missing class (ParserConfigurationException) belongs to inqmyxml.jar archive. Hence just add this jar after semicolon to the library definition (see help for examples).

Former Member
0 Kudos

Hi Roman,

We have added Inqmy.xml in the library.txt and the deployment went fine. But during Runtime when we access our application we get the following exception.

NoClassDefFound org/w3c/dom/Node

Any further ideas?

Regards

Srinivas / Bhanu

Former Member
0 Kudos

Is UMS the name of your .dlp file.

and when you go via the DeployTool.Bat in the Deployer tab

did you go to the menu Deploy-->Libraries

Click on the References tab

and Add UMS.

This should make an entry

UMS library:inqmyxml

in reference.txt

and deploy should be successful

(Your library.txt should have

library inqmyxml inqmyxml.jar;inqmysoap.jar)

Regards

Pran

Former Member
0 Kudos

Hi pran,

there was an entry in reference.txt like

reference UMS library:inqmyxml

and other entry in library.txt like

library inqmyxml inqmyxml.jar;inqmysoap.jar)

The deployment is going on fine but at runtime we get the exception NoClassDefFound org/w3c/dom/Node.

regards

srinivas

Former Member
0 Kudos

Hi,

Finally the problem is resolved after placing sapxmltoolkit.jar file in the classpath.Thanks for all the help.

regards

srinivas.p

zubev
Employee
Employee
0 Kudos

Hi Srinivas,

It looks like your version is corrupted. Inqmyxml.jar should contain all the needed org.w3c.dom.* and javax.xml.* interfaces. Please get a newer version of inqmyxml.jar

Usage of sapxmltoolkit.jar in 6.20 is dangerous due to it uses a newer JAXP version. Although from interface POV, it is compatible, it has some changes in the factory loading mechanism.

Best regards,

Alexander

Former Member
0 Kudos

the missed class is not from inqmyxml.jar but from com\sapportals\dqp\lib\xmlParserAPIs.jar . Try to add it to your lib entry

Former Member
0 Kudos

Hi Roman,

We have set the com\sapportals\dqp\lib\xmlParserAPIs.jar and com\sapportals\dqp\lib\xercesImpl.jar files in using the deploy\libraries tool. The following entrys were made in reference.txt.UMS is the name of our application

reference UMS library:umslib

reference UMS library:umslib1

But during the deployement we get the following exception

04/08/05 21:15:27 - ***********************************************************

04/08/05 21:13:38 - Applying user role management mappings.

04/08/05 21:13:38 - Start updating EAR-file...C:\testejb\ums.ear

04/08/05 21:13:39 - Temp files deleted...

04/08/05 21:13:39 - Ear-file updated successfully for 453ms.

04/08/05 21:13:39 - Start deploying ...

04/08/05 21:13:39 - Ear-file uploaded to server for 359ms.

04/08/05 21:13:45 - ERROR: ID90506: NOT Deployed. ERROR returned from deploy service :

java.lang.NoClassDefFoundError: javax/xml/parsers/ParserConfigurationException

at java.lang.Class.newInstance0(Native Method)

at java.lang.Class.newInstance(Class.java:232)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.instantiateValidator(ServletContextFacade.java:4703)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.processTldJar(ServletContextFacade.java:4784)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.processTldJars(ServletContextFacade.java:4745)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(ServletContextFacade.java:2676)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(ServletContextFacade.java:2517)

at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.deploy(ServletsAndJspImpl.java:480)

at com.inqmy.services.servlets_jsp.server.WebContainer.commitDeploy(WebContainer.java:256)

at com.inqmy.services.deploy.server.DeployServiceImpl.commit(DeployServiceImpl.java:2848)

at com.inqmy.services.deploy.server.DeployServiceImpl.deploy1(DeployServiceImpl.java:512)

at com.inqmy.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:140)

at com.inqmy.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:184)

at com.inqmy.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:157)

at com.inqmy.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:108)

at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)

at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)

at java.security.AccessController.doPrivileged(Native Method)

at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:153)

04/08/05 21:13:45 - ***********************************************************

04/08/05 21:15:27 - Applying user role management mappings.

04/08/05 21:15:27 - Start updating EAR-file...C:\testejb\ums.ear

04/08/05 21:15:28 - Temp files deleted...

04/08/05 21:15:28 - Ear-file updated successfully for 407ms.

04/08/05 21:15:28 - References from loader UMS to its loaders were made!

04/08/05 21:15:28 - Start to load additional library library:umslib ...

04/08/05 21:15:28 - Library jar-file(s) deployed to server successfully!

04/08/05 21:15:28 - Start to load additional library library:umslib1 ...

04/08/05 21:15:29 - Library jar-file(s) deployed to server successfully!

04/08/05 21:15:29 - Start deploying ...

04/08/05 21:15:29 - Ear-file uploaded to server for 313ms.

04/08/05 21:15:35 - ERROR: ID90506: NOT Deployed. ERROR returned from deploy service :

javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found

at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:141)

at javax.servlet.jsp.jstl.tlv.ScriptFreeTLV.<init>(ScriptFreeTLV.java:107)

at java.lang.Class.newInstance0(Native Method)

at java.lang.Class.newInstance(Class.java:232)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.instantiateValidator(ServletContextFacade.java:4703)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.processTldJar(ServletContextFacade.java:4784)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.processTldJars(ServletContextFacade.java:4745)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(ServletContextFacade.java:2676)

at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(ServletContextFacade.java:2528)

at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.deploy(ServletsAndJspImpl.java:480)

at com.inqmy.services.servlets_jsp.server.WebContainer.commitDeploy(WebContainer.java:256)

at com.inqmy.services.deploy.server.DeployServiceImpl.commit(DeployServiceImpl.java:2848)

at com.inqmy.services.deploy.server.DeployServiceImpl.deploy1(DeployServiceImpl.java:512)

at com.inqmy.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:140)

at com.inqmy.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:184)

at com.inqmy.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:157)

at com.inqmy.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:108)

at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)

at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)

at java.security.AccessController.doPrivileged(Native Method)

at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:153)

04/08/05 21:15:35 - ***********************************************************

Any help is appreciated

Regards

srini