Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ant-deploy not loading xercesImpl library correctly #13

Open
brendon-stephens opened this issue Sep 7, 2019 · 1 comment
Open

ant-deploy not loading xercesImpl library correctly #13

brendon-stephens opened this issue Sep 7, 2019 · 1 comment

Comments

@brendon-stephens
Copy link
Collaborator

brendon-stephens commented Sep 7, 2019

The ant-deploy task references the xercesImpl library for use in the DPDirectTask class.

	<path id="dpdirect.class.path">
		<pathelement location="${dpdirect.dir}/dpdirect-1.0.5.jar"/>
		<pathelement location="${dpdirect.dir}/lib/xercesImpl.jar"/>
		<pathelement location="${dpdirect.dir}/lib/log4j.jar"/>
		<pathelement location="${dpdirect.dir}/lib/xml-apis.jar"/>
	</path>

When running the deploy.bat file - I get a class not found error:

[dpDeploy] 2019-09-07 20:37:45,065 ERROR org.dpdirect.dpmgmt.DPDirectBase - org.apache.xerces.dom.DOMXSImplementationSourceImpl [dpDeploy] java.lang.ClassNotFoundException: org.apache.xerces.dom.DOMXSImplementationSourceImpl [dpDeploy] at java.net.URLClassLoader.findClass(URLClassLoader.java:381) [dpDeploy] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [dpDeploy] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [dpDeploy] at org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance(DOMImplementationRegistry.java:182) [dpDeploy] at org.dpdirect.schema.SchemaLoader.<init>(SchemaLoader.java:139) ...

It appears that the library is not correctly loading into the class path.

I am able to fix the problem by manually copying the xercesImpl.jar file into my %ANT_HOME%/lib folder.

Any ideas?

@goodwillta
Copy link
Collaborator

goodwillta commented Nov 5, 2020

Note: There is currently an ant-task xerces issue running under any ant version above 1.8.0.
Until the issue is resolved, Please copy dpdirect/lib/xercesImpl.jar into your ant-[version]/lib folder.
Or, alternatively, run the ant-task with the ant 1.8.0 distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants