2012-06-18 4 views
0

Теперь я изучаю, как интегрировать калитки и провозглашать ее, следуя этой статье http://docs.codehaus.org/display/ENUNCIATE/A+Rich+Web+service+API+for+Wicket. Но результаты отличаются от этого сайта. Папка api была успешно сгенерирована, но когда я указал на API в xml или json или на отдых или на мыло, я не могу получить к ним доступ.Интеграция калитки и прокрутки

Вот информацию я получил, когда я попытался «МВН: мол беги» в CMD:

[INFO] Scanning for projects... 
[INFO] 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Wicket Examples 1.5.7 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] >>> jetty-maven-plugin:7.4.2.v20110526:run (default-cli) @ wicket-example 
s >>> 
[WARNING] Could not transfer metadata org.jvnet.staxex:stax-ex/maven-metadata.xm 
l from/to java.net.1 (http://download.java.net/maven/1): No connector available 
to access repository java.net.1 (http://download.java.net/maven/1) of type legac 
y using the available factories WagonRepositoryConnectorFactory 
[INFO] 
[INFO] --- maven-enunciate-spring-plugin:1.18:assemble (default) @ wicket-exampl 
es --- 
[INFO] C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\wicket-examples\enunciate. 
xml exists, so it will be used. 
[INFO] initializing enunciate. 
[INFO] invoking enunciate:generate step... 
[INFO] [c] Skipping C code generation because everything appears up-to-date. 
[INFO] [csharp] Skipping C# code generation because everything appears up-to-dat 
e. 
[INFO] [jaxws-ri] Skipping generation of JAX-WS RI support as everything appears 
up-to-date.... 
[INFO] [jaxws-support] Skipping JAX-WS support generation as everything appears 
up-to-date... 
[INFO] [jersey] Skipping generation of JAX-RS support files because everything a 
ppears up-to-date. 
[INFO] [obj-c] Skipping C code generation because everything appears up-to-date. 

[INFO] [ruby] Skipping Ruby code generation because everything appears up-to-dat 
e. 
[INFO] [xml] Skipping generation of XML files since everything appears up-to-dat 
e... 
[INFO] [jaxws-client] Skipping generation of JAX-WS Client sources as everything 
appears up-to-date... 
[INFO] [docs] Skipping documentation source generation as everything appears up- 
to-date... 
[INFO] [spring-app] Skipping generation of spring config files as everything app 
ears up-to-date... 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
[INFO] invoking enunciate:compile step... 
[INFO] [jaxws-client] Skipping compilation of JAX-WS client classes as everythin 
g appears up-to-date... 
[INFO] invoking enunciate:build step... 
[INFO] [jaxws-client] Skipping creation of JAX-WS client jar as everything appea 
rs up-to-date... 
[INFO] [jaxws-client] Skipping creation of the JAX-WS client source jar as every 
thing appears up-to-date... 
[INFO] [basic-app] Skipping the build of the expanded war as everything appears 
up-to-date... 
[INFO] invoking enunciate:package step... 
[INFO] closing enunciate. 
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.2:process (default) @ wicket-examples 
--- 
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus 
.velocity.ContextClassLoaderResourceLoader'. 
[INFO] Setting property: velocimacro.messages.on => 'false'. 
[INFO] Setting property: resource.loader => 'classpath'. 
[INFO] Setting property: resource.manager.logwhenfound => 'false'. 
[WARNING] Failure to transfer org.jvnet.staxex:stax-ex/maven-metadata.xml from h 
ttp://download.java.net/maven/1 was cached in the local repository, resolution w 
ill not be reattempted until the update interval of java.net.1 has elapsed or up 
dates are forced. Original error: Could not transfer metadata org.jvnet.staxex:s 
tax-ex/maven-metadata.xml from/to java.net.1 (http://download.java.net/maven/1): 
No connector available to access repository java.net.1 (http://download.java.ne 
t/maven/1) of type legacy using the available factories WagonRepositoryConnector 
Factory 
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ wicket-e 
xamples --- 
[INFO] Using 'UTF-8' encoding to copy filtered resources. 
[INFO] Copying 661 resources 
[INFO] Copying 12 resources 
[INFO] Copying 3 resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ wicket-examples 
--- 
[INFO] Compiling 5 source files to C:\Users\AGI\Downloads\apache-wicket-1.5.7\sr 
c\wicket-examples\target\classes 
[INFO] 
[INFO] --- maven-bundle-plugin:2.2.0:manifest (bundle-manifest) @ wicket-example 
s --- 
[WARNING] Ignoring project type war - supportedProjectTypes = [jar, bundle] 
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ 
wicket-examples --- 
[INFO] Using 'UTF-8' encoding to copy filtered resources. 
[INFO] Copying 1 resource 
[INFO] Copying 3 resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ wicket- 
examples --- 
[INFO] Nothing to compile - all classes are up to date 
[INFO] 
[INFO] <<< jetty-maven-plugin:7.4.2.v20110526:run (default-cli) @ wicket-example 
s <<< 
[INFO] 
[INFO] --- jetty-maven-plugin:7.4.2.v20110526:run (default-cli) @ wicket-example 
s --- 
[INFO] Configuring Jetty for project: Wicket Examples 
[INFO] Webapp source directory = C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\ 
wicket-examples\src\main\webapp 
[INFO] Reload Mechanic: automatic 
[INFO] Classes = C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\wicket-examples\ 
target\classes 
[INFO] Context path =/
[INFO] Tmp directory = C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\wicket-exa 
mples\target\tmp 
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml 
[INFO] Web overrides = none 
[INFO] web.xml file = file:/C:/Users/AGI/Downloads/apache-wicket-1.5.7/src/wicke 
t-examples/src/main/webapp/WEB-INF/web.xml 
[INFO] Webapp directory = C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\wicket- 
examples\src\main\webapp 
[INFO] Starting jetty 7.4.2.v20110526 ... 
2012-06-18 14:50:04.567:INFO::jetty-7.4.2.v20110526 
2012-06-18 14:50:08.422:INFO::No Transaction manager found - if your webapp requ 
ires one, please configure one. 
2012-06-18 14:50:08.664:INFO:/:Initializing Spring root WebApplicationContext 
INFO - ContextLoader    - Root WebApplicationContext: initialization 
started 
INFO - XmlWebApplicationContext - Refreshing Root WebApplicationContext: star 
tup date [Mon Jun 18 14:50:08 GMT+07:00 2012]; root of context hierarchy 
INFO - XmlBeanDefinitionReader - Loading XML bean definitions from class pat 
h resource [applicationContext.xml] 
INFO - DefaultListableBeanFactory - Pre-instantiating singletons in org.springf 
[email protected]d: defining bean 
s [contactDao,wicketApplication]; root of factory hierarchy 
INFO - ContextLoader    - Root WebApplicationContext: initialization 
completed in 396 ms 
2012-06-18 14:50:09.064:INFO::started o.m.j.p.JettyWebAppContext{/,file:/C:/User 
s/AGI/Downloads/apache-wicket-1.5.7/src/wicket-examples/src/main/webapp/},file:/ 
C:/Users/AGI/Downloads/apache-wicket-1.5.7/src/wicket-examples/src/main/webapp/ 
2012-06-18 14:50:13.260:INFO::Started [email protected]:8080 STARTI 
NG 
[INFO] Started Jetty Server 
[INFO] Starting scanner at interval of 60 seconds. 

Я думаю, есть что-то не так с излагают я пытаюсь, но я не знаю, где я должен проверять, потому что, если я думаю, что сделал то, что мне сказал кодхаус. Не могли бы вы направить меня на правильный путь?

Для вашего внимания я говорю спасибо.

+0

Какую проблему решаете? Я не вижу ошибки в выводе mave. Похоже, что причал запущен и ждет, пока он будет обслуживать контент – bert

+0

Нет, проблема в том, что я не знал, что мне делать, чтобы получить тот же результат, что и описанная ссылка на учебник. Мои вещи, связанные с maven-wicket, новы для меня. Папка api успешно сгенерирована, но xml и json этого не сделали. Вчера я попытался добавить аннотацию @Produces («application/xml», «application/json»), но все равно не работал. Я задавался вопросом, почему. Вы можете мне помочь ? T.T Заранее спасибо. –

ответ

0

попробуйте использовать прорезь 1.28.

Я пробовал свой проект со старой версией библиотеки без успеха и преуспел в последней версии.

Смежные вопросы