Nope, no imports of com.sun.facelets in the code.
Does the namespace in *.xhtml files has to change ?


Regards,
Cedric

2010/7/26 Jakob Korherr <jakob.korh...@gmail.com>:
> Hi Cédric,
>
> Does your app internally use some facelets-1 stuff? These are the classes in
> package com.sun.facelets.
>
> If so, you'll have to change the imports to javax.faces.view.facelets.
>
> Regards,
> Jakob
>
> 2010/7/26 Cédric Durmont <cdurm...@gmail.com>
>
>> Hi Jakob,
>>
>> When I remove facelets from pom.xml and the view handler in web.xml as
>> you said, I have this error :
>>
>> java.lang.NoClassDefFoundError: com/sun/facelets/tag/TagHandler
>> Caused by:
>> java.lang.ClassNotFoundException - com.sun.facelets.tag.TagHandler
>>
>> I have compared my pom.xml to the ones Matthias gave, but found
>> nothing relevant. I disabled Tomahawk 1.1.9 though, as it's not
>> guaranteed to be compatible with MyFaces 2... Still does not work...
>> trinidad-demo does work on my machine, and I tried to get my pom.xml
>> and web.xml as close as possible from the ones found in the component
>> showcase. But trinidad-demo uses jsp, not facelets...
>>
>> Regards,
>> Cedric
>>
>>
>> 2010/7/24 Jakob Korherr <jakob.korh...@gmail.com>:
>> > Hi,
>> >
>> > Actually I don't know what the problem with trinidad is, but from looking
>> at
>> > your pom, you can remove the faceletes-dependency, because facelets are
>> > integrated in MyFaces core 2.0.1.
>> >
>> > So just remove:
>> >
>> > <dependency>
>> >       <groupId>com.sun.facelets</groupId>
>> >       <artifactId>jsf-facelets</artifactId>
>> >       <version>1.1.15</version>
>> >   </dependency>
>> >
>> > and also remove the facelets view-handler entry in your faces-config.xml.
>> >
>> > Maybe this will also solve your problem with trinidad.
>> >
>> > Regards,
>> > Jakob
>> >
>> > 2010/7/23 Matthias Wessendorf <mat...@apache.org>
>> >
>> >> do you mind to "compare" yours against our demo's pom ?
>> >>
>> >>
>> >> base file:
>> >>
>> >>
>> https://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/pom.xml
>> >>
>> >> for the actual problem:
>> >>
>> >>
>> https://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/pom.xml
>> >>
>> >> Thx!
>> >> M
>> >>
>> >> On Fri, Jul 23, 2010 at 4:20 PM, Cédric Durmont <cdurm...@gmail.com>
>> >> wrote:
>> >> > Thanks for looking into it, Matthias !
>> >> > Sadly, it doesn't work with MyFaces 2.0.1.
>> >> > I guess something must be wrong in my pom.xml. Here is its dependency
>> >> > section (I removed non relevant entries) :
>> >> >
>> >> >  <!-- Project dependencies -->
>> >> >  <dependencies>
>> >> >    <dependency>
>> >> >      <groupId>org.apache.myfaces.core</groupId>
>> >> >      <artifactId>myfaces-api</artifactId>
>> >> >      <version>${myfaces.version}</version>
>> >> >      <scope>compile</scope>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >      <groupId>org.apache.myfaces.core</groupId>
>> >> >      <artifactId>myfaces-impl</artifactId>
>> >> >      <version>${myfaces.version}</version>
>> >> >      <scope>compile</scope>
>> >> >    </dependency>
>> >> >    <!-- Apache Trinidad -->
>> >> >    <dependency>
>> >> >      <groupId>org.apache.myfaces.trinidad</groupId>
>> >> >      <artifactId>trinidad-api</artifactId>
>> >> >      <version>${trinidad.version}</version>
>> >> >      <scope>compile</scope>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >      <groupId>org.apache.myfaces.trinidad</groupId>
>> >> >      <artifactId>trinidad-impl</artifactId>
>> >> >      <version>${trinidad.version}</version>
>> >> >      <scope>compile</scope>
>> >> >    </dependency>
>> >> >
>> >> >    <dependency>
>> >> >        <groupId>javax.servlet</groupId>
>> >> >        <artifactId>jstl</artifactId>
>> >> >        <version>1.2</version>
>> >> >        <scope>runtime</scope>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >        <groupId>tomcat</groupId>
>> >> >        <artifactId>servlet-api</artifactId>
>> >> >        <version>5.5.23</version>
>> >> >        <scope>provided</scope>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >        <groupId>taglibs</groupId>
>> >> >        <artifactId>standard</artifactId>
>> >> >        <version>1.1.2</version>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >        <groupId>org.apache.myfaces.tomahawk</groupId>
>> >> >        <artifactId>tomahawk</artifactId>
>> >> >        <version>1.1.9</version>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >        <groupId>com.sun.facelets</groupId>
>> >> >        <artifactId>jsf-facelets</artifactId>
>> >> >        <version>1.1.15</version>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >        <groupId>com.oracle</groupId>
>> >> >        <artifactId>ojdbc12</artifactId>
>> >> >        <version>9.0</version>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >        <groupId>rome</groupId>
>> >> >        <artifactId>rome</artifactId>
>> >> >        <version>0.9</version>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >        <groupId>javax.el</groupId>
>> >> >        <artifactId>el-api</artifactId>
>> >> >        <version>1.0</version>
>> >> >        <scope>provided</scope>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >        <groupId>org.eclipse.persistence</groupId>
>> >> >        <artifactId>eclipselink</artifactId>
>> >> >        <version>2.0.1</version>
>> >> >        <scope>compile</scope>
>> >> >    </dependency>
>> >> >    <dependency>
>> >> >        <groupId>org.eclipse.persistence</groupId>
>> >> >        <artifactId>javax.persistence</artifactId>
>> >> >        <version>2.0.0</version>
>> >> >        <scope>compile</scope>
>> >> >    </dependency>
>> >> >  </dependencies>
>> >> >
>> >> >  <properties>
>> >> >    <trinidad.version>2.0.0.3-SNAPSHOT</trinidad.version>
>> >> >    <myfaces.version>2.0.1</myfaces.version>
>> >> >  </properties>
>> >> >
>> >> > 2010/7/23 Matthias Wessendorf <mat...@apache.org>:
>> >> >> Hi Cédric,
>> >> >>
>> >> >> I just checked and our demo works fine with MyFaces 2.0.1
>> >> >>
>> >> >> cd $TINIDAD_HOME/trinidad-examples/trinidad-demo
>> >> >> mvn clean jetty:run -PjettyConfig
>> >> >>
>> >> >> -Matthias
>> >> >>
>> >> >> But yeah, a small migration document would be great :)
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Fri, Jul 23, 2010 at 3:19 PM, Matthias Wessendorf <
>> mat...@apache.org>
>> >> wrote:
>> >> >>> Hey Cédric,
>> >> >>>
>> >> >>> thanks for trying Trinidad2 and MyFaces2.
>> >> >>>
>> >> >>> Let me double check on my side.
>> >> >>>
>> >> >>> BTW. I hope to get to a 2.0.0-beta release, of Trinidad, next week
>> >> >>>
>> >> >>> -Matthias
>> >> >>>
>> >> >>> On Fri, Jul 23, 2010 at 3:15 PM, Cédric Durmont <cdurm...@gmail.com
>> >
>> >> wrote:
>> >> >>>> Hello,
>> >> >>>>
>> >> >>>> I'm trying to switch my app from myfaces 1.2.8 / Trinidad 1.2.13 to
>> >> >>>> myfaces 2.0.0 / Trinidad 2.0.0.3-SNAPSHOT. I was already using
>> >> >>>> facelets (1.1.15)
>> >> >>>> I haven't found any relevant documentation on that subject online,
>> so
>> >> >>>> I basically changed version numbers in my pom.xml
>> >> >>>>
>> >> >>>> Switching from myfaces 1.2.8 to myfaces 2.0.0 seems to work well
>> (my
>> >> >>>> app still runs fine)
>> >> >>>> But if I try to switch to trinidad 2 (alpha, alpha2 or snapshot), I
>> >> >>>> have this message for every actionListener in my code :
>> >> >>>>
>> >> >>>> javax.el.ELException: /somePage.xhtml: The class
>> 'com.acme.someBean'
>> >> >>>> does not have the property 'doSomething'
>> >> >>>>
>> >> >>>> Of course, the property exists (the application runs fine with
>> >> >>>> Trinidad 1.2.x). Did I miss something ? Parameters in web.xml /
>> >> >>>> faces-config.xml ? version of facelets / el-api ?
>> >> >>>>
>> >> >>>> Any hint is welcome, I'm stuck !
>> >> >>>>
>> >> >>>> Regards,
>> >> >>>> Cedric Durmont
>> >> >>>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> Matthias Wessendorf
>> >> >>>
>> >> >>> blog: http://matthiaswessendorf.wordpress.com/
>> >> >>> sessions: http://www.slideshare.net/mwessendorf
>> >> >>> twitter: http://twitter.com/mwessendorf
>> >> >>>
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Matthias Wessendorf
>> >> >>
>> >> >> blog: http://matthiaswessendorf.wordpress.com/
>> >> >> sessions: http://www.slideshare.net/mwessendorf
>> >> >> twitter: http://twitter.com/mwessendorf
>> >> >>
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Matthias Wessendorf
>> >>
>> >> blog: http://matthiaswessendorf.wordpress.com/
>> >> sessions: http://www.slideshare.net/mwessendorf
>> >> twitter: http://twitter.com/mwessendorf
>> >>
>> >
>> >
>> >
>> > --
>> > Jakob Korherr
>> >
>> > blog: http://www.jakobk.com
>> > twitter: http://twitter.com/jakobkorherr
>> > work: http://www.irian.at
>> >
>>
>
>
>
> --
> Jakob Korherr
>
> blog: http://www.jakobk.com
> twitter: http://twitter.com/jakobkorherr
> work: http://www.irian.at
>

Reply via email to