[ http://issues.apache.org/jira/browse/JS2-450?page=all ]
Ate Douma closed JS2-450:
-------------------------
Fix Version: 2.1
2.1-dev
Resolution: Fixed
Thanks for the report.
Fixed (almost) like you suggested ;)
> portlet application manager eats useful exception message
> ---------------------------------------------------------
>
> Key: JS2-450
> URL: http://issues.apache.org/jira/browse/JS2-450
> Project: Jetspeed 2
> Type: Bug
> Components: Portlet Registry
> Versions: 2.0-FINAL
> Reporter: Han Lee
> Priority: Minor
> Fix For: 2.1, 2.1-dev
>
> I had an error in my portlet.xml file; it referenced a security role that was
> not registered in web.xml. Instead of telling me this,
> PortletApplicationManager.java threw a "Failed to load portlet application
> for ..." exception. A new exception was thrown, so I could not see the real
> error.
> I fixed this by changing the throw at line PortletApplicationManager.java:273
> to include the nested exception.
> Old:
> catch (Exception e)
> {
> String msg = "Failed to load portlet application for "
> + paWar.getPortletApplicationName();
> log.error(msg);
> throw new RegistryException(msg);
> }
> New:
> catch (Exception e)
> {
> String msg = "Failed to load portlet application for "
> + paWar.getPortletApplicationName();
> log.error(msg);
> throw new RegistryException(msg,e);
> }
> I've never commited code to your project and I'm not currently able to do a
> full build. (I built the jetspeed-portal-2.0.jar and copied it to a binary
> distribution.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]