我现在正在学习如何通过这篇文章http://docs.codehaus.org/display/ENUNCIATE/A+Rich+Web+service+API+for+Wicket来集成检票口和发音。但结果与那个网站不同。api 文件夹已成功生成,但是当我指向 xml 或 json 或 rest 或 soap 中的 API 时,我无法访问它们。
以下是我在 cmd 中尝试“mvn:jetty-run”时得到的信息:
[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
ramework.beans.factory.support.DefaultListableBeanFactory@141622d: 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 SelectChannelConnector@0.0.0.0:8080 STARTI
NG
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 60 seconds.
我认为,我尝试的发音有问题,但我不知道我应该在哪里检查,因为如果我认为我已经完成了 codehaus 告诉我的操作。你能引导我走上正确的道路吗?
感谢您的关注。