[jboss-jira] [JBoss JIRA] (WFLY-2265) WebUtils#getRealPath("config-data/TESTDEV") cannot be resolved to absolute file path

David Richmond (JIRA) issues at jboss.org
Thu Jan 9 07:39:32 EST 2014


    [ https://issues.jboss.org/browse/WFLY-2265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934672#comment-12934672 ] 

David Richmond commented on WFLY-2265:
--------------------------------------

Causes ZK framework (v6.5) to fail to load its localised messages - http://www.zkoss.org/

ZK has previously worked fine in all its versions on all versions of JBoss since v4.2

13:05:31,413 INFO  [org.zkoss] (default task-8) Loading labels for en_GB
13:05:31,413 SEVERE [org.zkoss] (default task-8) >>java.lang.NullPointerException
>>	at io.undertow.servlet.spec.ServletContextImpl.getResource(ServletContextImpl.java:223)
>>	at org.zkoss.web.util.resource.ServletLabelLocator.locate0(ServletLabelLocator.java:88)
>>	at org.zkoss.web.util.resource.ServletLabelLocator.locate(ServletLabelLocator.java:73)
>>	at org.zkoss.util.resource.impl.LabelLoader.loadLabels(LabelLoader.java:253)
>>	at org.zkoss.util.resource.impl.LabelLoader.getLabel(LabelLoader.java:111)
>>	at org.zkoss.util.resource.impl.LabelLoader.getLabel(LabelLoader.java:102)
>>	at org.zkoss.util.resource.Labels.getLabel(Labels.java:44)
>>	at org.zkoss.mesg.Messages.getFromBundle(Messages.java:80)
>>	at org.zkoss.mesg.Messages.get(Messages.java:133)
>>	at org.zkoss.mesg.Messages.get(Messages.java:51)
>>	at org.zkoss.zul.impl.Utils.addLocaleJS(Utils.java:253)
>>	at org.zkoss.zul.impl.Utils.outLocaleJavaScript(Utils.java:243)

                
> WebUtils#getRealPath("config-data/TESTDEV") cannot be resolved to absolute file path
> ------------------------------------------------------------------------------------
>
>                 Key: WFLY-2265
>                 URL: https://issues.jboss.org/browse/WFLY-2265
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Undertow)
>    Affects Versions: 8.0.0.Beta1
>         Environment: Windows 7
>            Reporter: zhihong liu
>            Assignee: Tomaz Cerar
>              Labels: jboss
>             Fix For: 8.0.0.Final
>
>   Original Estimate: 3 weeks
>  Remaining Estimate: 3 weeks
>
> In windows , when use the WebUtils.getRealPath("config-data/TESTDEV") , it returns error message : ServletContext resource [/config-data/TESTDEV] cannot be resolved to absolute file path.
>  but WebUtils.getRealPath("/") can return the true path . that is to say , this method can't parse the backslash followed by a string . but it works good in linux/unix .

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list