Tag: maven jetty plugin

如何控制maven-jetty-plugin的VM参数?

如何从Maven-jetty-plugin运行Jetty设置VM参数? 例如,我需要将-Xmxparameter passing给由mvn jetty:run命令运行的Jetty。

找不到Factory:javax.faces.context.FacesContextFactory

我注意到,当试图安装我在docker上运行的JSF 2 webapp时,我有这个错误: java.lang.IllegalStateException:应用程序在启动时未正确初始化,无法findFactory:javax.faces.context.FacesContextFactory 这很容易通过添加到我的web.xml解决 <listener> <listener-class> com.sun.faces.config.ConfigureListener </listener-class> </listener> 我试着寻找一个详细的解释,但徒劳无功 jetty-maven-plugin:8.0.3.v20111011:run + jdk 7 + eclipse indigo 这里是我的maven依赖: <dependencies> <dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.1.3</version> <scope>compile</scope> </dependency> </dependencies> 这是我的web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <display-name>Basic Setup Web Application</display-name> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>faces/index.xhtml</welcome-file> […]