Spring Boot nie mogę odpalić Tomcat

0

Cześć, mam problem z odpaleniem Tomcata z konfiguracji Spring Boot. A jak ustawiam ręcznie tomcata to chce login i hasło ( którego nie znam)

  INFO 1971 --- [           main] com.api.AppApplication                   : No active profile set, falling back to default profiles: default
2017-01-18 20:47:49.971  INFO 1971 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@694abbdc: startup date [Wed Jan 18 20:47:49 CET 2017]; root of context hierarchy
2017-01-18 20:47:52.817  INFO 1971 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-01-18 20:47:54.201  INFO 1971 --- [           main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2017-01-18 20:47:54.239  INFO 1971 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [
	name: default
	...]
2017-01-18 20:47:54.460  INFO 1971 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate Core {5.0.11.Final}
2017-01-18 20:47:54.463  INFO 1971 --- [           main] org.hibernate.cfg.Environment            : HHH000206: hibernate.properties not found
2017-01-18 20:47:54.467  INFO 1971 --- [           main] org.hibernate.cfg.Environment            : HHH000021: Bytecode provider name : javassist
2017-01-18 20:47:54.569  INFO 1971 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2017-01-18 20:47:54.827  INFO 1971 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2017-01-18 20:47:55.258  INFO 1971 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000227: Running hbm2ddl schema export
2017-01-18 20:47:55.260  INFO 1971 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000230: Schema export complete
2017-01-18 20:47:55.298  INFO 1971 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2017-01-18 20:47:56.284  INFO 1971 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2017-01-18 20:47:56.307  INFO 1971 --- [           main] com.api.AppApplication                   : Started AppApplication in 8.244 seconds (JVM running for 9.152)
2017-01-18 20:47:56.308  INFO 1971 --- [       Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@694abbdc: startup date [Wed Jan 18 20:47:49 CET 2017]; root of context hierarchy
2017-01-18 20:47:56.310  INFO 1971 --- [       Thread-2] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2017-01-18 20:47:56.310  INFO 1971 --- [       Thread-2] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2017-01-18 20:47:56.311  INFO 1971 --- [       Thread-2] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000227: Running hbm2ddl schema export
2017-01-18 20:47:56.312  INFO 1971 --- [       Thread-2] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000230: Schema export complete

pom

<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>1.4.3.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<java.version>1.8</java.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-jpa</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-jersey</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-security</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web-services</artifactId>
		</dependency>

		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.postgresql</groupId>
			<artifactId>postgresql</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-tomcat</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>
0

Ale gdzie ten problem? Bo w logu wszystko jest ok.

0

W spring boot, tomcat jest automatycznie ustawiamy, nic nie musisz dodawać, żadnych serwerów stawiać ;P

0

No wiem że automatycznie bo zawsze mi działało ale teraz próbuje mi odpalić serwer ale nie robi tego.
2017-01-18 2056.310 INFO 1971 --- [ Thread-2] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown to nie jest błąd?

0

To jest log na poziomie INFO, więc spokojna głowa :)

0

Tylko że jak odpalam ( w InteliJ) to znika mi zielona strzałka dochodzi mi do "Process finished with exit code 0 " chwili znów mi się pojawia. Zresztą na localhost pojawia mi się
Ta witryna jest nieosiągalna

Serwer localhost odrzucił połączenie.
Czy chodziło Ci o http://localhost-8080.com/?
Wyszukaj w Google: localhost 8080

czyli nic..

0

Faktycznie z logu w sumie wynika że aplikacja startuje a następnie po prostu zostaje wyłączona, ale "poprawnie", nie ma tam żadnych błędów. Na pewno sam w kodzie nie robisz niczego głupiego?

0

Takie logi są ale w developerce jak jest podłączony DevTools co automatycznie restartuje aplikacji. MOże masz devtools na scope compile

0

@Shalom: No właśnie nic nie grzebałem. Mało tego próbowałem stworzyć nowy projekt testowy i to samo się dzieje

1 użytkowników online, w tym zalogowanych: 0, gości: 1