Skip to main content



      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 03:49 Go to next message
Eclipse UserFriend
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 03:53 Go to previous messageGo to next message
Eclipse UserFriend
did you Change the generated xtend code e.g. serverlaucher? how to you launch the server?

[Updated on: Mon, 01 February 2016 03:59] by Moderator

Re: Changing the port for web DSL module [message #1721970 is a reply to message #1721874] Mon, 01 February 2016 21:48 Go to previous messageGo to next message
Eclipse UserFriend
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] Mon, 01 February 2016 23:35 Go to previous messageGo to next message
Eclipse UserFriend
I cannot reproduce that with mvn on command line
Re: Changing the port for web DSL module [message #1721978 is a reply to message #1721974] Mon, 01 February 2016 23:54 Go to previous messageGo to next message
Eclipse UserFriend
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>


icon12.gif  Re: Changing the port for web DSL module [message #1721982 is a reply to message #1721978] Tue, 02 February 2016 01:27 Go to previous messageGo to next message
Eclipse UserFriend
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 149 times)
Re: Changing the port for web DSL module [message #1721983 is a reply to message #1721982] Tue, 02 February 2016 01:37 Go to previous messageGo to next message
Eclipse UserFriend
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)
Re: Changing the port for web DSL module [message #1721988 is a reply to message #1721983] Tue, 02 February 2016 01:57 Go to previous messageGo to next message
Eclipse UserFriend
Ok Thank You
Re: Changing the port for web DSL module [message #1722010 is a reply to message #1721988] Tue, 02 February 2016 04:01 Go to previous messageGo to next message
Eclipse UserFriend
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 04:06] by Moderator

Re: Changing the port for web DSL module [message #1722016 is a reply to message #1722010] Tue, 02 February 2016 04:14 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Changing the port for web DSL module [message #1722023 is a reply to message #1722016] Tue, 02 February 2016 05:16 Go to previous messageGo to next message
Eclipse UserFriend
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 05:32 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Regarding Category containing multi word
Next Topic:Deafult value for enums
Goto Forum:
  


Current Time: Mon May 12 20:49:19 EDT 2025

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

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

Back to the top