隐身码头专家插件错误消息'ERROR:PWC6117:File'null'未找到' [英] Cryptic jetty-maven-plugin error message 'ERROR: PWC6117: File "null" not found'

查看:150
本文介绍了隐身码头专家插件错误消息'ERROR:PWC6117:File'null'未找到'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have a Maven Webapp producing a WAR file. I've just upgraded my Jetty plugin to the 7.4.2.v20110526 (from 6.x). I have the following set up:

        <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>

出于某些我不清楚的原因,我不断收到以下神秘错误消息:

For some unclear to me reason, I keep getting the cryptic error message below:

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

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

There is no exception, however I cannot log in to the webapp.

但是,如果我抓取生成的war文件并将其部署到干净的Jetty安装中,则可以完美运行.这是怎么回事...?我的意思是,这曾经与6.x插件一起使用.没有任何代码更改.

However, if I grab the produced war file and deploy it into a clean Jetty installation, it works perfectly. What's the deal here...? I mean, this used to work with the 6.x plugin. No code changes whatsoever.

展开目录的内容与war文件中的内容完全相同-我检查了-没有丢失的文件或有任何明显的区别.

The contents of the exploded directory are exactly the same as the ones in the war file - I checked -- there are no missing files or any obvious differences.

这是一个Spring Web项目.

This is a Spring Web project.

有什么想法吗?有人看过吗?

Any ideas? Has anybody seen this before?

非常感谢!

推荐答案

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

Make sure your ModelAndView-s are mapped properly in your controller:

return new ModelAndView("WEB-INF/jsps/main");

这篇关于隐身码头专家插件错误消息'ERROR:PWC6117:File'null'未找到'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆