Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #10971 > unrolled thread
| Started by | Hollow Quincy <hollow.quincy@gmail.com> |
|---|---|
| First post | 2011-12-23 04:09 -0800 |
| Last post | 2011-12-27 05:47 -0800 |
| Articles | 5 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
JSF 2 and Richfaces 4 - fileUpload Hollow Quincy <hollow.quincy@gmail.com> - 2011-12-23 04:09 -0800
Re: JSF 2 and Richfaces 4 - fileUpload Frank Langelage <frank@lafr.de> - 2011-12-23 14:14 +0100
Re: JSF 2 and Richfaces 4 - fileUpload Hollow Quincy <hollow.quincy@gmail.com> - 2011-12-27 00:47 -0800
Re: JSF 2 and Richfaces 4 - fileUpload Frank Langelage <frank@lafr.de> - 2011-12-27 12:42 +0100
Re: JSF 2 and Richfaces 4 - fileUpload Hollow Quincy <hollow.quincy@gmail.com> - 2011-12-27 05:47 -0800
| From | Hollow Quincy <hollow.quincy@gmail.com> |
|---|---|
| Date | 2011-12-23 04:09 -0800 |
| Subject | JSF 2 and Richfaces 4 - fileUpload |
| Message-ID | <f3a3034d-66dc-4559-b9dd-be3b2ff043b0@v13g2000yqc.googlegroups.com> |
Hi,
I am trying to create application with EJB3.1, JSF2.0 and RichFaces
4.1.0 Final.
Generally I managed to run ajax action on web page. I would like to
use rich:fileupload.
When I write:
public void listener(FileUploadEvent event) throws Exception {
UploadedFile item = event.getUploadedFile();
and run maven 3 I have error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:2.3.1:compile (default-compile) on project xxx: Compilation
failure
[ERROR] class file for javax.faces.event.FacesEvent not found
I can see that
public class FileUploadEvent extends FacesEvent
but it is true, that I cannot find class:
javax.faces.event.FacesEvent
Is it a bug ? what should I do ?
Thanks for help !
[toc] | [next] | [standalone]
| From | Frank Langelage <frank@lafr.de> |
|---|---|
| Date | 2011-12-23 14:14 +0100 |
| Message-ID | <9ljd67FpukU1@mid.individual.net> |
| In reply to | #10971 |
On 23.12.11 13:09, Hollow Quincy wrote: > Hi, > > I am trying to create application with EJB3.1, JSF2.0 and RichFaces > 4.1.0 Final. > and run maven 3 I have error: > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler- > plugin:2.3.1:compile (default-compile) on project xxx: Compilation > failure > [ERROR] class file for javax.faces.event.FacesEvent not found > I can see that > public class FileUploadEvent extends FacesEvent > but it is true, that I cannot find class: > javax.faces.event.FacesEvent > > Is it a bug ? what should I do ? This class is in jsf-api.jar, seems that it's not in your classpath during compilation.
[toc] | [prev] | [next] | [standalone]
| From | Hollow Quincy <hollow.quincy@gmail.com> |
|---|---|
| Date | 2011-12-27 00:47 -0800 |
| Message-ID | <dd68b67b-095e-44de-9188-be17d8281826@i8g2000vbh.googlegroups.com> |
| In reply to | #10972 |
On 23 Gru, 14:14, Frank Langelage <fr...@lafr.de> wrote: > On 23.12.11 13:09, Hollow Quincy wrote: [...] > > [ERROR] class file for javax.faces.event.FacesEvent not found > > I can see that > > public class FileUploadEvent extends FacesEvent > > but it is true, that I cannot find class: > > javax.faces.event.FacesEvent [...] > This class is in jsf-api.jar, seems that it's not in your classpath > during compilation. Probably you are right, but when I checked where can I find this jar in findJar.com page: http://www.findjar.com/index.x?query=jsf-api I could see that JSF 1.2 contains this jar, but I am using JSF 2 ! Should I really use "jsf-api-1.2.jar in javax/faces/jsf-api/1.2" ? Thanks for help
[toc] | [prev] | [next] | [standalone]
| From | Frank Langelage <frank@lafr.de> |
|---|---|
| Date | 2011-12-27 12:42 +0100 |
| Message-ID | <9ltp9iF1n2U1@mid.individual.net> |
| In reply to | #11006 |
On 27.12.11 09:47, Hollow Quincy wrote: > On 23 Gru, 14:14, Frank Langelage<fr...@lafr.de> wrote: >> On 23.12.11 13:09, Hollow Quincy wrote: > [...] >>> [ERROR] class file for javax.faces.event.FacesEvent not found >>> I can see that >>> public class FileUploadEvent extends FacesEvent >>> but it is true, that I cannot find class: >>> javax.faces.event.FacesEvent > [...] >> This class is in jsf-api.jar, seems that it's not in your classpath >> during compilation. > > Probably you are right, but when I checked where can I find this jar > in findJar.com page: > http://www.findjar.com/index.x?query=jsf-api > I could see that JSF 1.2 contains this jar, but I am using JSF 2 ! > Should I really use "jsf-api-1.2.jar in javax/faces/jsf-api/1.2" ? How can you say you're using JSF 2.0? Anyhow, look at http://javaserverfaces.java.net/download.html to download the required jars or for the maven integration. You should use the same version for compilation and runtime.
[toc] | [prev] | [next] | [standalone]
| From | Hollow Quincy <hollow.quincy@gmail.com> |
|---|---|
| Date | 2011-12-27 05:47 -0800 |
| Message-ID | <14255ca1-2633-4e75-aefd-000ee7623f13@m10g2000vbc.googlegroups.com> |
| In reply to | #11008 |
On 27 Gru, 12:42, Frank Langelage <fr...@lafr.de> wrote: [...] > How can you say you're using JSF 2.0? > > Anyhow, look athttp://javaserverfaces.java.net/download.htmlto > download the required jars or for the maven integration. > > You should use the same version for compilation and runtime. You have right, when I added to my maven dependency like above, it works fine. <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency> Thank you for help!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web