I am still stuck in this problem:
Although I learned much about Filters and the web.xml deployment descriptor in the last few days, i do not get the jBPM Starter's Kit to work after inserting the following entry into web.xml:
(Although this is the way recommended under
No matter, in which order I put the filter-mappings, no matter if I use a <servlet-name>-mapping or an <url-pattern>-mapping, no matter if I map the ExtensionsFilter before the FacesServlet or after it, to "/*" or to a certain .jsp-page (even if i map it to a jsp that is not accessed at all!)...
...the Hibernate session gets closed mysteriosly, and I get the following error:
18:36:32,274 ERROR [LazyInitializationException] could not initialize proxy - the owning Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed
If I've understood it right, theoretically, every request passes the chain of filters described in web.xml in the order they appear resp. in the order the filter mappings are defined.
Theoretically, the org.apache.myfaces.component.html.util.ExtensionsFilter only applies its filter if the request is of the type enctype="multipart/form-data". So there should be no problem if the form hasn't the attribute enctype="multipart/form-data".
But the JSF application keeps on crashing, no matter what I do.
Can anyone give me a hint how I can integrate a file upload possibility into the Starter's Kit Example? It does not have to be commons-fileupload...
Why doesn't jBPM/Hibernate like the ExtensionFilter?
Any help would be highly appreciated.