- 浏览: 34037 次
- 性别:
- 来自: 深圳
文章分类
最新评论
-
Tjee:
有源码吗,为什么我只是在页面上打印出form key
ACTIVITI 自定义外置表单 formkey JSP -
shawnfree:
如何解决的啊。。
在spring用jndi得到tomcat中的datasource的问题 -
august_000:
ququzone 写道呵呵,推荐看看Django Auth模块 ...
RBAC -
ququzone:
呵呵,推荐看看Django Auth模块的数据库设计,很好的基 ...
RBAC
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"> <!-- <bean id="conn" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property> <property name="url" value="jdbc:oracle:thin:@localhost:1521:Bear"></property> <property name="username" value="scott"></property> <property name="password" value="tiger"></property> </bean> <bean id="conn" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"></property> <property name="url" value="jdbc:microsoft:sqlserver://localhost:1433"> </property> <property name="username" value="sa"></property> <property name="password" value=""></property> </bean> --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" > <property name="driverClassName" value="com.mysql.jdbc.Driver"></property> <property name="url" value="jdbc:mysql://localhost:3306/test?characterEncoding=GBK"></property> <property name="username" value="root"></property> <property name="password" value="test"></property> </bean> <!-- <bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"> <property name="configLocation"> <value> classpath:sqlMapConfig.xml </value> </property> <property name="dataSource" ref="dataSource" /> </bean> --> <bean id="sqlMapClientTemplate" class="org.springframework.orm.ibatis.SqlMapClientTemplate"> <property name="sqlMapClient"> <bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"> <property name="dataSource" ref="dataSource" /> <property name="configLocation" value="classpath:sqlMapConfig.xml" /> </bean> </property> </bean> <bean id="sBookDAO" class="cn.com.pms.createPro.dao.SBookDAO"> <property name="sqlMapClientTemplate" ref="sqlMapClientTemplate" /> </bean> <bean id="sBookServices" class="cn.com.pms.createPro.service.SBookServices"> <property name="sbookDAO" ref="sbookDAO" /> <property name="createProService" ref="createProService" /> </bean> <bean id="sessionFactory" name="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource"> <ref bean="dataSource" /> </property> <property name="configLocation" value="classpath:hibernate.cfg.xml" /> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect"> org.hibernate.dialect.MySQLDialect </prop> <prop key="hibernate.show_sql">true</prop> </props> </property> </bean> <bean id="jbpmConfiguration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean"> <property name="sessionFactory" ref="sessionFactory" /> <property name="configuration" value="classpath:org/jbpm/default.jbpm.cfg.xml" /> <property name="createSchema" value="false" /> </bean> <bean id="jbpmTemplate" class="org.springmodules.workflow.jbpm31.JbpmTemplate"> <constructor-arg index="0" ref="jbpmConfiguration" /> </bean> <bean id="createProService" class="cn.com.pms.workflow.createPro.service.CreateProService"> <property name="jbpmTemplate" ref="jbpmTemplate"></property> </bean> <!--定义事务管理器 --> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource" /> </bean> <!-- 定义事务通知--> <tx:advice transaction-manager="transactionManager" id="txAdvice"> <tx:attributes> <tx:method name="save*" propagation="REQUIRED"></tx:method> </tx:attributes> </tx:advice> <!--定义一个切面及切面和事务关联--> <aop:config> <aop:pointcut id="myPoint" expression="execution(* service..*.*(..))" /> <aop:advisor advice-ref="txAdvice" pointcut-ref="myPoint" /> </aop:config> </beans>
在启动tomcat的时候报了以下错误:
引用
11:59:09,269 INFO JbpmConfiguration:278 - using jbpm configuration resource 'jbpm.cfg.xml'
11:59:09,306 INFO StaleObjectLogConfigurer:37 - stale object exceptions will be hidden from logging
11:59:10,697 INFO LocalJbpmConfigurationFactoryBean:125 - creating JbpmConfiguration from resource class path resource [org/jbpm/default.jbpm.cfg.xml]
11:59:10,719 INFO LocalJbpmConfigurationFactoryBean:141 - using given Hibernate session factory
11:59:10,726 INFO LocalJbpmConfigurationFactoryBean:149 - persistence service available...
11:59:11,151 INFO DefaultListableBeanFactory:282 - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1eb904d: defining beans [firstAuditAssigner,springSBookAction,dataSource,sqlMapClientTemplate,sBookDAO,sBookServices,sessionFactory,jbpmConfiguration,jbpmTemplate,createProService,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,myPoint,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor]; root of factory hierarchy
11:59:11,152 INFO LocalSessionFactoryBean:188 - Closing Hibernate SessionFactory
11:59:11,155 ERROR ContextLoader:204 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sBookServices' defined in ServletContext resource [/WEB-INF/SpringContext.xml]: Cannot resolve reference to bean 'sbookDAO' while setting bean property 'sbookDAO'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sbookDAO' is defined
Caused by:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sbookDAO' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:914)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:241)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
11:59:11,158 ERROR [/PMSDEMO]:3768 - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sBookServices' defined in ServletContext resource [/WEB-INF/SpringContext.xml]: Cannot resolve reference to bean 'sbookDAO' while setting bean property 'sbookDAO'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sbookDAO' is defined
Caused by:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sbookDAO' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:914)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:241)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2009-7-19 11:59:11 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
我开始怀疑:jbpm 能不能应用于ssi的架构中。有没有人用过此配方?
见笑了!发现N年前原来是自己把ID写错了,粗心的人啊!
相关推荐
【jbpm应用实例(Struts2+Spring2+iBatis2.3+WebService)】是一个典型的Java企业级应用集成示例,它展示了如何将几种流行的技术框架整合在一起,以实现业务流程管理(BPM)的功能。jbpm是一个开源的工作流和业务...
包含很多常用的中文API,包含如下: css2中文沈小雨版.chm css3.0参考手册.chm Freemaker_入门+深入+开发指南+学习笔记.doc FreeMarker标签中文文档.pdf FreeMarker教程.pdf ibatis开发指南(中文版)....Struts2 API.chm
Maven框架项目该项目不再更新维护,请移步该项目基于maven3.0构建的,项目中融合了Struts1 , Struts2 , Spring , SpringMVC , Hibernate , Ibatis , MyBatis , Spring Data JPA , Spring JDBC , Spring DWR...
2. **框架技术**:熟悉SSH(Struts2 + Spring + Hibernate)和SSI(Struts2 + Spring + Ibatis)等开源框架,这些框架在企业级Java应用开发中非常常见,用于构建高效、可维护的Web应用程序。 3. **开发工具**:熟练...
- 技术栈: Spring + Hibernate + Struts2 + Quartz + JBPM + Zookepeer + EXT + DOJO - 使用Quartz进行定时任务调度,JBPM进行流程管理。 - 使用DOJO绘制虚拟机和备份设备的拓扑图。 - 实现了虚拟机备份和恢复的...
该项目基于maven3.0构建的,项目中融合了Struts1、Struts2、Spring、SpringMVC、Hibernate、Ibatis、MyBatis、Spring Data JPA、Spring JDBC、Spring DWR。页面展现这里使用Struts1、Struts2、SpringMVC(jsp视图、...
【海联讯科技Java面试题】的文档涵盖了多个Java编程和技术框架的相关问题,以下是这些问题的详细解析: 1. **合并去重字符串数组** - 题目要求编写一个方法,将两个字符串数组合并并去除重复元素。可以使用HashSet...
这些框架包括了Java类加载器架构、JVM架构、Java技术体系、线程运行架构、Java编译与运行结构、JMS技术架构、JMX技术架构、Spring架构、Hibernate架构、iBatis架构、Struts1与Struts2架构、JBPM架构以及EJB技术架构...
26. **JBPM工作流**:JBPM是一个工作流管理系统,可以与Spring集成,用于业务流程管理。 27. **表单布局**:在ExtJS中,可以自定义表单元素的布局,包括验证码的显示位置。 28. **分页技术**:PageBean是一种Java...
##### Struts2中result中的type类型 - **dispatcher**:转发到一个JSP页面。 - **redirect**:重定向到一个URL。 - **chain**:调用另一个Action。 ##### Struts2标签 - 提供了丰富的标签库,用于简化页面开发。 #...
1. **Java类加载器架构**:Java类加载器负责在运行时将类文件加载到JVM中。它包括引导类加载器、扩展类加载器和应用程序类加载器,以及用户自定义的类加载器。理解这个架构有助于优化应用性能和实现动态加载。 2. *...
在Web OA项目中,开发者使用Struts+Hibernate+Spring构建多层架构,利用ThreadLocal实现分页,运用JBPM和Freemarker实现工作流程,而CRM项目则展示了其在营销管理、销售管理等方面的应用。 综上所述,这位Java...
Java技术框架方案架构图汇总汇编是一份详尽的文档,涵盖了从基础的Java平台到复杂的分布式系统架构的多种技术和框架。以下是对其中部分关键知识点的详细解释: 1. **Java类加载器架构**:Java类加载器是JVM的重要...