Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext 2.25.0 + jdk 11.0.11(error when trying to run jetty)
xtext 2.25.0 + jdk 11.0.11 [message #1842316] Wed, 16 June 2021 12:42 Go to next message
z232 I is currently offline z232 IFriend
Messages: 48
Registered: February 2016
Member
Hi,

i have created a simple hello world project in xtext with web instegration.
The xtext i am using is the latest one (2.25.0).
Version: 2021-03 (4.19.0)
Build id: 20210312-0638
I also installed the prerequired jdk 11.0.11 in my system.
I generate the artifacts for the provided "Hello" dsl sucessfuly.
The problem is that when i run the jetty in eclipse, i get the following error :

[main] INFO org.eclipse.jetty.util.log - Logging initialized @229ms to org.eclipse.jetty.util.log.Slf4jLog
[main] INFO org.eclipse.jetty.server.Server - jetty-9.4.34.v20201102; built: 2020-11-02T14:15:39.302Z; git: e46af88704a893fc12cb0e3bf46e2c7b48a009e7; jvm 11.0.11+9-LTS-194
[main] WARN org.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.j.w.WebAppContext@130d63be{/,file:///C:/Users/PowerLab/Desktop/eclipse11/workspace/Test/test.parent/test.web/WebRoot/,STOPPED}
java.nio.file.NoSuchFileException: C:\test.web\bin\default
	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
	at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:53)
	at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:38)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:198)
	at java.base/java.nio.file.Files.readAttributes(Files.java:1764)
	at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1231)
	at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:732)
	at java.base/java.util.zip.ZipFile$CleanableResource$FinalizableResource.<init>(ZipFile.java:848)
	at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:837)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:247)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:177)
	at java.base/java.util.jar.JarFile.<init>(JarFile.java:348)
	at java.base/sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:103)
	at java.base/sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:72)
	at java.base/sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:176)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:131)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:92)
	at org.eclipse.jetty.webapp.MetaInfConfiguration.getTlds(MetaInfConfiguration.java:445)
	at org.eclipse.jetty.webapp.MetaInfConfiguration.scanForTlds(MetaInfConfiguration.java:361)
	at org.eclipse.jetty.webapp.MetaInfConfiguration.scanJars(MetaInfConfiguration.java:172)
	at org.eclipse.jetty.webapp.MetaInfConfiguration.preConfigure(MetaInfConfiguration.java:101)
	at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:488)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:523)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.server.Server.start(Server.java:423)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.server.Server.doStart(Server.java:387)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at test.web.ServerLauncher.main(ServerLauncher.java:39)
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@5204062d{HTTP/1.1, (http/1.1)}{localhost:8080}
[main] INFO org.eclipse.jetty.server.Server - Started @592ms
[main] INFO test.web.ServerLauncher - Server started http://localhost:8080/...
[Thread-8] INFO test.web.ServerLauncher - Press enter to stop the server...



Is there any fix on this?
Thanks
Re: xtext 2.25.0 + jdk 11.0.11 [message #1842317 is a reply to message #1842316] Wed, 16 June 2021 12:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
does C:\test.web\bin\default exist? or is it just C:\test.web\bin\

can you debug this and check the path you see there? maybe it needs some windows \ vs \\ treatment.
can you also check where this path is coming from?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext 2.25.0 + jdk 11.0.11 [message #1842320 is a reply to message #1842317] Wed, 16 June 2021 12:53 Go to previous messageGo to next message
z232 I is currently offline z232 IFriend
Messages: 48
Registered: February 2016
Member
Actually the path C:\test.web\bin\default doesn't exist .
The path that exist is this one C:\Users\PowerLab\Desktop\eclipse11\workspace\Test\test.parent\test.web\bin
The workspace i have created is inside the eclipse folder.
Is this the reason why? I will try to create a project outside the eclipse folder and be back for the outcome.

Re: xtext 2.25.0 + jdk 11.0.11 [message #1842321 is a reply to message #1842320] Wed, 16 June 2021 12:59 Go to previous messageGo to next message
z232 I is currently offline z232 IFriend
Messages: 48
Registered: February 2016
Member
The newWorkspace and the eclipse folder are placed on Desktop
I get the same error.

[main] INFO org.eclipse.jetty.util.log - Logging initialized @229ms to org.eclipse.jetty.util.log.Slf4jLog
[main] INFO org.eclipse.jetty.server.Server - jetty-9.4.34.v20201102; built: 2020-11-02T14:15:39.302Z; git: e46af88704a893fc12cb0e3bf46e2c7b48a009e7; jvm 11.0.11+9-LTS-194
[main] WARN org.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.j.w.WebAppContext@130d63be{/,file:///C:/Users/PowerLab/Desktop/newWorkspaceEclipse/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.web/WebRoot/,STOPPED}
java.nio.file.NoSuchFileException: C:\org.xtext.example.mydsl.web\bin\default
	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
	at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:53)
	at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:38)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:198)
	at java.base/java.nio.file.Files.readAttributes(Files.java:1764)
	at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1231)
	at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:732)
	at java.base/java.util.zip.ZipFile$CleanableResource$FinalizableResource.<init>(ZipFile.java:848)
	at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:837)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:247)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:177)
	at java.base/java.util.jar.JarFile.<init>(JarFile.java:348)
	at java.base/sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:103)
	at java.base/sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:72)
	at java.base/sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:176)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:131)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:92)
	at org.eclipse.jetty.webapp.MetaInfConfiguration.getTlds(MetaInfConfiguration.java:445)
	at org.eclipse.jetty.webapp.MetaInfConfiguration.scanForTlds(MetaInfConfiguration.java:361)
	at org.eclipse.jetty.webapp.MetaInfConfiguration.scanJars(MetaInfConfiguration.java:172)
	at org.eclipse.jetty.webapp.MetaInfConfiguration.preConfigure(MetaInfConfiguration.java:101)
	at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:488)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:523)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.server.Server.start(Server.java:423)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.server.Server.doStart(Server.java:387)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.xtext.example.mydsl.web.ServerLauncher.main(ServerLauncher.java:39)
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@5204062d{HTTP/1.1, (http/1.1)}{localhost:8080}
[main] INFO org.eclipse.jetty.server.Server - Started @599ms
[main] INFO org.xtext.example.mydsl.web.ServerLauncher - Server started http://localhost:8080/...
[Thread-8] INFO org.xtext.example.mydsl.web.ServerLauncher - Press enter to stop the server...



Out of thoughts.

[Updated on: Wed, 16 June 2021 13:00]

Report message to a moderator

Re: xtext 2.25.0 + jdk 11.0.11 [message #1842329 is a reply to message #1842321] Wed, 16 June 2021 14:34 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
do you have buildship installed? how did you import the gradle projects? are there any errors when you do a rightclick-> gradle-> refresh gradle projects in console?
how does your .classpath look like?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext 2.25.0 + jdk 11.0.11 [message #1842333 is a reply to message #1842329] Wed, 16 June 2021 15:35 Go to previous messageGo to next message
z232 I is currently offline z232 IFriend
Messages: 48
Registered: February 2016
Member
Hi Cristian,

No i don't use a build Ship .
I don't know how, but the error doesn't appear again after reinstalling the eclipse project. Maybe something went wrong during the previous installation.
If the error arises again (hope not), i 'l inform you.

Thanks Cristian !!!
Re: xtext 2.25.0 + jdk 11.0.11 [message #1842339 is a reply to message #1842333] Wed, 16 June 2021 16:53 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

It appears that Jetty is causing a lot of trouble at present and forced a respin of Eclipse 2021-06 to accommodate 10.0.5. Your usage of 9.4.36 looks dangerously old wrt 2021-03.

Regards

Ed Willink
Previous Topic:What is the use of completeRuleCall
Next Topic:XExpressions and Statements
Goto Forum:
  


Current Time: Wed Apr 24 16:25:49 GMT 2024

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

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

Back to the top