Cryptic jetty-maven-plugin错误消息'错误:PWC6117:文件"null"未找到'

car*_*ing 4 maven-2 jetty maven-jetty-plugin

我有一个Maven Webapp生成一个WAR文件.我刚刚将我的Jetty插件升级到7.4.2.v20110526(从6.x开始).我有以下设置:

        <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>7.4.2.v20110526</version>

            <executions>
                <execution>
                    <id>jetty-run</id>

                    <phase>package</phase>
                    <goals>
                        <goal>run</goal>
                    </goals>

                    <configuration>
                        <connectors>
                            <connector implementation="${connector}">
                                <port>80</port>
                                <maxIdleTime>60000</maxIdleTime>
                            </connector>
                        </connectors>

                        <webAppConfig>
                            <contextPath>/foo</contextPath>
                        </webAppConfig>

                        <webappDirectory>${project.build.directory}/foo</webappDirectory>

                        <scanIntervalSeconds>10</scanIntervalSeconds>

                        <systemProperties>
                            <systemProperty>
                                <name>logback.configurationFile</name>
                                <value>file:${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/logback.xml</value>
                            </systemProperty>
                        </systemProperties>
                    </configuration>
                </execution>
            </executions>

            <dependencies>
                <dependency>
                    <groupId>log4j</groupId>
                    <artifactId>log4j</artifactId>
                    <version>1.2.13</version>
                </dependency>
            </dependencies>
        </plugin>
Run Code Online (Sandbox Code Playgroud)

对于一些我不清楚的原因,我不断收到下面的含义错误信息:

2011-07-07 11:51:16.431:WARN::Aliased resource: file:/java/foo/branches/stable/modules/foo-web/src/main/webapp/WEB-INF/jsps/main.jsp~=file:/java/foo/branches/stable/modules/foo-web/src/main/webapp/WEB-INF/jsps/main.jsp
2011-07-07 11:51:16.507:WARN::Aliased resource: file:/java/foo/branches/stable/modules/foo-web/src/main/webapp/WEB-INF/jsps/main.jsp~=file:/java/foo/branches/stable/modules/foo-web/src/main/webapp/WEB-INF/jsps/main.jsp
ERROR: PWC6117: File "null" not found
Run Code Online (Sandbox Code Playgroud)

没有例外,但是我无法登录到webapp.

但是,如果我抓取生成的war文件并将其部署到一个干净的Jetty安装中,它就能完美运行.这是什么交易......?我的意思是,这曾经与6.x插件一起使用.没有代码发生任何变化.

爆炸目录的内容与war文件中的内容完全相同 - 我检查过 - 没有丢失的文件或任何明显的差异.

这是一个Spring Web项目.

有任何想法吗?有没有人见过这个?

提前谢谢了!

tft*_*ftd 7

确保您的ModelAndView-s在控制器中正确映射:

return new ModelAndView("WEB-INF/jsps/main");
Run Code Online (Sandbox Code Playgroud)