Exception while creating new spring boot project in STS - spring-boot

I have downloaded STS 3.9.0 and Java 8 is installed on my machine.When I open STS and try to create new "spring starter project I get following error".
after researching I found that we can resolve this by changing url to "https://start.spring.io" this,but after doing that I get following error.

This looks like connection or proxy issue.
Please check your connection or firewall settings which is used by STS.
And as a second option, you can use https://start.spring.io/ for generating project and can import in your IDE.

Related

can you help me fix my STS? as it is not working

I am new to STS and trying to run my first project in it. But it is not showing me run on server option. I have tried "clean install" but still, it is not working. When I checked targeted runtimes it is not showing any server in it. Kindly help me to resolve this issue.
My recommendations for getting started with the Spring Tools 4 for Eclipse are:
start the IDE with an empty workspace
create a new Spring Boot project using the wizard "Import Spring Getting Started Content" to import some getting started guides, for example the Rest Service example
if you decide to create an empty new Spring project, use the wizard "Spring Starter Project" - it is the direct integration for https://start.spring.io - and go from there
All those options get you started with a Spring Boot project which doesn't need a separate server to run on. Spring Boot comes with am embedded server component, so you can just start the Spring Boot application as a regular Java app. No need to install a local server or use the "Run on Server" option in the IDE.

Unable to create a spring starter project in STS

I am trying to create a spring starter project in STS. I am selecting the gradle distribution and the Spring web dependency. When I click on finish I am getting the following error message. Error message
Don't forget to configure your proxy in your IDE.
Please look at this tutorial
Looks like a connection issue from your end caused due probably due to unstable network. In any case you can always add dependencies and download the project from https://start.spring.io

Why cannot new Spring Boot Starter Project with in STS by “http(s)://start.spring.io” (error: Time out )?

Please forgive me if I missed any common sense. I am new to Spring Boot & Maven, using Spring Tool Suite (version 3.9.3).RELEASE with Maven (3.2.5) and Java (version 1.8.0_201) for work. I use company proxy and network as well.
I tried to new a Spring Maven project using New Spring Starter Project. I tried to use urls http://start.spring.io and https://start.spring.io, but both failed with error "SocketTimeoutException: connect timed out" and No content available.
Who can tell me what's the reason and how to solve? I noticed potential answers include "proxy issue", network connection issue, company firewall issue. But after I configured proxy with company proxy in settings.xml, the error is still there.
BTW, for who are looking for substitute solutions, I made it by choosing "New Spring Legacy Project" using "Simple Spring Maven".
You may also try Spring Initializr.
But Spring Initializr does not work for me neither.
You need to configure your network settings of STS.
You can do that by navigation to Window -> Preferences -> General -> Network Connections
and choose 'Active Provider' according to your use case - native worked for me.

SocketTimeoutException: New Spring Starter Project

I have just started with Spring development, but i faced with an error when i tried to create a New Spring Starter Project; this error is about a time out connection, i am under a proxy so i established it in the STS but it did not work. I have tried to create this kind of project in STS and eclipse setting the same proxy configuration.
Any one of you know another solution?
Thank you.
The thing which solved my problem was the next.
I only removed the "s" from "https", I could sound stupid and weird but I worked.
https://start.spring.io <<<<----- It works for me.

Netbeans 8.2. Maven webapplication won't run on Tomcat but will on Glasfish server

I am developing a simple restful server and want to deploy it on a Tomcat server. When I deploy the project it won't run and gives me the message: http 404, The requested resource is not available.
The project is a default, newly created Maven project and when I select Glasfish it runs fine. Can anyone give help me to find out what I am doing wrong?
I found the problem myself. For anyone struggling. Java Jax-RS doesn't run default on Tomcat. You need Tomcat EE or add EE to Tomcat.

Resources