-
1. Re: Getting some exceptions while uploading a file using Spring 3 MVC!
ffang Jul 2, 2012 5:30 AM (in response to ravikumarrs)Hi,
I guess you deploy a war in FUSE ESB, right?
If so, the important part is that you need OSGi-fy your war.
Some link I believe should be useful for you.
http://team.ops4j.org/wiki/display/ops4j/PaxWebExtender-War-OSGi-fy
http://karaf.apache.org/manual/2.2.7/users-guide/web-applications.html
Freeman
-
2. Re: Getting some exceptions while uploading a file using Spring 3 MVC!
davsclaus Jul 2, 2012 5:51 AM (in response to ravikumarrs)How do you deploy your application? As a WAR file or as an OSGi bundle?
And is this file WEB-INF/security-servlet.xml from your bundle? eg in this xml file, there seems to be a with id multipartResolver that uses a class from another spring JAR. I think that class is in spring-web or spring-mvc, which mean you need to install those bundle as well.
-
3. Re: Getting some exceptions while uploading a file using Spring 3 MVC!
ravikumarrs Jul 2, 2012 6:32 AM (in response to davsclaus)Hi Clause,
Thanks for your reply.
I am deploying it as an OSGI bundle. Yes. this file is from bundle and residing under WEB-INF/security-servlet.xm. You are correct, this class is in spring-web. I am installing spring-web through features.xml.
When I list the installed jars, I could see the successful installation of Spring Web and Web Servlet.
410 Active 60 Spring Web (3.0.5.RELEASE) 411 Active 60 Spring Web Servlet (3.0.5.RELEASE)
Although, I am getting this error. Do I need to change any configuration/features?
Ravi
Edited by: ravikumarrs on Jul 2, 2012 4:01 PM
-
4. Re: Getting some exceptions while uploading a file using Spring 3 MVC!
davsclaus Jul 2, 2012 8:27 AM (in response to ravikumarrs)Yes your bundle need to import the package of this class in the MANIFEST.MF file.
If you build your bundle using maven, then the felix-maven-plugin has configurations to add additional packages, which you can specify in the pom.xml file.
Normally the felix-maven-plugin auto scans the META-INF/spring and OSGI-INF/blueprint XML files and adds package imports for the in those files. I guess it doesn't scan the WEB-INF directory.
-
5. Re: Getting some exceptions while uploading a file using Spring 3 MVC!
ravikumarrs Jul 3, 2012 5:33 AM (in response to ravikumarrs)Hi Claus,
Thanks for your reply.
If I use enctype="multipart/form-data" along with the form tag in JSP, all the form fields values will be null. If I remove this all the form fields will be having values, and I am able to do further business processing. Eventhough if I import the form tab lib also getting the below exception.
Kindly let me know, what could be the issue.
Ravi
Edited by: ravikumarrs on Jul 3, 2012 2:59 PM
-
6. Re: Getting some exceptions while uploading a file using Spring 3 MVC!
ffang Jul 3, 2012 5:32 AM (in response to ravikumarrs)Hi,
Could you append the OSGi metadata header of your war?
Freeman
-
7. Re: Getting some exceptions while uploading a file using Spring 3 MVC!
ravikumarrs Jul 3, 2012 6:12 AM (in response to ffang)Hi Freeman,
Thanks for your quick reply.
Is Service-Mix supports enctype="multipart/form-data" or "multipart/mixed stream" along with form tag in jsp?
Ravi
Edited by: ravikumarrs on Jul 3, 2012 3:41 PM
-
8. Re: Getting some exceptions while uploading a file using Spring 3 MVC!
ravikumarrs Jul 3, 2012 6:28 AM (in response to ravikumarrs)Is Service-Mix supports enctype="multipart/form-data" or "multipart/mixed stream" along with form tag in jsp?
Ravi
-
9. Re: Getting some exceptions while uploading a file using Spring 3 MVC!
ravikumarrs Jul 10, 2012 5:05 AM (in response to ravikumarrs)This is been resolved. Thank you all.