Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » eclipselink:session.validate(Exception Description: Several [1] SessionLoaderExceptions were thrown)
eclipselink:session.validate [message #1697204] Tue, 02 June 2015 12:28 Go to next message
Ranjith Kumar is currently offline Ranjith KumarFriend
Messages: 2
Registered: June 2015
Junior Member
Integrating Workbench with Apache Ant for my Application:

I have tried to integrate my eclipselink workebench with ANT for validating the session in Eclipselink while building my application jar.

I have tried different solution which i got while searching in google to get the solution, but i failed to fix the issue.

Below mentioning the issue.

validate.session:
[echo] validate.session - start
[eclipselink:session.validate] An error occurred while validating project:
[eclipselink:session.validate] Exception Description: Several [1] SessionLoaderExceptions were thrown:

BUILD FAILED
C:\MPS2\MPS2_WAS8_ODM_DEV\mps2-build-scripts\Build.xml:521: An error occurred while validating project:
Exception Description: Several [1] SessionLoaderExceptions were thrown:


Can you please help me to know why i am getting this error.
Re: eclipselink:session.validate [message #1697238 is a reply to message #1697204] Tue, 02 June 2015 15:45 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1389
Registered: July 2009
Senior Member
Your logging is truncating the details of the underlying exception. You will have to check your logs for the complete SessionLoaderExceptions that are occuring.
Re: eclipselink:session.validate [message #1697469 is a reply to message #1697238] Thu, 04 June 2015 08:49 Go to previous messageGo to next message
Ranjith Kumar is currently offline Ranjith KumarFriend
Messages: 2
Registered: June 2015
Junior Member
Hi,

Please find the complete trace log.

[eclipselink:session.validate] An error occurred while validating project:
[eclipselink:session.validate] Exception Description: Several [1] SessionLoaderExceptions were thrown:

BUILD FAILED
C:\MPS2\MPS2_WAS8_ODM_DEV\mps2-build-scripts\Build.xml:521: An error occurred while validating project:
Exception Description: Several [1] SessionLoaderExceptions were thrown:
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask.java:81)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.SessionValidateTask.execute(SessionValidateTask.java:63)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.SessionValidateTask.execute(SessionValidateTask.java:47)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
Caused by: An error occurred while validating project:
Exception Description: Several [1] SessionLoaderExceptions were thrown:
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.execute(SessionValidator.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(ProjectTask.java:226)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$100(ProjectTask.java:166)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask.java:77)
... 17 more
Caused by:
Exception Description: Several [1] SessionLoaderExceptions were thrown:
***
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'eclipselink-sessions'.

at org.eclipse.persistence.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:103)
at org.eclipse.persistence.sessions.factories.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:246)
at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:402)
at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:363)
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.login(SessionValidator.java:66)
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.execute(SessionValidator.java:45)
... 24 more
--- Nested Exception ---
An error occurred while validating project:
Exception Description: Several [1] SessionLoaderExceptions were thrown:
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.execute(SessionValidator.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(ProjectTask.java:226)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$100(ProjectTask.java:166)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask.java:77)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.SessionValidateTask.execute(SessionValidateTask.java:63)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.SessionValidateTask.execute(SessionValidateTask.java:47)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
Caused by:
Exception Description: Several [1] SessionLoaderExceptions were thrown:
***
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'eclipselink-sessions'.

at org.eclipse.persistence.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:103)
at org.eclipse.persistence.sessions.factories.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:246)
at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:402)
at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:363)
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.login(SessionValidator.java:66)
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.execute(SessionValidator.java:45)
... 24 more
--- Nested Exception ---
Local Exception Stack:

Exception Description: Several [1] SessionLoaderExceptions were thrown:
***
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'eclipselink-sessions'.

at org.eclipse.persistence.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:103)
at org.eclipse.persistence.sessions.factories.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:246)
at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:402)
at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:363)
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.login(SessionValidator.java:66)
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.execute(SessionValidator.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(ProjectTask.java:226)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$100(ProjectTask.java:166)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask.java:77)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.SessionValidateTask.execute(SessionValidateTask.java:63)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.SessionValidateTask.execute(SessionValidateTask.java:47)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
SessionLoaderExceptions:
***
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'eclipselink-sessions'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.eclipse.persistence.platform.xml.jaxp.JAXPParser.parse(JAXPParser.java:202)
at org.eclipse.persistence.platform.xml.jaxp.JAXPParser.parse(JAXPParser.java:241)
at org.eclipse.persistence.sessions.factories.XMLSessionConfigLoader.loadDocument(XMLSessionConfigLoader.java:369)
at org.eclipse.persistence.sessions.factories.XMLSessionConfigLoader.loadDocument(XMLSessionConfigLoader.java:320)
at org.eclipse.persistence.sessions.factories.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:234)
at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:402)
at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:363)
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.login(SessionValidator.java:66)
at org.eclipse.persistence.tools.workbench.ant.SessionValidator.execute(SessionValidator.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(ProjectTask.java:226)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$100(ProjectTask.java:166)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask.java:77)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.SessionValidateTask.execute(SessionValidateTask.java:63)
at org.eclipse.persistence.tools.workbench.ant.taskdefs.SessionValidateTask.execute(SessionValidateTask.java:47)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)


Thanks,
Ranjith
Re: eclipselink:session.validate [message #1697659 is a reply to message #1697469] Fri, 05 June 2015 18:51 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1389
Registered: July 2009
Senior Member
This is a strange error, and seems related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=312285 where the problem is with the classpath not having all the required components available.
Previous Topic:@cache
Next Topic:Custom Object IN Parameter
Goto Forum:
  


Current Time: Sun Feb 25 20:06:17 GMT 2024

Powered by FUDForum. Page generated in 0.02549 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top