beangle/beangle-core — Issue #89: ContentPath为空时异常
Author: mychii
Created: 2011-12-26 10:50:34+00:00
State: open

在Tomcat以ROOT发布项目时，contentPath为空时出现异常：

1. java.lang.IllegalArgumentException: The validated string is empty
org.apache.commons.lang.Validate.notEmpty(Validate.java:321)
org.apache.commons.lang.Validate.notEmpty(Validate.java:339)
org.beangle.web.url.UrlBuilder.(UrlBuilder.java:30)

2.某些资源会出不到

访问路径：http://localhost:8080/security/security/user.action
根据访问路径计算的contentPath不对，不应该为security

"NetworkError: 404 Not Found - http://localhost:8080/security/static/themes/default/icons/16x16/actions/new.png"
new.png
"NetworkError: 404 Not Found - http://localhost:8080/security/static/themes/default/icons/16x16/actions/update.png"
update.png
"NetworkError: 404 Not Found - http://localhost:8080/security/static/themes/default/icons/16x16/actions/edit-delete.png"
edit-delete.png
"NetworkError: 404 Not Found - http://localhost:8080/security/static/themes/default/icons/16x16/actions/excel.png"