Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/362.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java JSPEException:读取父文件夹的子资源时出错/认股权证;_Java_Jsp_Servlets_Opencms - Fatal编程技术网

Java JSPEException:读取父文件夹的子资源时出错/认股权证;

Java JSPEException:读取父文件夹的子资源时出错/认股权证;,java,jsp,servlets,opencms,Java,Jsp,Servlets,Opencms,当我尝试登录我的OpenCMS网站的成员部分时,我收到以下错误消息/ javax.servlet.ServletException:javax.servlet.jsp.jspeException:读取父文件夹“/carries/”的子资源时出错 我对java非常陌生,无法理解问题所在。。有人能帮忙吗 致以最良好的祝愿, Anz即使你说你是java新手,我也必须参考一些源代码 ERR\u READ\u RESOURCES\u 1是您看到的错误消息。这意味着您没有访问文件夹内容的权限 您使用的是管

当我尝试登录我的OpenCMS网站的成员部分时,我收到以下错误消息/

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

我对java非常陌生,无法理解问题所在。。有人能帮忙吗

致以最良好的祝愿,
Anz

即使你说你是java新手,我也必须参考一些源代码

ERR\u READ\u RESOURCES\u 1是您看到的错误消息。这意味着您没有访问文件夹内容的权限


您使用的是管理员用户还是具有管理员权限的用户?如果没有,请尝试使用具有管理员权限的。如果仍然出现错误,请确保您的资源(/carries文件夹)同时存在于脱机和联机项目中,这意味着它应该已经被发布。@Mathias。。非常感谢你的答复。。是的,文件夹“认股权证”有在线和离线两种版本,该网站在几天前工作正常。我尝试登录的用户具有管理员权限!是否有其他原因会引发此错误?是否可以从OpenCMS管理员检查文件夹权限?再次感谢..当您登录到OpenCms workplace,然后单击文件夹图标并选择“权限”选项时,您应该会看到该用户(作为您登录的身份)拥有的当前权限。感谢Mathias的帮助..@zawhtut。。谢谢你的答复。。是的,我也认为这是一个权限问题,因为该文件夹是可用的。您知道如何检查文件夹权限并修复此错误吗。再次感谢。很抱歉回复晚了。是的,我喜欢。您可以在文件夹上单击鼠标右键,然后选择“权限”,然后添加组或用户以将权限应用于该文件夹。默认值为“所有其他人”和“管理员”。您可以在帐户管理中创建更多用户。您也可以为用户分配角色。请参阅帐户管理的屏幕截图
/**
         * 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;
        }