-
1. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
oyesiji77 Nov 20, 2012 5:16 PM (in response to sdnakhla)Getting the same exception, Does anyone know the solution to this
-
2. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
tungtrum17 Nov 20, 2012 11:58 PM (in response to oyesiji77)Do not know if that helps you? https://community.jboss.org/message/751583#751583
-
3. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
tunggad Dec 3, 2012 10:29 AM (in response to sdnakhla)Hi,
we have the same stack as you (JBoss AS 7.1, Seam 2.3, Richfaces 4.2.2) and also suffering from this issue. Did you have any solution for this?
Thanks you!
-
4. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
oyesiji77 Dec 3, 2012 10:45 AM (in response to tunggad)The truth is after battling with this problem for two weeks , we just went ahead and downgraded to Seam 2.2,Richfaces 3.3, Jboss 6.1.
-
5. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
rhare2 Dec 14, 2012 5:20 PM (in response to sdnakhla)After many many hours, I finally found a solution to this issue. It turns out that Seam installs a filter by default for multipart forms (to support s:fileUpload) that interferes with the Richfaces multipart filter. To solve this problem simply add the following to your components.xml to disable the Seam multipart filter and the rich:fileUpload will work. Not sure if this will break any other Seam features.
<web:multipart-filter disabled="true" />
This works for me with Seam 2.3.0.Final, AS 7.1.1.Final, Richfaces 4.2.3.Final.
-
6. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
mbickel Mar 26, 2013 6:20 AM (in response to rhare2)Disabling the seam multipart filter works perfectly here and also makes sense given the exception text.
Note that you'd need to get rid of <s:fileUpload/> if you do this...
-
7. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
nozone May 6, 2013 5:40 PM (in response to rhare2)Had the same problem, and <web:multipart-filter disabled="true" /> fixed it. Big Thanks Rob. I feel like this could have been a huge headache, this thread should be way more visible.
-
8. Re: Exception with <rich:fileUpload ></rich:fileUpload> - Request prolog cannot be read
octabrain Dec 3, 2013 7:59 AM (in response to sdnakhla)I use NetBeans 7.4, Glassfish 4, Richfaces 4.3.4, no other frameworks.
I have the same error. What to do? I don't have components.xml in the project.
-
9. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
bleathem Dec 3, 2013 6:44 PM (in response to octabrain)Are you using JSF 2.2? It may be a compatibility issue with JSF 2.2. Can you verify this by deploying your application to a JSF 2.1 container? If that is indeed the cause of the problem, please file a jira issue.
-
10. Re: Exception with <rich:fileUpload ></rich:fileUpload> - Request prolog cannot be read
octabrain Dec 3, 2013 11:51 PM (in response to bleathem)Thank you for response, Brian. I'm using JSF 2.2. I'll try to create a test application with JSF 2.1
-
11. Re: Exception with <rich:fileUpload ></rich:fileUpload> - Request prolog cannot be read
octabrain Dec 4, 2013 5:24 AM (in response to bleathem)I wrote a test application with JSF 2.1. The same error message.
-
12. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
bleathem Dec 4, 2013 3:04 PM (in response to octabrain)Alexander Shalin wrote:
I wrote a test application with JSF 2.1. The same error message.
Have you followed the example on the showcase?
http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload
-
13. Re: Exception with <rich:fileUpload ></rich:fileUpload> - Request prolog cannot be read
octabrain Dec 5, 2013 1:44 AM (in response to bleathem)For a pure experiment I implemented that example.
Also I use cssparser-0.9.7.jar, guava-15.0.jar and sac.jar libraries in addition to Richfaces framework as its dependencies.
-
14. Re: Exception with <rich:fileUpload /> - Request prolog cannot be read
bleathem Dec 6, 2013 5:05 PM (in response to octabrain)Alexander Shalin wrote:
For a pure experiment I implemented that example.
Also I use cssparser-0.9.7.jar, guava-15.0.jar and sac.jar libraries in addition to Richfaces framework as its dependencies.
So you implemented the showcase sample in a test project running on JSF 2.1 with only the above mentioned dependencies? What you are describing is a known-to-be-working configuration. Can you post the details of your pom.xml and web.xml? Might as welll post your facelet code as well.