Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Which Xtext JARs can be runtime dependencies for webapp?(Where to find documentation about?)
icon4.gif  Which Xtext JARs can be runtime dependencies for webapp? [message #1719610] Sat, 09 January 2016 21:57 Go to next message
Lukasz Jader is currently offline Lukasz JaderFriend
Messages: 2
Registered: January 2016
Junior Member
Hi,
I got a task to compile and produce a WAR file from webapp,
which uses Xtext as a framework for declaring domain model classes - this needs to be done by an Ant script.

Web framework is Spring MVC but domain classes and business logic is written in Xtend/Xtext.
I've succesfully created Ant script which generates sources from .xtend files, compiles it all and packages files into a WAR.

But when I deploy WAR file on Tomcat and start the server, then the exception is thrown:
Quote:
java.lang.ClassNotFoundException: org.eclipse.xtext.xbase.lib.Procedures$Procedure1
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1856)
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1705)


With blind luck I found out, that adding org.eclipse.xtext.xbase.lib-2.8.4.jar to WEB-INF/lib fixes the exception, because we use ".forEach" in our .xtend files.

My questions:
1. Which Xtext/Xtend JARs could be runtime dependencies? Maybe those with ".lib" in theirs name?
2. Where is documentation for Xtext/Xtend which could describe those JARs in more detail and where I could actually found which JARs coulb be needed at runtime?

Im posting this question as a last resort, because I can't find any documentation or project which describes the same setup as mine.
Thanks in advance.
Re: Which Xtext JARs can be runtime dependencies for webapp? [message #1719728 is a reply to message #1719610] Mon, 11 January 2016 17:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
You can use the maven dependency plugin to analyze the deps

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Which Xtext JARs can be runtime dependencies for webapp? [message #1724146 is a reply to message #1719610] Sun, 21 February 2016 18:08 Go to previous message
Lukasz Jader is currently offline Lukasz JaderFriend
Messages: 2
Registered: January 2016
Junior Member
After searching for documentation for some time, now in my WAR file I'm basically bundling all JARs that come in "Xtend Library" user library, which are:
- com.google.guava_15.0.0.v201403281430.jar
- org.eclipse.xtext.xbase.lib_2.8.4.v201508050135.jar
- org.eclipse.xtend.lib_2.8.4.v201508050135.jar
- org.eclipse.xtend.lib.macro_2.8.4.v201508050135.jar

I'm posting this so maybe someone else would benefit from this.

If you have any links to documentation which explain relation between dependencies, then let me know.
Previous Topic:migrating to 2.9.x from 2.8.4
Next Topic:Issues with Formatter2 API and xtext 2.9.x
Goto Forum:
  


Current Time: Thu Apr 25 04:58:43 GMT 2024

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

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

Back to the top