Feedback
Did this article resolve your question/issue?

   

Article

"java.lang.NoClassDefFoundError: javax/xml/xquery/XQException" error with DataDirect XQuery in Tomcat

Information

 
Title"java.lang.NoClassDefFoundError: javax/xml/xquery/XQException" error with DataDirect XQuery in Tomcat
URL Namejava-lang-NoClassDefFoundError-javax-xml-xquery-XQException-error-with-DataDirect-XQuery-in-Tomcat
Article Number000135523
EnvironmentProduct: DataDirect XQuery
Version: 5.0
OS: java
Database: Oracle
Application: Tomcat 8.0.32
Question/Problem Description
The below error oocurs with DataDirect XQuery in Tomcat.
Steps to Reproduce
Clarifying Information
Error Messagejava.lang.NoClassDefFoundError: javax/xml/xquery/XQException
at com.ddtek.xquery3.xqj.Util.createUnsupportedJDBCOperation(Util.java:505)
at com.ddtek.xquery3.jdbc.XQueryDatabaseMetaData.getUserName(XQueryDatabaseMetaData.java:575)
at org.apache.tomcat.dbcp.dbcp2.DelegatingConnection.toString(DelegatingConnection.java:117)
at com.ddtek.xquery3.jdbc.XQueryConnection.getXQConnection(XQueryConnection.java:491)
at nl.portinfolink.platform.normalizer.datadirect.DataDirectConverter.getConnection(DataDirectConverter.java:318)
at nl.portinfolink.platform.normalizer.datadirect.DataDirectConverter.performQuery(DataDirectConverter.java:219)
at nl.portinfolink.platform.normalizer.datadirect.DataDirectConverter.performQueryAsString(DataDirectConverter.java:255)
at nl.portinfolink.platform.normalizer.cle.command.DataDirectCommand.execute(DataDirectCommand.java:109)
at nl.portinfolink.platform.normalizer.common.commandchain.LinkedListChain.run(LinkedListChain.java:41)
at nl.portinfolink.platform.normalizer.cle.command.CommandEngine.process(CommandEngine.java:72)
at nl.portinfolink.platform.normalizer.cle.impl.BaseCleProcessor.process(BaseCleProcessor.java:65)
at nl.portinfolink.platform.normalizer.cle.impl.OutgoingCleProcessorImpl.process(OutgoingCleProcessorImpl.java:50)
at nl.portinfolink.platform.normalizer.cle.service.OutgoingClePMDBean.onMessage(OutgoingClePMDBean.java:107)
at org.springframework.jms.listener.adapter.MessageListenerAdapter.onMessage(MessageListenerAdapter.java:214)
at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:721)
at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:681) at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:651 )
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerCo ntainer.java:315)
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerCont ainer.java:253)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageLis tenerContainer.java:1158)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessag eListenerContainer.java:1150)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContai ner.java:1047)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: javax.xml.xquery.XQException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Defect Number
Enhancement Number
Cause
Resolution
Add the xqjapi.jar file in the tomcat/lib folder.
Workaround
Notes
Last Modified Date10/6/2016 8:14 AM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.