1 / 1 / 2
Регистрация: 06.11.2014
Сообщений: 346
|
||||||
1 | ||||||
не поднимается war26.04.2016, 22:32. Показов 1060. Ответов 3
Метки нет (Все метки)
Здравствуйте. Помогите советом пожалуйста. Есть web-проект, если запускаю с Idea то всё работает, если делаю сборку maven
Вообщем tomCat стартует , но на страницу нужную я не попадаю
0
|
26.04.2016, 22:32 | |
Ответы с готовыми решениями:
3
Развернуть war файл Html добавить в war Не запускается WAR на сервере Maven получение .war |
2398 / 2223 / 565
Регистрация: 28.12.2010
Сообщений: 8,672
|
|
26.04.2016, 22:38 | 2 |
vifelso, вы выложили какой то мало релевантный кусок pom.xml и хотите чтобы кто-то угадал почему у вас деплой не работает? Может лучше логи деплоя показать?
Добавлено через 1 минуту в динозавров играете? Зачем вы собираете для джавы 5?
1
|
1 / 1 / 2
Регистрация: 06.11.2014
Сообщений: 346
|
|
26.04.2016, 22:49 [ТС] | 3 |
исправил на 1.8 . Вот лог сборки на maven.
"C:\Program Files\Java\jdk1.8.0_40\bin\java" "-Dmaven.home=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1\plugins\maven\lib\maven3\bin\m2.conf" -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1\bin" -Dfile.encoding=windows-1251 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=14.1 clean install deploy [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com:security-spr:war:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 155, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building security-spr Maven Webapp 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ security-spr --- [INFO] Deleting C:\Users\Andrei\IdeaProjects\security-spr-0.1\target [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ security-spr --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ security-spr --- [INFO] Compiling 20 source files to C:\Users\Andrei\IdeaProjects\security-spr-0.1\target\classes [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ security-spr --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Users\Andrei\IdeaProjects\security-spr-0.1\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ security-spr --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ security-spr --- [INFO] No tests to run. [INFO] Surefire report directory: C:\Users\Andrei\IdeaProjects\security-spr-0.1\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ security-spr --- [INFO] Packaging webapp [INFO] Assembling webapp [security-spr] in [C:\Users\Andrei\IdeaProjects\security-spr-0.1\target\security-spr-0.1] [INFO] Processing war project [INFO] Copying webapp resources [C:\Users\Andrei\IdeaProjects\security-spr-0.1\src\main\webapp] [INFO] Webapp assembled in [338 msecs] [INFO] Building war: C:\Users\Andrei\IdeaProjects\security-spr-0.1\target\security-spr-0.1.war [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true') [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ security-spr --- [INFO] Installing C:\Users\Andrei\IdeaProjects\security-spr-0.1\target\security-spr-0.1.war to C:\Users\Andrei\.m2\repository\com\security-spr\0.0.1-SNAPSHOT\security-spr-0.0.1-SNAPSHOT.war [INFO] Installing C:\Users\Andrei\IdeaProjects\security-spr-0.1\pom.xml to C:\Users\Andrei\.m2\repository\com\security-spr\0.0.1-SNAPSHOT\security-spr-0.0.1-SNAPSHOT.pom [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ security-spr --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ security-spr --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ security-spr --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Users\Andrei\IdeaProjects\security-spr-0.1\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ security-spr --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ security-spr --- [INFO] No tests to run. [INFO] Skipping execution of surefire because it has already been run for this configuration [INFO] [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ security-spr --- [INFO] Packaging webapp [INFO] Assembling webapp [security-spr] in [C:\Users\Andrei\IdeaProjects\security-spr-0.1\target\security-spr-0.1] [INFO] Processing war project [INFO] Copying webapp resources [C:\Users\Andrei\IdeaProjects\security-spr-0.1\src\main\webapp] [INFO] Webapp assembled in [251 msecs] [INFO] Building war: C:\Users\Andrei\IdeaProjects\security-spr-0.1\target\security-spr-0.1.war [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true') [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ security-spr --- [INFO] Installing C:\Users\Andrei\IdeaProjects\security-spr-0.1\target\security-spr-0.1.war to C:\Users\Andrei\.m2\repository\com\security-spr\0.0.1-SNAPSHOT\security-spr-0.0.1-SNAPSHOT.war [INFO] Installing C:\Users\Andrei\IdeaProjects\security-spr-0.1\pom.xml to C:\Users\Andrei\.m2\repository\com\security-spr\0.0.1-SNAPSHOT\security-spr-0.0.1-SNAPSHOT.pom [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ security-spr --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.229s [INFO] Finished at: Tue Apr 26 22:47:06 MSK 2016 [INFO] Final Memory: 19M/189M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project security-spr: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/conflu... nException Process finished with exit code 1 Добавлено через 1 минуту Когда деплою на TomCat там указываю мой варник(который сделал maven)
0
|
2398 / 2223 / 565
Регистрация: 28.12.2010
Сообщений: 8,672
|
|
26.04.2016, 23:39 | 4 |
0
|
26.04.2016, 23:39 | |
26.04.2016, 23:39 | |
Помогаю со студенческими работами здесь
4
Создание war-ника Как разместить war на хостинге ? Порядок разворачивания war-файла OpenShift loading WAR file Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |