English 中文(简体)
JSF1064 “无法找到或利用资源”
原标题:JSF1064 "Unable to find or serve resource" warning on jsf 2.0

I m在网上与Java EE 5和Joseph F 2.0(Mojarra 2.0.3)合作开展企业项目

我没有错误,但在我提出申请时,在我的奥列里发出了非常令人厌恶的警告。

电话 我在联合武装部队中转手,我收到了以下表格的警告:

Nov 7, 2011 5:36:46 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
WARNING: JSF1064: Unable to find or serve resource, images/jquery-theme/ui-icons_cc0000_256x240.png.
Nov 7, 2011 5:36:46 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
WARNING: 
java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:507)
    at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:486)
    at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382)
    at weblogic.servlet.internal.ChunkOutput$2.checkForFlush(ChunkOutput.java:580)
    at weblogic.servlet.internal.ChunkOutput.write(ChunkOutput.java:306)
    at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:146)
    at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:138)
    at java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:275)
    at com.sun.faces.application.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:277)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310)

但在我的申请中,资源是正确的。 我不知道为什么要显示这种警告,当图像装满时,没有问题。 我在冰面论坛读到,它可能与<代码><h:output/>或<h:outputStylesheet/>tags有关。

这是我使用这些标签:

<h:outputStylesheet name="jquery-theme/jquery-ui-1.8.16.custom.css" library="css"/>

and

<h:outputScript name="jquery-ui-1.8.16.custom.min.js" library="js"/>

这些档案分别载于<条码>/主要/资源/编码>和<条码>> rc/main/resources/js ,并且再次在网页的源代码上正确装载和可见。 我只是想在我的ole子里消除这些警告。

最佳回答

java.net.SocketException: Software caused connection abort: socket write error

在资源仍然忙于下载时,这一连接被切断。 比如,如果你打上了另一页,或压力了Esc,或关闭了浏览器窗,而浏览器仍然忙于下载所有资源。

我检查了Mojarra源代码,见。 ResourceHandlerImpl#handleResourcequest ( (lines 292-294 in Mojarra 2.1.3):

} catch (IOException ioe) {
    send404(context, resourceName, libraryName, ioe, true);
}

因此,关于撰写答复的<编码>IOException被抓获,强行处理为404。 从个人角度来说,这本来应该被忽略,或者通过<条码>授予保留地,而不必被强行转变为《国际仲裁裁决汇编》第404号错误。

I ve reported this as issue 2245 the Mojarra guys. Until then, you can t do anything much against it, but it may be good to know that those warnings won t be logged when the javax.faces.PROJECT_STAGE is set to Production instead of Development. Instead, it will be logged as FINE.

问题回答

暂无回答




相关问题
how to use DynamicResource in the code behind?

I d like to be able to set a property to a dynamic resource programmatically. myControl.Property = this.Resource[key] is not a valid response, since if the resource with the key key is replaced, ...

PHP - Foreach loops and ressources

I m using a foreach loop to process a large set of items, unfortunately it s using alot of memory. (probably because It s doing a copy of the array). Apparently there is a way to save some memory with ...

C# Play MP3 from Resources with MCI or WMP control?

I have a MP3 file in my Resources of Visual C#. I m trying to find out if there is a way I can play this MP3 in a Windows Media Player control or with MCI, I m not particular. I m fairly new to C#. ...

Convert files of any types to a file with c strings

Please suggest a small command-line utility (for Windows) to convert files from particular directory to a valid c file. Maybe it can be done just with batch commands? The resulting file should look ...

How to sort ResourceSet in C#

I have a resource file named filetypes.resx. Some how I figured out to bind the resource values to dropdownlist, but I don t know how to sort the values of ResourceSet. Here is what I did so far, ...

热门标签