[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Problems migrating from 8.0.0.M0 to 8.0.0.M1
|
please log a bug into https://bugs.eclipse.org/bugs/
under RT / Jetty
thanks!
jesse
--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx
On Tue, Jul 27, 2010 at 13:06, Rostislav Hristov <rostislav@xxxxxxxxx> wrote:
> Hello,
>
> I've been using the Maven 8.0.0.M0 plugin for some time while working
> on something that takes advantage of the Servlet 3.0 web fragments.
> Unfortunately switching to 8.0.0.M1 causes a critical issue that I
> find hard to resolve. I'm using the JSF2 library and now it fails to
> initialize with the following exception:
>
> java.lang.IllegalStateException: Application was not properly
> initialized at startup, could not find Factory:
> javax.faces.context.FacesContextFactory
> at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:800)
> at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:302)
> at javax.faces.webapp.FacesServlet.init(FacesServlet.java:162)
> at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:442)
> at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:270)
> at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
> at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:721)
> at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:279)
> at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:999)
> at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:610)
> at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:155)
> at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:384)
> at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:127)
> at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
> at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
> at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
> at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
> at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
> at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
> at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
> at org.eclipse.jetty.server.Server.doStart(Server.java:243)
> at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:67)
> at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
> at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:437)
> at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:377)
> at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:546)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
>
> You can try reproducing the problem with a very simple Maven 2 project
> containing the following 2 files:
>
> /pom.xml
> -----------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <project
> xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.foo</groupId>
> <artifactId>jetty-testcase</artifactId>
> <packaging>war</packaging>
> <version>0.1.0-SNAPSHOT</version>
> <name>jetty-testcase</name>
>
> <repositories>
> <repository>
> <id>net.java.download.maven2</id>
> <name>Java.net Repository</name>
> <url>http://download.java.net/maven/2</url>
> </repository>
> </repositories>
>
> <dependencies>
> <dependency>
> <groupId>com.sun.faces</groupId>
> <artifactId>jsf-api</artifactId>
> <version>2.0.3</version>
> </dependency>
> <dependency>
> <groupId>com.sun.faces</groupId>
> <artifactId>jsf-impl</artifactId>
> <version>2.0.3</version>
> </dependency>
> </dependencies>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>jetty-maven-plugin</artifactId>
> <version>8.0.0.M1</version>
> </plugin>
> </plugins>
> </build>
>
> </project>
>
>
> /src/main/webapp/WEB-INF/web.xml
> -----------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="
> http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
> version="3.0">
>
> <servlet>
> <servlet-name>faces</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> </web-app>
>
>
>
> Any ideas are welcome. Let me know if you want me to file a bug report
> somewhere.
>
> Keep up the good work!
>
>
> Best,
> Rostislav
>
> ----------------------------------------------------------------
> Asual - Open software that pushes the limits
> http://www.asual.com
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>