пожалуйста, помогите мне
1. Моя версия Java соответствует
версии Java "17.0.12" 16 июля 2024 г. LTS
Среда выполнения Java(TM) SE (сборка 17.0.12+8-LTS-286)
Java 64-разрядная серверная виртуальная машина HotSpot(TM) (сборка 17.0.12+8-LTS-286, смешанный режим, общий доступ)
2. Версия mvn моего проекта следующая
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Домашняя страница Maven: C:\apache-maven-3.9.9
Версия Java: 17.0.12, поставщик: Oracle Corporation , время выполнения: C:\Program Files\Java\jdk-17
Локальный стандарт по умолчанию: en_US, кодировка платформы: Cp1252
Имя ОС: «windows 10», версия: «10.0», Arch: «amd64», семейство: «windows»3. Моя версия Spring Tool Suite 4 следующая
Версия: 4.26.0.RELEASE
4. My Project is Spring startup Project with maven and project Tree is:
CTI_Seal [boot]
CtiSealApplication.java
public static void main(String[] args) {
SpringApplication app = new
SpringApplication(CtiSealApplication.class);
app.setDefaultProperties(Collections.singletonMap("server.port", "8989"));
app.run(args);
}
}
SealController.java
@CrossOrigin(origins = "http://localhost:8080")
@RestController
@RequestMapping("/")
public class SealController {
// Read from the file
@PostMapping(path = "ajaxdb/login.txt")
public String login() {
return readFile("ajaxdb/login.txt"); //here reading the
file content
}
}
pom.xml
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.4.0
cti.mis
CTI_Seal
2.0
CTI_Seal
Seal Offline
17
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-web-services
org.springframework.boot
spring-boot-starter-test
test
src/main/resources
**/*
org.springframework.boot
spring-boot-maven-plugin
**STEP 1:**
**Project cleaning process using Spring Tool suite4**
**Project - >Run As-> Maven Clean**
**Select Project in STS toolbar clean the project**
Project->Run As-> Java Application then I got the output string in console
:: Spring Boot :: (v3.4.0)
2024-12-12T15:29:13.636+05:30 INFO 14376 --- [CTI_Seal] [main]
cti.mis.api.CtiSealApplication : Starting CtiSealApplication using Java 17.0.12
with PID 14376 (D:\SpringBootApplications\CTI_Seal\target\classes started by Ramanan in
D:\SpringBootApplications\CTI_Seal)
2024-12-12T15:29:13.643+05:30 INFO 14376 --- [CTI_Seal] [main]
cti.mis.api.CtiSealApplication : No active profile set, falling back to 1 default
profile: "default"
2024-12-12T15:29:15.186+05:30 WARN 14376 --- [CTI_Seal] [main]
trationDelegate$BeanPostProcessorChecker : Bean
'org.springframework.ws.config.annotation.DelegatingWsConfiguration' of type
[org.springframework.ws.config.annotation.DelegatingWsConfiguration$$SpringCGLIB$$0] is not
eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-
proxying). The currently created BeanPostProcessor [annotationActionEndpointMapping] is
declared through a non-static factory method on that class; consider declaring it as static
instead.
2024-12-12T15:29:15.466+05:30 INFO 14376 --- [CTI_Seal] [main]
.w.s.a.s.AnnotationActionEndpointMapping : Supporting [WS-Addressing August 2004, WS-
Addressing 1.0]
2024-12-12T15:29:16.198+05:30 INFO 14376 --- [CTI_Seal] [main]
o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8989 (http)
2024-12-12T15:29:16.238+05:30 INFO 14376 --- [CTI_Seal] [main]
o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-12-12T15:29:16.239+05:30 INFO 14376 --- [CTI_Seal] [main]
o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.33]
2024-12-12T15:29:16.412+05:30 INFO 14376 --- [CTI_Seal] [main] o.a.c.c.C.[Tomcat].
[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-12-12T15:29:16.416+05:30 INFO 14376 --- [CTI_Seal] [main]
w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization
completed in 2666 ms
**2024-12-12T15:29:16.668+05:30 INFO 14376 --- [CTI_Seal] [main]
o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource
[static/index.html]**
2024-12-12T15:29:17.272+05:30 INFO 14376 --- [CTI_Seal] [main]
o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8989 (http) with context
path '/'
2024-12-12T15:29:17.295+05:30 INFO 14376 --- [CTI_Seal] [main]
cti.mis.api.CtiSealApplication : Started CtiSealApplication in 4.597 seconds
(process running for 5.412)
**Then the application (web browser address bar typed the String “localhost:8989”) is working
fine.**
**STEP 2**:
Project->export -> Java -> Runnable jar file choosing the “Extract the required libraries
into generated jar” then I got a .jar file (ex. Seal.jar),
when running the seal.jar file using the command java -jar seal.jar the I got result in
console window the following
:: Spring Boot :: (v3.4.0)
2024-12-12T17:14:29.780+05:30 INFO 4996 --- [main] cti.mis.api.CtiSealApplication
: Starting CtiSealApplication using Java 17.0.12 with PID 4996 (D:\jar\sealWeb\seal.jar
started by Ramanan in D:\jar\sealWeb)
2024-12-12T17:14:29.784+05:30 INFO 4996 --- [main] cti.mis.api.CtiSealApplication
: No active profile set, falling back to 1 default profile: "default"
2024-12-12T17:14:30.866+05:30 WARN 4996 --- [main] trationDelegate$BeanPostProcessorChecker
: Bean 'org.springframework.ws.config.annotation.DelegatingWsConfiguration' of type
[org.springframework.ws.config.annotation.DelegatingWsConfiguration$$SpringCGLIB$$0] is not
eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-
proxying). The currently created BeanPostProcessor [annotationActionEndpointMapping] is
declared through a non-static factory method on that class; consider declaring it as static
instead.
2024-12-12T17:14:30.916+05:30 INFO 4996 --- [main] .w.s.a.s.AnnotationActionEndpointMapping
: Supporting [WS-Addressing August 2004, WS-Addressing 1.0]
2024-12-12T17:14:31.376+05:30 INFO 4996 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer
: Tomcat initialized with port 8989 (http)
2024-12-12T17:14:31.397+05:30 INFO 4996 --- [main] o.apache.catalina.core.StandardService
: Starting service [Tomcat]
2024-12-12T17:14:31.398+05:30 INFO 4996 --- [main] o.apache.catalina.core.StandardEngine
: Starting Servlet engine: [Apache Tomcat/10.1.33]
2024-12-12T17:14:31.555+05:30 INFO 4996 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/]
: Initializing Spring embedded WebApplicationContext
2024-12-12T17:14:31.559+05:30 INFO 4996 --- [main] w.s.c.ServletWebServerApplicationContext
: Root WebApplicationContext: initialization completed in 1708 ms
2024-12-12T17:14:32.357+05:30 INFO 4996 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer
: Tomcat started on port 8989 (http) with context path '/'
2024-12-12T17:14:32.367+05:30 INFO 4996 --- [main] cti.mis.api.CtiSealApplication
: Started CtiSealApplication in 3.036 seconds (process running for 3.356)
**Note: The following line is not available when seal.jar executing.**
2024-12-12T15:29:16.668+05:30 INFO 14376 --- [CTI_Seal] [main]
o.s.b.a.w.s.WelcomePageHandlerMapping: Adding welcome page: class path resource
[static/index.html]
Then the application (web browser address bar typed the String “localhost:8989”) then I got
the following
**Whitelabel Error Page**
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Dec 12 17:15:37 IST 2024
There was an unexpected error (type=Not Found, status=404).**
**Let me know how to correct this??**
Подробнее здесь: https://stackoverflow.com/questions/792 ... g-tool-sui
Запускаемый файл jar не запускает ошибку White Label, как ее решить? набор пружинных инструментов ⇐ JAVA
Программисты JAVA общаются здесь
1734010311
Anonymous
пожалуйста, помогите мне
1. Моя версия Java соответствует
версии Java "17.0.12" 16 июля 2024 г. LTS
Среда выполнения Java(TM) SE (сборка 17.0.12+8-LTS-286)
Java 64-разрядная серверная виртуальная машина HotSpot(TM) (сборка 17.0.12+8-LTS-286, смешанный режим, общий доступ)
2. Версия mvn моего проекта следующая
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Домашняя страница Maven: C:\apache-maven-3.9.9
Версия Java: 17.0.12, поставщик: Oracle Corporation , время выполнения: C:\Program Files\Java\jdk-17
Локальный стандарт по умолчанию: en_US, кодировка платформы: Cp1252
Имя ОС: «windows 10», версия: «10.0», Arch: «amd64», семейство: «windows»3. Моя версия Spring Tool Suite 4 следующая
Версия: 4.26.0.RELEASE
4. My Project is Spring startup Project with maven and project Tree is:
CTI_Seal [boot]
CtiSealApplication.java
public static void main(String[] args) {
SpringApplication app = new
SpringApplication(CtiSealApplication.class);
app.setDefaultProperties(Collections.singletonMap("server.port", "8989"));
app.run(args);
}
}
SealController.java
@CrossOrigin(origins = "http://localhost:8080")
@RestController
@RequestMapping("/")
public class SealController {
// Read from the file
@PostMapping(path = "ajaxdb/login.txt")
public String login() {
return readFile("ajaxdb/login.txt"); //here reading the
file content
}
}
pom.xml
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.4.0
cti.mis
CTI_Seal
2.0
CTI_Seal
Seal Offline
17
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-web-services
org.springframework.boot
spring-boot-starter-test
test
src/main/resources
**/*
org.springframework.boot
spring-boot-maven-plugin
**STEP 1:**
**Project cleaning process using Spring Tool suite4**
**Project - >Run As-> Maven Clean**
**Select Project in STS toolbar clean the project**
Project->Run As-> Java Application then I got the output string in console
:: Spring Boot :: (v3.4.0)
2024-12-12T15:29:13.636+05:30 INFO 14376 --- [CTI_Seal] [main]
cti.mis.api.CtiSealApplication : Starting CtiSealApplication using Java 17.0.12
with PID 14376 (D:\SpringBootApplications\CTI_Seal\target\classes started by Ramanan in
D:\SpringBootApplications\CTI_Seal)
2024-12-12T15:29:13.643+05:30 INFO 14376 --- [CTI_Seal] [main]
cti.mis.api.CtiSealApplication : No active profile set, falling back to 1 default
profile: "default"
2024-12-12T15:29:15.186+05:30 WARN 14376 --- [CTI_Seal] [main]
trationDelegate$BeanPostProcessorChecker : Bean
'org.springframework.ws.config.annotation.DelegatingWsConfiguration' of type
[org.springframework.ws.config.annotation.DelegatingWsConfiguration$$SpringCGLIB$$0] is not
eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-
proxying). The currently created BeanPostProcessor [annotationActionEndpointMapping] is
declared through a non-static factory method on that class; consider declaring it as static
instead.
2024-12-12T15:29:15.466+05:30 INFO 14376 --- [CTI_Seal] [main]
.w.s.a.s.AnnotationActionEndpointMapping : Supporting [WS-Addressing August 2004, WS-
Addressing 1.0]
2024-12-12T15:29:16.198+05:30 INFO 14376 --- [CTI_Seal] [main]
o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8989 (http)
2024-12-12T15:29:16.238+05:30 INFO 14376 --- [CTI_Seal] [main]
o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-12-12T15:29:16.239+05:30 INFO 14376 --- [CTI_Seal] [main]
o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.33]
2024-12-12T15:29:16.412+05:30 INFO 14376 --- [CTI_Seal] [main] o.a.c.c.C.[Tomcat].
[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-12-12T15:29:16.416+05:30 INFO 14376 --- [CTI_Seal] [main]
w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization
completed in 2666 ms
**2024-12-12T15:29:16.668+05:30 INFO 14376 --- [CTI_Seal] [main]
o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource
[static/index.html]**
2024-12-12T15:29:17.272+05:30 INFO 14376 --- [CTI_Seal] [main]
o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8989 (http) with context
path '/'
2024-12-12T15:29:17.295+05:30 INFO 14376 --- [CTI_Seal] [main]
cti.mis.api.CtiSealApplication : Started CtiSealApplication in 4.597 seconds
(process running for 5.412)
**Then the application (web browser address bar typed the String “localhost:8989”) is working
fine.**
**STEP 2**:
Project->export -> Java -> Runnable jar file choosing the “Extract the required libraries
into generated jar” then I got a .jar file (ex. Seal.jar),
when running the seal.jar file using the command java -jar seal.jar the I got result in
console window the following
:: Spring Boot :: (v3.4.0)
2024-12-12T17:14:29.780+05:30 INFO 4996 --- [main] cti.mis.api.CtiSealApplication
: Starting CtiSealApplication using Java 17.0.12 with PID 4996 (D:\jar\sealWeb\seal.jar
started by Ramanan in D:\jar\sealWeb)
2024-12-12T17:14:29.784+05:30 INFO 4996 --- [main] cti.mis.api.CtiSealApplication
: No active profile set, falling back to 1 default profile: "default"
2024-12-12T17:14:30.866+05:30 WARN 4996 --- [main] trationDelegate$BeanPostProcessorChecker
: Bean 'org.springframework.ws.config.annotation.DelegatingWsConfiguration' of type
[org.springframework.ws.config.annotation.DelegatingWsConfiguration$$SpringCGLIB$$0] is not
eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-
proxying). The currently created BeanPostProcessor [annotationActionEndpointMapping] is
declared through a non-static factory method on that class; consider declaring it as static
instead.
2024-12-12T17:14:30.916+05:30 INFO 4996 --- [main] .w.s.a.s.AnnotationActionEndpointMapping
: Supporting [WS-Addressing August 2004, WS-Addressing 1.0]
2024-12-12T17:14:31.376+05:30 INFO 4996 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer
: Tomcat initialized with port 8989 (http)
2024-12-12T17:14:31.397+05:30 INFO 4996 --- [main] o.apache.catalina.core.StandardService
: Starting service [Tomcat]
2024-12-12T17:14:31.398+05:30 INFO 4996 --- [main] o.apache.catalina.core.StandardEngine
: Starting Servlet engine: [Apache Tomcat/10.1.33]
2024-12-12T17:14:31.555+05:30 INFO 4996 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/]
: Initializing Spring embedded WebApplicationContext
2024-12-12T17:14:31.559+05:30 INFO 4996 --- [main] w.s.c.ServletWebServerApplicationContext
: Root WebApplicationContext: initialization completed in 1708 ms
2024-12-12T17:14:32.357+05:30 INFO 4996 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer
: Tomcat started on port 8989 (http) with context path '/'
2024-12-12T17:14:32.367+05:30 INFO 4996 --- [main] cti.mis.api.CtiSealApplication
: Started CtiSealApplication in 3.036 seconds (process running for 3.356)
**Note: The following line is not available when seal.jar executing.**
2024-12-12T15:29:16.668+05:30 INFO 14376 --- [CTI_Seal] [main]
o.s.b.a.w.s.WelcomePageHandlerMapping: Adding welcome page: class path resource
[static/index.html]
Then the application (web browser address bar typed the String “localhost:8989”) then I got
the following
**Whitelabel Error Page**
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Dec 12 17:15:37 IST 2024
There was an unexpected error (type=Not Found, status=404).**
**Let me know how to correct this??**
Подробнее здесь: [url]https://stackoverflow.com/questions/79275150/runnable-jar-file-not-running-white-label-error-how-to-solve-it-spring-tool-sui[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия