Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Changing the port for web DSL module
Changing the port for web DSL module [message #1721873] Mon, 01 February 2016 08:49 Go to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
I am trying to change the port from default port to 8090 .

I added a maven plugin like

<configuration>
<httpConnector>
<!--host>localhost</host-->
<port>8090</port>
</httpConnector>
</configuration>


I am able to launch the editor but, I have observed that the xtext services(content assist) responses with 404 . I am trying to address this issue.

Is there a configuration for xtext services that restricts it to 8080.

Re: Changing the port for web DSL module [message #1721874 is a reply to message #1721873] Mon, 01 February 2016 08:53 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14068
Registered: July 2009
Senior Member
did you Change the generated xtend code e.g. serverlaucher? how to you launch the server?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Mon, 01 February 2016 08:59]

Report message to a moderator

Re: Changing the port for web DSL module [message #1721970 is a reply to message #1721874] Tue, 02 February 2016 02:48 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
Yes I changed server launcher. I ran using intellij maven plugin to run the project. It still takes 8080
Re: Changing the port for web DSL module [message #1721974 is a reply to message #1721970] Tue, 02 February 2016 04:35 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14068
Registered: July 2009
Senior Member
I cannot reproduce that with mvn on command line

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Changing the port for web DSL module [message #1721978 is a reply to message #1721974] Tue, 02 February 2016 04:54 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14068
Registered: July 2009
Senior Member
p.s. are you sure you reconfigured maven right?

			<plugin>
				<groupId>org.eclipse.jetty</groupId>
				<artifactId>jetty-maven-plugin</artifactId>
				<version>9.2.13.v20150730</version>
				<configuration>
					<webAppSourceDirectory>src/main/webapp</webAppSourceDirectory>
<!-- start edit -->
					<httpConnector>
					<!--host>localhost</host-->
					<port>8090</port>
					</httpConnector>
<!-- end edit -->
				</configuration>
			</plugin>




Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
icon12.gif  Re: Changing the port for web DSL module [message #1721982 is a reply to message #1721978] Tue, 02 February 2016 06:27 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
Yes . I am sure I am configuring it right.

I am running using jetty plugin as shown in image
  • Attachment: image.png
    (Size: 67.23KB, Downloaded 93 times)
Re: Changing the port for web DSL module [message #1721983 is a reply to message #1721982] Tue, 02 February 2016 06:37 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14068
Registered: July 2009
Senior Member
then i have no idea. are you sure you killed the old run and recalled it
(i dont know how the maven Integration nin intellij behaves in this respect)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Changing the port for web DSL module [message #1721988 is a reply to message #1721983] Tue, 02 February 2016 06:57 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
Ok Thank You
Re: Changing the port for web DSL module [message #1722010 is a reply to message #1721988] Tue, 02 February 2016 09:01 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
I have also tried running using jetty application server. I see that xtext-services does not respond to the changed port number.

I see the editor but xtext services does not respond.
http://localhost:8100/xtext-service/assist?resource=161dfa7f.eindsl&caretOffset=0&requiredStateId=-80000000

It says : The requested resource not found.

Everything seems to be alright when I turn back to 8080.

[Updated on: Tue, 02 February 2016 09:06]

Report message to a moderator

Re: Changing the port for web DSL module [message #1722016 is a reply to message #1722010] Tue, 02 February 2016 09:14 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14068
Registered: July 2009
Senior Member
no
if you get that error it is running on that port.
what is says: im my session i have never seen the file 161dfa7f.eindsl
this is why i asked you to do the callings from a javascript in the same page as the editor.


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Changing the port for web DSL module [message #1722023 is a reply to message #1722016] Tue, 02 February 2016 10:16 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
The callings is from javascript file . This is when I go to the editor . I see this reponse in network tab (chrome inspect) when I start to type.
Re: Changing the port for web DSL module [message #1722025 is a reply to message #1722023] Tue, 02 February 2016 10:32 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14068
Registered: July 2009
Senior Member
please debug the Server. you will see it was called.
when the Server never got a file from the Client it will not know it.


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Regarding Category containing multi word
Next Topic:Deafult value for enums
Goto Forum:
  


Current Time: Tue Sep 28 21:00:17 GMT 2021

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

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

Back to the top