Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

org.w3c.dom.Node not found !?

Pablo Beltran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2014

Hi,

I'm getting the following error:

Caused by: java.lang.ClassNotFoundException: org.w3c.dom.Node
	at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772)
	at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
	at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I've added the runtime dependency on my pom.xml:

<dependency>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.0.b2</version>
            <scope>provided</scope>
        </dependency>

and imported it too:

<Import-Package>org.w3c.dom*;version="0.0.0"</Import-Package>

This happens when I access to a servlet processing a xml file at the server.

Any idea?

Thanks!,

Pablo

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Szymon Kolorz February 26, 2014

I added org.w3c.dom to <Import-Package> of <bundle-instructions> section in my atlassian-plugin.xml file. It works.

I had to add all dependencies to <Import-Package>, as jira no longer generates bundle instructions if <bundle-instructions> tag is present in atlassian-plugin.xml file.

Pablo Beltran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2014

I added the org.w3c.dom* import into the <bundle-instructions> tag in the atlassian-plugin.xml and it did not work...

Why in the atlassian-plugin.xml rather than the pom.xml? Why is the difference among it and the <Import-Package> tag of the maven-jira-plugin -> configuration -> instructions element?

Alexej Geldt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2014

i think @Szymonment pom.xml.

I have simmilar problem like you. Have you made any progress yet @KInto Soft?

0 votes
Pablo Beltran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2015

The soultion is available from this other answer: https://answers.atlassian.com/questions/19696121

0 votes
Eswaran R
Contributor
June 30, 2015

Hi Pablo, Am also struggling with same problem. Did you fix this? If yes, Please help me to fix the same.. Thanks in advance.. Thanks Esh

0 votes
Pablo Beltran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2014

...and if the scope is changed to compile, then there is a new problem with Xerces :

Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
	at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
	at org.directwebremoting.impl.DwrXmlConfigurator.setInputStream(DwrXmlConfigurator.java:120)
	at org.directwebremoting.impl.DwrXmlConfigurator.setClassResourceName(DwrXmlConfigurator.java:108)
	at org.directwebremoting.impl.StartupUtil.configureFromSystemDwrXml(StartupUtil.java:597)
	at org.directwebremoting.impl.StartupUtil.configureContainerFully(StartupUtil.java:716)
	at org.directwebremoting.servlet.DwrServlet.configureContainer(DwrServlet.java:109)
	... 136 more

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events