Hi all,
My problem is same with below URL.
If any one know the answer please help me. This issue kills me for last one week.
Thanks in advance
Esh
Community moderators have prevented the ability to post new answers.
Hi Eswaran,
Please try to remove <
scope
>provided</
scope
>.I do not think xml-apis is in JIRA sources.
Hi Volodymyr, Thanks for your response. If i remove the <scope>provided</scope> I received the following error in log.. 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.apache.axiom.locator.ImplementationFactory.parseDescriptor(ImplementationFactory.java:77) at org.apache.axiom.locator.DefaultOMMetaFactoryLocator.<init>(DefaultOMMetaFactoryLocator.java:66) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.axiom.om.OMAbstractFactory.<clinit>(OMAbstractFactory.java:95) ... 231 more Please help me.. Thanks Esh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a conflict for DocumentBuilderFactory. Please see http://stackoverflow.com/questions/19992400/classcastexception-org-apache-xerces-jaxp-documentbuilderfactoryimpl-cannot-be
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could need to add exclusions to some dependencies. See the first Joseph's answwer: https://answers.atlassian.com/questions/104121/im-blocked-help-cannot-be-cast-to-javax.xml.parsers.saxparserfactory
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Volodymyr, No luck... If i include the xml-apis:jar am getting above stack trace. If i exclude the xml-apis:jar am getting following stack trace. 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(Unknown Source) ... 240 more any help? Thanks Esh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You do not need to exclude xml-apis dependency. you need to resolve the conflict for the DocumentBuilderFactory by adding <exclusions> <exclusion> to a dependency where you get the conflict.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Volodymyr, My problem is clearly explained here. https://answers.atlassian.com/questions/126159/axis2-ws-client-in-jira-plugin-to-consume-webservice-maven-dependency-problems Jira Plugin is working before I integrate Jira Plugin with Axis2. After adding Axis2 stubs, it stopped working and throws same error in the above link. It seems Jira not able to call external webservice through Axis2, Is it true? Do you know any other technology to call external webservice when I edit a Issue in JIRA? Thanks Esh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.