2011-09-01 19 views
0

我收到以下错误消息时,我尝试登录到我的OpenCms的构件截面website./JSPException异常:错误读取父文件夹的子资源“/权证/”

javax.servlet.ServletException: javax.servlet.jsp.JspException:读取父文件夹“/ warrants /”的子资源时出错。

我很新的Java和无法理解什么问题。可以请人帮助..

最好的问候, ANZ

+1

您使用的是管理员用户或具有管理员权限的用户一些?如果没有,请尝试使用具有管理员权限的人员。如果仍然出现错误,请确保您的资源(/ warrants文件夹)既存在于脱机项目中,也存在于在线项目中,这意味着它应该已经发布。 –

+0

@Mathias ..非常感谢您的答复..是的文件夹“权证”是在线和离线版本都可用,该网站工作正常,直到几天前。我尝试登录的用户拥有管理员权限!有没有其他的原因可以抛出这个错误?是否可以从OpenCMS管理员检查文件夹权限? –

+1

登录到OpenCms工作区后,单击文件夹图标,然后选择'权限'选项,您应该看到用户(与您登录的用户)拥有的当前权限。 –

回答

0

我要引用一些源代码,即使你说你是新的Java。

ERR_READ_RESOURCES_1是您看到的错误消息。这意味着您无权访问文件夹内容。

Source code

/** 
     * Reads all resources below the given path matching the filter criteria, 
     * including the full tree below the path only in case the <code>readTree</code> 
     * parameter is <code>true</code>.<p> 
     * 
     * @param context the current request context 
     * @param parent the parent path to read the resources from 
     * @param filter the filter 
     * @param readTree <code>true</code> to read all subresources 
     * 
     * @return a list of <code>{@link CmsResource}</code> objects matching the filter criteria 
     * 
     * @throws CmsSecurityException if the user has insufficient permission for the given resource (read is required) 
     * @throws CmsException if something goes wrong 
     * 
     */ 
     public List readResources(CmsRequestContext context, 
       CmsResource parent, CmsResourceFilter filter, 
       boolean readTree) throws CmsException, CmsSecurityException { 

      List result = null; 
      CmsDbContext dbc = m_dbContextFactory.getDbContext(context); 
      try { 
       // check the access permissions 
       checkPermissions(dbc, parent, CmsPermissionSet.ACCESS_READ, 
         true, CmsResourceFilter.ALL); 
       result = m_driverManager.readResources(dbc, parent, filter, 
         readTree); 
      } catch (Exception e) { 
       dbc.report(null, Messages.get().container(
         Messages.ERR_READ_RESOURCES_1, 
         context.removeSiteRoot(parent.getRootPath())), e); 
      } finally { 
       dbc.clear(); 
      } 
      return result; 
     } 
+0

@zawhtut ..感谢您的回复..是的,我也认为它是一个权限问题,因为该文件夹可用。你知道如何检查文件夹权限并修复此错误。再次感谢。 –

+1

对不起,延迟回复。是的,我愿意。您可以右键单击文件夹并选择权限并添加组或用户以将权限应用于该文件夹。默认值是“All Others”和“Admin”。您可以在帐户管理中创建更多用户。您也可以将角色分配给用户。查看账户管理的截图http://www.opencms.org/en/support/features/features7/usermanagement.html – zawhtut

+0

感谢Zawhtut的帮助...... –

相关问题