[ 
http://issues.apache.org/jira/browse/MYFACES-1126?page=comments#action_12366490 
] 

Bill Dudney commented on MYFACES-1126:
--------------------------------------

Jurgen,

The jetty m2 plugin is trying to deploy from the src directory instead of from 
the target dir. Any idea how to make the m2 plugin deploy from the target dir? 
IOW, the src dir does not have the jars for myfaces but the target does. I've 
pasted the stack trace that I get from m2 below.

Also since few of us are that familiar with Jetty (as far as I know anyway) 
perhaps you could do some digging to help us find the problem?

Thanks again for using myfaces!

[INFO] Configuring Jetty for project: Tomahawk Examples: Simple
[INFO] Webapp source directory is: 
.../myfaces-current/tomahawk/examples/simple/src/main/webapp
[INFO] web.xml file located at: 
.../myfaces-current/tomahawk/examples/simple/src/main/webapp/WEB-INF/web.xml
[INFO] Classes located at: 
.../myfaces-current/tomahawk/examples/simple/target/classes
[INFO] tmp dir for webapp will be 
.../myfaces-current/tomahawk/examples/simple/target/jetty-tmp
[INFO] Starting Jetty Server ...
[INFO] No connectors configured, using defaults: 
org.mortbay.jetty.nio.SelectChannelConnector listening on 8080 with maxIdleTime 
30000
1 [main] INFO org.mortbay.log - Logging to [EMAIL PROTECTED] via 
org.mortbay.log.Slf4jLog
[INFO] Context path = /myfaces-example-simple
[INFO] Webapp directory = 
.../myfaces-current/tomahawk/examples/simple/src/main/webapp
[INFO] Setting up classpath ...
[INFO] Finished setting up classpath
[INFO] Started configuring web.xml, resource 
base=.../myfaces-current/tomahawk/examples/simple/src/main/webapp
[INFO] Finished configuring web.xml
1560 [main] WARN org.mortbay.log - failed Faces Servlet
1562 [main] WARN org.mortbay.log - failed [EMAIL 
PROTECTED]/myfaces-example-simple,file:.../myfaces-current/tomahawk/examples/simple/src/main/webapp/}
1621 [main] INFO org.mortbay.log - Started SelectChannelConnector @ 0.0.0.0:8080
1622 [main] WARN org.mortbay.log - failed [EMAIL PROTECTED]
[INFO] Jetty server exiting.
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] Failure

Embedded error: No Factories configured for this Application. This happens if 
the faces-initialization does not work at all - make sure that you properly 
include all configuration settings necessary for a basic faces application and 
that all the necessary libs are included. Also check the logging output of your 
web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you 
use some special web-containers which do not support registering 
context-listeners via TLD files and a context listener is not setup in your 
web.xml.
A typical config looks like this;
<listener>
  
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>


> ExtensionsFilter results in empty response on Jetty 6
> -----------------------------------------------------
>
>          Key: MYFACES-1126
>          URL: http://issues.apache.org/jira/browse/MYFACES-1126
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.1.1, Nightly
>  Environment: Windows XP SP2, Jetty 6 as part of the Jetty6 plugin for maven2
>     Reporter: Jurgen Lust

>
> When deploying a MyFaces webapp that uses the ExtensionsFilter in Jetty6, the 
> response is always empty.
> You can verify this by adding this to the tomahawk/examples/simple/pom.xml:
>        <plugins>
>            <plugin>
>                <groupId>org.mortbay.jetty</groupId>
>                <artifactId>maven-jetty6-plugin</artifactId>
>                <version>6.0.0beta9</version>
>                <configuration>
>                    <scanIntervalSeconds>10</scanIntervalSeconds>
>                </configuration>
>            </plugin>
>        </plugins>
> And then typing mvn jetty6:run in the same folder.
> Now you can access the simple example at 
> http://localhost:8080/myfaces-example-simple/
> Normally you will now see a completely empty page...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to