Hi,
I want to do a file uplaod with Tobago, but I always get an exception
when submitting the page:
2007-01-23 15:40:44 http-8080-Processor23 ERROR -
org.apache.myfaces.application.jsp.JspStateManagerImpl:599 - Exiting s
erializeView - Could not serialize state:
org.apache.commons.fileupload.DeferredFileOutputStream
java.io.NotSerializableException:
org.apache.commons.fileupload.DeferredFileOutputStream
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
...
JSP:
<tc:file id="dateiname" value="#{anlagenController.file}"/>
AnlagenController.java:
public void setFile(FileItem file) {
LOG.error("Setting fileItem " + file.getName());
this.filename = file.getName();
}
web.xml:
<filter>
<filter-name>multipartFormdataFilter</filter-name>
<filter-class>org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter</filter-class>
</filter>
classpath:
tobago-fileupload-1.0.10-SNAPSHOT.jar
commons-fileupload-1.0.jar
I've no idea what's wrong or missing. And there's no documentation,
except the simple example in the source...
Regards
Helmut