From user-return-218828-archive-asf-public=cust-asf.ponee.io@struts.apache.org Thu Feb 15 16:12:48 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E06B818064A for ; Thu, 15 Feb 2018 16:12:47 +0100 (CET) Received: (qmail 76520 invoked by uid 500); 15 Feb 2018 15:12:46 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 76494 invoked by uid 99); 15 Feb 2018 15:12:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2018 15:12:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3C47DC0033 for ; Thu, 15 Feb 2018 15:12:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.499 X-Spam-Level: X-Spam-Status: No, score=0.499 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=live.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1MaFN75NlJnd for ; Thu, 15 Feb 2018 15:12:42 +0000 (UTC) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-oln040092067080.outbound.protection.outlook.com [40.92.67.80]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id CE8115F125 for ; Thu, 15 Feb 2018 15:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=J2Nvbkn8HrRKMVBRmiji9lrJ9XEXMNs9xV0G5GJssUg=; b=IGuW1mNHdBwseXsXIViakOzeiMvrsnsCROWxBWfmdcx6xfOlhIpZ0Up79M/eKF7dmPyPombA9fja90KZgprOlulux+onWCuJgeDYg+Uf7D+LBCR+VwsoZ5t3XEuiHIh3MNU2iTn5QiPuFmEoNl4j48pA21AsxlPyn/vNDC2Vid3nyRCb3PAsvTMbZs0MRzI/G/6s9OPFUZpIjM1a8hJinNeaxi/efD18o7awCHqobDuWCAb8F/B0AxfHKstJdRQRlPe7ZZHd+IJtWmxAlivJ+cTHYo3dlUHPt2eUJhN7YFIj2P3MPAjsx7Rqr2/w+moVXv4aE08BoAbMou5feP6Dnw== Received: from AM5EUR02FT062.eop-EUR02.prod.protection.outlook.com (10.152.8.52) by AM5EUR02HT086.eop-EUR02.prod.protection.outlook.com (10.152.9.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.485.12; Thu, 15 Feb 2018 15:12:40 +0000 Received: from DB5PR08MB1062.eurprd08.prod.outlook.com (10.152.8.57) by AM5EUR02FT062.mail.protection.outlook.com (10.152.9.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.485.12 via Frontend Transport; Thu, 15 Feb 2018 15:12:40 +0000 Received: from DB5PR08MB1062.eurprd08.prod.outlook.com ([fe80::b41a:ced0:24da:dda8]) by DB5PR08MB1062.eurprd08.prod.outlook.com ([fe80::b41a:ced0:24da:dda8%13]) with mapi id 15.20.0485.015; Thu, 15 Feb 2018 15:12:40 +0000 From: Yasser Zamani To: "user@struts.apache.org" Subject: Re: BUG in struts-2.5.15 Thread-Topic: BUG in struts-2.5.15 Thread-Index: AdOlqeEXkbFgtAiyQYmYQYPPtbrNvQAxYbkA Sender: Yasser Zamani Date: Thu, 15 Feb 2018 15:12:39 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:1F1DB622372EA9513BC734B5FC11C720EB19905BDE9FF6915763F19B4B459D85;UpperCasedChecksum:90F944A362003720FBA0A5648D59B69CC00C0F77D478835A787585E1A226DD11;SizeAsReceived:7063;Count:47 x-ms-exchange-messagesentrepresentingtype: 2 x-tmn: [VbXKQmA6ENV1jYbXNJgkgxHl5RTZj8tD] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM5EUR02HT086;6:2NgUeL8HPlgQo9theyj+wGGWDX+AiaMBVQzxfQGRSwSplkSB/n5iw4iNVKVhMq46ZqR7YXDIUXnslOzQzOdWQsZqkauJpsKQskGV6nUbmdDrkqylfN/i2AMLyXY+QFu9c6vTps1YDGlyx/QAKFSvhUF16v9wIKXnzCB18s4EpadJQkqCk7RxScz/McJ5W8eMToVS5HXg+WBwwHY6SidTVY7nDVGQupXPXtNWol71brxnkSV0joOnvEJafYlyGzBMP4G/cIrDrXn0w1AKR3Ny9H9qq4Y55UOZIACAhaRw7hyLWtHSVI9hKzeCgnaPUM5XZvi6K7sRwl3YVM4KrC5JK5HWxEoSL12Og3GkYyCAhjg=;5:s6RwfYFuAw+MH3Pq3LJnZ3nOne22yZ1jEfgV1DqywwabPihsfNbG/LaJcvJ5P7OT8ykYih1TzS4Ar4HkWUqIihDaBAdqTaewf/oflD3lsMsPef12qxbs0bUXAXvYFKCVTskShV9DQarhhThkRU7/wpFx0ZYyYxEbzTicmsMmZz8=;24:9pE+33GXbQlZ24hVaMDXhVo1R7/sZMs1lywx9i2n9aessiybxIih7vP8+8icj0jMU94KHrJRAYs7D1i+YRp82ExAiAjs+mee5RzI4rE252s=;7:5/bLsGzGIo+gNvzrm+SfnluhCrg8dd5q/DMfX5f8cyVPUpO86wXAWfKothzDkaO20oGGmeOkmlwgIpPgEkGNaSrqo2lhUNkjp4jL17TrsNI4xBt6IE+Q2PVieh7Ww4/DYZAW/1OptX9WWap6dynkTa2jWJITcpNflOjgLs5gl73bvgkM8Tbt28sag0v6yXianTk5+nTmaI7XtiInUosNf/gOUcK2XTazCwfONUFX1OjilSAHGU9MSFxJC6FpH/lQ x-incomingheadercount: 47 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045);SRVR:AM5EUR02HT086; x-ms-traffictypediagnostic: AM5EUR02HT086: x-ms-office365-filtering-correlation-id: f0c3967a-7fa8-441e-3b4c-08d574868d08 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:AM5EUR02HT086;BCL:0;PCL:0;RULEID:;SRVR:AM5EUR02HT086; x-forefront-prvs: 058441C12A x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:AM5EUR02HT086;H:DB5PR08MB1062.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: <1507B8ECB5878341BA186331A598FA12@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0c3967a-7fa8-441e-3b4c-08d574868d08 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2018 15:12:39.5235 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT086 On 2/14/2018 7:13 PM, liemnguyen@ups.com.INVALID wrote: > Hi all, >=20 > Testing your upcoming struts-2.5.15, when starting Weblogic server (Weblo= gic server version 12.2.1.2.0, JDK v 1.8.0_101), we see exception below. >=20 > Thanks, > Liem. > -------------------------------------------- >=20 > 2018-02-14 10:28:37.194 WARN - Could not create JarEntryRevision for [zi= p:C:/Oracle/Middleware/Oracle_Home12.2.1.0.0/user_projects/domains/iwa_loca= l_domain/servers/AdminServer/tmp/_WL_user/IWA/zfd81u/war/WEB-INF/lib/struts= 2-core.jar!/struts-default.xml]! > java.net.MalformedURLException: unknown protocol: c > at java.net.URL.(URL.java:600) ~[?:1.8.0_101] > at java.net.URL.(URL.java:490) ~[?:1.8.0_101] > at java.net.URL.(URL.java:439) ~[?:1.8.0_101] > at java.net.JarURLConnection.parseSpecs(JarURLConnection.= java:175) ~[?:1.8.0_101] > at java.net.JarURLConnection.(JarURLConnection.java= :158) ~[?:1.8.0_101] > at com.opensymphony.xwork2.util.fs.StrutsJarURLConnection= .(StrutsJarURLConnection.java:44) ~[struts2-core.jar:2.5.15] > at com.opensymphony.xwork2.util.fs.StrutsJarURLConnection= .openConnection(StrutsJarURLConnection.java:99) ~[struts2-core.jar:2.5.15] > at com.opensymphony.xwork2.util.fs.JarEntryRevision.build= (JarEntryRevision.java:42) [struts2-core.jar:2.5.15] > at com.opensymphony.xwork2.util.fs.DefaultFileManager.mon= itorFile(DefaultFileManager.java:94) [struts2-core.jar:2.5.15] Hi Liem, Thank you so much for your report and nice catch! It seems weblogic is commerical and so I cannot try this myself then may I ask you to run following code in your action then examine output and reply me every line starting with "COPY ME:"? import com.opensymphony.xwork2.util.ClassLoaderUtil; public String execute() throws Exception { Iterator strutsDefaultXmls =3D ClassLoaderUtil.getResources("struts-default.xml", this.getClass(), true); while (strutsDefaultXmls.hasNext()) { URLConnection conn =3D strutsDefaultXmls.next().openConnection(= ); System.out.println("COPY ME: " + conn.toString()); conn.getInputStream().close(); } These two days I tried to make StrutsJarURLConnection even more decoupled from container (e.g. weblogic) but could not pass tests so far :( The issue is, JDK's JarURLConnection expects url of jars in jar:!/{entry} format but weblogic reports them as zip:C:/... then JDK is going to convert C:/... to url then sees it does not know any protocol named c. So I'm interested to know if "conn.toString" above contains "jar" or not i.e. does weblogic report them as jars or not. I also would like to say it seems it's just a warning and does not block your app functionality; Only "reloading configs runtime when jar changes" won't work as expected. Thanks in advance! --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org