You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dudu <ed...@yahoo.com.br> on 2006/10/26 19:42:41 UTC

Problems running a JSF application on Jetty:Run

I can't discover the problem in this strack trace...
I'm running RI JSF implementation + tomahawk + ADF Faces:



this is the pom.xml
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>3.0</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.12</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>ojdbc</groupId>
            <artifactId>ojdbc</artifactId>
            <version>14</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>oracle.adf</groupId>
            <artifactId>adf-faces-impl</artifactId>
            <version>10.1.3.0.4</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>oracle.adf</groupId>
            <artifactId>adf-faces-api</artifactId>
            <version>10.1.3.0.4</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>oracle.adf</groupId>
            <artifactId>adf-facelets</artifactId>
            <version>1.0</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>javax.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <version>1.1</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>javax.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <version>1.1</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.shale</groupId>
            <artifactId>shale-test</artifactId>
            <version>1.0.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>myfaces</groupId>
            <artifactId>tomahawk</artifactId>
            <version>1.1.2</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>commons-configuration</groupId>
            <artifactId>commons-configuration</artifactId>
            <version>1.3</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
            <version>1.4</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
            <version>1.1.2</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>commons-validator</groupId>
            <artifactId>commons-validator</artifactId>
            <version>1.1.4</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>oro</groupId>
            <artifactId>oro</artifactId>
            <version>2.0.8</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>jaybird</groupId>
            <artifactId>jaybird-full</artifactId>
            <version>2.0.1</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>commons-el</groupId>
            <artifactId>commons-el</artifactId>
            <version>1.0</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
    <build>
        <finalName>sagweb</finalName>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <configuration>
                    <connectors>
                        <connector
                            implementation="
org.mortbay.jetty.nio.SelectChannelConnector">
                            <port>8081</port>
                        </connector>
                    </connectors>
                </configuration>

            </plugin>
        </plugins>
    </build>
</project>


And this is the error:
(But I look to the error and it seems to me the application is using the
myfaces implementation)

2006-10-26 15:29:44.015::WARN:  /sagweb/faces/accesscontrol/login.jspx
java.lang.IllegalStateException: STREAM
        at org.mortbay.jetty.Response.getWriter(Response.java:470)
        at
org.apache.myfaces.renderkit.html.util.DefaultAddResource.writeRespon
se(DefaultAddResource.java:807)
        at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter
(Extensions
Filter.java:162)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(Servlet
Handler.java:1041)
        at org.mortbay.jetty.servlet.ServletHandler.handle(
ServletHandler.java:3
54)
        at org.mortbay.jetty.servlet.SessionHandler.handle(
SessionHandler.java:2
26)
        at org.mortbay.jetty.handler.ContextHandler.handle(
ContextHandler.java:6
15)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle
(ContextHand
lerCollection.java:149)
        at org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.
java:123)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(
HandlerWrapper.java:1
41)
        at org.mortbay.jetty.Server.handle(Server.java:269)
        at org.mortbay.jetty.HttpConnection.handleRequest(
HttpConnection.java:43
0)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpCo
nnection.java:678)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
        at org.mortbay.jetty.nio.HttpChannelEndPoint.run(
HttpChannelEndPoint.jav
a:270)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool
.java:475)

Re: Problems running a JSF application on Jetty:Run

Posted by Fabricio Lemos <fa...@gmail.com>.
You could get confused because the stacktrace shows DefaultAddResource
and ExtensionsFilter that belongs to org.apache.myfaces package. But
these classes are part of myfaces tomahawk api, not myfaces core api.

On 10/26/06, Dudu <ed...@yahoo.com.br> wrote:
> I can't discover the problem in this strack trace...
> I'm running RI JSF implementation + tomahawk + ADF Faces:
>
>
>
> this is the pom.xml
>     <dependencies>
>         <dependency>
>             <groupId>junit</groupId>
>             <artifactId>junit</artifactId>
>             <version>4.0</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>hibernate</groupId>
>             <artifactId>hibernate</artifactId>
>             <version>3.0</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>log4j</groupId>
>             <artifactId>log4j</artifactId>
>             <version>1.2.12</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>ojdbc</groupId>
>             <artifactId>ojdbc</artifactId>
>             <version>14</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>oracle.adf</groupId>
>             <artifactId>adf-faces-impl</artifactId>
>             <version>10.1.3.0.4</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>oracle.adf</groupId>
>             <artifactId>adf-faces-api</artifactId>
>             <version>10.1.3.0.4</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>oracle.adf</groupId>
>             <artifactId>adf-facelets</artifactId>
>             <version>1.0</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.faces</groupId>
>             <artifactId>jsf-impl</artifactId>
>             <version>1.1</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.faces</groupId>
>             <artifactId>jsf-api</artifactId>
>             <version>1.1</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.shale</groupId>
>             <artifactId>shale-test</artifactId>
>             <version>1.0.3</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>myfaces</groupId>
>             <artifactId>tomahawk</artifactId>
>             <version>1.1.2</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>commons-configuration</groupId>
>             <artifactId>commons-configuration</artifactId>
>             <version>1.3</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.mail</groupId>
>             <artifactId>mail</artifactId>
>             <version>1.4</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.servlet</groupId>
>             <artifactId>servlet-api</artifactId>
>             <version>2.5</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.servlet</groupId>
>             <artifactId>jstl</artifactId>
>             <version>1.1.2</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>commons-validator</groupId>
>             <artifactId>commons-validator</artifactId>
>             <version>1.1.4</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>oro</groupId>
>             <artifactId>oro</artifactId>
>             <version>2.0.8</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>jaybird</groupId>
>             <artifactId>jaybird-full</artifactId>
>             <version>2.0.1</version>
>             <scope>compile</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>commons-el</groupId>
>             <artifactId>commons-el</artifactId>
>             <version>1.0</version>
>             <scope>compile</scope>
>         </dependency>
>     </dependencies>
>     <build>
>         <finalName>sagweb</finalName>
>         <plugins>
>             <plugin>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <configuration>
>                     <source>1.5</source>
>                     <target>1.5</target>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.mortbay.jetty</groupId>
>                 <artifactId>maven-jetty-plugin</artifactId>
>                 <configuration>
>                     <connectors>
>                         <connector
>                             implementation="
> org.mortbay.jetty.nio.SelectChannelConnector">
>                             <port>8081</port>
>                         </connector>
>                     </connectors>
>                 </configuration>
>
>             </plugin>
>         </plugins>
>     </build>
> </project>
>
>
> And this is the error:
> (But I look to the error and it seems to me the application is using the
> myfaces implementation)
>
> 2006-10-26 15:29:44.015::WARN:  /sagweb/faces/accesscontrol/login.jspx
> java.lang.IllegalStateException: STREAM
>         at org.mortbay.jetty.Response.getWriter(Response.java:470)
>         at
> org.apache.myfaces.renderkit.html.util.DefaultAddResource.writeRespon
> se(DefaultAddResource.java:807)
>         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter
> (Extensions
> Filter.java:162)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (Servlet
> Handler.java:1041)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(
> ServletHandler.java:3
> 54)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(
> SessionHandler.java:2
> 26)
>         at org.mortbay.jetty.handler.ContextHandler.handle(
> ContextHandler.java:6
> 15)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle
> (ContextHand
> lerCollection.java:149)
>         at org.mortbay.jetty.handler.HandlerCollection.handle
> (HandlerCollection.
> java:123)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(
> HandlerWrapper.java:1
> 41)
>         at org.mortbay.jetty.Server.handle(Server.java:269)
>         at org.mortbay.jetty.HttpConnection.handleRequest(
> HttpConnection.java:43
> 0)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
> (HttpCo
> nnection.java:678)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
>         at org.mortbay.jetty.nio.HttpChannelEndPoint.run(
> HttpChannelEndPoint.jav
> a:270)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool
> .java:475)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems running a JSF application on Jetty:Run

Posted by Wayne Fay <wa...@gmail.com>.
You realize this is the Maven Users list, not MyFaces, right? ;-)

Wayne

On 11/2/06, smccrory <sc...@mccrory.us> wrote:
>
> I hope this is a silly question, but does anyone know if ADF Faces/Tobago is
> (now) compatable with Tomahawk, in particular its dataTable component?  I
> remember reading about how the use of different renderers at least used to
> be a problem.  Thanks in advance,
>    Scott
> --
> View this message in context:
> http://www.nabble.com/Problems-running-a-JSF-application-on-Jetty%3ARun-tf2515457s177.html#a7145843
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems running a JSF application on Jetty:Run

Posted by smccrory <sc...@mccrory.us>.
I hope this is a silly question, but does anyone know if ADF Faces/Tobago is
(now) compatable with Tomahawk, in particular its dataTable component?  I
remember reading about how the use of different renderers at least used to
be a problem.  Thanks in advance,
   Scott
-- 
View this message in context: http://www.nabble.com/Problems-running-a-JSF-application-on-Jetty%3ARun-tf2515457s177.html#a7145843
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems running a JSF application on Jetty:Run

Posted by Craig McClanahan <cr...@apache.org>.
On 11/1/06, Ronen Naor <ro...@gmail.com> wrote:
>
> The problem is that the j2ee spec says that the jsf jars need to be as
> part
> of the container classpath.


Actually, that is only required (in the specs) for Java EE 5.  For EE 1.4,
you can either treat either the JSF RI or MyFaces as a normal dependency for
webapps and have it loaded in WEB-INF/lib, or do what you did and load it
into the container classpath.

Craig

Re: Problems running a JSF application on Jetty:Run

Posted by Ronen Naor <ro...@gmail.com>.
The problem is that the j2ee spec says that the jsf jars need to be as part
of the container classpath.
try:
<plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
.....
    <dependencies>
                    <dependency>
                        <groupId>org.apache.myfaces.core</groupId>
                        <artifactId>myfaces-api</artifactId>
                        <version>1.1.3</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.myfaces.core</groupId>
                        <artifactId>myfaces-impl</artifactId>
                        <version>1.1.3</version>
                    </dependency>
  ...

It worked for me



On 10/26/06, Dudu <ed...@yahoo.com.br> wrote:
>
> I can't discover the problem in this strack trace...
> I'm running RI JSF implementation + tomahawk + ADF Faces:
>
>
>
> this is the pom.xml
>     <dependencies>
>         <dependency>
>             <groupId>junit</groupId>
>             <artifactId>junit</artifactId>
>             <version>4.0</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>hibernate</groupId>
>             <artifactId>hibernate</artifactId>
>             <version>3.0</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>log4j</groupId>
>             <artifactId>log4j</artifactId>
>             <version>1.2.12</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>ojdbc</groupId>
>             <artifactId>ojdbc</artifactId>
>             <version>14</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>oracle.adf</groupId>
>             <artifactId>adf-faces-impl</artifactId>
>             <version>10.1.3.0.4</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>oracle.adf</groupId>
>             <artifactId>adf-faces-api</artifactId>
>             <version>10.1.3.0.4</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>oracle.adf</groupId>
>             <artifactId>adf-facelets</artifactId>
>             <version>1.0</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.faces</groupId>
>             <artifactId>jsf-impl</artifactId>
>             <version>1.1</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.faces</groupId>
>             <artifactId>jsf-api</artifactId>
>             <version>1.1</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.shale</groupId>
>             <artifactId>shale-test</artifactId>
>             <version>1.0.3</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>myfaces</groupId>
>             <artifactId>tomahawk</artifactId>
>             <version>1.1.2</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>commons-configuration</groupId>
>             <artifactId>commons-configuration</artifactId>
>             <version>1.3</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.mail</groupId>
>             <artifactId>mail</artifactId>
>             <version>1.4</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.servlet</groupId>
>             <artifactId>servlet-api</artifactId>
>             <version>2.5</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.servlet</groupId>
>             <artifactId>jstl</artifactId>
>             <version>1.1.2</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>commons-validator</groupId>
>             <artifactId>commons-validator</artifactId>
>             <version>1.1.4</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>oro</groupId>
>             <artifactId>oro</artifactId>
>             <version>2.0.8</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>jaybird</groupId>
>             <artifactId>jaybird-full</artifactId>
>             <version>2.0.1</version>
>             <scope>compile</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>commons-el</groupId>
>             <artifactId>commons-el</artifactId>
>             <version>1.0</version>
>             <scope>compile</scope>
>         </dependency>
>     </dependencies>
>     <build>
>         <finalName>sagweb</finalName>
>         <plugins>
>             <plugin>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <configuration>
>                     <source>1.5</source>
>                     <target>1.5</target>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.mortbay.jetty</groupId>
>                 <artifactId>maven-jetty-plugin</artifactId>
>                 <configuration>
>                     <connectors>
>                         <connector
>                             implementation="
> org.mortbay.jetty.nio.SelectChannelConnector">
>                             <port>8081</port>
>                         </connector>
>                     </connectors>
>                 </configuration>
>
>             </plugin>
>         </plugins>
>     </build>
> </project>
>
>
> And this is the error:
> (But I look to the error and it seems to me the application is using the
> myfaces implementation)
>
> 2006-10-26 15:29:44.015::WARN:  /sagweb/faces/accesscontrol/login.jspx
> java.lang.IllegalStateException: STREAM
>         at org.mortbay.jetty.Response.getWriter(Response.java:470)
>         at
> org.apache.myfaces.renderkit.html.util.DefaultAddResource.writeRespon
> se(DefaultAddResource.java:807)
>         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter
> (Extensions
> Filter.java:162)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (Servlet
> Handler.java:1041)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(
> ServletHandler.java:3
> 54)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(
> SessionHandler.java:2
> 26)
>         at org.mortbay.jetty.handler.ContextHandler.handle(
> ContextHandler.java:6
> 15)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle
> (ContextHand
> lerCollection.java:149)
>         at org.mortbay.jetty.handler.HandlerCollection.handle
> (HandlerCollection.
> java:123)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(
> HandlerWrapper.java:1
> 41)
>         at org.mortbay.jetty.Server.handle(Server.java:269)
>         at org.mortbay.jetty.HttpConnection.handleRequest(
> HttpConnection.java:43
> 0)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
> (HttpCo
> nnection.java:678)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java
> :199)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java
> :339)
>         at org.mortbay.jetty.nio.HttpChannelEndPoint.run(
> HttpChannelEndPoint.jav
> a:270)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool
> .java:475)
>
>