【发布时间】:2015-11-26 15:24:25
【问题描述】:
当我尝试在 liferay 中部署我的 war 文件时遇到一个奇怪的错误
РЅРѕСЏ 26, 2015 2:57:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\dev\liferay\liferay-portal-6.2-ce-ga4\tomcat-7.0.42\webapps\site-hook
РЅРѕСЏ 26, 2015 2:57:10 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
这就是我的日志中的全部内容。我正在使用 tomcat 7.042 和 liferay 6.2 当我用 maven 构建我的钩子时,除了这一行之外没关系
[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')
这是我的 web.xml
<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
并在 pom.xml 中构建部分
<build>
<plugins>
<plugin>
<groupId>com.liferay.maven.plugins</groupId>
<artifactId>liferay-maven-plugin</artifactId>
<configuration>
<pluginType>hook</pluginType>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
</plugins>
</build>
问题出现在一个小时前,但最近一切都很好。你能帮帮我吗?
【问题讨论】:
标签: java spring tomcat liferay