Return-Path: Delivered-To: apmail-tiles-users-archive@locus.apache.org Received: (qmail 25428 invoked from network); 24 Jun 2008 18:45:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jun 2008 18:45:51 -0000 Received: (qmail 78868 invoked by uid 500); 24 Jun 2008 18:45:53 -0000 Delivered-To: apmail-tiles-users-archive@tiles.apache.org Received: (qmail 78848 invoked by uid 500); 24 Jun 2008 18:45:53 -0000 Mailing-List: contact users-help@tiles.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tiles.apache.org Delivered-To: mailing list users@tiles.apache.org Delivered-To: moderator for users@tiles.apache.org Received: (qmail 17291 invoked by uid 99); 24 Jun 2008 18:18:14 -0000 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mbhattac@nsf.gov designates 198.181.231.29 as permitted sender) X-SBRS: None X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8D626.895A0E79" Subject: File Upload issue with struts 1.1 Date: Tue, 24 Jun 2008 14:17:18 -0400 Message-ID: <417C76223C86DA4A81AD47CE436272770216F08D@NSF-BE-01.ad.nsf.gov> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: File Upload issue with struts 1.1 Thread-Index: AcjWJnJq54/XTnqwTYqsEHK67mJXdg== From: "Bhattacharya, Mousami" To: X-OriginalArrivalTime: 24 Jun 2008 18:17:18.0419 (UTC) FILETIME=[89827A30:01C8D626] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C8D626.895A0E79 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, We have a web application (using struts 1.1) which works fine on Sun application server. while migrating the application to weblogic 9.2, this file upload issue is coming.=20 java.lang.ClassCastException: org.apache.struts.upload.MultipartRequestWrapper The error occurs in the perform method of the org.apache.struts.tiles.UrlController class, when its trying to call requestDispatcher.include. I think the problem is that UrlController is not unwrapping the Request from the MultipartRequestWrapper . RequestProcessor does something like this // Unwrap the multipart request, if there is one. if (request instanceof MultipartRequestWrapper) { request =3D ((MultipartRequestWrapper) request).getRequest(); } When I change the UrlController (which is part of the struts1.1 jar ) to add the above lines ,the fileupload works fine. Is this a bug in struts 1.1 tiles , or has something to do with weblogic [ since the same code without changes works in sun application server) stack trace : java.lang.ClassCastException: org.apache.struts.upload.MultipartRequestWrapper at weblogic.servlet.internal.ServletRequestImpl.getOriginalRequest(ServletR equestImpl.java:1313) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatche rImpl.java:328) at org.apache.struts.tiles.UrlController.perform(UrlController.java:111) at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Til esRequestProcessor.java:243) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles RequestProcessor.java:309) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) ------_=_NextPart_001_01C8D626.895A0E79--