用jeesite做了一个网站,在本地测试一切正常,本地程序用虚拟空间上的数据库也正常
用的(jspkongjian.net)的jsp虚拟空间,虚拟空间有权限限制,只允许你的程序读写项目所在的tomcat 目录。
上传程序后,无法访问。
jeesite.log 提示:
2015-01-07 09:43:19,812 [Thread-1] ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in file [D:\tomcat\lkai\webapps\systek_v1\WEB-INF\classes\spring-context-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\tomcat\lkai\webapps\systek_v1\WEB-INF\classes\spring-context-shiro.xml]: Cannot resolve reference to bean 'systemAuthorizingRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.thinkgem.jeesite.common.persistence.BaseDao.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\tomcat\lkai\webapps\systek_v1\WEB-INF\classes\spring-context.xml]: Invocation of init method failed; nested exception is org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.thinkgem.jeesite.modules.cms.entity.Article at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:753) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\tomcat\lkai\webapps\systek_v1\WEB-INF\classes\spring-context-shiro.xml]: Cannot resolve reference to bean 'systemAuthorizingRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.thinkgem.jeesite.common.persistence.BaseDao.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\tomcat\lkai\webapps\systek_v1\WEB-INF\classes\spring-context.xml]: Invocation of init method failed; nested exception is org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.thinkgem.jeesite.modules.cms.entity.Article at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323) ... 38 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.thinkgem.jeesite.common.persistence.BaseDao.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\tomcat\lkai\webapps\systek_v1\WEB-INF\classes\spring-context.xml]: Invocation of init method failed; nested exception is org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.thinkgem.jeesite.modules.cms.entity.Article at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:286) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323) ... 48 more Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.thinkgem.jeesite.common.persistence.BaseDao.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\tomcat\lkai\webapps\systek_v1\WEB-INF\classes\spring-context.xml]: Invocation of init method failed; nested exception is org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.thinkgem.jeesite.modules.cms.entity.Article at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286) ... 58 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\tomcat\lkai\webapps\systek_v1\WEB-INF\classes\spring-context.xml]: Invocation of init method failed; nested exception is org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.thinkgem.jeesite.modules.cms.entity.Article at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:912) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:855) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:770) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489) ... 60 more Caused by: org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.thinkgem.jeesite.modules.cms.entity.Article at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:230) at org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:102) at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:414) at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:222) at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:146) at org.hibernate.search.event.impl.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:130) at org.hibernate.search.hcore.impl.HibernateSearchIntegrator.integrate(HibernateSearchIntegrator.java:83) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:303) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1750) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1788) at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:247) at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:373) at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:358) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509) ... 70 more Caused by: org.hibernate.search.SearchException: Unable to initialize directory provider: com.thinkgem.jeesite.modules.cms.entity.Article at org.hibernate.search.store.impl.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:87) at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.createDirectoryProvider(DirectoryBasedIndexManager.java:232) at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:100) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:227) ... 84 more Caused by: org.hibernate.search.SearchException: Unable to create index directory: C:\WINDOWS\system32\indexes for index com.thinkgem.jeesite.modules.cms.entity.Article at org.hibernate.search.store.impl.DirectoryProviderHelper.makeSanityCheckedDirectory(DirectoryProviderHelper.java:255) at org.hibernate.search.store.impl.DirectoryProviderHelper.getVerifiedIndexDir(DirectoryProviderHelper.java:237) at org.hibernate.search.store.impl.FSDirectoryProvider.initialize(FSDirectoryProvider.java:66) at org.hibernate.search.store.impl.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:84) ... 87 more
详细logs在附件
原因:
jeesite.properties中
hibernate.search.default.indexBase=indexes
导致异常
Caused by: org.hibernate.search.SearchException: Unable to create index directory: C:\WINDOWS\system32\indexes for index com.thinkgem.jeesite.modules.cms.entity.Article
因为虚拟空间只有tomcat目录的读写权限,而程序却访问了tomcat之外的路径。
解决方法:
修改
hibernate.search.default.indexBase=indexes
为
hibernate.search.default.indexBase=D:\\apache-tomcat-6.0.35\\jeesiteSearchBase
也就是指定到tomcat下面的某个路径
相关推荐
综上所述,Jeesite实现图片上传到数据库并解析展示,涉及到的技术点包括前端交互、后端处理、数据库操作、图片流处理等。通过这一系列步骤,可以构建出一个高效、安全的图片管理系统。在实际开发中,开发者需要根据...
txt中介绍了jeesite部署到WebLogic12.1.3修改方法,修改后直接打war包部署到容器即可。只是ckfinder文件服务器无法正常使用,目前仍没找到办法,欢迎大家赐教。
Jeesite4.2 环境配置 Jeesite4.2 是一个基于 Java 的快速平台开发框架,为了配置 Jeesite4.2 环境,需要安装和配置多个组件,包括 Java SDK、Apache Maven、IntelliJ IDEA、MySql 等。 一、安装 Java SDK 首先,...
- 如果用户未登录,Shiro 将自动重定向到配置的 `loginUrl`,在 Jeesite 中,这通常是登录界面。 3. **创建 Token**: - `FormAuthenticationFilter` 会捕获前端提交的 `username` 和 `password`,并使用 `...
总结起来,这个 Jeesite 使用配置和 API 文档包为开发者提供了一个全面的学习和实践平台,涵盖了从框架安装、配置到实际开发应用的各个环节,无论是初学者还是有经验的开发者,都能从中获益,提高开发效率和项目质量...
JeeSite 提供了常用工具进行封装,包括日志工具、缓存工具、服务器端验证、数据字典、当前组织机构数据 (用户、机构、区域)以及其它常用小工具等。另外还提供一个强大的在线 代码生成 工具, 此工具提供简单的单表...
jeesite-framework-反编译_jeesite4.0_jeesite4_jeesite-framework_jeesite_Framework_源码.zip
2. **Spring MVC + MyBatis**: 作为基础架构,Jeesite使用Spring MVC处理HTTP请求,MyBatis作为持久层框架,提供了灵活的数据访问机制。 3. **权限控制**: Jeesite具有强大的权限控制功能,支持角色、菜单、按钮等...
缓存可以显著提高应用性能,Jeesite可能会使用如`ehcache.jar`等缓存库,用于存储和检索数据,减少对数据库的直接访问。 9. **日志记录** `log4j.jar`、`slf4j.jar`等日志记录库,可以帮助开发者追踪应用运行时的...
2. **基于Spring Boot**:Jeesite采用Spring Boot作为技术栈的基础,利用其自动化配置、内嵌式Web服务器(如Tomcat)和对Spring生态系统的全面支持,简化了项目的搭建和配置过程。 3. **数据权限控制**:Jeesite...
JeeSite 免费开源框架开发配置说明 JeeSite 是一个免费开源框架,用于开发企业信息管理系统。该框架提供了一个基础架构,帮助开发者快速搭建企业信息管理系统。下面是 JeeSite 开发配置说明的详细介绍: 目录结构 ...
使用`jeesite-master`框架时,开发者可以享受到其强大的功能,如MVC架构、数据访问支持、权限控制、表单验证等。此外,由于它是纯净版,意味着没有预装额外的插件或模块,用户可以根据自己的需求选择添加,从而保持...
4. **CAS客户端配置**:在Jeesite2应用中,我们需要配置CAS客户端,使得用户登录请求能正确地重定向到CAS服务器进行验证。这通常涉及修改`application.properties`或`application.yml`配置文件,设置CAS服务器的URL...
2. **配置URL**:在Jeesite的配置文件中,需要配置Ueditor的服务器端处理URL,用于处理图片、文件的上传等操作。这通常涉及到修改`ueditor.properties`或者在`application.yml`中添加相关配置。 3. **编写处理器**...
在"jeesite-master"这个压缩包中,包含了Jeesite框架的源码,开发者可以通过学习和研究这些源码,进一步了解如何将SpringMVC、Spring和MyBatis这三大技术整合到一个实际项目中。此外,这个项目还可能包含了示例代码...
【jeesite-说明文档】 JeeSite 是一个基于 Spring Boot、Spring MVC、MyBatis、Shiro、Redis、Quartz 等技术构建的快速开发平台,旨在简化企业级应用的开发工作,提高开发效率。它提供了一整套包括权限管理、内容...
在Jeesite中,Druid作为数据访问层的重要组件,确保高效稳定的数据操作。 7. `aspectjweaver-1.7.4.jar`: AspectJ是一个面向切面编程(AOP)的Java工具,用于分离关注点,如日志、事务管理等。在Jeesite中,AspectJ...
开发者可以通过导入这个文件,快速地在本地或服务器上设置好Jeesite的数据库环境。 在Jeesite-Mysql-V5.0.1的集成中,关键的技术点包括: 1. **JDBC连接管理**:Jeesite使用Spring JDBC模板来管理数据库连接,提供...