【发布时间】:2014-10-13 11:23:59
【问题描述】:
更新:为了测试 Vaadin 7 教程,我必须检查另一个应用程序服务器 (tomcat 8) 才能启动并运行它。根据用户 Gas 提示,我尝试更改为 web 应用程序 3.0,这似乎破坏了对 Vaadin 7 的引用。
更新2:使用IDEA生成代码库时,选择Web Applicin的版本选项只包含我安装的3.1版本。我仍然是 IDEA 的新手,以及需要修改哪些设置才能在 3.0 及以下版本中修复此问题,但在新的 schemaLocation 解决问题时使用 Gas 的响应。
我刚刚安装:
- IntelliJ Ultimate Ed IDEA
- JDK8 Websphere
- Liberty 配置文件 (wlp-developers-runtime-8.5.5.3)
- Vaadin 7 完整的 zip 框架
我正在按照 Vaadin 书中的教程设置默认项目,然后创建项目指南顺利完成。但是,当我尝试启动服务器时,我在运行和调试模式下都会收到此错误消息。
Connected to server
[AUDIT ] CWWKG0016I: Starting server configuration update.
[AUDIT ] CWWKG0017I: The server configuration was successfully updated in 0,026 seconds.
[ERROR ] CWWKZ0106E: Could not start web application VaadinDemo_war_exploded.
[ERROR ] CWWKZ0002E: An exception occurred while starting the application VaadinDemo_war_exploded. The exception message was: com.ibm.wsspi.adaptable.module.UnableToAdaptException: com.ibm.ws.javaee.ddmodel.DDParser$ParseException: CWWKC2262E: The version 3.1 does not match the namespace http://xmlns.jcp.org/xml/ns/javaee in the /WEB-INF/web.xml deployment descriptor.
[AUDIT ] CWWKF0011I: The server liberty-oscar is ready to run a smarter planet.
这就是 web.xml 包含的内容
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<servlet>
<servlet-name>VaadinApplicationServlet</servlet-name>
<servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
<init-param>
<param-name>UI</param-name>
<param-value>com.MyVaadinApplication</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>VaadinApplicationServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
由于这些都是全新安装,我是否缺少某些内容,还是应该配置其他内容?对于我列出的安装,所有设置都是“默认”的。
【问题讨论】: