|
|
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
Всем Здрасьте. начал разбираться с web сервисами в spring. скачал сэмплы отсюда https://code.google.com/p/spring-webservices-samples/source/checkout не могу запустить их никак. использую STS. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.06.2013, 14:41:23 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
На что ругается? http://static.springsource.org/spring-ws/sites/2.0/faq.html#java-1.6 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.06.2013, 14:43:58 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, скачал папку с сэмплами. в STS нажимаю import-> existing project into workspace Что бы я не выбирал - пишет:no projects are found to import ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.06.2013, 14:49:56 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
надо было существующий maven project выбирать при открытии ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.06.2013, 16:42:04 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
всё таки никак не получается. из среды я сделал site, что-то там скачалось. из командной строки написал mvn exec:exec лог такой: авторMicrosoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Nikolay_Tkachev>cd C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samples C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samples>exec:exec The filename, directory name, or volume label syntax is incorrect. C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samples>mvn exec:exec [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.marvelution.samples:annotated-action-end point:war:1.0 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:jaxb2-maven-plugin is missing. @ line 40, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.marvelution.sa mples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samp les\pom.xml, line 38, column 12 [WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net uses the unsupported value 'legacy', artifact r esolution might fail. @ com.marvelution.samples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace -sts-3.2.0.RELEASE\spring-webservices-samples\pom.xml, line 101, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.marvelution.samples:annotated-payload-en dpoint:war:1.0 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:jaxb2-maven-plugin is missing. @ line 49, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.marvelution.sa mples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samp les\pom.xml, line 38, column 12 [WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net uses the unsupported value 'legacy', artifact r esolution might fail. @ com.marvelution.samples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace -sts-3.2.0.RELEASE\spring-webservices-samples\pom.xml, line 101, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.marvelution.samples:annotated-action-end point-with-attachments:war:1.0 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:jaxb2-maven-plugin is missing. @ line 38, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.marvelution.sa mples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samp les\pom.xml, line 38, column 12 [WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net uses the unsupported value 'legacy', artifact r esolution might fail. @ com.marvelution.samples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace -sts-3.2.0.RELEASE\spring-webservices-samples\pom.xml, line 101, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.marvelution.samples:spring-webservices-s amples:pom:1.0 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 38, column 12 [WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net uses the unsupported value 'legacy', artifact r esolution might fail. @ line 101, 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] Reactor Build Order: [INFO] [INFO] Marvelution :: Samples :: Spring WebServices [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Action Endpoint [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Payload Endpoint [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Action Endpoint With Attachments Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.ja r Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar (24 KB at 49.4 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-pl ugin-2.2-beta-5.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plu gin-2.2-beta-5.jar (204 KB at 1025.0 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugi n-2.1.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugin -2.1.jar (104 KB at 908.8 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.0/maven-release-plugin-2.0. jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.0/maven-release-plugin-2.0.j ar (38 KB at 458.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (11 KB at 173.4 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (22 KB at 276.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/maven-metadata.xml Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/maven-metadata.xml (557 B at 4.5 KB/sec) [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Marvelution :: Samples :: Spring WebServices 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) @ spring-webservices-samples --- Downloading: http://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.pom Downloaded: http://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.pom (747 B at 16.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom (601 B at 11. 3 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0/maven-2.0.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0/maven-2.0.pom (9 KB at 122.3 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/commons/commons-exec/1.1/commons-exec-1.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/commons/commons-exec/1.1/commons-exec-1.1.pom (11 KB at 173.8 KB/ sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/commons/commons-exec/1.1/commons-exec-1.1.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/commons/commons-exec/1.1/commons-exec-1.1.jar (52 KB at 479.5 KB/ sec) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Marvelution :: Samples :: Spring WebServices ...... FAILURE [0.960s] [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Action Endpoint SKIPPED [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Payload Endpoint SKIPPED [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Action Endpoint With Attachments SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.211s [INFO] Finished at: Mon Jun 24 18:43:17 MSK 2013 [INFO] Final Memory: 6M/75M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project spring-webservices-sa mples: The parameters 'executable' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec are missing or invalid -> [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/confluence/display/MAVEN/PluginParameterException C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samples>or 'or' is not recognized as an internal or external command, operable program or batch file. C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samples>------ '------' is not recognized as an internal or external command, operable program or batch file. C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samples>---------------------------------- ---------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------- The input line is too long. C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samples>mvn exec:exec [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.marvelution.samples:annotated-action-end point:war:1.0 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:jaxb2-maven-plugin is missing. @ line 40, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.marvelution.sa mples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samp les\pom.xml, line 38, column 12 [WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net uses the unsupported value 'legacy', artifact r esolution might fail. @ com.marvelution.samples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace -sts-3.2.0.RELEASE\spring-webservices-samples\pom.xml, line 101, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.marvelution.samples:annotated-payload-en dpoint:war:1.0 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:jaxb2-maven-plugin is missing. @ line 49, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.marvelution.sa mples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samp les\pom.xml, line 38, column 12 [WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net uses the unsupported value 'legacy', artifact r esolution might fail. @ com.marvelution.samples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace -sts-3.2.0.RELEASE\spring-webservices-samples\pom.xml, line 101, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.marvelution.samples:annotated-action-end point-with-attachments:war:1.0 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:jaxb2-maven-plugin is missing. @ line 38, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.marvelution.sa mples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samp les\pom.xml, line 38, column 12 [WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net uses the unsupported value 'legacy', artifact r esolution might fail. @ com.marvelution.samples:spring-webservices-samples:1.0, C:\Users\Nikolay_Tkachev\Documents\workspace -sts-3.2.0.RELEASE\spring-webservices-samples\pom.xml, line 101, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.marvelution.samples:spring-webservices-s amples:pom:1.0 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 38, column 12 [WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net uses the unsupported value 'legacy', artifact r esolution might fail. @ line 101, 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] Reactor Build Order: [INFO] [INFO] Marvelution :: Samples :: Spring WebServices [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Action Endpoint [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Payload Endpoint [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Action Endpoint With Attachments [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Marvelution :: Samples :: Spring WebServices 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) @ spring-webservices-samples --- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Marvelution :: Samples :: Spring WebServices ...... FAILURE [0.696s] [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Action Endpoint SKIPPED [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Payload Endpoint SKIPPED [INFO] Marvelution :: Samples :: Spring WebServices :: Annotated Action Endpoint With Attachments SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.455s [INFO] Finished at: Mon Jun 24 18:50:11 MSK 2013 [INFO] Final Memory: 5M/75M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project spring-webservices-sa mples: The parameters 'executable' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec are missing or invalid -> [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/confluence/display/MAVEN/PluginParameterException C:\Users\Nikolay_Tkachev\Documents\workspace-sts-3.2.0.RELEASE\spring-webservices-samples> как всё таки эти сэмплы запустить? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.06.2013, 18:51:21 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
redwhite90Blazkowicz, скачал папку с сэмплами. в STS нажимаю import-> existing project into workspace Что бы я не выбирал - пишет:no projects are found to import Дык ебстебственно... откуда там ПРОЕКТ ?? там сорсы, тобишь исходники. Надо выбирать "Create from existing source"... ну или как там в эклипсе оно называется. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.06.2013, 20:13:13 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
Ищущий Знания, надо по тупому сначала mvn clean install а уж потом руками из target загрузить .war файл на томкете т.е. в браузере набрать http:\\localhost:8080 ну или как советовали 127.0.0.1 - если локал хост не установлен автор[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project spring-webservices-sa mples: The parameters 'executable' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec are missing or invalid -> [Help 1 Правильнее будет это все пускануть в STS он там сам все соберет для Вас на томкете. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.06.2013, 22:55:26 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
а как это в sts запустить? какой результат то должен получиться? чувствую себя мартышкой с очками ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.06.2013, 11:57:32 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
уже запустил это приложение на томкате, но не вижу никакого действия. может это только сервер? может надо как-то запрос к сервису отправить?(первый раз с сервисами работаю) в каких то дескрипторах может что-то пишут? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.06.2013, 12:12:51 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
redwhite90а как это в sts запустить? какой результат то должен получиться? чувствую себя мартышкой с очками Нужно в Эклипсе нажать средним пальцем правой руки на правую кнопку мышки и выбрать import и импортировать проект в workspace STS. После чего вам надо запустить это дело на сервере тем же пальцем :-))) Есил Вы запустил на томкете то Вам нужно найти .wsdl файл из которого Вы сможете создать клиента для тестирования вашего сервера либо грузануть в SOAPUI и просто тупо позапускать запросы на ваш сервер. Реально вам надо читать туториал пошагово. Либо попросить кого показать один раз. Удачи ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.06.2013, 20:04:17 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
Sergunka, авторНужно в Эклипсе нажать средним пальцем правой руки на правую кнопку мышки и выбрать import и импортировать проект в workspace STS. После чего вам надо запустить это дело на сервере тем же пальцем :-))) это у меня сделано. Но, что не удивительно, наверное, я ничего не вижу. авторВам нужно найти .wsdl файл из которого Вы сможете создать клиента для тестирования вашего сервера либо грузануть в SOAPUI и просто тупо позапускать запросы на ваш сервер. 1.Как создать клиента по известному wsdl? 2.как можно позапускать запросы на сервер?(как то через браузер?) авторРеально вам надо читать туториал пошагово. Либо попросить кого показать один раз. может Вам уже встречался такой туториал? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.06.2013, 21:55:11 |
|
||
|
SPRING-WS как запустить сэмплы?
|
|||
|---|---|---|---|
|
#18+
redwhite90авторВам нужно найти .wsdl файл из которого Вы сможете создать клиента для тестирования вашего сервера либо грузануть в SOAPUI и просто тупо позапускать запросы на ваш сервер. 1.Как создать клиента по известному wsdl? 2.как можно позапускать запросы на сервер?(как то через браузер?) авторРеально вам надо читать туториал пошагово. Либо попросить кого показать один раз. может Вам уже встречался такой туториал? 1. Вот вполне так мурзилка http://www.eclipse.org/webtools/community/education/web/t320/Generating_a_client_from_WSDL.pdf 2. Здесь надо загрузить SOAPUI -- http://www.soapui.org/ там все вполне интуитивно если просекете концепцию, то все пойдет легко ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.06.2013, 02:05:51 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=38308267&tid=2129108]: |
0ms |
get settings: |
15ms |
get forum list: |
24ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
59ms |
get topic data: |
16ms |
get forum data: |
4ms |
get page messages: |
77ms |
get tp. blocked users: |
2ms |
| others: | 283ms |
| total: | 492ms |

| 0 / 0 |
