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
Community moderators have prevented the ability to post new answers.
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think @Szymonment pom.xml.
I have simmilar problem like you. Have you made any progress yet @KInto Soft?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The soultion is available from this other answer: https://answers.atlassian.com/questions/19696121
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.