You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2015/01/29 15:09:34 UTC
[jira] [Commented] (OFBIZ-5521)
WebAppUtil.getWebappInfoFromWebsiteId throws IllegalArgumentException when
web.xml not found
[ https://issues.apache.org/jira/browse/OFBIZ-5521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14296884#comment-14296884 ]
Jacques Le Roux commented on OFBIZ-5521:
----------------------------------------
If OFBIZ-5305 is re-deone then this will need to be also
> WebAppUtil.getWebappInfoFromWebsiteId throws IllegalArgumentException when web.xml not found
> --------------------------------------------------------------------------------------------
>
> Key: OFBIZ-5521
> URL: https://issues.apache.org/jira/browse/OFBIZ-5521
> Project: OFBiz
> Issue Type: Bug
> Components: ALL COMPONENTS
> Affects Versions: Trunk
> Reporter: Gareth Carter
> Assignee: Jacques Le Roux
> Priority: Minor
> Fix For: Release Branch 11.04, Release Branch 12.04, Release Branch 13.07, Trunk
>
> Attachments: WebAppUtil.patch
>
>
> WebAppUtil.getWebappInfoFromWebsiteId throws IllegalArgumentException when web.xml does not exist in applications/content/webapp/content/images/WEB-INF/web.xml. This causes org.ofbiz.common.email.NotificationServices.setBaseUrl to fail when webSiteId is a custom component site id.
> Stack trace
> java.lang.IllegalArgumentException: applications/content/webapp/content/images/WEB-INF/web.xml does not exist.
> org.ofbiz.webapp.WebAppUtil.parseWebXmlFile(WebAppUtil.java:148)
> org.ofbiz.webapp.WebAppUtil.getWebXml(WebAppUtil.java:131)
> org.ofbiz.webapp.WebAppUtil.getWebSiteId(WebAppUtil.java:117)
> org.ofbiz.webapp.WebAppUtil.getWebappInfoFromWebsiteId(WebAppUtil.java:100)
> org.ofbiz.common.email.NotificationServices.setBaseUrl(NotificationServices.java:262)
> org.ofbiz.common.email.NotificationServices.prepareNotification(NotificationServices.java:200)
> org.ofbiz.common.email.NotificationServices.sendNotification(NotificationServices.java:132)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)