|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
[68cat][j2ee] Tomcat Exception when using FaceletsHello,
I just installed NetBeans 6.8 beta with the hope that Facelets support will be working but I always get an error when I try to start my created web application with tomcat. Could someone please try to reproduce the problem. My system is a Mac OSX Leopard. Steps: 1.) Installed plugin Facelets 1.1.14 (JSF 1.2) 2.) Created new webapplicationSelected Tomcat 6.0.20, Java EE 5, 3.) Selected Java Server Faces 4.) Selected in registered libraries: JSF 1.2 + Facelets 1.1.14 5.) Clicked finish When I now start the project I get a "Servlet Faces Servlet is not available" The log says: SCHWERWIEGEND: Error starting static Resourcesjava.lang.IllegalArgumentException: Document base /Users/ flemming/NetBeansProjects/sandbox/web/WebTest68/build/web does not exist or is not a readable directory Please write if you need more info. I'm new to JSF and Facelets. Stefan |
|
|
Re: [68cat][j2ee] Tomcat Exception when using FaceletsHi Stefan,
it is possible that there are bugs in this area, so if it does not work for you, please file a bug report. Now, if you are new to JSF and Facelets, then I would suggest you use JSF 2.0, not JSF 1.2. JSF 1.2 + Facelets 1.1.14 is useful mainly for existing applications which you need to evolve; if you'd like to build a new application from scratch, I would go with JSF 2.0 (which already contains Facelets 2.0 as an embedded technology). You can use JSF 2.0 with Java EE 6 (i.e. GlassFish v3), but also with non-Java EE 6 servers, including Tomcat. The scenario with Facelets 2.0 was much more tested and should be much more stable in the beta release. Petr On Oct 25, 2009, at 7:25 PM, Stefan Flemming wrote: > Hello, > > I just installed NetBeans 6.8 beta with the hope that Facelets > support will be working but I always get an error when I try to > start my created web application with tomcat. > > Could someone please try to reproduce the problem. My system is a > Mac OSX Leopard. > > Steps: > > 1.) Installed plugin Facelets 1.1.14 (JSF 1.2) > 2.) Created new webapplicationSelected Tomcat 6.0.20, Java EE 5, > 3.) Selected Java Server Faces > 4.) Selected in registered libraries: JSF 1.2 + Facelets 1.1.14 > 5.) Clicked finish > > When I now start the project I get a "Servlet Faces Servlet is not > available" > > The log says: > > SCHWERWIEGEND: Error starting static > Resourcesjava.lang.IllegalArgumentException: Document base /Users/ > flemming/NetBeansProjects/sandbox/web/WebTest68/build/web does not > exist or is not a readable directory > > Please write if you need more info. I'm new to JSF and Facelets. > > Stefan |
|
|
Re: [68cat][j2ee] Tomcat Exception when using FaceletsHi Petr,
I found the time and tested what you said and with JSF 2.0 it is working out of the box. So thank you for your good hint. With JSF 1.2 and Facelets there seems to be a problem with the welcome page. When I manually change the URL it seems to work, too. I will search in the issuetracker if this was still reported. By the way. There should really be a tutorial how to setup a template based website. Everywhere I find the same samples that demonstrate a login page but for a beginner it is more relevant to have a setup for a dynamic page structure. Thank you very much, Stefan Am 26.10.2009 um 12:51 schrieb Petr Jiricka: > Hi Stefan, > > it is possible that there are bugs in this area, so if it does not > work for you, please file a bug report. > > Now, if you are new to JSF and Facelets, then I would suggest you > use JSF 2.0, not JSF 1.2. JSF 1.2 + Facelets 1.1.14 is useful mainly > for existing applications which you need to evolve; if you'd like to > build a new application from scratch, I would go with JSF 2.0 (which > already contains Facelets 2.0 as an embedded technology). You can > use JSF 2.0 with Java EE 6 (i.e. GlassFish v3), but also with non- > Java EE 6 servers, including Tomcat. The scenario with Facelets 2.0 > was much more tested and should be much more stable in the beta > release. > > Petr > > On Oct 25, 2009, at 7:25 PM, Stefan Flemming wrote: > >> Hello, >> >> I just installed NetBeans 6.8 beta with the hope that Facelets >> support will be working but I always get an error when I try to >> start my created web application with tomcat. >> >> Could someone please try to reproduce the problem. My system is a >> Mac OSX Leopard. >> >> Steps: >> >> 1.) Installed plugin Facelets 1.1.14 (JSF 1.2) >> 2.) Created new webapplicationSelected Tomcat 6.0.20, Java EE 5, >> 3.) Selected Java Server Faces >> 4.) Selected in registered libraries: JSF 1.2 + Facelets 1.1.14 >> 5.) Clicked finish >> >> When I now start the project I get a "Servlet Faces Servlet is not >> available" >> >> The log says: >> >> SCHWERWIEGEND: Error starting static >> Resourcesjava.lang.IllegalArgumentException: Document base /Users/ >> flemming/NetBeansProjects/sandbox/web/WebTest68/build/web does not >> exist or is not a readable directory >> >> Please write if you need more info. I'm new to JSF and Facelets. >> >> Stefan > |
|
|
Re: [68cat][j2ee] Tomcat Exception when using FaceletsOn Oct 26, 2009, at 12:51 PM, Petr Jiricka wrote:
> Hi Stefan, > > it is possible that there are bugs in this area, so if it does not > work for you, please file a bug report. FYI, I filed a bug report based based on your scenario. I verified that it really does not work: http://www.netbeans.org/issues/show_bug.cgi?id=175807 Petr > > Now, if you are new to JSF and Facelets, then I would suggest you > use JSF 2.0, not JSF 1.2. JSF 1.2 + Facelets 1.1.14 is useful mainly > for existing applications which you need to evolve; if you'd like to > build a new application from scratch, I would go with JSF 2.0 (which > already contains Facelets 2.0 as an embedded technology). You can > use JSF 2.0 with Java EE 6 (i.e. GlassFish v3), but also with non- > Java EE 6 servers, including Tomcat. The scenario with Facelets 2.0 > was much more tested and should be much more stable in the beta > release. > > Petr > > On Oct 25, 2009, at 7:25 PM, Stefan Flemming wrote: > >> Hello, >> >> I just installed NetBeans 6.8 beta with the hope that Facelets >> support will be working but I always get an error when I try to >> start my created web application with tomcat. >> >> Could someone please try to reproduce the problem. My system is a >> Mac OSX Leopard. >> >> Steps: >> >> 1.) Installed plugin Facelets 1.1.14 (JSF 1.2) >> 2.) Created new webapplicationSelected Tomcat 6.0.20, Java EE 5, >> 3.) Selected Java Server Faces >> 4.) Selected in registered libraries: JSF 1.2 + Facelets 1.1.14 >> 5.) Clicked finish >> >> When I now start the project I get a "Servlet Faces Servlet is not >> available" >> >> The log says: >> >> SCHWERWIEGEND: Error starting static >> Resourcesjava.lang.IllegalArgumentException: Document base /Users/ >> flemming/NetBeansProjects/sandbox/web/WebTest68/build/web does not >> exist or is not a readable directory >> >> Please write if you need more info. I'm new to JSF and Facelets. >> >> Stefan > |
|
|
Re: [68cat][j2ee] Tomcat Exception when using FaceletsHello Petr,
thank you. I was still checking if it was my fault, because I had a few other problems. J2EE is new for me, so thank you for reproducing it and filing the bug. JSF 2.0 and facelets works well. However it would be very good to have one or more examples for this scenario. Stefan Am 30.10.2009 um 18:13 schrieb Petr Jiricka: > On Oct 26, 2009, at 12:51 PM, Petr Jiricka wrote: > >> Hi Stefan, >> >> it is possible that there are bugs in this area, so if it does not >> work for you, please file a bug report. > > FYI, I filed a bug report based based on your scenario. I verified > that it really does not work: > http://www.netbeans.org/issues/show_bug.cgi?id=175807 > > Petr > >> >> Now, if you are new to JSF and Facelets, then I would suggest you >> use JSF 2.0, not JSF 1.2. JSF 1.2 + Facelets 1.1.14 is useful >> mainly for existing applications which you need to evolve; if you'd >> like to build a new application from scratch, I would go with JSF >> 2.0 (which already contains Facelets 2.0 as an embedded >> technology). You can use JSF 2.0 with Java EE 6 (i.e. GlassFish >> v3), but also with non-Java EE 6 servers, including Tomcat. The >> scenario with Facelets 2.0 was much more tested and should be much >> more stable in the beta release. >> >> Petr >> >> On Oct 25, 2009, at 7:25 PM, Stefan Flemming wrote: >> >>> Hello, >>> >>> I just installed NetBeans 6.8 beta with the hope that Facelets >>> support will be working but I always get an error when I try to >>> start my created web application with tomcat. >>> >>> Could someone please try to reproduce the problem. My system is a >>> Mac OSX Leopard. >>> >>> Steps: >>> >>> 1.) Installed plugin Facelets 1.1.14 (JSF 1.2) >>> 2.) Created new webapplicationSelected Tomcat 6.0.20, Java EE 5, >>> 3.) Selected Java Server Faces >>> 4.) Selected in registered libraries: JSF 1.2 + Facelets 1.1.14 >>> 5.) Clicked finish >>> >>> When I now start the project I get a "Servlet Faces Servlet is not >>> available" >>> >>> The log says: >>> >>> SCHWERWIEGEND: Error starting static >>> Resourcesjava.lang.IllegalArgumentException: Document base /Users/ >>> flemming/NetBeansProjects/sandbox/web/WebTest68/build/web does not >>> exist or is not a readable directory >>> >>> Please write if you need more info. I'm new to JSF and Facelets. >>> >>> Stefan >> > |
| Free embeddable forum powered by Nabble | Forum Help |